:root {
  --bg: #07110d;
  --bg-soft: #0a1712;
  --surface: #0e2118;
  --surface-2: #132b20;
  --line: rgba(215, 181, 109, 0.18);
  --gold: #d7b56d;
  --gold-strong: #e8c97f;
  --cream: #f4efe2;
  --muted: #9aa8a0;
  --emerald: #2c8a61;
  --danger: #d97b6c;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(44, 138, 97, 0.14), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(215, 181, 109, 0.07), transparent 60%),
    var(--bg);
  color: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: rgba(215, 181, 109, 0.35); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.small { font-size: 0.82rem; }
.muted { color: var(--muted); }
.error-text { color: var(--danger); font-size: 0.84rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 17, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.01em; }
.brand-mark {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  color: var(--gold);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 1.02rem; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); font-size: 0.94rem; padding: 6px 2px; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
.site-nav a:hover, .site-nav a.active { color: var(--cream); border-color: var(--gold); }
.admin-link {
  font-size: 0.78rem; color: var(--muted); border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 12px; border-radius: 999px;
}
.admin-link:hover { color: var(--gold); border-color: var(--gold); }

.site-main { width: min(1180px, 92vw); margin: 0 auto; padding: 34px 0 70px; min-height: calc(100vh - 220px); }
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 34px clamp(18px, 4vw, 56px); color: var(--muted); font-size: 0.88rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold); }
.footer-note { margin: 0; font-size: 0.78rem; opacity: 0.8; }

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-weight: 650; font-size: 0.92rem;
  transition: transform .15s, background .18s, border-color .18s, color .18s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-strong), var(--gold)); color: #20180a; box-shadow: 0 10px 30px rgba(215, 181, 109, 0.18); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.14); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: rgba(217, 123, 108, 0.12); border-color: rgba(217, 123, 108, 0.4); color: #f0b1a7; }
