/* ============ P STUDIO — flat, sharp, editorial ============ */
:root {
  --teal: #29B1AC;
  --bg: #08090a;
  --bg-2: #0f1112;
  --card: #121415;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #f2f4f4;
  --muted: #8b9496;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--teal); color: #000; }
.t { color: var(--teal); }

/* ---------- logo: Montserrat regular ---------- */
.logo { font-weight: 400; letter-spacing: .14em; font-size: 19px; color: #fff; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
  font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-primary { background: var(--teal); color: #000; border-color: var(--teal); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 9px 16px; font-size: 11px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 22px var(--pad); border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .3s, border-color .3s;
}
.nav.scrolled { padding-top: 14px; padding-bottom: 14px; background: var(--bg); border-color: var(--line); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links > a, .dd-btn { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .25s; position: relative; padding: 6px 0; }
.nav-links > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--teal); transition: right .35s var(--ease); }
.nav-links > a:hover, .nav-links > a.active, .dd-btn:hover, .dropdown.open .dd-btn, .dd-btn.active { color: #fff; }
.nav-links > a:hover::after, .nav-links > a.active::after { right: 0; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; }
.dd-btn::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.dropdown { position: relative; }
.dropdown.open .dd-btn::after { transform: translateY(1px) rotate(-135deg); }
.dd-menu {
  position: absolute; top: calc(100% + 18px); left: 50%; width: 340px; margin-left: -170px;
  background: var(--bg); border: 1px solid var(--line-strong); padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease);
}
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -19px; height: 19px; }
.dropdown.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-label { padding: 6px 20px 10px; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.dd-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 8px 20px; transition: background .2s; }
.dd-item:hover { background: var(--card); }
.dd-item img { width: 64px; aspect-ratio: 16/10; object-fit: cover; }
.dd-item b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.dd-item small { font-size: 11px; color: var(--muted); }
.dd-all { display: block; margin: 8px 20px 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span, .burger::before, .burger::after { content: ''; position: absolute; left: 9px; right: 9px; height: 1px; background: #fff; transition: transform .3s, opacity .3s; }
.burger::before { top: 14px; } .burger span { top: 20px; } .burger::after { top: 26px; }
.menu-open .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-dm { margin-left: auto; }
  .burger { display: block; }
}

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 96px var(--pad) 40px; overflow-y: auto; }
.menu a.big { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.01em; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu .dd-label { padding: 28px 0 10px; }
.menu .dd-item { padding: 8px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-grid { position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 120px 120px; opacity: .35; }
.hero-layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-layers > * { position: absolute; will-change: transform; }
.sq { border: 1px solid rgba(41,177,172,.5); }
.sq-a { width: 220px; height: 220px; right: 11%; top: 17%; transform-origin: center; }
.sq-b { width: 110px; height: 110px; left: 9%; bottom: 20%; border-color: var(--line-strong); }
.blk { width: 14px; height: 14px; background: var(--teal); }
.blk-a { left: 24%; top: 26%; }
.blk-b { right: 26%; bottom: 28%; background: #fff; width: 8px; height: 8px; }
.ln { height: 1px; width: 180px; background: var(--teal); }
.ln-a { left: 6%; top: 40%; }
.ln-b { right: 5%; bottom: 38%; width: 120px; background: var(--line-strong); }

.hero-inner { text-align: center; padding: 120px var(--pad) 80px; will-change: transform, opacity; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.hero-title {
  font-size: clamp(60px, 16vw, 250px); line-height: .9; font-weight: 400; letter-spacing: .02em;
  display: flex; gap: .3em; justify-content: center; flex-wrap: wrap;
}
.hero-title .hl { display: inline-flex; overflow: hidden; padding-bottom: .06em; }
.hero-title .hl > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .w { color: #fff; }
@keyframes rise { to { transform: translateY(0); } }
.hero-tag { margin: 30px auto 40px; max-width: 560px; font-size: clamp(15px, 1.8vw, 19px); color: #c5cdce; font-weight: 400; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 56px; background: var(--line-strong); overflow: hidden; }
.scroll-hint::after { content: ''; position: absolute; left: 0; top: -20px; width: 1px; height: 20px; background: var(--teal); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 56px; } }

/* ---------- marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-size: clamp(18px, 2.4vw, 28px); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-track span:nth-child(odd) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.45); }
.marquee-track span::after { content: ''; width: 10px; height: 10px; background: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(56px, 7vw, 96px) var(--pad); max-width: 1440px; margin: 0 auto; }
.section + .section { border-top: 1px solid var(--line); }
.bg-word {
  position: absolute; top: 40px; right: -2vw; z-index: -1; pointer-events: none; user-select: none;
  font-size: clamp(110px, 22vw, 340px); font-weight: 700; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); will-change: transform;
}
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: end; margin-bottom: 36px; max-width: 900px; }
.section-num { grid-row: span 2; align-self: start; font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: .2em; padding-top: 14px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); max-width: 560px; }
@media (max-width: 600px) { .section-head { grid-template-columns: 1fr; } .section-num { grid-row: auto; padding: 0; } }
.empty { color: var(--muted); border: 1px dashed var(--line-strong); padding: 40px; text-align: center; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- filters ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 30px; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.filter-row:empty { display: none; }
.chip { padding: 10px 18px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); transition: all .25s; }
.chip:last-child { border-right: 0; }
.chip:hover { color: #fff; }
.chip.on { background: var(--teal); color: #000; }

/* ---------- shared media hover ---------- */
.media { position: relative; overflow: hidden; background: #000; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.hover-zoom:hover .media img { transform: scale(1.05); }

/* ---------- app cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.app-card { position: relative; background: var(--bg); cursor: pointer; transition: opacity 1s var(--ease), transform .5s var(--ease), background .3s; }
.app-card:hover { background: var(--card); }
.app-card.hide { display: none; }
.app-thumb { aspect-ratio: 16 / 10; }
.app-thumb .live { position: absolute; left: 0; top: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.app-thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 400; color: rgba(41,177,172,.35); }
.play-sq { position: absolute; right: 0; bottom: 0; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; background: var(--teal); color: #000; transform: translateY(100%); transition: transform .4s var(--ease); }
.play-sq svg { width: 18px; height: 18px; }
.app-card:hover .play-sq, .app-card:focus-visible .play-sq { transform: none; }
.app-info { padding: 22px 24px 26px; }
.app-info h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.app-info p { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; padding: 4px 8px; border: 1px solid rgba(41,177,172,.45); color: var(--teal); }

/* ---------- shorts / singles ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 24px; }
.video-card { cursor: pointer; }
.video-card .media { aspect-ratio: 16/9; }
.video-card .media::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; transition: border-color .3s; }
.video-card:hover .media::after { border-color: var(--teal); }
.video-card .quick-play { position: absolute; left: 0; bottom: 0; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg); color: #fff; transition: background .25s, color .25s; }
.video-card .quick-play:hover { background: var(--teal); color: #000; }
.video-card .quick-play svg { width: 18px; height: 18px; }
.video-card h4 { font-size: 17px; font-weight: 600; margin: 16px 0 4px; }
.video-card p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- connect ---------- */
.connect-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .connect-grid { grid-template-columns: 1fr; } }
.ig-card { padding: 32px; border: 1px solid var(--line-strong); border-top: 3px solid var(--teal); }
.ig-top { display: flex; align-items: center; gap: 18px; }
.ig-avatar { width: 76px; height: 76px; flex: none; border: 1px solid var(--line-strong); padding: 3px; }
.ig-avatar img, .ig-avatar span { width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.ig-avatar span { display: grid; place-items: center; font-size: 28px; font-weight: 400; color: var(--teal); }
.ig-name { font-size: 20px; font-weight: 600; }
.ig-handle { color: var(--teal); font-weight: 500; font-size: 14px; }
.ig-bio { margin: 22px 0 26px; color: #c5cdce; white-space: pre-line; }
.ig-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ig-email { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
.ig-email:hover { color: var(--teal); }
.ig-email:empty { display: none; }
.ig-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ig-feed .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; border-radius: 0 !important; }
.ig-feed-empty { display: grid; place-items: center; min-height: 280px; border: 1px solid var(--line); color: var(--muted); text-align: center; padding: 30px; }
.ig-feed-empty strong { display: block; font-size: clamp(28px, 4.6vw, 52px); font-weight: 500; letter-spacing: -.02em; color: #fff; line-height: 1.1; margin-bottom: 12px; }

/* inquiry form */
.inquiry { position: relative; z-index: 1; margin-top: 32px; padding: 32px; border: 1px solid var(--line-strong); border-top: 3px solid var(--teal); background: var(--bg); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; padding: 24px; } }
.inquiry h3 { font-size: 22px; font-weight: 600; }
.inquiry-intro p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.inquiry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .inquiry-fields { grid-template-columns: 1fr; } }
.inquiry-fields .wide { grid-column: 1 / -1; }
.inquiry label span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.inquiry input, .inquiry textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line-strong); padding: 12px 14px; resize: vertical; transition: border-color .2s; }
.inquiry input:focus, .inquiry textarea:focus { outline: none; border-color: var(--teal); }
.inquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.inquiry-send .btn:disabled { opacity: .6; cursor: wait; }
.inquiry-status { font-size: 14px; color: var(--muted); }
.inquiry-status.ok { color: var(--teal); }
.inquiry-status.err { color: #ff6b6b; }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 36px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- series / film detail page ---------- */
.detail { position: fixed; inset: 0; z-index: 150; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .35s; }
.detail.open { opacity: 1; }
.detail-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 14px var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.detail-bar .back { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.detail-bar .back:hover { color: var(--teal); }
.detail-bar .crumb { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-hero { position: relative; height: min(78vh, 760px); min-height: 440px; overflow: hidden; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.detail-hero > img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.95) 0%, rgba(8,9,10,.6) 45%, rgba(8,9,10,.1) 100%); }
.detail-hero-text { position: relative; z-index: 1; padding: 48px var(--pad); max-width: 760px; }
.detail-kicker { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.detail-hero h1 { font-size: clamp(38px, 6vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 18px; }
.detail-hero p { color: #c5cdce; font-size: clamp(15px, 1.5vw, 17px); white-space: pre-line; margin-bottom: 28px; max-width: 600px; }
.detail-hero .btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) { .detail-hero::after { background: linear-gradient(transparent 10%, rgba(8,9,10,.96) 75%); } }
.detail-sec { padding: 60px var(--pad); max-width: 1440px; margin: 0 auto; }
.detail-sec + .detail-sec { border-top: 1px solid var(--line); }
.detail-sec h2 { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; display: flex; gap: 14px; align-items: center; }
.detail-sec h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.ep-rows { border-top: 1px solid var(--line); }
.ep-row { display: grid; grid-template-columns: 56px 220px 1fr auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; text-align: left; transition: background .25s; }
.ep-row:hover { background: var(--card); }
.ep-row .n { font-size: 28px; font-weight: 400; color: var(--teal); padding-left: 8px; }
.ep-row .media { aspect-ratio: 16/9; }
.ep-row h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ep-row p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-row .go { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); margin-right: 8px; transition: all .25s; }
.ep-row:hover .go { background: var(--teal); border-color: var(--teal); color: #000; }
.ep-row .go svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .ep-row { grid-template-columns: 120px 1fr; gap: 14px; }
  .ep-row .n, .ep-row .go { display: none; }
}

.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin-bottom: 16px; cursor: zoom-in; }
.gallery figure .media img { height: auto; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.more-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 20px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.96); display: grid; grid-template-rows: auto 1fr auto; }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.lightbox .lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .lb-cap { text-align: center; padding: 14px 16px 22px; color: #c5cdce; font-size: 14px; }
.lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.lb-nav:hover { border-color: var(--teal); color: var(--teal); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }

/* ---------- player modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); background: rgba(0,0,0,.92); opacity: 0; transition: opacity .3s; }
.modal.open { opacity: 1; }
.modal-shell { width: 100%; max-width: 1400px; max-height: 100%; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-strong); transform: translateY(24px); transition: transform .45s var(--ease); }
.modal.open .modal-shell { transform: none; }
.modal-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.modal-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-actions { margin-left: auto; display: flex; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; color: #cfd6d7; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--teal); color: #000; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }

.app-shell { height: 100%; }
.app-frame-wrap { flex: 1; position: relative; background: #000; min-height: 0; }
.app-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.app-shell:fullscreen { max-width: none; border: 0; }

.video-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 0; overflow: hidden; }
.video-body.no-list { grid-template-columns: 1fr; }
.video-body.no-list .episode-list { display: none; }
.video-main { overflow-y: auto; }
.video-frame-wrap { position: relative; aspect-ratio: 16/9; background: #000; max-height: calc(100vh - 220px); width: 100%; }
.video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame-wrap:fullscreen { max-height: none; aspect-ratio: auto; }
.video-meta { padding: 20px 24px 24px; }
.video-ep-label { font-size: 11px; font-weight: 600; color: var(--teal); letter-spacing: .2em; text-transform: uppercase; }
.video-meta h3 { font-size: 21px; font-weight: 600; margin: 6px 0; }
.video-meta p { color: var(--muted); font-size: 14px; white-space: pre-line; }
.video-nav { display: flex; gap: 8px; margin-top: 18px; }
.video-nav button:disabled { opacity: .3; pointer-events: none; }
.episode-list { border-left: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.episode-list h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 16px 16px 10px; font-weight: 600; }
.ep-item { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 10px 16px; text-align: left; border-left: 2px solid transparent; transition: background .2s; }
.ep-item:hover { background: var(--card); }
.ep-item.active { background: var(--card); border-left-color: var(--teal); }
.ep-item img { width: 112px; aspect-ratio: 16/9; object-fit: cover; }
.ep-item small { display: block; font-size: 10px; font-weight: 600; color: var(--teal); letter-spacing: .14em; text-transform: uppercase; }
.ep-item span { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
  .video-body { grid-template-columns: 1fr; overflow-y: auto; }
  .episode-list { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .video-main { overflow: visible; }
  .modal { padding: 0; }
  .modal-shell { height: 100%; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .hl > span { transform: none; }
}

/* month / year stamps */
.meta { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.ep-row .meta { margin-bottom: 4px; }

/* Instagram posts in the player: Instagram sizes its own embed, so the frame scrolls instead of being 16:9 */
.video-frame-wrap.is-ig { aspect-ratio: auto; height: min(calc(100vh - 230px), 880px); min-height: 460px; overflow-y: auto; }
.video-frame-wrap.is-ig > iframe#video-frame { display: none; }
.video-frame-wrap.is-ig:fullscreen { height: 100vh; max-height: none; }
.ig-player { max-width: 500px; margin: 0 auto; padding: 18px 12px; }
.ig-player .instagram-media { margin: 0 auto !important; border-radius: 0 !important; }
.video-source { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid var(--teal); }
.ig-crop { overflow: hidden; }
.ig-player .ig-crop { max-width: 500px; margin: 0 auto; }

/* Instagram post set to "Open on Instagram": own cover + play button linking out */
.video-frame-wrap.is-iglink > iframe#video-frame { display: none; }
.ig-link { position: absolute; inset: 0; display: block; overflow: hidden; background: #000; color: #fff; }
.ig-link img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform 1s var(--ease); }
.ig-link:hover img { opacity: 1; transform: scale(1.02); }
.ig-link-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ig-link-play { width: 72px; height: 72px; display: grid; place-items: center; background: var(--teal); color: #000; transition: background .25s; }
.ig-link:hover .ig-link-play { background: #fff; }
.ig-link-play svg { width: 26px; height: 26px; }

/* ---------- 9:16 covers ----------
   Shorts / commercials rows: each card is as wide as its cover's shape at a shared row height,
   so portrait and landscape covers sit side by side uncropped and every row fills the width. */
.video-grid { display: flex; flex-wrap: wrap; gap: 40px 24px; --row: 340px; }
.video-grid::after { content: ''; flex: 10 1 0; } /* keeps a short last row from stretching */
.video-grid > .video-card { flex: var(--ar, 1.7778) 1 calc(var(--ar, 1.7778) * var(--row)); min-width: 0; }
.video-grid > .empty { flex: 1 1 100%; }
.video-card .media { aspect-ratio: var(--ar, 16 / 9); }
@media (max-width: 700px) { .video-grid { --row: 230px; gap: 32px 14px; } }

/* small thumbnails: show a portrait image whole on black instead of cropping it */
.ep-row .media img.is-portrait, .ep-item img.is-portrait, .dd-item img.is-portrait { object-fit: contain; background: #000; }
.ig-link img { object-fit: contain; }

/* detail page with a portrait cover: the poster stands beside the title instead of filling a wide banner */
.detail-hero.is-portrait { background: var(--bg-2); }
.detail-hero.is-portrait > img { left: auto; right: var(--pad); top: 36px; width: auto; height: calc(100% - 72px); max-width: 45%; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--line); }
.detail-hero.is-portrait::after { background: linear-gradient(90deg, rgba(8,9,10,.92) 0%, rgba(8,9,10,.55) 50%, transparent 72%); }
@media (max-width: 700px) {
  .detail-hero.is-portrait { height: auto; min-height: 0; flex-direction: column; align-items: stretch; }
  .detail-hero.is-portrait > img { position: relative; left: auto; right: auto; top: auto; height: 58vh; max-width: none; margin: 24px auto 0; }
  .detail-hero.is-portrait::after { display: none; }
}

/* fullscreen fallback: the player stretched over the whole window */
.pseudo-fs { position: fixed !important; inset: 0 !important; z-index: 1000 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; max-width: none !important; max-height: none !important; aspect-ratio: auto !important; margin: 0 !important; border: 0 !important; transform: none !important; background: #000; }
.pfs-exit { position: absolute; top: 12px; right: 12px; z-index: 5; padding: 10px 14px; background: var(--bg); color: #fff; border: 1px solid var(--line-strong); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pfs-exit:hover { background: var(--teal); color: #000; border-color: var(--teal); }
.app-shell > .pfs-exit { top: auto; bottom: 12px; }

/* ---------- hero: shorter than the full screen ---------- */
.hero { min-height: min(76svh, 760px); }
.hero-inner { padding-top: 110px; padding-bottom: 70px; }
.scroll-hint { height: 40px; bottom: 18px; }

/* ---------- running text: smaller and quieter ---------- */
.marquee { padding: 12px 0; }
.marquee-track { gap: 32px; opacity: .45; animation-duration: 40s; }
.marquee-track span { font-size: clamp(12px, 1.25vw, 15px); letter-spacing: .22em; gap: 32px; }
.marquee-track span::after { width: 6px; height: 6px; }


/* ---------- Motions & Commercials: every cover the same height, width follows its shape ---------- */
.video-grid { gap: 36px 20px; --row: 300px; }
.video-grid::after { display: none; }
.video-grid > .video-card { flex: 0 0 auto; width: calc(var(--ar, 1.7778) * var(--row)); max-width: 100%; }
@media (max-width: 700px) { .video-grid { --row: 210px; gap: 28px 12px; } }

/* ---------- "Let's talk": graphic background like the hero ---------- */
.connect { isolation: isolate; }
.connect-deco { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -2; overflow: hidden; pointer-events: none; }
.connect-deco > * { position: absolute; will-change: transform; }
.connect-deco .hero-grid { inset: 0; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 80%, transparent); }
#connect-canvas { inset: 0; width: 100%; height: 100%; }
.sq-c { width: 190px; height: 190px; right: 9%; top: 14%; }
.sq-d { width: 96px; height: 96px; left: 7%; bottom: 16%; border-color: var(--line-strong); }
.blk-c { left: 20%; top: 22%; }
.blk-d { right: 24%; bottom: 20%; background: #fff; width: 8px; height: 8px; }
.ln-c { left: 4%; top: 52%; }
.ln-d { right: 4%; top: 34%; width: 120px; background: var(--line-strong); }

/* ---------- Shorts, Motions & Commercials share the fixed-height tiling and compact titles ---------- */
.video-grid .video-card .meta { margin: 12px 0 -6px; }
.video-grid .video-card h4 { font-size: 14px; margin-top: 10px; line-height: 1.35; }
.video-grid .video-card p { font-size: 12.5px; }
.video-grid .video-card .quick-play { width: 44px; height: 44px; }

/* titles are real links (so search engines can follow them) but look like plain text */
.app-card h3 a, .video-card h4 a { color: inherit; text-decoration: none; }

/* ---------- keyboard focus: a visible teal outline wherever you tab ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.app-card:focus-visible, .video-card:focus-visible, .dd-item:focus-visible { outline-offset: 6px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- reduced motion: no marquee scrolling or hover zoom (parallax is already off in main.js) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
  .hover-zoom img, .hover-zoom:hover img { transform: none !important; }
}
