/* Bollywood cinema-luxury theme, layered over the original offline snapshot. */
:root {
  --cinema-bg: #0c070b;
  --cinema-panel: #21101a;
  --cinema-wine: #4c162c;
  --cinema-gold: #e3bd70;
  --cinema-text: #f6ead7;
  --cinema-muted: #bda79e;
  --cinema-line: #d3a66038;
  --jw-color-primary: #e3bd70;
  --jw-color-secondary: #bda79e;
  --jw-background-color: #0c070b;
  --jw-text-high: #f6ead7;
  --jw-text-low: #bda79e;
  --jw-border-high-active: #e3bd70;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html { background: var(--cinema-bg) !important; }
body { color: var(--cinema-text); padding-bottom: 0; background: radial-gradient(ellipse at 50% 0%, #42152999, transparent 58%), radial-gradient(ellipse at 0% 45%, #7b4d1719, transparent 50%), #0c070b !important; background-attachment: fixed !important; }
#app { background: transparent !important; }
#base.content { --padding-top: 46px; margin-top: 0; padding-bottom: var(--floating-bottom-clearance, calc(126px + env(safe-area-inset-bottom, 0px))); background: transparent; }
.center-banner.content-container { flex-direction: column; align-items: stretch; }
::selection { color: #160b10; background: #e3bd70; }

/* A compact 3:4 frame: 25svh wide = one third of the first viewport in height. */
.featured-media { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: min(calc(100% - 30px), 25vh); height: auto; min-height: 0; aspect-ratio: 3 / 4; margin: 12px auto; border: 1px solid #a5814d9c; border-radius: 10px; background: linear-gradient(155deg, #1f0e19, #09070c 65%); box-shadow: 0 10px 30px #0007, inset 0 1px 0 #e3bd701c; overflow: hidden; box-sizing: border-box; }
.featured-media::after { content: ""; position: absolute; inset: 3px; z-index: 1; border: 1px solid #e3bd7018; border-radius: 7px; pointer-events: none; }
.featured-media img, .featured-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@supports (height: 1svh) { .featured-media { width: min(calc(100% - 30px), 25svh); } }

/* The single-row brand bar is retained, with restrained theatre-red lighting. */
.compact-brandbar { position: sticky; top: 0; z-index: 100; height: 46px; width: 100%; background: linear-gradient(90deg, #260e1c, #0e080e 48%, #260e1c); border-bottom: 1px solid #d3a6604d; box-shadow: 0 3px 20px #0005; box-sizing: border-box; }
.compact-brandbar-inner { height: 100%; width: 100%; max-width: 1624px; margin: 0 auto; padding: 0 6px; display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; box-sizing: border-box; }
.compact-brandbar-logo { display: flex; justify-content: center; align-items: center; justify-self: center; }
.compact-brandbar-logo img { width: 131px; height: auto; max-width: 100%; display: block; }
.compact-brandbar-actions { display: flex; justify-content: flex-end; align-items: center; }
.compact-brandbar-icon { appearance: none; display: flex; justify-content: center; align-items: center; width: 32px; height: 36px; padding: 7px; border: 0; background: transparent; color: #cbb798; cursor: pointer; box-sizing: border-box; }
.compact-brandbar-icon svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.compact-brandbar-icon:hover { color: var(--cinema-gold); }
.compact-brandbar-icon:focus-visible, .compact-brandbar-logo:focus-visible { outline: 2px solid var(--cinema-gold); outline-offset: 2px; border-radius: 3px; }

/* Provider logos remain faithful to their original brand colors. */
.filter-bar-seo__provider-row.provider-marquee { display: block; flex: 1 1 0%; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; margin: 0 !important; background: linear-gradient(90deg, #34142570, #140c1370, #34142570); border-top: 1px solid #d3a6601f; border-bottom: 1px solid #d3a6601f; }
.provider-marquee .provider-marquee-track { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 0; width: max-content; min-width: 0; overflow: visible; padding: 0 !important; margin: 0 !important; -webkit-mask-image: none !important; mask-image: none !important; will-change: transform; animation: provider-marquee-left var(--provider-marquee-duration, 180s) linear infinite; }
.provider-marquee-group { display: flex; align-items: center; flex: 0 0 auto; width: max-content; }
.provider-marquee-group .filter-bar-seo__provider-icon { flex: 0 0 50px; width: 50px; height: 50px; margin: 8px 5px !important; }
.provider-marquee-group .provider-icon { outline: 1px solid #e3bd7022; outline-offset: 1px; }
@keyframes provider-marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Warm typography, gilt poster edges and coherent local controls. */
.title-list-grid__item { min-width: 0; }
.title-poster { border-radius: 9px; outline: 1px solid #d3a66036; box-shadow: 0 6px 18px #0006; transition: outline-color .2s ease, box-shadow .2s ease; }
.title-list-grid__item--link:hover .title-poster { outline-color: #e3bd70a6; box-shadow: 0 8px 24px #0009; }
.offline-card-caption { display: block; margin: 9px 0 4px; font-size: 13px; color: #dfccb3; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.ribbon.offline-saved { opacity: 1; color: var(--cinema-gold); }
.ribbon:focus-visible { opacity: 1; outline: 2px solid var(--cinema-gold); }
#offline-sort { background: #281320; color: #e3cba6; border: 1px solid #d3a66059; padding: 6px 9px; border-radius: 6px; font: inherit; max-width: 100%; }
.offline-empty { text-align: center; padding: 50px 18px; color: var(--cinema-muted); }
.offline-filter-summary { margin: 10px 0 18px; font-size: 13px; color: var(--cinema-gold); }
#offline-count { color: var(--cinema-muted); }

/* The download CTA is the brightest element: warm gold on velvet burgundy. */
.floating-download { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 300; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(440px, calc(100% - 28px)); height: 88px; padding: 12px 16px; border: 1px solid #e7c67e; border-radius: 16px; background: linear-gradient(115deg, #50172d, #25101c 55%, #391225); color: #fff2d7; box-shadow: 0 12px 40px #000c, 0 0 28px #e3bd7033, inset 0 1px 0 #f5d79755; font-family: Lato, sans-serif; cursor: pointer; box-sizing: border-box; overflow: hidden; isolation: isolate; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.floating-download::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .15; background-image: repeating-linear-gradient(45deg, transparent 0 11px, #e5c58b 11px 12px, transparent 12px 24px), repeating-linear-gradient(-45deg, transparent 0 11px, #e5c58b 11px 12px, transparent 12px 24px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 38%, transparent 68%, #000); mask-image: linear-gradient(90deg, #000, transparent 38%, transparent 68%, #000); }
.floating-download::after { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid #ecc88155; border-radius: 12px; }
.floating-download-emblem { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #d3b071ae; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #70402e, #301221); color: #f5dba2; box-shadow: 0 0 0 3px #d0aa5518; }
.floating-download-emblem svg { width: 24px; height: 24px; }
.floating-download-copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
.floating-download-kicker { color: #dec084; font-size: 9px; font-weight: 700; letter-spacing: 2.2px; line-height: 1.2; white-space: nowrap; }
.floating-download-title { color: #fff1d1; font-size: 18px; font-weight: 900; letter-spacing: .4px; line-height: 1.3; white-space: nowrap; text-shadow: 0 1px 8px #0005; }
.floating-download-action { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 92px; height: 48px; border: 1px solid #ffe9b8; border-radius: 10px; background: linear-gradient(135deg, #ffe1a2, #d9aa55 68%, #c79438); color: #27101a; font-size: 15px; font-weight: 900; box-shadow: 0 4px 14px #0006, 0 0 12px #e9c27125, inset 0 1px 0 #fff6d5aa; }
.floating-download-action svg { width: 18px; height: 18px; }
.floating-download:hover { transform: translateX(-50%) translateY(-2px); border-color: #ffe2a8; box-shadow: 0 14px 42px #000d, 0 0 34px #e3bd704d; }
.floating-download:active { transform: translateX(-50%) translateY(0); }
.floating-download:focus-visible { outline: 2px solid #ffe6b3; outline-offset: 4px; }
body.offline-dialog-open .floating-download { visibility: hidden; }

/* Details and filter dialogs share the same cinematic palette. */
.offline-dialog-open { overflow: hidden; }
.offline-dialog { width: min(740px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); color: var(--cinema-text); background: linear-gradient(145deg, #2e1423, #160d16 65%); border: 1px solid #bf955c88; border-radius: 12px; padding: 0; overflow: auto; box-shadow: 0 25px 90px #000b; margin: auto; }
.offline-dialog::backdrop { background: #070307d9; }
.offline-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--cinema-line); }
.offline-dialog-head h2 { margin: 0; font-size: 23px; color: #f6e1ba; }
.offline-dialog-content { padding: 20px 24px 28px; line-height: 1.7; }
.offline-dialog-content p { margin: 0 0 16px; }
.offline-button { display: inline-block; color: var(--cinema-text); background: #412037; border: 1px solid #b68d575e; padding: 9px 13px; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; margin: 4px 10px 4px 0; }
.offline-button:hover { background: #573047; color: #fff2d7; }
.offline-button:focus-visible { outline: 2px solid var(--cinema-gold); outline-offset: 2px; }
.offline-primary { background: linear-gradient(135deg, #f3d491, #c89945); color: #241019; border-color: #e3bd70; font-weight: 700; }
.offline-primary:hover { background: #f3d491; color: #241019; }
.offline-close { flex-shrink: 0; margin: 0; }
.offline-detail { display: flex; align-items: flex-start; gap: 24px; }
.offline-detail > img { width: 180px; border-radius: 6px; aspect-ratio: 166 / 236; object-fit: cover; outline: 1px solid var(--cinema-line); }
.offline-detail > div { flex: 1; min-width: 0; }
.offline-meta { color: var(--cinema-gold); }
.offline-muted { color: var(--cinema-muted); font-size: 13px; }
.offline-field { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 14px; margin: 16px 0; }
.offline-field select { min-width: 0; color: var(--cinema-text); background: #351b2b; border: 1px solid #ba945c88; padding: 8px; border-radius: 4px; font: inherit; }
.offline-checkbox { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.offline-checkbox input { width: 18px; height: 18px; accent-color: var(--cinema-gold); }
.offline-validation { color: #ffb6a7; }

@media (max-width: 767px) {
  .featured-media { margin: 8px auto; }
  .offline-filter-summary { margin-left: 15px; margin-right: 15px; }
  .offline-dialog-content, .offline-dialog-head { padding: 16px; }
  .offline-dialog-head h2 { font-size: 20px; }
  .offline-detail { gap: 16px; flex-direction: column; }
  .offline-detail > img { width: 125px; }
  .offline-field { grid-template-columns: 110px 1fr; }
  .title-list-options__box-left { max-width: 100% !important; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 390px) {
  .floating-download { padding: 12px; gap: 10px; }
  .floating-download-emblem { flex-basis: 36px; width: 36px; height: 36px; }
  .floating-download-title { font-size: 16px; letter-spacing: .2px; }
  .floating-download-action { flex-basis: 76px; font-size: 14px; gap: 4px; }
  .floating-download-action svg { width: 16px; height: 16px; }
  .floating-download-kicker { letter-spacing: 1.6px; }
}
@media (max-width: 330px) {
  .floating-download { gap: 8px; }
  .floating-download-emblem { flex-basis: 32px; width: 32px; height: 32px; }
  .floating-download-title { font-size: 15px; }
  .floating-download-action { flex-basis: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-download, .title-poster { transition: none; }
  .provider-marquee .provider-marquee-track { animation: none; }
  .filter-bar-seo__provider-row.provider-marquee { overflow-x: auto; }
}

/* Scoped overrides for the snapshot's original blue-tinted controls and badges. */
#base .filter-bar-seo { color: var(--cinema-muted); background: linear-gradient(#1e0d19f2, #140b14eb); border-bottom: 1px solid #d3a66022; }
#base .filter-bar-content-type__item > * { color: var(--cinema-muted); }
#base .filter-bar-content-type__item.active > * { color: #f2d596; }
#base .filter-bar-content-type__item::after { background: var(--cinema-gold); }
#base .filter-bar-seo__additional, #base .filter-bar-seo__additional__heading { color: var(--cinema-muted); }
#base .filter-bar-seo .jw-chip-button, #base .filter-bar-seo .chip-button { color: #e4ccb0; background: #311727; border-color: #a37b4759; border-radius: 6px; }
#base .filter-bar-seo .jw-chip-button:hover, #base .filter-bar-seo .chip-button:hover { color: #ffe4a9; background: #482037; }
#base .filter-bar-seo a { color: #dec5a4; }
#base .filter-bar-seo a:hover { color: #ffe0a0; }
#base .filter-bar-content-type__item.active a { color: #f2d596; }
#base .title-list-options, #base .title-list-options__box-right, #base .title-list-options__box-btns { color: var(--cinema-muted); }
#base .title-list-grid, #base .title-list-grid__item, #base .title-list-grid__item--link { background: transparent; }
.title-poster, .title-poster--no-poster { background: #180d17; }
.title-poster__badge { background-color: #1b0d17 !important; color: #e5d1b2; }

/* Mobile repair: actual reflow, not merely clipping overflowing controls. */
@media (max-width: 767px) {
  html, body { width: 100%; min-width: 0; height: auto !important; min-height: 100%; -webkit-text-size-adjust: 100%; }
  html { overflow-x: hidden; }
  body { overflow: visible !important; }
  #__nuxt, #app, .jw-content { width: 100%; min-width: 0; max-width: 100%; height: auto !important; overflow: visible !important; }
  .jw-content { min-height: 100vh; min-height: 100svh; }
  #base.content { width: 100%; min-width: 0; }
  .compact-brandbar-inner { grid-template-columns: 80px minmax(0, 1fr) 80px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .compact-brandbar-logo { min-width: 0; max-width: 100%; }
  .compact-brandbar-icon { width: 40px; height: 44px; }
  .center-banner.content-container { box-sizing: border-box; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  #base .filter-bar-seo > .container-fluid { padding: 0; }
  #base .filter-bar-seo .row-filter-bar { margin: 0 !important; padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); box-sizing: border-box; min-width: 0; }
  #base .filter-bar-seo__additional { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: 100%; min-width: 0; box-sizing: border-box; padding: 4px 0 8px; }
  #base .filter-bar-seo__additional > div { margin-inline-end: 0; min-width: 0; }
  #base .filter-bar-content-type-seo { flex: 0 0 100%; width: 100%; min-width: 0 !important; margin: 0 !important; overflow: hidden; }
  #base .filter-bar-content-type-seo .hidden-horizontal-scrollbar__items { width: 100%; min-width: 0; margin: 0 !important; padding: 0 !important; overflow-x: auto; }
  #base .filter-bar-content-type__item { margin: 0 12px 0 0 !important; padding: 0; flex-shrink: 0; }
  #base .filter-bar-content-type__item a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; }
  #base .filter-bar-seo__filter-button { flex: 0 0 auto; padding: 0; }
  #base .filter-bar-seo__filter-button button { min-height: 36px; padding: 7px 10px; box-sizing: border-box; }
  #base .filter-bar-seo__reset { flex: 0 0 auto; margin-inline-start: auto; }
  #base .filter-bar-seo__reset button { min-height: 36px; padding: 7px 10px; }
  #base .title-list-options { width: 100%; min-width: 0; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px)); box-sizing: border-box; white-space: normal; }
  #base .title-list-options__box { flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
  #base .title-list-options__box-left, #base .title-list-options__box-right { width: 100%; min-width: 0; max-width: 100% !important; flex-wrap: wrap; }
  #offline-sort { width: 100%; min-width: 0; min-height: 40px; font-size: 16px; box-sizing: border-box; }
  #offline-count { font-size: 12px; line-height: 1.5; }
  #base .title-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 12px; width: 100%; min-width: 0; padding: 12px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); box-sizing: border-box; }
  #base .title-list-grid__item { width: auto !important; min-width: 0; margin: 0; padding: 0; }
  #base .title-list-grid__item--link, #base .title-poster { width: 100%; min-width: 0; }
  .offline-card-caption { font-size: 12px; line-height: 1.4; }
  .title-poster .ribbon { opacity: 1; min-width: 32px; min-height: 36px; }
  .floating-download { left: calc(50% + env(safe-area-inset-left, 0px) / 2 - env(safe-area-inset-right, 0px) / 2); width: min(440px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); height: 76px; bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--viewport-bottom-offset, 0px)); padding: 10px 12px; gap: 10px; }
  .floating-download-emblem { flex-basis: 34px; width: 34px; height: 34px; }
  .floating-download-title { font-size: 16px; letter-spacing: .2px; }
  .floating-download-action { flex-basis: 76px; height: 44px; font-size: 14px; gap: 4px; }
  .floating-download-action svg { width: 16px; height: 16px; }
  .floating-download-kicker { letter-spacing: 1.5px; }
  .offline-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  .offline-dialog-head, .offline-dialog-content { padding: 14px; }
  .offline-dialog-head h2 { min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
  .offline-dialog-content { overflow-wrap: anywhere; }
  .offline-close { min-height: 40px; }
  .offline-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .offline-field select { width: 100%; font-size: 16px; box-sizing: border-box; }
  .offline-button { min-height: 40px; box-sizing: border-box; }
}
@media (min-width: 600px) and (max-width: 767px) {
  #base .title-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 359px) {
  .floating-download { gap: 8px; }
  .floating-download-emblem { flex-basis: 30px; width: 30px; height: 30px; }
  .floating-download-title { font-size: 15px; }
  .floating-download-action { flex-basis: 72px; }
}

/* Hide only the requested operation/statistics rows; keep category and provider navigation. */
#base .filter-bar-seo__filter-button,
#base .filter-bar-seo__additional__heading,
#base .filter-bar-seo__additional > .scrollbar,
#base .filter-bar-seo__reset,
#base .title-list-options { display: none !important; }
.floating-download-kicker { font-size: 9px; letter-spacing: .55px; }
.floating-download-action { flex-basis: 106px; }
@media (max-width: 767px) {
  .floating-download-action { flex-basis: 94px; font-size: 13px; }
  .floating-download-kicker { letter-spacing: .3px; }
}
@media (max-width: 359px) {
  .floating-download-action { flex-basis: 88px; }
  .floating-download-kicker { font-size: 8.5px; letter-spacing: .2px; }
}
@media (max-width: 319px) {
  .floating-download-emblem { display: none; }
}

/* NatakMax wordmark keeps the existing single-row header geometry. */
.compact-brandbar-logo img { width: 142px; max-width: 100%; max-height: 30px; height: auto; object-fit: contain; }

/* Clip only the generated asset's empty canvas padding in the small header slot. */
.compact-brandbar-logo { position: relative; display: block; width: 142px; max-width: 100%; height: 32px; overflow: hidden; }
.compact-brandbar-logo img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; }

/* User-supplied poster fills the existing 3:4 video slot; do not stretch it. */
.featured-media .featured-video-cover { object-fit: cover; object-position: 50% 0%; }
.featured-play-button { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 1px solid #f3d798; border-radius: 50%; background: #25101bc9; color: #ffe2a4; box-shadow: 0 5px 22px #0008, 0 0 0 5px #e3bd701f; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.featured-play-button svg { display: block; width: 25px; height: 25px; margin-left: 3px; }
.featured-play-button:hover { transform: translate(-50%, -50%) scale(1.06); background: #371326e8; box-shadow: 0 6px 24px #000a, 0 0 0 6px #e3bd702b; }
.featured-play-button:focus-visible { outline: 2px solid #fff0c4; outline-offset: 5px; }
.featured-play-button:active { transform: translate(-50%, -50%) scale(.98); }
@media (max-width: 767px) {
  .featured-play-button { width: 48px; height: 48px; }
  .featured-play-button svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .featured-play-button { transition: none; } }

/* Full-width poster backdrop fills the space either side of the compact 3:4 cover. */
#base .center-banner.content-container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; box-sizing: border-box; }
.featured-media-stage { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; overflow: hidden; box-sizing: border-box; background: #5b3818; border-bottom: 1px solid #d3a66036; }
.featured-media-stage .featured-media-backdrop { position: absolute; inset: -12px; z-index: 0; width: calc(100% + 24px); height: calc(100% + 24px); max-width: none; object-fit: cover; object-position: 50% 25%; filter: blur(8px) brightness(.82); pointer-events: none; }
.featured-media-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #160b143d, transparent 45%, #160b143d); pointer-events: none; }
.featured-media-stage .featured-media { z-index: 2; }

/* The entire media placement leads to the existing bottom Download CTA. */
.featured-download-trigger { position: absolute; inset: 0; z-index: 4; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.featured-download-trigger:focus-visible { outline: 2px solid #ffe4aa; outline-offset: -5px; }
.featured-media-stage .featured-play-button { pointer-events: none; }
.featured-media-stage:hover .featured-play-button, .featured-media-stage:focus-within .featured-play-button { background: #371326e8; box-shadow: 0 6px 24px #000a, 0 0 0 6px #e3bd702b; }
.floating-download.is-download-guided { border-color: #fff0bc; outline: 2px solid #f2ce83; outline-offset: 3px; animation: download-guide-pulse .9s ease-in-out 3; }
.download-guide-tip { position: fixed; left: 50%; z-index: 310; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); box-sizing: border-box; padding: 9px 14px; border: 1px solid #e8c67c; border-radius: 8px; background: #361225f2; color: #fff0ce; box-shadow: 0 5px 20px #0008; font: 700 12px/1.4 Lato, sans-serif; text-align: center; pointer-events: none; }
.download-guide-tip::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #e8c67c; }
body.offline-dialog-open .download-guide-tip { visibility: hidden; }
@keyframes download-guide-pulse { 0%, 100% { box-shadow: 0 12px 40px #000c, 0 0 22px #e3bd7055; } 50% { box-shadow: 0 12px 40px #000c, 0 0 40px #f3cc85a0; } }
@media (prefers-reduced-motion: reduce) { .floating-download.is-download-guided { animation: none; } }

/* Poster download CTAs replace watchlist ribbons without nesting buttons in links. */
.title-list-grid__item { position: relative; }
.ribbon.poster-app-download { position: absolute; top: 6px; left: 6px; right: auto; z-index: 5; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: auto; max-width: calc(100% - 36px); height: 28px; min-width: 0; min-height: 28px; margin: 0; padding: 4px 6px; box-sizing: border-box; clip-path: none; border: 1px solid #ffe5b0; border-radius: 6px; background: linear-gradient(135deg, #ffe1a2, #d6a04b); color: #29101a; opacity: 1; font: 900 10px/1 Lato, sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 3px 10px #0007; }
.ribbon.poster-app-download::before, .ribbon.poster-app-download::after { content: none; display: none; }
.ribbon.poster-app-download svg { width: 11px; height: 11px; flex-shrink: 0; }
.ribbon.poster-app-download:hover { opacity: 1; background: #ffe3a7; }
.ribbon.poster-app-download:focus-visible { outline: 2px solid #fff0c9; outline-offset: 2px; }
.detail-app-download { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin: 12px 0 0; padding: 11px 16px; font-size: 15px; font-weight: 900; }
@media (max-width: 767px) {
  .ribbon.poster-app-download { top: 5px; left: 5px; font-size: 9px; padding: 4px 5px; height: 32px; min-height: 32px; }
  .ribbon.poster-app-download::after { display: block; content: ""; position: absolute; inset: -6px 0; pointer-events: auto; }
}

@media (max-width: 359px) {
  .title-poster .title-poster__free-tag { top: auto; bottom: 8px; left: 8px; right: auto; }
}

/* PHP endpoint links keep the original button appearance, including visited links. */
a.floating-download:any-link { color: #fff2d7; text-decoration: none; text-align: left; }
a.poster-app-download:any-link { color: #29101a; text-decoration: none; }
a.detail-app-download:any-link { color: #241019; text-decoration: none; }
a.featured-download-trigger:any-link { text-decoration: none; }
a.detail-app-download { box-sizing: border-box; }