.btn-small { padding: 7px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.inline-form { display: inline; }
input, select, textarea {
  width: 100%; background: rgba(255,255,255,0.045); color: var(--cream);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 11px 13px; outline: none; transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,181,109,0.12); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 70px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.check input { width: auto; accent-color: var(--gold); }

.flash {
  width: min(1180px, 92vw); margin: 18px auto 0; padding: 12px 16px; border-radius: 12px;
  font-size: 0.9rem; border: 1px solid transparent;
}
.flash-ok { background: rgba(44, 138, 97, 0.16); border-color: rgba(44, 138, 97, 0.45); color: #b7e7ce; }
.flash-err { background: rgba(217, 123, 108, 0.14); border-color: rgba(217, 123, 108, 0.45); color: #f2bdb4; }

/* Chips */
.channel-bar { display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.channel-bar::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.035);
  color: var(--muted); border-radius: 999px; padding: 7px 13px; font-size: 0.82rem;
  transition: .18s;
}
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.chip:hover { color: var(--cream); border-color: rgba(215,181,109,0.5); }
.chip.active { background: var(--gold); color: #1d1608; border-color: var(--gold); font-weight: 650; }

/* Feed */
.feed-page { overflow: hidden; background: #020504; }
.feed-page .flash { position: fixed; z-index: 80; top: 76px; left: 50%; transform: translateX(-50%); width: auto; max-width: 90vw; }
.feed-main { width: 100%; padding: 0; margin: 0; min-height: 0; }
.feed-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px;
  background: linear-gradient(to bottom, rgba(2,5,4,0.78), transparent);
  pointer-events: none;
}
.feed-top a { pointer-events: auto; }
.feed-top-links { display: flex; gap: 16px; font-size: 0.85rem; color: rgba(244,239,226,0.72); }
.feed-top-links a:hover { color: var(--gold); }
.feed-page .channel-bar {
  position: fixed; z-index: 45; top: 58px; left: 0; right: 0;
  padding: 0 16px 10px;
  background: linear-gradient(to bottom, rgba(2,5,4,0.55), transparent);
}
.feed-page .chip { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.14); color: rgba(244,239,226,0.8); backdrop-filter: blur(10px); }
.feed-page .chip.active { background: var(--gold); color: #1d1608; }
.feed {
  height: 100dvh; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  overscroll-behavior-y: contain; background: #020504;
}
.feed::-webkit-scrollbar { display: none; }
.reel {
  position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; background: #020504;
}
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #05100b; }
.reel-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(2,5,4,0.42) 0%, transparent 22%, transparent 55%, rgba(2,5,4,0.88) 100%);
  pointer-events: none;
}
.reel-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 0 78px 106px 20px; max-width: 720px;
}
.reel-channel { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 650; color: var(--cream); }
.reel-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.35); background: var(--surface-2); }
.reel-channel-name { text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.reel-duration { color: rgba(244,239,226,0.6); font-weight: 400; font-size: 0.78rem; }
.reel-title { font-size: clamp(1.02rem, 2.6vw, 1.35rem); line-height: 1.3; margin: 10px 0 6px; text-shadow: 0 2px 14px rgba(0,0,0,0.85); }
.reel-desc { font-size: 0.88rem; color: rgba(244,239,226,0.78); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; text-shadow: 0 1px 8px rgba(0,0,0,0.9); }
.reel-desc.expanded { -webkit-line-clamp: unset; max-height: 38vh; overflow-y: auto; }
.desc-toggle { display: none; background: none; border: 0; padding: 0; color: var(--gold); font-size: 0.82rem; margin-bottom: 6px; }
.desc-toggle.visible { display: inline-block; }
.reel-stats { font-size: 0.76rem; color: rgba(244,239,226,0.55); }
.reel-actions { position: absolute; right: 12px; bottom: 118px; z-index: 6; display: grid; gap: 12px; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.18);
  color: var(--cream); backdrop-filter: blur(12px); transition: .18s;
}
.round-btn:hover { border-color: var(--gold); color: var(--gold); }
.round-btn svg { width: 22px; height: 22px; }
.round-btn .icon-sound { display: none; }
.round-btn.is-sound .icon-sound { display: block; }
.round-btn.is-sound .icon-muted { display: none; }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.14); z-index: 8; }
.reel-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.reel-play-state {
  position: absolute; inset: 0; z-index: 3; background: transparent; border: 0;
}
.reel.is-paused .reel-play-state::after {
  content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25); color: var(--cream);
  font-size: 1.4rem; backdrop-filter: blur(8px);
}
.reel-next { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 5; width: 36px; height: 36px; display: none; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.6); }
.reel-next svg { width: 20px; height: 20px; }
.feed-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; gap: 54px;
  padding: 10px 0 calc(9px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(2,5,4,0.92), rgba(2,5,4,0.45), transparent);
  pointer-events: none;
}
.feed-bottom a { pointer-events: auto; display: grid; justify-items: center; gap: 3px; font-size: 0.66rem; color: rgba(244,239,226,0.55); }
.feed-bottom svg { width: 23px; height: 23px; }
.feed-bottom a.active, .feed-bottom a:hover { color: var(--gold); }
.feed-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 0.9rem; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(215,181,109,0.25); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.feed-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; }
.feed-empty h1 { font-size: 1.6rem; margin-bottom: 8px; }
.feed-empty p { max-width: 420px; color: var(--muted); }
.empty-mark { font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.noscript { padding: 120px 20px; text-align: center; }

/* Pause card */
.pause-card {
  height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center; padding: 30px;
  background:
    radial-gradient(600px 420px at 50% 25%, rgba(44,138,97,0.22), transparent 70%),
    linear-gradient(160deg, #081711, #04100b 65%, #07130e);
}
.pause-inner { width: min(620px, 92vw); text-align: center; display: grid; justify-items: center; gap: 12px; }
.pause-eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.68rem; color: var(--gold); }
.pause-kind { font-size: 1.7rem; color: var(--gold); }
.pause-text { font-size: clamp(1.25rem, 3.4vw, 1.95rem); line-height: 1.45; margin: 12px 0 0; font-weight: 500; }
.pause-source { color: var(--muted); font-size: 0.9rem; font-style: normal; }
.pause-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.pause-timer { font-size: 2.4rem; color: var(--gold); font-variant-numeric: tabular-nums; margin-top: 12px; }

/* Long videos */
.page-hero { padding: 18px 0 26px; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem; color: var(--gold); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.1; margin: 10px 0 12px; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); max-width: 620px; }
.long-toolbar { display: grid; gap: 14px; margin-bottom: 26px; }
.channel-bar.static { flex-wrap: wrap; overflow: visible; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.video-card { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.video-card:hover { transform: translateY(-3px); border-color: rgba(215,181,109,0.35); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #10251b, #08120d); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.03); }
.thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: rgba(215,181,109,0.45); }
.duration-badge { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.78); color: #fff; font-size: 0.72rem; padding: 2px 6px; border-radius: 6px; }
.video-card-body { padding: 14px 15px 16px; }
.video-card h2 { font-size: 0.98rem; line-height: 1.35; margin: 0 0 6px; }
.video-card h2 a:hover { color: var(--gold); }
.video-card-meta { margin: 0; color: var(--muted); font-size: 0.8rem; }
.video-card-desc { margin: 8px 0 0; color: rgba(154,168,160,0.8); font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-count { color: var(--muted); font-size: 0.84rem; margin: 18px 0 0; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h1, .empty-state h2 { color: var(--cream); }
.empty-state.tall { min-height: 52vh; display: grid; place-content: center; justify-items: center; }

/* Watch */
.watch-wrap { max-width: 980px; margin: 0 auto; }
.back-link { color: var(--muted); font-size: 0.86rem; display: inline-block; margin-bottom: 14px; }
.back-link:hover { color: var(--gold); }
.watch-player { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); }
.watch-player video { width: 100%; max-height: 72vh; display: block; }
.watch-info { padding: 24px 4px; }
.watch-info h1 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.25; margin-bottom: 12px; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.85rem; align-items: center; margin-bottom: 18px; }
.watch-channel { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-weight: 650; }
.watch-channel img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.watch-description { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.watch-description summary { cursor: pointer; font-weight: 650; margin-bottom: 8px; }
.watch-description p { margin: 0; white-space: pre-wrap; color: rgba(244,239,226,0.82); font-size: 0.92rem; }
.related-section { margin-top: 34px; }
.related-section h2 { font-size: 1.15rem; margin-bottom: 16px; }
.video-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

/* Prose */
.prose-page { max-width: 760px; margin: 0 auto; }
.prose-page h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 10px 0 18px; }
.prose-page h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.prose-page p, .prose-page li { color: rgba(244,239,226,0.78); }
.prose-page .lead { font-size: 1.08rem; color: var(--cream); }
.prose-page ul { padding-left: 20px; }
.prose-page li { margin-bottom: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.stat-row div { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 2px; }
.stat-row strong { font-size: 1.6rem; color: var(--gold); }
.stat-row span { color: var(--muted); font-size: 0.8rem; }

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; gap: 14px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.86rem; }
  .admin-link { display: none; }
  .site-main { width: min(100% - 28px, 1180px); padding-top: 22px; }
  .footer-inner { text-align: center; justify-items: center; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
  .video-card-body { padding: 11px 12px 13px; }
  .video-card h2 { font-size: 0.9rem; }
  .reel-meta { padding-right: 70px; padding-bottom: 98px; }
  .reel-actions { right: 10px; bottom: 106px; gap: 10px; }
  .round-btn { width: 42px; height: 42px; }
  .feed-bottom { gap: 44px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .stat-row strong { font-size: 1.25rem; }
}

@media (min-width: 900px) {
  .reel-next { display: grid; }
  .reel-meta { left: 50%; transform: translateX(-50%); right: auto; width: min(760px, 80vw); padding-left: 0; padding-right: 0; padding-bottom: 90px; }
  .reel-actions { right: max(24px, calc(50vw - 430px)); }
  .feed-bottom { display: none; }
  .reel-meta { padding-bottom: 44px; }
  .pause-card { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Engagement: like & share */
body.share-open { overflow: hidden; }
.round-btn.like-btn {
  height: auto; min-height: 48px; padding: 6px 0; border-radius: 16px;
  display: grid; justify-items: center; gap: 1px;
}
.round-btn.like-btn .like-count { font-size: 0.62rem; line-height: 1; color: rgba(244,239,226,0.78); }
.round-btn.like-btn.is-liked { color: var(--gold); border-color: rgba(215,181,109,0.65); background: rgba(215,181,109,0.16); }
.round-btn.like-btn.is-liked svg path { fill: var(--gold); stroke: var(--gold); }
.reel-featured {
  display: inline-block; margin: 8px 0 2px; padding: 3px 9px; border-radius: 999px;
  background: rgba(215,181,109,0.16); border: 1px solid rgba(215,181,109,0.45);
  color: var(--gold); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.reel-featured[hidden] { display: none; }

.featured-strip {
  position: fixed; z-index: 46; top: 102px; right: 16px;
  display: flex; align-items: center; gap: 10px;
  width: min(360px, calc(100vw - 32px)); padding: 8px 10px;
  background: rgba(7, 17, 13, 0.78); border: 1px solid rgba(215,181,109,0.35);
  border-radius: 14px; backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.32);
}
.featured-strip img { width: 54px; height: 32px; object-fit: cover; border-radius: 7px; }
.featured-strip span { display: grid; gap: 1px; min-width: 0; }
.featured-strip small { color: var(--gold); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.featured-strip strong { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-strip:hover { border-color: var(--gold); }

.featured-pill {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  background: rgba(215,181,109,0.15); border: 1px solid rgba(215,181,109,0.4);
  color: var(--gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}

.featured-hero {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 26px;
  align-items: center; margin-bottom: 30px; padding: 18px;
  background: linear-gradient(160deg, rgba(215,181,109,0.09), rgba(255,255,255,0.02));
  border: 1px solid rgba(215,181,109,0.28); border-radius: 22px;
}
.featured-hero-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #0a1712; }
.featured-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-hero-body { display: grid; gap: 10px; justify-items: start; }
.featured-hero-body h2 { font-size: clamp(1.25rem, 3vw, 1.9rem); line-height: 1.2; margin: 0; }
.featured-hero-body h2 a:hover { color: var(--gold); }
.featured-hero-desc { color: var(--muted); font-size: 0.88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Share sheet */
.share-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 20px; background: rgba(2, 5, 4, 0.72); backdrop-filter: blur(8px);
}
.share-backdrop[hidden] { display: none; }
.share-sheet {
  position: relative; width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, #0f241a, #091710);
  border: 1px solid rgba(215,181,109,0.3); border-radius: 22px;
  padding: 26px; box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.share-close { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: var(--cream); font-size: 1.3rem; line-height: 1; }
.share-close:hover { border-color: var(--gold); color: var(--gold); }
.share-eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.64rem; color: var(--gold); }
.share-sheet h2 { font-size: 1.35rem; margin: 5px 0 5px; }
.share-video-title { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
.share-link-row { display: flex; gap: 8px; }
.share-link-row input { flex: 1; min-width: 0; font-size: 0.82rem; }
.share-timestamp { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 0.84rem; }
.share-timestamp input { width: auto; accent-color: var(--gold); }
.share-time-label { color: var(--gold); font-variant-numeric: tabular-nums; }
.share-timestamp[hidden] { display: none; }
.share-native { width: 100%; margin-top: 12px; }
.share-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.share-platform {
  display: grid; place-items: center; padding: 11px 8px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.035);
  font-size: 0.82rem; color: var(--cream);
}
.share-platform:hover { border-color: var(--gold); color: var(--gold); }
.share-qr { display: grid; justify-items: center; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); }
.share-qr img { width: 124px; height: 124px; border-radius: 10px; background: #07110d; padding: 4px; }
.share-qr span { color: var(--muted); font-size: 0.72rem; }
.share-toast { min-height: 1.2em; margin: 8px 0 0; color: var(--gold); font-size: 0.8rem; text-align: center; }
@media (max-width: 720px) { .share-qr { display: none; } .share-sheet { padding: 22px 18px; } .share-platforms { gap: 6px; } }

/* Single short page */
.short-page { max-width: 1080px; margin: 0 auto; }
.short-layout { display: grid; grid-template-columns: minmax(280px, 410px) 1fr; gap: 34px; align-items: start; }
.short-stage { position: relative; width: 100%; aspect-ratio: 9/16; max-height: min(76vh, 720px); border-radius: 22px; overflow: hidden; background: #030806; border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); }
.short-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.short-stage-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, rgba(2,5,4,0.9)); pointer-events: none; }
.short-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 3; pointer-events: none; }
.short-channel { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 650; flex-wrap: wrap; }
.short-channel img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.short-overlay h1 { font-size: clamp(1rem, 2.4vw, 1.3rem); margin: 8px 0 0; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.short-play-toggle { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; }
.short-play-toggle.is-paused::after { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25); font-size: 1.3rem; }
.short-mute { position: absolute; z-index: 4; right: 12px; top: 12px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.4); color: var(--cream); font-size: 0.72rem; backdrop-filter: blur(10px); }
.short-mute:hover { border-color: var(--gold); }
.short-side { display: grid; gap: 16px; }
.short-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn-like { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.14); color: var(--cream); }
.btn-like .heart { color: var(--gold); font-size: 1.05rem; line-height: 1; }
.btn-like.is-liked { border-color: rgba(215,181,109,0.55); background: rgba(215,181,109,0.13); }
.btn-like.is-liked .heart { color: var(--gold-strong); }
.btn-like .like-count { color: var(--gold); font-variant-numeric: tabular-nums; }
.short-meta { color: var(--muted); font-size: 0.82rem; }
.short-description { background: rgba(255,255,255,0.028); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 16px; }
.short-description h2 { font-size: 0.82rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.short-description p { margin: 0; white-space: pre-wrap; color: rgba(244,239,226,0.82); font-size: 0.9rem; }
.short-links { display: flex; gap: 8px; flex-wrap: wrap; }
.short-links .btn { padding: 8px 12px; }
.watch-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }

@media (max-width: 820px) {
  .short-layout { grid-template-columns: 1fr; gap: 20px; }
  .short-stage { max-height: 68vh; aspect-ratio: 9/16; }
  .featured-hero { grid-template-columns: 1fr; gap: 16px; }
  .featured-strip { top: 96px; }
}

/* Custom player */
.player-shell { position: relative; }
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  padding: 22px 14px 10px;
  background: linear-gradient(to top, rgba(2,5,4,0.9), rgba(2,5,4,0.35) 65%, transparent);
  transition: opacity .22s ease;
}
.player-seek { width: 100%; height: 4px; margin: 0 0 8px; accent-color: var(--gold); cursor: pointer; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.player-group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.player-group-right { margin-left: auto; }
.player-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 32px; height: 32px; padding: 0 7px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--cream);
  font-size: 0.76rem; font-weight: 600; transition: .16s;
}
.player-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.16); color: var(--gold); }
.player-btn svg { width: 18px; height: 18px; }
.player-text-btn { min-width: 0; }
.player-btn .icon-play { display: block; }
.player-btn .icon-pause { display: none; }
.player-shell.is-playing .player-btn .icon-play { display: none; }
.player-shell.is-playing .player-btn .icon-pause { display: block; }
.player-btn.is-muted .volume-wave { display: none; }
.player-volume { display: flex; align-items: center; gap: 2px; }
.player-volume-range { width: 64px; height: 4px; accent-color: var(--gold); padding: 0; background: transparent; border: 0; }
.player-time { font-size: 0.72rem; color: rgba(244,239,226,0.82); white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-time-sep { color: rgba(244,239,226,0.4); }
.player-speed { position: relative; }
.speed-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20;
  display: grid; gap: 2px; width: 90px; padding: 5px;
  background: rgba(8, 22, 16, 0.97); border: 1px solid rgba(215,181,109,0.3);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.speed-menu[hidden] { display: none; }
.speed-menu button {
  border: 0; background: transparent; color: var(--cream); text-align: left;
  padding: 6px 8px; border-radius: 6px; font-size: 0.76rem;
}
.speed-menu button:hover, .speed-menu button.is-active { background: rgba(215,181,109,0.16); color: var(--gold); }
.player-big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 11;
  width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.48); color: var(--cream); display: grid; place-items: center;
  backdrop-filter: blur(10px); transition: opacity .2s ease, transform .2s ease;
}
.player-big-play:hover { color: var(--gold); border-color: var(--gold); }
.player-big-play svg { width: 30px; height: 30px; margin-left: 3px; }
.player-shell.is-playing .player-big-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.9); }
.player-shell.is-idle .player-controls,
.player-shell.is-idle .player-big-play { opacity: 0; pointer-events: none; }
.player-shell.is-idle { cursor: none; }
.player-resume {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 15;
  width: min(430px, calc(100% - 28px)); padding: 12px 14px;
  background: rgba(8, 22, 16, 0.96); border: 1px solid rgba(215,181,109,0.4);
  border-radius: 13px; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.player-resume[hidden] { display: none; }
.player-resume-text { display: grid; gap: 1px; font-size: 0.8rem; }
.player-resume-text span { color: var(--gold); }
.player-resume-actions { display: flex; gap: 6px; }
.player-shell:fullscreen { width: 100%; height: 100%; background: #000; border-radius: 0; }
.player-shell:fullscreen video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.player-shell:fullscreen .player-controls { padding-bottom: 18px; }

/* Theater and clean screen */
body.player-theater .watch-wrap { max-width: none; }
body.player-theater .site-main { width: min(100% - 28px, 1480px); padding-top: 14px; }
body.player-theater .watch-player { border-radius: 0; border-left: 0; border-right: 0; }
body.player-theater .watch-player video { max-height: calc(100vh - 150px); }
body.player-theater .related-section,
body.player-theater .site-footer { display: none; }
body.player-theater .short-layout { grid-template-columns: 1fr; }
body.player-theater .short-side,
body.player-theater .related-section { display: none; }
body.player-theater .short-stage { max-height: calc(100vh - 100px); margin: 0 auto; }

body.player-clean .site-header,
body.player-clean .site-footer,
body.player-clean .flash,
body.player-clean .back-link,
body.player-clean .watch-info,
body.player-clean .short-side,
body.player-clean .short-overlay,
body.player-clean .related-section,
body.player-clean .featured-strip { display: none !important; }
body.player-clean .site-main { width: 100%; padding: 0; }
body.player-clean .watch-wrap { max-width: none; }
body.player-clean .watch-player { height: 100dvh; border: 0; border-radius: 0; }
body.player-clean .watch-player video { height: 100%; max-height: none; object-fit: contain; background: #000; }
body.player-clean .short-page { max-width: none; }
body.player-clean .short-layout { display: block; }
body.player-clean .short-stage { height: 100dvh; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
body.player-clean .short-video { object-fit: contain; }
body.player-clean .player-controls { padding-left: 22px; padding-right: 22px; }
body.player-clean .short-overlay { display: none; }

/* Feed clean screen */
.feed-tool {
  border: 0; background: transparent; color: rgba(244,239,226,0.72);
  font-size: 0.85rem; padding: 0; cursor: pointer;
}
.feed-tool:hover { color: var(--gold); }
.feed-clean-reveal {
  position: fixed; z-index: 70; right: 16px; top: 14px; display: none;
  padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.55); color: var(--cream); font-size: 0.75rem;
  backdrop-filter: blur(12px);
}
.feed-clean-reveal:hover { border-color: var(--gold); color: var(--gold); }
.feed-clean .feed-top,
.feed-clean .channel-bar,
.feed-clean .feed-bottom,
.feed-clean .featured-strip,
.feed-clean .reel-meta,
.feed-clean .reel-actions,
.feed-clean .reel-next { display: none !important; }
.feed-clean.feed-chrome-visible .feed-top { display: flex !important; }
.feed-clean.feed-chrome-visible .channel-bar { display: flex !important; }
.feed-clean.feed-chrome-visible .feed-bottom { display: flex !important; }
.feed-clean.feed-chrome-visible .featured-strip { display: flex !important; }
.feed-clean.feed-chrome-visible .reel-meta { display: block !important; }
.feed-clean.feed-chrome-visible .reel-actions { display: grid !important; }
.feed-clean.feed-chrome-visible .reel-next { display: none !important; }
.feed-clean.feed-chrome-visible .feed-clean-reveal { display: inline-flex; }
.feed-clean { cursor: none; }
.feed-clean.feed-chrome-visible { cursor: default; }

@media (max-width: 720px) {
  .player-controls { padding: 16px 8px 7px; }
  .player-bar { gap: 5px; }
  .player-group { gap: 2px; }
  .player-btn { height: 30px; padding: 0 5px; font-size: 0.68rem; }
  .player-group-right .player-text-btn { font-size: 0.64rem; }
  .player-volume-range { display: none; }
  .player-time { font-size: 0.66rem; }
  .player-big-play { width: 60px; height: 60px; }
  .player-resume { bottom: 70px; }
  body.player-theater .watch-player video { max-height: calc(100vh - 120px); }
}
.short-stage .short-overlay { bottom: 66px; }
.short-stage.is-idle .short-overlay { bottom: 18px; }
body.player-clean { overflow: hidden; }
body.player-theater .short-stage { width: min(100%, calc((100vh - 100px) * 0.5625)); height: calc(100vh - 100px); max-height: none; margin: 0 auto; }

/* Bootstrap Icons (inline, MIT) */
.bi { fill: currentColor; }
.feed-top a, .feed-top button { pointer-events: auto; }
.feed-tool { display: inline-flex; align-items: center; justify-content: center; }
.feed-tool svg { width: 17px; height: 17px; }
.feed-clean-reveal { width: 38px; height: 38px; padding: 0; display: none; place-items: center; }
.feed-clean-reveal svg { width: 18px; height: 18px; }
.player-controls { pointer-events: auto; }
.player-btn .bi { width: 18px; height: 18px; }
.player-btn .bi-volume-mute { display: none; }
.player-btn.is-muted .bi-volume-up { display: none; }
.player-btn.is-muted .bi-volume-mute { display: block; }
.player-btn .bi-fs-exit { display: none; }
.player-shell.is-fullscreen .bi-fs-enter { display: none; }
.player-shell.is-fullscreen .bi-fs-exit { display: block; }
.player-speed-btn { gap: 4px; }
.speed-label { font-size: 0.7rem; font-variant-numeric: tabular-nums; }

/* Fullscreen fallback (iOS and unsupported browsers) */
body.player-faux-fullscreen { overflow: hidden; }
.player-shell.is-faux-fullscreen {
  position: fixed; inset: 0; z-index: 100;
  width: 100vw; height: 100dvh; max-height: none;
  background: #000; border: 0; border-radius: 0;
}
.player-shell.is-faux-fullscreen video {
  width: 100%; height: 100%; max-height: none; object-fit: contain;
}
.player-shell.is-faux-fullscreen .player-controls { padding-bottom: 18px; }
body.feed-faux-fullscreen { overflow: hidden; }
body.feed-faux-fullscreen .feed { position: fixed; inset: 0; z-index: 85; }
