/* KinoDramas presentation layer. Playback and access controls use the base layout. */
:root {
  color-scheme: light;
  --bg: #dfe1e6;
  --surface: #eceef2;
  --raised: #d0d3dc;
  --line: #bdc1cc;
  --text: #262932;
  --muted: #606571;
  --red: #235de5;
  --gold: #884155;
  --green: #13724f;
  font-family: "Segoe UI", Arial, sans-serif;
}
body { background: var(--bg); color: var(--text); }
html { scroll-padding-top: 150px; }
::selection { background: #c9dcff; color: #123d92; }
:focus-visible { outline-color: #235de5; }
.container { width: min(1360px, calc(100% - 96px)); }
.site-header { background: #d2d5dd; border-bottom: 1px solid #b9bec9; backdrop-filter: none; }
.header-inner { width: min(1360px, calc(100% - 96px)); min-height: 82px; gap: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 440px) minmax(0, 1fr); }
.header-inner > .brand { justify-self: start; grid-column: 1; grid-row: 1; }
.brand { font-size: 25px; font-weight: 800; gap: 12px; }
.brand > .lucide { width: 39px; height: 39px; padding: 7px; color: #fff; background: #235de5; border-radius: 7px; }
.brand small { color: #667c74; font-size: 8px; margin-top: 7px; }
.navigation-band { background: #c5c9d3; border-top: 1px solid #b8beca; }
.navigation-inner { width: min(1360px, calc(100% - 96px)); min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; margin: auto; }
.navigation-inner > .membership-link { grid-column: 2; justify-self: center; min-width: 150px; min-height: 40px; }
.main-nav { gap: 24px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { display: flex; align-items: center; gap: 7px; flex-shrink: 0; color: #464d5e; padding: 22px 0; font-size: 12px; }
.main-nav .lucide { width: 15px; height: 15px; }
.main-nav a:hover, .main-nav a.active { color: #1e46b3; }
.main-nav a.active::after { height: 3px; background: #235de5; }
.header-actions { gap: 10px; justify-self: end; margin-left: 0; }
.header-search { display: flex; position: relative; align-items: center; width: 100%; max-width: none; grid-column: 2; grid-row: 1; }
.header-search label { margin: 0; width: 100%; }
.header-search input { min-height: 42px; height: 42px; padding-right: 44px; background: #e5e7ed; border-color: #b6bdca; font-size: 12px; }
.header-search .search-field .lucide { top: 12px; width: 16px; height: 16px; }
.header-search > .icon-button { position: absolute; right: 3px; width: 34px; height: 34px; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 7px 10px; border: 1px solid #afb6c4; border-radius: 4px; background: #dfe3eb; font-size: 12px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary > span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu summary > .lucide:last-child { width: 14px; height: 14px; transition: transform .15s; }
.account-menu[open] summary > .lucide:last-child { transform: rotate(180deg); }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 9px); z-index: 60; width: 210px; padding: 7px; background: #edf0f5; border: 1px solid #aeb7c7; border-radius: 5px; box-shadow: 0 12px 30px #202b4426; }
.account-dropdown a, .account-dropdown button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 10px; border: 0; border-radius: 3px; background: none; color: #35415b; font-size: 12px; text-align: left; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #dce3f0; }
.account-dropdown form { border-top: 1px solid #c5ccd9; margin-top: 5px; padding-top: 5px; }
.account-dropdown .lucide { width: 17px; height: 17px; }
.button { border-radius: 4px; font-weight: 650; }
.primary { background: #235de5; color: #fff; }
.primary:hover { background: #1747bc; }
.ghost { background: #e7eaf0; color: #343d54; border-color: #aeb8cc; }
.ghost:hover { background: #eff1f6; border-color: #8492af; }
.membership-link { background: #884155; color: #fff; border-color: #884155; flex-shrink: 0; }
.membership-link:hover { background: #6c2d3f; border-color: #6c2d3f; }
.icon-button { color: #505a71; }
.icon-button:hover { background: #d8dfec; color: #263858; border-color: #bac7df; }
.text-link { color: #47597b; font-weight: 600; }
.text-link:hover { color: #235de5; }
.overline { color: #884155; font-weight: 700; }
.discovery-bar { display: none; }
.discovery-bar h2 { font-size: 29px; margin: 0; }
.discovery-bar .overline { font-size: 9px; margin-bottom: 7px; }
.discovery-links { display: flex; gap: 24px; }
.discovery-links a { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #335d46; padding: 10px 0; border-bottom: 1px solid #9dbda8; }
.discovery-links a:hover { color: #235de5; border-color: #235de5; }
.discovery-links .lucide { width: 15px; height: 15px; }
.discovery-links a > .lucide:last-child { margin-left: 10px; }
.cinema-hero { height: 440px; min-height: 440px; background: #142f34; border: 0; }
.hero-art { width: 100%; height: 100%; right: 0; object-position: center 30%; opacity: 1; }
.hero-shade { background: linear-gradient(90deg, #102525df, #1025257a 45%, #10252500 85%), linear-gradient(0deg, #102525c9, #10252500 75%); }
.hero-content { height: 440px; min-height: 0; align-items: center; }
.hero-copy { width: 650px; max-width: 65%; padding: 32px 0; color: #fff; }
.hero-label { color: #e0f1e9; font-size: 10px; }
.hero-label > span { background: #a8edcb; box-shadow: none; border-radius: 1px; }
.hero-copy h1 { font-size: 48px; margin: 16px 0; max-width: 620px; }
.hero-meta { color: #e0eae6; font-size: 11px; }
.language-badge { border-color: #b6dccd7a; color: #e5fff1; }
.hero-copy p { color: #e0e9e4; font-size: 13px; max-width: 540px; margin: 16px 0 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-buttons .large { min-height: 46px; padding: 12px 20px; font-size: 12px; }
.hero-buttons .primary { background: #fff; color: #164538; }
.hero-buttons .primary:hover { background: #daf6e5; }
.hero-buttons .primary .lucide { fill: #164538; }
.glass { background: #ffffff12; border-color: #ffffff66; color: #fff; }
.glass:hover { background: #ffffff25; }
.hero-footnote { display: none; }
.hero-counter { padding-bottom: 38px; color: #d7e7df; }
.hero-counter span:first-child { color: #fff; font-size: 28px; font-weight: 300; }
.catalog-strip { gap: 26px; overflow-x: auto; scrollbar-width: thin; padding: 24px 0; border-bottom: 1px solid var(--line); }
.catalog-strip > a { margin: 0; color: #505b73; font-size: 12px; white-space: nowrap; flex-shrink: 0; gap: 7px; }
.catalog-strip > a:hover { color: #235de5; }
.catalog-strip .browse-all { font-weight: 700; color: #235de5; padding-right: 24px; border-right: 1px solid var(--line); }
.catalog-strip > a > span { color: #7a8d83; font-size: 10px; }
.movie-section { padding-top: 40px; padding-bottom: 16px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: 26px; }
.section-heading .overline { color: #884155; font-size: 9px; }
.shelf-arrows .icon-button { border-radius: 4px; background: #e9ecf3; width: 34px; height: 34px; border-color: #b3bdd1; }
.movie-grid { gap: 28px 22px; }
.movie-row { gap: 22px; grid-auto-columns: calc((100% - 110px) / 6); }
.poster-link { border-radius: 3px; background: #e3ebe5; box-shadow: 0 4px 12px #1a46330c; }
.poster-link > img { transition: transform .3s, filter .3s; }
.poster-badge { top: 9px; left: 9px; background: #edf9f0; color: #125a3a; border-radius: 2px; font-size: 8px; padding: 5px 7px; }
.card-play { background: #fff; color: #235de5; border: 0; }
.card-play .lucide { fill: #235de5; }
.movie-card-info { padding-top: 12px; }
.movie-card-info > a { color: #30394e; font-size: 14px; font-weight: 650; }
.movie-card-info > a:hover { color: #235de5; }
.movie-card-info .muted-small { color: #616b80; font-size: 11px; }
.ranked-section { margin-top: 32px; padding: 28px 0; border-block: 1px solid #b7c1d6; }
.ranked-section .movie-row { grid-auto-columns: calc((100% - 64px) / 3); gap: 32px; }
.ranked-section .movie-card { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 18px; align-items: center; }
.ranked-section .movie-card-info { padding: 0; }
.ranked-section .movie-card-info > a { font-size: 17px; }
.ranked-section .movie-card-info .muted-small { margin-top: 12px; display: block; line-height: 1.9; }
.ranked-section .movie-card-info .muted-small span { padding: 0 6px; }
.rank-number { bottom: 0; left: 0; padding: 5px 9px; color: #fff; background: #235de5; font-size: 20px; line-height: 1; filter: none; font-weight: 700; border-radius: 0 3px 0 0; }
.membership-band { margin-top: 32px; padding: 34px 0; border-color: #b3bbcd; flex-direction: column; text-align: center; gap: 20px; }
.membership-band h2 { font-size: 26px; }
.membership-band .button { background: #884155; }
.membership-band .button:hover { background: #6c2d3f; }
.genre-grid { gap: 0 28px; }
.genre-grid > a { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 22px 0; gap: 9px; }
.genre-grid > a:hover { border-color: #884155; }
.genre-number { color: #884155; }
.genre-grid strong { font-size: 19px; }
.genre-grid > a > span:last-child { color: #656f84; }
.site-footer { background: #c9cdd7; border-color: #afb7c8; padding: 28px 0; }
.site-footer .brand > .lucide { width: 29px; height: 29px; padding: 5px; }
.footer-inner > div { color: #545f76; }
.count-badge { color: #406450; border-color: #c4d8cb; background: #eff6f0; }
input, select, textarea { color: #30394e; background: #e9ecf3; border-color: #b2bcd1; border-radius: 4px; }
input::placeholder, textarea::placeholder { color: #6b758c; }
input:focus, select:focus, textarea:focus { border-color: #235de5; box-shadow: 0 0 0 3px #235de512; }
label { color: #4a5875; }
.search-field .lucide { color: #687998; }
.catalog-filters { border-color: var(--line); }
.empty-state { background: #f0f5f1; }
.empty-state h3 { color: #213e2c; }
.continue-item { background: #e9f0e9; border-color: var(--line); }
.login-page { max-width: 1080px; grid-template-columns: minmax(0, 1fr) 410px; gap: 100px; padding-top: 85px; padding-bottom: 80px; }
.login-story h1 { font-size: 43px; }
.login-story h1 em { color: #235de5; }
.login-perks > span { color: #526e5c; }
.login-perks .lucide { color: #18765a; }
.login-form-surface { background: #e9ecf3; border-color: #b5bfd5; padding: 36px; box-shadow: 0 12px 36px #24345509; border-top: 3px solid #884155; }
.login-divider { color: #6c8373; }
.access-page h1 { font-size: 48px; }
.access-periods > span { background: #e6f0e7; color: #30503a; border-color: #b3cbb9; }
.access-steps > div > span { color: #235de5; }
.access-steps > div { border-color: var(--line); }
.breadcrumbs { color: #658170; }
.detail-page { padding-top: 32px; }
.movie-detail { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding: 8px 0 40px; }
.detail-poster { border-radius: 3px; box-shadow: 0 10px 28px #163b2612; }
.detail-copy h1 { font-size: 42px; }
.detail-meta { color: #5b7566; }
.detail-meta .lucide { color: #688374; }
.synopsis { color: #57637c; }
.detail-language { background: #ffffffee; color: #174a31; border: 0; }
.save-button.saved { color: #18765a; background: #dfefe4; border-color: #9dcdb0; }
.save-button.saved .lucide { fill: #c0e0cb; }
.detail-note { color: #6c8274; border-color: var(--line); }
.player-heading > span, .player-footer p { color: #526f5c; }
.player-frame { border-radius: 3px; }
.viewer-watermark { color: #ffffff55; }
.expiry-band, .notice { color: #765b16; background: #fff8e5; border-color: #e9d8a2; }
.expiry-band strong, .expiry-band .lucide { color: #795b13; }
.usage-notice { color: #785c1a; background: #fff8e5; border-color: #e9d8a2; }
.account-expiry { color: #18765a; }
progress, progress::-webkit-progress-bar { background: #dce8e0; }
progress::-webkit-progress-value { background: #235de5; }
.status-pill { color: #486b56; background: #edf3ef; border-color: #d4e1d8; }
.status-pill.green { color: #14613c; background: #e3f4e9; border-color: #bbdfc9; }
.status-pill.red { color: #a33243; background: #fff0f1; border-color: #edcbd1; }
.toast { color: #174c31; background: #f0faf4; border-color: #b4d8c2; box-shadow: 0 8px 32px #1534201a; }
.toast.error { color: #973b47; background: #fff4f5; border-color: #e6bdc5; }
.admin-body { background: #dfe1e6; }
.admin-body .navigation-band { display: none; }
.admin-sidebar { background: #d1d6e0; top: 82px; height: calc(100vh - 82px); }
.admin-sidebar nav > a { color: #627b6a; }
.admin-sidebar nav > a:hover { background: #f0f5f2; color: #234b33; }
.admin-sidebar nav > a.active { background: #eaf0ff; color: #1748ba; }
.admin-back { color: #527360; }
.stat-grid > div { background: #e9ecf3; }
.stat-grid > div > .lucide { color: #18765a; }
.stat-grid small, td small, .field-help { color: #67816e; }
.table-scroll { background: #e9ecf3; }
th { background: #d3dae7; color: #445676; }
td { color: #485a79; border-color: #ccd4e3; }
.danger { color: #b33149; }
.credential-box { background: #eaf6ed; border-color: #bcdbc5; }
.credential-box p { color: #456b51; }
.credential-box textarea { color: #205535; background: #fff; }
@media (min-width: 1600px) {
  .cinema-hero { height: 480px; }
  .hero-content { height: 480px; }
}
@media (max-width: 1180px) {
  .container { width: calc(100% - 56px); }
  .header-inner, .navigation-inner { gap: 25px; width: calc(100% - 56px); }
  .brand { font-size: 22px; }
  .main-nav { gap: 20px; }
  .movie-grid { gap: 24px 16px; }
  .movie-row { gap: 16px; grid-auto-columns: calc((100% - 64px) / 5); }
  .ranked-section .movie-row { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
  .login-page { gap: 50px; grid-template-columns: minmax(0, 1fr) 390px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 76px; gap: 20px; grid-template-columns: 195px minmax(0, 1fr) auto; }
  .brand { font-size: 20px; }
  .brand > .lucide { width: 33px; height: 33px; padding: 6px; }
  .brand small { font-size: 6px; }
  .main-nav a { font-size: 11px; padding: 15px 0; }
  .main-nav a:nth-child(3), .main-nav a:nth-child(4) { display: flex; }
  .header-search { max-width: none; }
  .discovery-bar h2 { font-size: 25px; }
  .cinema-hero, .hero-content { height: 420px; min-height: 0; }
  .hero-copy { max-width: 75%; }
  .hero-copy h1 { font-size: 40px; }
  .movie-row { grid-auto-columns: calc((100% - 48px) / 4); }
  .login-page { gap: 30px; grid-template-columns: minmax(0, 1fr) 350px; }
  .login-story h1 { font-size: 34px; }
  .login-form-surface { padding: 26px; }
  .movie-detail { grid-template-columns: 210px minmax(0, 1fr); gap: 35px; }
  .detail-copy h1 { font-size: 34px; }
  .admin-sidebar { position: static; height: auto; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  html { scroll-padding-top: 225px; }
  .header-inner { width: calc(100% - 36px); min-height: 0; gap: 14px; padding: 15px 0 12px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "search search"; }
  .header-inner > .brand { grid-area: brand; justify-self: start; }
  .header-actions { grid-area: actions; }
  .header-search { grid-area: search; max-width: none; }
  .brand { font-size: 20px; gap: 8px; }
  .brand > .lucide { width: 30px; height: 30px; padding: 5px; }
  .brand small { font-size: 6px; margin-top: 5px; }
  .header-actions { gap: 4px; }
  .header-actions > .button.ghost { font-size: 10px; padding: 7px 8px; }
  .navigation-inner { width: calc(100% - 36px); gap: 0; min-height: 48px; grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .navigation-inner > .membership-link { grid-column: 1; grid-row: 1; padding: 9px 22px; font-size: 12px; min-height: 38px; }
  .navigation-inner .membership-link .lucide { width: 14px; height: 14px; }
  .main-nav { margin: 0; border: 0; width: 100%; gap: 22px; order: 0; grid-column: 1; grid-row: 2; justify-content: space-between; }
  .main-nav a, .main-nav a:nth-child(3) { display: flex; font-size: 11px; padding: 16px 0; }
  .main-nav .lucide { display: none; }
  .account-menu summary { min-height: 34px; padding: 6px 8px; gap: 6px; }
  .account-menu summary > span { max-width: 75px; font-size: 11px; }
  .account-menu summary > .lucide { width: 17px; height: 17px; }
  .discovery-bar { display: none; }
  .discovery-bar h2 { font-size: 25px; }
  .discovery-bar .overline { font-size: 8px; }
  .discovery-links { margin-top: 10px; gap: 20px; }
  .discovery-links a { font-size: 10px; gap: 6px; }
  .discovery-links a > .lucide:last-child { margin-left: 0; }
  .cinema-hero, .hero-content { height: 400px; min-height: 0; }
  .hero-art { height: 100%; width: 100%; object-position: center 25%; opacity: 1; }
  .hero-shade { background: linear-gradient(0deg, #0d2928ed, #0d292855 65%, #0d292810); }
  .hero-copy { width: 100%; max-width: 100%; padding-bottom: 28px; }
  .hero-copy h1 { font-size: 34px; margin: 14px 0; }
  .hero-label { font-size: 8px; }
  .hero-meta { font-size: 10px; gap: 9px; }
  .hero-copy p { font-size: 12px; margin: 14px 0 18px; }
  .hero-buttons { gap: 10px; }
  .hero-buttons .large { font-size: 11px; padding: 11px 15px; min-height: 42px; }
  .catalog-strip { padding: 19px 0; gap: 22px; }
  .catalog-strip > a { font-size: 11px; }
  .catalog-strip .browse-all { padding-right: 19px; }
  .movie-section { padding-top: 30px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading .overline { font-size: 8px; }
  .movie-grid { gap: 24px 14px; }
  .movie-row { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .movie-card-info > a { font-size: 13px; }
  .movie-card-info .muted-small { font-size: 10px; }
  .ranked-section { padding: 26px 0 16px; margin-top: 20px; }
  .ranked-section .movie-row { grid-auto-columns: 85%; gap: 22px; }
  .ranked-section .movie-card { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .ranked-section .movie-card-info > a { font-size: 16px; }
  .rank-number { font-size: 18px; }
  .membership-band { align-items: center; }
  .membership-band h2 { font-size: 24px; }
  .genre-grid { gap: 0 22px; }
  .genre-grid > a { padding: 18px 0; }
  .genre-grid strong { font-size: 16px; }
  .login-page { display: block; padding: 32px 0; }
  .login-story h1 { font-size: 31px; }
  .login-form-surface { padding: 25px; }
  .access-page h1 { font-size: 36px; }
  .access-periods > span { font-size: 12px; }
  .movie-detail { display: block; padding: 0 0 28px; }
  .detail-poster { width: 175px; margin-bottom: 26px; }
  .detail-copy h1 { font-size: 31px; }
  .synopsis { font-size: 13px; }
  .site-footer { margin-top: 36px; }
  .admin-sidebar { height: auto; }
}
@media (max-width: 360px) {
  .brand { font-size: 17px; gap: 6px; }
  .brand > .lucide { width: 27px; height: 27px; }
  .brand small { display: none; }
  .header-actions > .button.ghost .lucide { display: none; }
  .header-actions { gap: 3px; }
  .header-actions .button { font-size: 9px; padding-inline: 7px; }
  .account-menu summary > span { max-width: 60px; }
  .discovery-links { gap: 14px; }
  .discovery-links a { font-size: 9px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy .language-badge { font-size: 8px !important; }
  .hero-meta { gap: 8px; }
}
