/* Big screens (laptop, desktop, TV — www.filmiking.com). Phones and the Android app keep the layout in styles.css.
   Sidebar menu instead of the bottom bar, bigger hero and cards, two-column series page, and a centred vertical
   player with a blurred backdrop. TV remotes / keyboards: every control shows a clear focus ring. */
/* hero backdrop image only exists for big screens */
.hero-slide .hero-bg { display: none; }
/* row scroll arrows only on big screens */
.row-scroll { display: none; }

@media (min-width: 900px) {
  :root { --side: 236px; --pad: clamp(28px, 3.2vw, 56px); }
  body { background: #07070b; }
  #app { max-width: none; box-shadow: none; }

  /* ---------- sidebar menu ---------- */
  .nav { left: 0; right: auto; top: 0; bottom: 0; width: var(--side); height: auto; flex-direction: column; justify-content: flex-start; gap: 6px;
         padding: 96px 16px 24px; border-radius: 0; background: rgba(12, 10, 20, .94); box-shadow: inset -1px 0 0 rgba(255,255,255,.07); }
  .nav::before { content: "Filmiking"; position: absolute; top: 28px; left: 30px; font: 800 28px/1 'Playfair Display', Georgia, serif;
                 background: linear-gradient(90deg, #fff 40%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; height: 50px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
  .nav a svg { width: 22px; height: 22px; }
  .nav a:hover { background: rgba(255,255,255,.06); color: var(--text); }
  .nav a.on { background: linear-gradient(90deg, rgba(255,61,127,.2), rgba(139,92,255,.12)); }
  .nav a.on svg { transform: none; }
  .nav a.on::before, .nav a.on::after { display: none; }
  .view { left: var(--side); padding-bottom: 48px; }
  .view.no-nav { left: 0; }
  .view:not(.no-nav) > .topbar .logo { visibility: hidden; }

  /* ---------- page spacing ---------- */
  .topbar { padding: 22px var(--pad) 14px; }
  .chips, .row-head, .row-track, .range-tabs, .ep-grid, .season-bar, .section-title { padding-left: var(--pad); padding-right: var(--pad); }
  .row { margin-top: 30px; }
  .row-head h2 { font-size: 22px; }
  .row-track { gap: 18px; scroll-behavior: smooth; }
  .row-scroll { display: inline-flex; gap: 8px; margin-left: 14px; }
  .row-scroll button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
  .row-scroll button:hover { background: rgba(255,255,255,.16); }
  .row-scroll svg { width: 18px; height: 18px; }
  .row-head { align-items: center; }
  .row-head > div:first-child { display: flex; align-items: center; }

  /* ---------- hero: blurred backdrop, poster on the right, big title ---------- */
  .hero { margin: 4px var(--pad) 26px; }
  .hero-track { border-radius: 26px; }
  .hero-slide { aspect-ratio: auto; height: clamp(340px, 52vh, 560px); background: #120d1a; }
  .hero-slide .hero-bg { display: block; position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover;
                         filter: blur(40px) saturate(1.5) brightness(.6); }
  .hero-slide > img:not(.hero-bg) { position: absolute; right: 6%; top: 8%; height: 84%; width: auto; aspect-ratio: 2 / 3; border-radius: 20px;
                                    box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12); }
  .hero-info { top: 0; right: 40%; padding: 0 0 0 clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center;
               background: linear-gradient(90deg, rgba(8,6,14,.85), rgba(8,6,14,.35) 70%, transparent); }
  .hero-title { font-size: clamp(34px, 4vw, 58px); max-width: 14ch; }
  .hero-info .tags { margin-bottom: 22px; }
  .hero-actions .btn { height: 50px; padding: 0 26px; font-size: 16px; }

  /* ---------- cards ---------- */
  .card { flex-basis: clamp(150px, 12vw, 200px); }
  .card.wide { flex-basis: clamp(170px, 13vw, 220px); }
  .card .title { font-size: 15px; }
  .card .meta { font-size: 12px; }
  .card:hover .thumb { transform: translateY(-4px); }
  .rank-card .num { font-size: 64px; margin-top: calc(clamp(150px, 12vw, 200px) * 1.5 - 52px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 22px 18px !important; padding: 0 var(--pad) !important; }

  /* ---------- series page: two columns ---------- */
  .view.no-nav > *:not(.detail-bg):not(.player):not(.sticky-actions) { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .detail-bg { height: 560px; }
  .detail-head { gap: 34px; padding-top: 20px; }
  .detail-head .poster { flex-basis: 250px; }
  .detail-head h1 { font-size: 40px; }
  .detail-actions { max-width: 1120px; }
  .detail-actions .btn-primary { flex: 0 0 auto; min-width: 260px; height: 52px; font-size: 16px; }
  .synopsis { font-size: 16px; max-width: 760px; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }

  /* ---------- player: vertical video centred, blurred poster behind, buttons beside it ---------- */
  .player { --vw: min(100vw, calc(100dvh * 9 / 16)); }
  .player .poster-fill { display: block; opacity: 1; filter: blur(40px) brightness(.35) saturate(1.4); }
  .player video { object-fit: contain; background: transparent; }
  .player .p-top { padding: 22px var(--pad); }
  .player .p-top .t { font-size: 18px; }
  .player .p-side { right: auto; left: calc(50% + var(--vw) / 2 + 28px); bottom: 140px; gap: 24px; }
  .player .p-bottom { left: 50%; right: auto; width: var(--vw); transform: translateX(-50%); padding-right: 14px; }
  .lock-card { max-width: 420px; margin: 0 auto; }

  /* For You feed (sits next to the sidebar) */
  .feed { left: var(--side); }
  .feed-item { --vw: min(100%, calc(100dvh * 9 / 16)); }
  .feed-item video { object-fit: contain; }
  .feed-item .p-side { right: auto; left: calc(50% + var(--vw) / 2 + 28px); bottom: 140px; }
  .feed-item .p-bottom { left: 50%; right: auto; width: var(--vw); transform: translateX(-50%); padding-bottom: 28px; }

  /* ---------- dialogs: centred cards instead of bottom sheets ---------- */
  .sheet-backdrop { align-items: center; }
  .sheet { max-width: 540px; max-height: 86vh; border-radius: 26px; }
  .upd-bar { left: calc(50% + var(--side) / 2); bottom: 28px; }
  #toast { left: calc(50% + var(--side) / 2); }

  /* ---------- Me / plans / studio / lists: comfortable reading width ---------- */
  .view:not(.no-nav) > :is(.profile-head, .stat-row, .vip-card, .bigscreen-card, .menu, .demo-note, .wallet, .panel, .tabs, .dl-head, .dl-list) {
    max-width: 760px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 1500px) {
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

/* ---------- TV remotes and keyboards: visible focus everywhere ---------- */
:is(a, button, select, input, textarea, [tabindex]):focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 12px; box-shadow: 0 0 0 7px rgba(255,61,127,.45); }
.card:focus-visible { outline: none; box-shadow: none; }
.card:focus-visible .thumb { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 8px rgba(255,61,127,.45); transform: scale(1.04); }

/* ---------- publisher website (pub.filmiking.com, js/pubsite.js) ---------- */
.pub-bar { display: none; }
.pub-site .pub-bar { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(12, 10, 20, .96); box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); position: relative; z-index: 40; }
.pub-site #app { height: calc(100dvh - 60px); }
.pub-logo { font: 800 22px/1 'Playfair Display', Georgia, serif; white-space: nowrap; }
.pub-logo span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-logo em { font: 700 12px/1 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 8px; margin-left: 6px;
  border-radius: 8px; background: rgba(255,61,127,.18); color: #ffb3cb; vertical-align: middle; }
.pub-sp { flex: 1; }
.pub-link { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pub-link:hover { color: var(--text); }
.pub-acct { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ddd; min-width: 0; }
.pub-acct img { width: 28px; height: 28px; border-radius: 50%; }
.pub-acct span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-out { height: 34px; padding: 0 14px; font-size: 13px; }
/* studio inside the publisher site: no way "back" to the viewer app */
.pub-site .studio-bar a[href="#/profile"] { visibility: hidden; }
.pub-site .viewer-btn { display: none; }
/* sign-in page */
.pub-signin { display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(900px 500px at 50% -10%, rgba(139,92,255,.25), transparent 70%); }
.pub-card { width: 100%; max-width: 480px !important; text-align: center; padding: 34px 28px 26px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(34,28,50,.9), rgba(14,12,22,.95)); box-shadow: 0 30px 80px -30px rgba(139,92,255,.6), inset 0 0 0 1px rgba(255,255,255,.1); }
.pub-badge { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: var(--grad); box-shadow: 0 14px 34px -10px var(--glow); }
.pub-card h1 { margin: 0 0 8px; font: 800 32px/1.15 'Playfair Display', Georgia, serif; }
.pub-sub { color: #cfc8e0; line-height: 1.55; margin: 0 0 16px; }
.pub-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; text-align: left; font-size: 14px; color: #ddd; }
.pub-points li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.pub-card .gis-slot { display: flex; justify-content: center; min-height: 44px; }
.pub-card .fine { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 16px; }
.pub-card .fine a { color: #ffb3cb; }
@media (max-width: 520px) { .pub-link { display: none; } .pub-acct span { display: none; } }
