/* VICKS Cinema — presentation layer only. Original actions and state are preserved. */
:root {
  --bg: #090909; --bg-2: #121214; --bg-3: #1b1b1e; --bg-4: #26262a;
  --red: #ed2334; --red-hover: #ff3c4c; --red-dim: rgba(237,35,52,.12);
  --red-glow: rgba(237,35,52,.2); --t1: #f7f5f2; --t2: #aaa9ae; --t3: #85838b;
  --g-bg: rgba(255,255,255,.045); --g-border: rgba(255,255,255,.1);
  --dd-bg: #18181b; --dd-border: rgba(255,255,255,.12);
  --card-bg: #141416; --card-bg-h: #1b1b1e; --card-border: rgba(255,255,255,.08);
  --r-card: 14px; --r-btn: 10px; --nav-h: 76px;
}
html { color-scheme: dark; scroll-padding-top: 100px; }
body { text-rendering: optimizeLegibility; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
[tabindex]:focus-visible { outline: 2px solid #ff6471; outline-offset: 4px; }
::selection { background: #b52030; color: white; }
[data-page]:not([data-page="view"]) { background-color: var(--bg); }
[data-page] .text-gray-500 { color: #97959e; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .2em; color: #aaa6aa; }
/* Navigation: a quiet, full-width cinema bar. */
.glass-nav { background: rgba(12,12,14,.92); border-bottom: 1px solid rgba(255,255,255,.09); box-shadow: 0 5px 30px #0002; }
#vicks-nav > div { gap: 24px; }
#vicks-nav > div > a[href="index.html"] { font-size: 27px; letter-spacing: -.07em; color: #ed2334; margin-right: 12px; }
.nav-pill { background: transparent; border: 0; gap: 4px; padding: 0; }
.nav-pill a, .nav-pill button { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.nav-pill a.nav-active, .nav-pill button.nav-active { background: #ffffff0d; color: #fff; box-shadow: inset 0 -2px var(--red); }
.nav-dropdown { padding: 10px; border-radius: 14px; }
.nav-dropdown a { padding: 11px 14px; }
#nav-search-wrap { margin-left: auto; }
#nav-search { height: 40px; font-size: 12px !important; background: #ffffff05; border: 1px solid #ffffff15; }
#nav-search-wrap + .flex-1 { flex: .15; }
.search-input::placeholder { color: #929099; }
.search-input:focus { background: #1c1c20; border-color: #ed233480; }
.v-icon-btn, .hdr-btn { border-color: #ffffff1a; background: #ffffff08; }
/* Hero keeps the original carousel, links and imagery. */
#hero { height: 78vh !important; min-height: 570px !important; max-height: 850px !important; background: #171719; }
#hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#090909bd,transparent 85%),linear-gradient(0deg,#090909,transparent 38%); }
#hero > .relative { padding-top: 130px; padding-bottom: 62px; }
#hero-title { font-size: clamp(42px,5.7vw,82px); max-width: 780px; line-height: 1.02; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
#hero-desc { font-size: 15px; line-height: 1.8; max-width: 510px; color: #d0ced0; font-weight: 400; margin-bottom: 26px; }
#hero .section-badge { background: transparent; color: #f3d1d3; border: 0; border-left: 3px solid var(--red); border-radius: 0; padding: 2px 12px; font-size: 10px; letter-spacing: .19em; margin-bottom: 22px; }
.btn-white, .action-play { background: #f6f3ef; color: #161416; font-weight: 700; border-radius: 10px; box-shadow: 0 6px 24px #0003; }
#hero-play { min-height: 48px; padding: 14px 26px; }
#hero-info { min-height: 48px; padding: 14px 24px; background: #ffffff0d; border-color: #ffffff30; }
.btn-red, .btn-submit { background: linear-gradient(135deg,#ee293a,#c91224); box-shadow: 0 6px 24px #d0192424; }
.btn-glass, .action-glass, .action-trailer { border-radius: 10px; }
.hero-dots { gap: 4px; margin-top: 30px; }
.hero-dot { width: 26px; height: 22px; border-radius: 0; background: transparent; position: relative; box-shadow: none; }
.hero-dot::after { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: #ffffff40; border-radius: 8px; }
.hero-dot.active, .hero-dot:hover { background: transparent; box-shadow: none; }
.hero-dot.active { width: 42px; }
.hero-dot.active::after { background: var(--red); }
/* Editorial catalog and consistent cards. */
.discovery-strip { margin-top: 8px; padding-top: 22px; padding-bottom: 26px; }
.discovery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.discovery-heading h2 { font-size: clamp(21px,2.1vw,29px); font-weight: 600; letter-spacing: -.035em; margin-top: 7px; }
.discovery-heading > a { font-size: 12px; color: #b8b4bc; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.discovery-heading > a span { margin-left: 10px; color: #ed2334; }
.genre-tag { padding: 9px 17px; font-size: 12px; background: #ffffff04; border-color: #ffffff17; color: #bbb8bf; font-weight: 500; }
.genre-tag:hover, .genre-tag.active-filter { color: #ffb0b6; background: #ed23341a; border-color: #ed233466; }
#sections-container { margin-top: 8px; }
#sections-container > section + section { margin-top: 44px; }
.v-sec-head { align-items: center; margin-bottom: 20px; }
.v-sec-head h2, .section-title { font-size: clamp(19px,1.8vw,25px); letter-spacing: -.025em; font-weight: 600; }
.v-sec-head .more { color: #aaa6af; font-size: 12px; }
.v-card { border-radius: 12px; background: #141416; box-shadow: 0 4px 18px #0002; }
.v-card__body { padding: 14px 13px; gap: 6px; }
.v-card__title { font-size: 13px; line-height: 1.45; font-weight: 500; min-height: 38px; }
.v-card__meta span { color: #aaa5af; font-size: 11px; }
.v-card__tags { top: 10px; left: 10px; right: 10px; }
.v-tag { border: 1px solid #ffffff1a; border-radius: 5px; font-weight: 600; background: #0b0b0bdd; padding: 4px 7px; }
.v-tag.movie { color: #e6e1e1; }
.v-card__play { bottom: 100px; right: 12px; }
.v-card:focus-within { border-color: #ff687580; }
.v-card:focus-within .v-card__play, .v-card:focus-within .v-card__del { opacity: 1; transform: none; }
.v-card__body { padding-right: 13px; }
.top10-rank { font-style: normal; -webkit-text-stroke: 1px #ffffff50; }
.top10-poster { border-radius: 10px; border: 1px solid #ffffff14; }
.slider-container { gap: 16px; }
.slider-wrap:focus-within .slider-arrow { opacity: 1; }
.skeleton { background-image: linear-gradient(100deg,#18181a 20%,#242428 45%,#18181a 70%); }
/* Search, genres, saved items. */
[data-page="search"] main > div, [data-page="list"] main > div { padding-top: 22px; }
#page-title { letter-spacing: -.045em; font-weight: 650; }
#header-prefix { color: #ef6c79; font-size: 10px; letter-spacing: .18em; margin-bottom: 9px; }
#results-count { margin-top: 10px; font-size: 12px; }
#results-grid { gap: 22px 18px; }
#type-toggle { padding: 5px; background: #131315; }
#type-toggle .type-btn { min-height: 36px; padding: 8px 20px; }
#genre-strip { padding-top: 14px; }
[data-page="genres"] main { padding-top: calc(var(--nav-h) + 44px); }
[data-page="genres"] h1 { font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.genre-tile { border-radius: 16px !important; border: 1px solid #ffffff1a !important; box-shadow: inset 0 1px #ffffff12; }
#empty-state h2 { font-weight: 600; letter-spacing: -.03em; }
#empty-state .glass-iris { background: #141416; }
/* Detail pages and personal space. */
[data-page="preview"] #title { letter-spacing: -.045em; font-weight: 700; }
[data-page="preview"] #overview { font-weight: 400; color: #c1bcc3; line-height: 1.85; }
#poster-img { border: 1px solid #ffffff26; border-radius: 16px; }
#cast-list { gap: 24px; }
.season-select { background: #171719; padding-top: 12px; padding-bottom: 12px; }
.glass-iris { background: linear-gradient(125deg,#211719,#141416 65%); border-color: #ffffff12; }
.glass-iris::before { background: radial-gradient(ellipse at top left,#ed233410,transparent 65%); }
.profile-stat-card { background: #ffffff04; border-color: #ffffff0d; box-shadow: none; }
.profile-tab { padding: 12px 20px; border-radius: 10px; white-space: nowrap; }
.profile-tab.active { background: #ffffff0d; border-color: #ffffff16; }
[data-page="profile"] > .relative { padding-top: var(--nav-h); }
[data-page="profile"] .glass:has(> .profile-tab) { max-width: 100%; overflow-x: auto; border-radius: 12px !important; }
/* Login is a framed movie still with an editorial introduction. */
[data-page="login"] { padding: 22px; gap: 22px; min-height: 100dvh; height: auto; overflow-y: auto; background: #0d0d0f; }
.login-left { border-radius: 22px; overflow: hidden; min-height: calc(100dvh - 44px); background: #241b1d; }
.login-left-bg { opacity: .8; }
.login-left-bg::after { background: linear-gradient(0deg,#100b10f2,transparent 90%),linear-gradient(90deg,#18080b50,transparent); }
.login-brand { top: 38px; left: 42px; font-size: 34px; letter-spacing: -.065em; color: #ff3546; }
.brand-caption { display: block; font-size: 9px; font-weight: 500; color: #ffffffb3; letter-spacing: .2em; margin-top: 6px; }
.login-editorial { position: absolute; bottom: 10%; left: 8%; right: 8%; color: #f8f3ef; }
.login-editorial .eyebrow { color: #d3a9ad; font-size: 10px; }
.login-editorial h2 { font-size: clamp(36px,4.4vw,70px); font-weight: 600; letter-spacing: -.05em; line-height: 1.08; margin: 20px 0; }
.login-editorial > p:last-of-type { font-size: 14px; line-height: 1.9; color: #cbc0c5; }
.editorial-line { display: block; width: 48px; height: 3px; background: #ef3546; margin-top: 34px; }
.login-right { max-width: 510px; padding: 56px; background: transparent; }
.login-right h1 { font-size: 37px !important; font-weight: 600 !important; letter-spacing: -.045em !important; }
.login-right h1 + p { color: #a39da7 !important; line-height: 1.7; }
.login-right > p { color: #928b97 !important; line-height: 1.8; }
.field-input { min-height: 58px; background: #161619; border: 1px solid #ffffff20; border-radius: 10px; }
.field-label, .pw-toggle { color: #a69eac; }
.field-input:focus { border-color: #f45363; box-shadow: 0 0 0 3px #ed233418; }
.btn-submit { min-height: 52px; font-weight: 600; margin-top: 24px; }
.divider { border-color: #ffffff12; margin: 30px 0; }
/* Admin, TV and player: surfaces only, preserve all visibility/fullscreen state. */
.auth-card { background: #151518; border: 1px solid #ffffff17; box-shadow: 0 30px 90px #0005; border-radius: 22px; }
.topbar { height: 68px; background: #101012ed; }
.panel, .scard { background: #141417; border-color: #ffffff12; }
.phead { padding: 20px; }
.scard { padding: 22px 18px; }
.sval { font-size: 28px; letter-spacing: -.04em; }
.utbl th { color: #9e98a5; padding-top: 14px; padding-bottom: 14px; }
.utbl td { padding-top: 16px; padding-bottom: 16px; }
.iptv-main { padding-top: calc(var(--nav-h) + 30px); }
.iptv-right { background: #111113; border: 1px solid #ffffff12; border-radius: 16px; padding: 16px; }
[data-page="view"] .hdr-btn { background: #17171bd9; border-color: #ffffff21; }
[data-page="view"] #player-title { font-weight: 500; letter-spacing: -.015em; }
.toast { background: #202024; border-color: #ffffff20; border-radius: 12px; box-shadow: 0 12px 40px #0008; }
/* Responsive spacing and comfortable touch targets. */
@media (min-width: 1100px) {
  /* I margini delle pagine sono definiti da .site-shell. */
}
@media (max-width: 1100px) {
  #vicks-nav > div { gap: 12px; }
  #vicks-nav > div > a[href="index.html"] { margin-right: 0; }
  .nav-pill a, .nav-pill button { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 899px) {
  [data-page="login"] { padding: 28px 22px; background: radial-gradient(ellipse at 15% 0,#39171f 0,transparent 55%),#0d0d0f; }
  .login-right { margin: auto; max-width: 420px; padding: 30px 8px; }
  .mobile-logo { font-size: 34px; margin-bottom: 50px; color: #ef3546; }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  #vicks-nav > div { gap: 10px; }
  #vicks-nav > div > a[href="index.html"] { font-size: 25px; }
  #hero { height: 72svh !important; min-height: 490px !important; max-height: 700px !important; }
  #hero > .relative { padding: 110px 22px 30px; }
  #hero-title { font-size: clamp(34px,9vw,52px); line-height: 1.06; }
  #hero-desc { font-size: 13px; line-height: 1.7; -webkit-line-clamp: 3; margin-bottom: 22px; }
  #hero .section-badge { font-size: 9px; margin-bottom: 17px; }
  .discovery-strip { padding-top: 18px; padding-bottom: 14px; }
  .discovery-heading { align-items: flex-start; margin-bottom: 18px; }
  .discovery-heading > a { font-size: 11px; max-width: 84px; white-space: normal; line-height: 1.7; text-align: right; }
  .eyebrow { font-size: 8px; }
  .genre-tag { padding: 9px 14px; font-size: 11px; }
  .v-sec-head { margin-bottom: 15px; }
  #sections-container > section + section { margin-top: 32px; }
  #results-grid { gap: 16px 12px; }
  .v-card__body { padding: 11px; }
  .v-card__play { bottom: 94px; width: 38px; height: 38px; }
  .bottom-nav { background: #111113f5; border-color: #ffffff17; height: calc(66px + env(safe-area-inset-bottom,0px)); }
  .bottom-nav-item { color: #9c96a1; gap: 6px; }
  .bottom-nav-item span { font-size: 9px; font-weight: 500; letter-spacing: .08em; }
  .bottom-nav-item.active { color: #ff6d7b; }
  .bottom-nav-item.active::before { width: 22px; box-shadow: none; }
  .profile-tab { padding: 10px 12px; font-size: 12px; }
  [data-page="profile"] .profile-stat-card { min-width: 0; padding: 13px 10px; }
  [data-page="profile"] .profile-stat-card .text-xs { font-size: 9px; }
  [data-page="profile"] .tab-panel > .flex:first-child { flex-wrap: wrap; gap: 16px; }
  [data-page="preview"] #title { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Shared page geometry: one width and gutter on every catalog page. */
:root { --site-width: 1600px; --site-gutter: clamp(16px, 3vw, 48px); }
html { scrollbar-gutter: stable; }
body .site-shell, #vicks-nav > .site-shell, #hero > .site-shell {
    box-sizing: border-box;
    width: 100%; max-width: var(--site-width);
    margin-left: auto; margin-right: auto;
    padding-left: var(--site-gutter); padding-right: var(--site-gutter);
}
#vicks-nav { left: 0; right: 0; width: auto; font-family: 'Outfit', sans-serif; }
#vicks-nav > .site-shell { gap: 12px; }
.nav-back-slot { width: 36px; flex: 0 0 36px; display: flex; align-items: center; }
#vicks-nav .nav-pill { flex-shrink: 0; }
#vicks-nav #nav-search-wrap { min-width: 0; }
#vicks-nav #nav-search { min-width: 0; }
/* Admin keeps its actions, with the same height and content alignment. */
[data-page="admin"] .topbar {
    height: var(--nav-h);
    padding-left: max(var(--site-gutter), calc((100% - var(--site-width)) / 2 + var(--site-gutter)));
    padding-right: max(var(--site-gutter), calc((100% - var(--site-width)) / 2 + var(--site-gutter)));
    background: rgba(12,12,14,.92);
}
/* Cinema mode remains edge-to-edge. */
body.cinema .iptv-main.site-shell { max-width: 100%; padding: 0; margin: 0; }
@media (min-width: 768px) and (max-width: 1023px) {
    #vicks-nav #nav-search-wrap { display: none; }
    #vicks-nav .nav-search-shortcut { display: flex; }
}
@media (max-width: 767px) {
    #vicks-nav > .site-shell { gap: 8px; }
}

/* Cinema v3 — artwork-led catalog, explicit resume actions, simpler navigation. */
#hero {
    height: auto !important; min-height: clamp(480px, 62svh, 660px) !important; max-height: none !important;
}
#hero > .site-shell { padding-bottom: 38px; }
#hero-title { font-size: clamp(38px, 4.7vw, 66px); }
#hero-desc { -webkit-line-clamp: 2; max-width: 560px; margin-bottom: 22px; }
.hero-dots { margin-top: 20px; }
#sections-container { margin-top: 28px; }
.personal-rails { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.personal-rails > section { min-width: 0; }
.discovery-strip { margin-top: 24px; padding-top: 30px; border-top: 1px solid #ffffff12; }
/* Grid placement attaches play to the poster, independent of title height. */
.v-card {
    display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr;
    align-content: start; border: 0; border-radius: 0; overflow: visible;
    background: transparent; box-shadow: none; transform: none;
}
.v-card:hover { background: transparent; box-shadow: none; transform: none; }
.v-card__poster {
    grid-area: 1 / 1; border-radius: 10px; isolation: isolate;
    background: #17171a; box-shadow: inset 0 0 0 1px #ffffff0d;
}
.v-card:hover .v-card__poster img { transform: scale(1.035); }
.v-card__poster::after { height: 55%; }
.v-card__body { grid-area: 2 / 1; padding: 12px 2px 3px; gap: 6px; }
.v-card__title { color: #eeebef; font-size: 14px; font-weight: 500; line-height: 1.4; min-height: 39px; }
.v-card__meta { justify-content: flex-start; gap: 8px; height: auto; min-height: 17px; flex-wrap: wrap; }
.v-card__meta > span { color: #a4a0aa; font-size: 11px; white-space: nowrap; }
.v-card__meta > span + span::before { content: '·'; color: #68636e; margin-right: 8px; }
.v-card__meta > .card-rating { color: #c9c4ca; }
.card-rating i { color: #dbb777; font-size: 9px; }
.v-card__play {
    position: relative; grid-area: 1 / 1; align-self: end; justify-self: end;
    bottom: auto; right: auto; margin: 12px; width: 42px; height: 42px;
    color: #fff; background: #171719cf; border: 1px solid #ffffff4d;
    box-shadow: 0 4px 18px #0004; backdrop-filter: blur(8px);
}
.v-card__play:hover { background: var(--red); border-color: var(--red); }
.v-card:focus-within .v-card__poster { outline: 1px solid #ff687580; outline-offset: 3px; }
.v-card__del { top: 10px; right: 10px; width: 30px; height: 30px; }
.slider-container > .v-card { width: 184px; flex-shrink: 0; }
#results-grid:not(.resume-grid), #watchlist-grid { grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 28px 20px; }
/* Horizontal resume rail: original poster retained when landscape art is absent. */
.slider-container > .resume-card { width: 320px; }
.resume-card .v-card__poster { aspect-ratio: 16/9; background: radial-gradient(ellipse at 85% 20%,#373039,#161419 75%); }
.resume-card .v-card__poster > img { object-fit: cover; }
.resume-card .v-card__poster > .resume-poster-fallback { object-fit: contain; object-position: 85% center; }
.resume-card .v-card__poster::after { opacity: 1; height: 100%; background: linear-gradient(90deg,#0d0c10c9,transparent 85%),linear-gradient(0deg,#0007,transparent 70%); }
.resume-card .v-card__play {
    opacity: 1; transform: none; justify-self: start; width: auto; height: 38px;
    padding: 0 14px; gap: 8px; border-radius: 8px; margin: 15px;
    background: #f4efeb; border-color: transparent; color: #19151a;
    font-size: 12px; font-weight: 600; backdrop-filter: none;
}
.resume-card .v-card__play:hover { background: #fff; color: #090909; }
.resume-card .v-card__play i { font-size: 10px; margin: 0; }
.resume-card .v-card__title { min-height: 20px; -webkit-line-clamp: 1; }
.resume-card .v-card__body { padding-top: 13px; }
.resume-card .v-card__meta { justify-content: space-between; }
.resume-card .v-card__meta > span + span::before { content: none; }
.resume-card .v-card__tags { top: 14px; left: 15px; right: 48px; }
.resume-card .v-tag { background: #0b0a0dcc; color: #e4dfe5; border: 0; padding: 4px 7px; font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.resume-card .v-card__bar { height: 4px; }
#history-grid, #results-grid.resume-grid { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 28px 22px; }
.explore-genres-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 12px; color: #aaa5af; }
.explore-genres-heading a { color: #ddd7df; text-decoration: none; }
.explore-genres-heading i { font-size: 10px; margin-left: 7px; }
#vicks-nav .nav-pill { gap: 2px; }
#vicks-nav .nav-pill a { padding-left: 12px; padding-right: 12px; }
/* Title detail: primary play action and earlier episodes. */
[data-page="preview"] > div:has(> #backdrop) { min-height: 65svh !important; max-height: none !important; }
#actions { gap: 10px; }
#actions .action-play { min-height: 50px; padding: 14px 28px; }
#actions .action-glass, #actions .action-trailer { min-height: 46px; background: #ffffff06; border: 1px solid #ffffff26; color: #d8d3db; font-weight: 500; }
#actions .action-glass.wl-active { color: #86d9aa; background: #4ade800d; border-color: #4ade8050; }
#actions .action-trailer:hover { color: #fff; border-color: #ffffff55; }
#tv-section { padding-top: 32px; padding-bottom: 32px; }
#cast-section { padding-top: 26px; padding-bottom: 34px; }
/* Desktop TV has its own list viewport. Search stays above the scrolling rows. */
@media (min-width: 1024px) {
    body:not(.cinema) .iptv-right {
        position: sticky; top: calc(var(--nav-h) + 20px);
        display: flex; flex-direction: column;
        height: calc(100dvh - var(--nav-h) - 40px);
        max-height: 900px; overflow: hidden;
    }
    body:not(.cinema) .iptv-right .ch-head,
    body:not(.cinema) .iptv-right .iptv-filters,
    body:not(.cinema) .iptv-right #iptv-status { flex-shrink: 0; }
    body:not(.cinema) .iptv-right .iptv-filters { position: static; background: transparent; }
    body:not(.cinema) #iptv-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
}
.ch-row.active { box-shadow: inset 3px 0 var(--red); }
@media (max-width: 1100px) and (min-width: 768px) {
    #vicks-nav #nav-search-wrap { display: none; }
    #vicks-nav .nav-search-shortcut { display: flex; }
}
@media (max-width: 767px) {
    #hero { height: auto !important; min-height: clamp(420px, 60svh, 570px) !important; max-height: none !important; }
    #hero > .site-shell { padding-top: 94px; padding-bottom: 24px; }
    #hero-title { font-size: clamp(32px,8.5vw,46px); }
    #hero-desc { font-size: 12px; margin-bottom: 18px; }
    #sections-container { margin-top: 22px; }
    .personal-rails { gap: 30px; }
    .slider-container > .v-card { width: 150px; }
    .slider-container > .resume-card { width: 270px; }
    .v-card__body { padding: 10px 1px 3px; }
    .v-card__title { font-size: 13px; min-height: 37px; }
    .v-card__meta { gap: 6px; }
    .v-card__meta > span { font-size: 10px; }
    .v-card__meta > span + span::before { margin-right: 6px; }
    .v-card__play { bottom: auto; right: auto; margin: 10px; width: 38px; height: 38px; }
    .resume-card .v-card__play { width: auto; margin: 13px; }
    .resume-card .v-card__title { min-height: 19px; }
    #results-grid:not(.resume-grid), #watchlist-grid { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 22px 14px; }
    #history-grid, #results-grid.resume-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,270px),1fr)); gap: 24px; }
    [data-page="preview"] > div:has(> #backdrop) { min-height: 560px !important; }
    #actions .action-play { flex: 1 0 100%; justify-content: center; }
    #actions .action-glass, #actions .action-trailer { flex: 1; justify-content: center; padding: 12px; }
    .bottom-nav-item span { font-size: 8px; letter-spacing: .035em; }
}
@media (hover: none) {
    .v-card__play { opacity: 1; transform: none; }
    .v-card:hover .v-card__poster img { transform: none; }
}

/* v6: the same portrait cards and single scrolling row as the watchlist. */
#list-user-history { display: flex; flex-wrap: nowrap; gap: 16px; }
#list-user-history .v-card__meta { flex-wrap: nowrap; }
#list-user-history .v-card__meta .prog { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.personal-rails { gap: 26px; }
#user-watchlist .v-sec-head { margin-bottom: 15px; }
@media (max-width: 767px) { .personal-rails { gap: 24px; } }
