/* Consolidated original artwork, footer, platform rail and monochrome controls. */
:root { --visual-base: #090d16; --visual-glass: #0f152094; --visual-field: #1a1f26; --visual-muted: #b2bdce; --visual-selected: #ffffff2b; --visual-selected-text: #f1f2f5; --home-hero-height: clamp(440px,29.3vw,620px); }
html[data-theme="light"] { --visual-base: #f3f5f9; --visual-glass: #ffffff99; --visual-field: #f7f9fb; --visual-muted: #536278; --visual-selected: #fff; --visual-selected-text: #191c22; }
body.site-ambient-enabled { isolation: isolate; background: var(--visual-base); }
main.page-home { padding-top: 0 !important; background: transparent; }
html[data-template] .container { width: calc(100% - 64px); max-width: 1680px; min-height: 0 !important; margin-inline: auto; padding-inline: 0; }
#siteHeader.header > .header__inner { height: 100% !important; min-height: 0 !important; }
.template-ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: var(--visual-base); }
.template-ambient canvas { width: 100%; height: 100%; opacity: .48; }
html[data-theme="light"] .template-ambient canvas { opacity: .34; }
.template-ambient::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,var(--visual-base),transparent 75%); }
#siteHeader.header { background: #484d546b !important; border-color: #ffffff30 !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }
#siteHeader .nav__link.is-active { background: var(--visual-selected); border-radius: 10px; }
#siteHeader .nav__link.is-active::after { display: none; }
html[data-theme="light"] #siteHeader.header { background: #ffffff40 !important; border-color: #ffffff99 !important; }
#banner.banner { position: relative; width: 100%; max-width: none; height: var(--home-hero-height); min-height: 0; margin: 0; border: 0; border-radius: 0; overflow: visible; isolation: isolate; background: transparent; }
#banner .banner__item { position: absolute; inset: 0; overflow: visible; opacity: 0; visibility: hidden; transition: opacity .6s cubic-bezier(.22,1,.36,1); }
#banner .banner__item.is-active { opacity: 1; visibility: visible; }
#banner :is(.template-hero-art,.banner__mask) { position: absolute; inset: 0 0 auto; height: calc(var(--home-hero-height) + 360px); mask-image: linear-gradient(#000 0px,#000 calc(var(--home-hero-height) - 150px),#0000002e calc(var(--home-hero-height) + 20px),transparent calc(var(--home-hero-height) + 260px)); pointer-events: none; }
#banner .template-hero-art { z-index: 0; }
#banner .template-hero-art picture { display: block; width: 100%; height: 100%; }
#banner .banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--home-x,50%) var(--home-y,50%); transform: none; animation: none; }
#banner .banner__mask { z-index: 1; background: linear-gradient(90deg,#040a13c2,#040a1340 52%,#040a130f); }
#banner .banner__content { position: absolute; z-index: 2; top: auto; bottom: 30px; left: max(32px,calc((100% - 1680px)/2)); right: auto; width: min(560px,calc(100% - 48px)); max-width: 560px; padding: 0; margin: 0; transform: none; color: #f4f6fb; }
#banner .hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 11px; font-weight: 650; letter-spacing: 1.5px; }
#banner .hero-brand { display: inline-flex; padding: 6px 12px; border: 1px solid #ffffff38; border-radius: 30px; background: #ffffff0f; font-size: 10px; }
#banner .hero-facts { display: flex; align-items: center; gap: 12px; margin: 14px 0 15px; }
#banner .hero-genre { padding: 5px 12px; border: 1px solid #ffffff30; border-radius: 20px; background: #ffffff16; font-size: 11px; }
#banner .banner__actions svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
#banner .banner__actions .hero-more svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
#banner .banner__actions { display: flex; align-items: center; gap: 10px; }
#banner .banner__actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 40px; font-size: 13px; box-shadow: none; }
#banner .banner__actions a:first-child { background: #fff !important; color: #10151c !important; border: 1px solid #fff; }
#banner .banner__actions a:nth-child(2) { background: #ffffff19 !important; color: #fff !important; border: 1px solid #ffffff50; }
#banner .banner__dots { z-index: 3; bottom: 54px; }
#banner .banner__dot { width: 6px; height: 6px; background: #ffffff59; }
#banner .banner__dot[aria-pressed="true"] { width: 22px; background: #fff; }
.page-home :is(.home-discovery-layout,.home-media-rail) { position: relative; }
.page-home .home-discovery-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 28px; align-items: start; margin-top: -20px; }
html[data-template] .page-home .featured-section { padding: 18px 0 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.page-home .featured-track { gap: 16px; }
.page-home .media-card--featured { width: calc((100% - 80px)/6); flex: 0 0 calc((100% - 80px)/6); min-width: 150px; max-width: 220px; }
.page-home .featured-nav__btn { color: var(--tpl-text); background: var(--tpl-button); border: 1px solid var(--tpl-border); border-radius: 50%; }
.page-home .home-media-rail { --home-columns: 6; position: relative; }
.page-home .home-media-viewport { overflow-x: auto; scrollbar-width: none; }
.page-home .home-media-viewport::-webkit-scrollbar { display: none; }
.page-home .home-media-track.vod-grid { display: flex !important; flex-wrap: nowrap; width: 100%; gap: 16px; overflow: visible; padding: 2px 0 8px; }
.page-home .home-media-track > .media-card { width: calc((100% - (var(--home-columns) - 1)*16px)/var(--home-columns)); min-width: 0; flex: 0 0 calc((100% - (var(--home-columns) - 1)*16px)/var(--home-columns)); scroll-snap-align: start; }
.page-home .home-media-track .media-card__cover { aspect-ratio: 3 / 4; }
.page-home .home-media-nav { position: absolute; top: 42%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; background: #181d26c2; border: 1px solid #ffffff24; border-radius: 50%; transform: translateY(-50%); cursor: pointer; }
.page-home .home-media-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.page-home .home-media-nav--prev { left: 8px; }
.page-home .home-media-nav--next { right: 8px; }
.page-home .home-media-section.is-start .home-media-nav--prev,
.page-home .home-media-section.is-end .home-media-nav--next,
.page-home .home-media-section.no-overflow .home-media-nav { visibility: hidden; }
#quickFindResults { margin: 0 0 30px; padding: 18px 20px 20px; border: 1px solid var(--tpl-border); border-radius: 16px; background: var(--visual-glass); }
.template-quick-results__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; margin-bottom: 16px; border-bottom: 1px solid var(--tpl-border); }
.template-quick-results__head h2 { margin: 0; font-size: 17px; font-weight: 650; }
.template-quick-results__head p { margin-top: 4px; font-size: 11px; color: var(--visual-muted); }
.template-quick-results__actions { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.template-quick-results__actions [role="group"] { display: flex; padding: 4px; border: 1px solid var(--tpl-border); border-radius: 14px; }
.template-quick-results__actions button { min-height: 30px; padding: 6px 12px; border: 1px solid transparent; border-radius: 18px; background: transparent; color: var(--tpl-text); cursor: pointer; }
.template-quick-results__actions .is-active { background: var(--visual-selected); }
.template-quick-results__actions [data-quick-close] { padding: 0; width: 30px; border-color: var(--tpl-border); }
#quickFindResults [data-results] .vod-grid { grid-template-columns: repeat(7,minmax(0,1fr)); }
@media (min-width: 1441px) { .page-home .home-media-rail { --home-columns: 7; } }
@media (min-width: 1761px) { .page-home .home-media-rail { --home-columns: 8; } }
@media (min-width: 2201px) { .page-home .home-media-rail { --home-columns: 10; } }
.movie-detail-hero { position: relative; isolation: isolate; overflow: visible; }
.movie-detail-hero .cinema-bg, .template-play-art { position: absolute; inset: 0 0 auto; z-index: -1; height: calc(100% + 260px); background-size: cover; background-position: center top; mask-image: linear-gradient(#000 0%,#000b 40%,transparent 100%); pointer-events: none; }
.movie-detail-hero .cinema-wash { z-index: 0; background: linear-gradient(90deg,#040a13d9,#040a1355 60%,transparent); }
.movie-detail-hero .movie-detail-shell { position: relative; z-index: 1; }
.movie-detail-actions .movie-detail-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.movie-detail-actions .movie-detail-btn__svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.movie-detail-page .movie-detail-recommend-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 18px; }
.movie-detail-page .movie-detail-recommend-grid .vod-card { display: block !important; min-width: 0; }
.template-native-play { position: relative; isolation: isolate; }
.page.template-native-play { padding-inline: 0; margin: 0; }
.template-play-art { height: min(1050px,110vh); opacity: .5; }
.template-native-play .template-watch-container { max-width: 1800px; }
.template-native-play .play-breadcrumb { display: flex; gap: 10px; margin: 0 0 16px; font-size: 12px; color: var(--visual-muted); }
.template-watch { display: grid; grid-template-columns: minmax(0,1fr) clamp(300px,22vw,360px); margin-bottom: 28px; border-radius: 18px; overflow: hidden; }
.template-watch > .template-native-player { height: 100%; min-height: 560px; aspect-ratio: auto; border-radius: 0; }
.template-watch-sidebar { display: flex; flex-direction: column; min-width: 0; max-height: calc(100dvh - 140px); min-height: 560px; overflow: hidden; color: var(--tpl-text); background: linear-gradient(145deg,#ffffff12,transparent 38%),#1c2127cc; border: 1px solid var(--tpl-border); }
html[data-theme="light"] .template-watch-sidebar { background: linear-gradient(145deg,#ffffff52,transparent 38%),#f6f8fbd1; }
.template-watch-head { display: flex; gap: 12px; align-items: center; padding: 24px 20px 21px; border-bottom: 1px solid var(--tpl-border); }
.template-watch-head img { flex: none; width: 48px; height: 72px; object-fit: cover; border-radius: 7px; }
.template-watch-head > div { min-width: 0; }
.template-watch-head h1 { margin: 5px 0; color: inherit; font-size: 18px; font-weight: 650; line-height: 1.4; }
.template-watch-head p,.template-watch-kicker { color: var(--visual-muted); font-size: 11px; line-height: 1.65; }
.template-watch-head strong { display: block; margin-top: 6px; font-size: 12px; }
.template-watch-tabs { display: flex; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--tpl-border); }
.template-watch-tabs a { flex: 1; padding: 8px 5px; border: 1px solid transparent; border-radius: 9px; text-align: center; font-size: 12px; }
.template-watch-tabs [aria-current="true"] { background: #ffffff26; border-color: #ffffff47; }
html[data-theme="light"] .template-watch-tabs [aria-current="true"] { background: #ffffffb3; border-color: #ffffffd1; }
.template-watch-sidebar [data-watch-panel] { min-height: 0; overflow-y: auto; padding: 14px 16px; scrollbar-width: thin; scrollbar-color: var(--tpl-border) transparent; }
.template-watch-source { margin-bottom: 12px; }
.template-watch-source summary { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0 14px; font-size: 12px; cursor: pointer; }
.template-watch-source summary span { color: var(--visual-muted); }
.template-watch-episodes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.template-watch-episodes a { display: grid; place-items: center; min-height: 43px; padding: 8px 4px; border: 1px solid var(--tpl-border); border-radius: 9px; font-size: 12px; background: var(--tpl-button); }
.template-watch-episodes [aria-current="page"] { background: var(--tpl-selected); border-color: #ffffff47; }
.template-watch-sidebar [data-watch-panel] h2 { margin: 0 0 12px; font-size: 14px; }
.template-watch-sidebar [data-watch-panel] p { margin-bottom: 20px; font-size: 13px; line-height: 1.8; color: var(--visual-muted); }
.template-watch-recommend h2 { margin-bottom: 22px; font-size: 20px; }
.template-watch-recommend .vod-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 18px; }
@media (max-width: 1023px) {
    html[data-template] .template-watch-container { width: calc(100% - 24px); }
    .template-native-play .play-breadcrumb { display: none; }
    .template-watch { display: flex; flex-direction: column; }
    .template-watch > .template-native-player { width: 100%; height: auto; min-height: 0; aspect-ratio: 16/9; }
    .template-watch-sidebar { max-height: none; min-height: 0; }
    .template-watch-head { padding: 16px; }
    .template-watch-head img { width: 58px; height: 84px; border-radius: 8px; }
    .template-watch-sidebar [data-watch-panel] { max-height: 400px; }
    .template-watch-episodes { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .template-watch-recommend .vod-grid { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
    .template-watch-recommend .vod-card { flex: 0 0 128px; min-width: 0; }
}
html[data-template] :is(.catalog-page,.search-page,#smartFilter) :is(.catalog-chip,.filter-tag,.smart-filter__root,.catalog-sort-pill,.result-sort-option) { color: var(--tpl-text) !important; background: transparent !important; border-color: transparent !important; border-radius: 999px !important; box-shadow: none !important; }
html[data-template] :is(.catalog-page,.search-page,#smartFilter) :is(.catalog-chip,.filter-tag,.smart-filter__root,.catalog-sort-pill,.result-sort-option).is-active { color: var(--visual-selected-text) !important; background: var(--visual-selected) !important; border-color: var(--tpl-border) !important; box-shadow: inset 0 1px 0 #ffffff0f !important; }
html[data-template] :is(.catalog-page,.search-page,#smartFilter) :is(.catalog-chip,.filter-tag,.smart-filter__root,.catalog-sort-pill,.result-sort-option):focus-visible { outline-color: var(--tpl-text); }
html[data-template] .catalog-filter-card { padding: 18px; border: 1px solid var(--tpl-border); border-radius: 22px; background: var(--visual-glass); box-shadow: inset 0 1px 0 #ffffff08; }
html[data-template] .catalog-filter-card__mobile-head { display: flex; align-items: center; gap: 12px; padding: 0 0 22px; border: 0; }
.catalog-filter-card .template-filter-mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
html[data-template] .catalog-filter-card__mobile-head > div { flex: 1; }
html[data-template] .catalog-filter-card__mobile-head strong { display: block; font-size: 14px; color: var(--tpl-text); }
html[data-template] .catalog-filter-card__mobile-head span { display: block; margin-top: 4px; font-size: 11px; color: var(--visual-muted); }
html[data-template] .catalog-filter-card__toggle { min-height: 36px; padding: 8px 12px; border: 1px solid var(--tpl-border); border-radius: 13px; background: var(--tpl-button); color: var(--tpl-text); font-size: 12px; }
html[data-template] .catalog-filter-card__body { display: none; padding: 0; }
html[data-template] .catalog-filter-card__body.is-open { display: grid; gap: 18px; }
html[data-template] .catalog-filter-row { display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: start; gap: 12px; padding: 0; border: 0; }
html[data-template] .catalog-filter-row__label { padding-top: 12px; font-size: 12px; color: var(--visual-muted); }
html[data-template] .catalog-filter-row__options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; min-width: 0; }
html[data-template] .catalog-page .catalog-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; font-size: 12px; font-weight: 650; line-height: 1.5; }
html[data-template] .catalog-page .catalog-sortbar { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; background: transparent; }
html[data-template] .catalog-page .catalog-sortbar__left { flex: 1; width: auto !important; max-width: 720px; min-width: 0; display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 3px !important; padding: 4px !important; border-color: var(--tpl-border) !important; background: var(--tpl-button) !important; }
html[data-template] .catalog-page .catalog-sortbar__right { display: flex !important; flex: none; width: auto; min-width: 0; margin-left: auto; }
html[data-template] .catalog-page .catalog-sortbar__reset { display: grid !important; place-items: center; width: 44px !important; height: 44px !important; min-width: 44px !important; padding: 0 !important; border: 1px solid var(--tpl-border); border-radius: 50%; background: var(--tpl-button) !important; color: var(--tpl-text) !important; }
html[data-template] .catalog-page .catalog-sortbar__reset span { display: none !important; }
html[data-template] .catalog-page .catalog-sort-pill { min-width: 0; padding: 8px 5px !important; font-size: 12px; }
html[data-template] .catalog-page .catalog-sortbar__left [data-sort-key="time"] { order: 1 !important; }
html[data-template] .catalog-page .catalog-sortbar__left [data-sort-key="score"] { order: 2 !important; }
html[data-template] .section__title::before { background: var(--tpl-text); opacity: .72; }
html[data-template] .dragon-footer { box-sizing: border-box; width: calc(100% - 32px); max-width: 1800px; margin: 64px auto 24px; padding: 28px 32px; border: 1px solid var(--tpl-border); border-radius: 22px; background: var(--visual-glass); color: var(--tpl-text); }
.dragon-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--tpl-border); }
.dragon-footer__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--tpl-text); font-size: 16px; font-weight: 750; white-space: nowrap; }
.dragon-footer__brand img { display: block; width: 40px; height: 40px; object-fit: contain; filter: none; }
.dragon-footer__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.dragon-footer__links a { padding: 10px 0; font-size: 13px; font-weight: 500; color: var(--visual-muted); line-height: 1.5; }
.dragon-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 18px; }
.dragon-footer__notice, .dragon-footer__copy { margin: 0; color: var(--visual-muted); font-size: 11px; line-height: 1.8; }
.dragon-footer__notice { max-width: 760px; }
.dragon-footer__copy { white-space: nowrap; }
.home-platforms { position: relative; padding: 88px 24px 104px; overflow: hidden; color: var(--tpl-text); }
.home-platforms h2 { margin: 0 0 76px; text-align: center; font-size: clamp(24px,2.6vw,36px); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.platform-marquee { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-radius: 14px; }
.platform-marquee::-webkit-scrollbar { display: none; }
.platform-track { display: flex; width: max-content; animation: platform-flow 40s linear infinite reverse; }
.platform-group { display: flex; gap: 16px; padding-right: 16px; flex-shrink: 0; }
.platform-card { display: flex; align-items: center; justify-content: center; flex: 0 0 160px; width: 160px; height: 96px; border-radius: 12px; border: 1px solid #ffffff1a; background: #00000029; }
.platform-card img { width: 124px; height: 58px; object-fit: contain; opacity: .9; filter: brightness(0) invert(1); }
.platform-card img[src*="disney"] { transform: scale(1.8); }
.platform-card img[src*="paramount"] { transform: scale(1.65); }
.platform-marquee:is(:hover,:focus-within) .platform-track, .home-platforms.is-offscreen .platform-track { animation-play-state: paused; }
html[data-theme="light"] .platform-card { background: #ffffff1a; border-color: #2331441f; }
html[data-theme="light"] .platform-card img { filter: brightness(0); }
@keyframes platform-flow { to { transform: translateX(-50%); } }
@media (max-width: 1100px) {
    .page-home .home-media-rail { --home-columns: 4; }
    #quickFindResults [data-results] .vod-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .page-home .home-discovery-layout { grid-template-columns: 1fr; margin-top: 0; }
    #banner .banner__content { left: 24px; bottom: 96px; }
    #banner .banner__arrow { top: auto; bottom: 28px; visibility: visible; opacity: 1; transform: none; }
    #banner .banner__arrow--prev { left: 24px; }
    #banner .banner__arrow--next { right: 24px; }
    #banner .banner__dots { right: auto; left: 50%; bottom: 46px; align-items: center; gap: 6px; transform: translateX(-50%); }
    #banner .banner__bg { object-position: var(--home-mobile-x,50%) var(--home-mobile-y,50%); }
}
@media (max-width: 700px) {
    .movie-detail-page .movie-detail-recommend-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 10px; }
    .page-home .home-media-rail { --home-columns: 2.5; }
    #quickFindResults [data-results] .vod-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .template-quick-results__head { align-items: flex-start; flex-direction: column; }
    .template-quick-results__actions { flex-wrap: wrap; gap: 6px; }
    html[data-template] .container { width: calc(100% - 32px); }
    :root { --home-hero-height: 440px; }
    .home-platforms { padding: 60px 16px 64px; }
    .home-platforms h2 { max-width: 340px; margin: 0 auto 40px; }
    .platform-card { flex-basis: 128px; width: 128px; height: 80px; }
    .platform-card img { width: 104px; height: 52px; }
    .platform-group { gap: 12px; padding-right: 12px; }
    html[data-template] .dragon-footer { margin: 40px auto 24px; padding: 22px 20px; border-radius: 20px; }
    .dragon-footer__top, .dragon-footer__bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
    .dragon-footer__links { gap: 24px; }
    .dragon-footer__brand img { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    #banner .banner__item { transition: none; }
    .platform-track { animation: none; }
    .platform-group[aria-hidden] { display: none; }
}
