/* Catalog, film, player and membership: one reference-led inner-page system. */
.inner-page { --surface: #1d1f35; --subtle: #272940; --vip: #e8c7b2; }
.inner-page.midnight { --surface: #211a32; --subtle: #30243f; --vip: #e2c3d9; }
.inner-page .site-rail { display: none; }
.inner-page > main, .inner-page > .site-footer { margin-left: 0; }
.inner-page .portal-topbar { left: 0; padding-left: 278px; }
.inner-page .portal-topbar > .mobile-brand { display: block; position: absolute; left: 34px; width: 126px; }
.inner-page .page { max-width: 1280px; width: calc(100% - 120px); padding: 22px 0 60px; }
.inner-page .site-footer { padding-inline: max(40px, calc((100% - 1320px) / 2)); }
.inner-page h2 { font-size: 22px; margin: 0 0 20px; }
.inner-page h3 { font-size: 18px; }
.inner-page svg { width: 20px; height: 20px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.breadcrumbs > span:last-child { color: #d0d1df; }
.catalog-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.catalog-heading h1 { font-size: 22px; margin: 0; }
.catalog-heading > span { color: var(--muted); overflow-wrap: anywhere; }
.catalog-heading > a { margin-left: auto; color: var(--muted); }
.catalog-filters { padding: 17px 22px; background: var(--surface); }
.filter-row { display: flex; gap: 12px; min-height: 48px; padding: 5px 0; align-items: flex-start; }
.filter-name { color: #b9bbcb; min-width: 40px; padding-top: 7px; }
.filter-row nav { display: flex; gap: 4px 10px; flex-wrap: wrap; }
.filter-row a { min-height: 34px; padding: 6px 14px; display: inline-flex; align-items: center; color: #c0c1d0; }
.filter-row a:hover { color: #fff; background: var(--subtle); }
.filter-row a.selected { color: #fff; background: #087aa5; }
.midnight .filter-row a.selected { background: #704586; }
.catalog-results { display: flex; gap: 20px; align-items: center; margin: 28px 0; }
.catalog-results nav { display: flex; flex-wrap: wrap; background: var(--surface); }
.catalog-results a { padding: 7px 23px; color: #b6b8ca; }
.catalog-results a.selected { background: var(--subtle); color: #fff; box-shadow: inset 0 -2px var(--accent); }
.catalog-results p { color: #b6b8ca; margin: 0; }
.catalog-page .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.catalog-empty { grid-column: 1/-1; min-height: 250px; text-align: center; padding: 54px 20px; }
.catalog-empty h2 { font-size: 20px; margin-bottom: 12px; }
.catalog-empty p { margin: 0 auto 22px; color: var(--muted); }
.pagination { justify-content: center; margin-top: 35px; }
.pagination .selected { background: var(--accent-soft); color: var(--accent); }
.film-overview { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding: 8px 0 28px; }
.film-cover { display: block; width: 210px; height: 280px; object-fit: cover; }
.film-overview-copy { min-width: 0; }
.film-overview h1 { font-size: 28px; margin: 0 0 16px; line-height: 1.4; }
.film-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #aeb1c6; }
.film-tags a { color: #acbed5; }
.film-facts { margin: 16px 0; font-size: 14px; color: #c1c4d3; }
.film-facts > div { display: flex; gap: 12px; margin: 7px 0; }
.film-facts dt { color: #8f95ad; flex-shrink: 0; min-width: 28px; }
.film-facts dd { margin: 0; overflow-wrap: anywhere; }
.film-intro-short { color: #a9aec4; font-size: 14px; line-height: 1.8; margin: 15px 0 22px; }
.film-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.film-actions .button { min-width: 130px; min-height: 44px; }
.film-actions .button:not(.secondary) { background: #087aa5; border-color: #087aa5; }
.midnight .film-actions .button:not(.secondary) { background: #704586; border-color: #704586; }
.content-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: 8px 0 0; }
.content-tabs a { font-size: 17px; padding: 12px 0; }
.content-tabs .selected { color: var(--accent); border-bottom: 2px solid var(--accent); }
.detail-lower { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 42px; padding-top: 30px; }
.film-section { margin-bottom: 34px; }
.film-section > p { font-size: 14px; line-height: 1.9; color: #b5b9cd; }
.section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 17px 0; }
.version-row:first-child { border-top: 1px solid var(--line); }
.version-row strong { display: block; font-size: 15px; font-weight: 400; }
.version-row div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.film-license { border-left: 1px solid var(--line); padding-left: 25px; color: #b3b6ca; font-size: 13px; }
.film-license h2 { font-size: 18px; }
.film-license > a { color: var(--accent); }
.episode-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.episode-grid > span { padding: 12px; background: var(--surface); color: var(--muted); }
.episode-grid small { display: block; }
.inner-page .watch-page { padding-top: 18px; width: calc(100% - 180px); }
.watch-page .breadcrumbs { margin-bottom: 16px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.watch-main { min-width: 0; }
.inner-page .watch-layout .player-shell { margin: 0; border: 0; border-radius: 0; }
.inner-page .watch-main video { aspect-ratio: 16/9; max-height: none; width: 100%; background: #000; object-fit: contain; }
.inner-page .watch-main .player-status { background: var(--surface); min-height: 32px; font-size: 12px; padding: 6px 14px; }
.text-control { border: 0; background: none; color: #c2c5d9; padding: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; min-height: 36px; }
.text-control:hover { color: var(--accent); }
.playback-controls { display: flex; align-items: center; gap: 12px; padding: 7px 10px; background: var(--surface); border-top: 1px solid #ffffff0a; }
.playback-controls .seek-label { flex: 1; min-width: 45px; max-width: none; }
.inner-page #play-seek { border: 0; padding: 0; height: 25px; accent-color: var(--accent); background: transparent; }
#play-clock { font-variant-numeric: tabular-nums; color: #aeb4cc; font-size: 11px; white-space: nowrap; }
.watch-action-bar { display: flex; align-items: center; gap: 25px; min-height: 53px; padding: 5px 8px; background: #ffffff03; color: #989eb8; }
.watch-action-bar #play-retry { margin-left: auto; }
.watch-action-bar #action-status { font-size: 12px; }
.watch-sidebar { padding: 22px 20px; background: var(--surface); min-height: 100%; }
.watch-sidebar h1 { font-size: 21px; line-height: 1.5; margin: 0 0 10px; }
.watch-subtitle { color: #979db7; margin: 0 0 27px; font-size: 12px; }
.watch-side-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.watch-side-heading h2 { font-size: 16px; margin: 0; }
#play-quality { color: var(--muted); font-size: 12px; }
.version-select { margin-bottom: 12px; }
.play-version-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.version-choice { color: #c1c4d4; background: var(--subtle); border: 1px solid transparent; border-radius: 3px; padding: 10px 4px; text-align: center; min-height: 65px; }
.version-choice strong { font-size: 13px; font-weight: 500; display: block; }
.version-choice span { font-size: 11px; color: #abb0c3; display: block; margin-top: 3px; }
.version-choice[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.watch-options { display: grid; gap: 13px; margin-top: 26px; }
.watch-options label { gap: 7px; font-size: 12px; color: #a9aec4; }
.watch-options select { font-size: 12px; min-height: 37px; padding: 7px 10px; }
.side-note { color: #9ca2bb; font-size: 12px; line-height: 1.8; margin: 20px 0; }
.watch-vip-link { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; background: #ffffff05; color: var(--vip); }
.watch-details { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; padding-top: 30px; }
.watch-details h2 { font-size: 22px; margin-bottom: 15px; }
.watch-details p { font-size: 14px; color: #a9aec4; line-height: 1.8; }
.watch-details a { font-size: 13px; color: var(--accent); }
.watch-details aside h2 { font-size: 18px; }
.membership-page { background: var(--surface); margin-top: 4px; }
.inner-page .membership-page { padding-top: 0; }
.member-banner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; padding: 22px; text-align: center; background: #292e56; }
.midnight .member-banner { background: #322540; }
.member-avatar { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #444e7c; color: #e3e6ff; font-size: 15px; margin-bottom: 12px; }
.member-banner h1 { font-size: 17px; margin: 0 0 5px; }
.member-banner p { margin: 0; color: #b4b9d1; font-size: 12px; }
.member-banner p a { color: #77d8ff; }
.member-site { position: absolute; right: 28px; top: 24px; font-size: 17px; color: var(--vip); }
.member-site small { display: block; font-size: 11px; color: #bcb1ba; }
.member-navigation { display: flex; align-items: center; justify-content: center; gap: 25px; background: #171a31; }
.member-navigation a { font-size: 15px; padding: 12px 25px; color: #babacf; }
.member-navigation a.selected { color: #482b20; background: #eac6b1; }
.membership-content { padding: 34px 6.5%; }
.vip-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 35px; }
.vip-tabs a { padding: 7px; text-align: center; border: 1px solid #d5ad99; color: var(--vip); font-size: 15px; }
.vip-tabs a.selected { color: #573b30; background: #edcbb5; }
.member-benefits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.member-benefits > div { text-align: center; padding: 12px 3px; }
.member-benefits svg { width: 30px; height: 30px; display: block; margin: 0 auto 16px; color: var(--vip); }
.member-benefits strong { display: block; font-size: 14px; font-weight: 400; color: #d4cfce; }
.member-benefits span { display: block; font-size: 11px; color: #9fa3bb; margin-top: 7px; }
.vip-scope { color: #afb3c8; font-size: 13px; line-height: 1.9; margin: 22px 0 36px; max-width: none; border-top: 1px solid var(--line); padding-top: 20px; }
.membership-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.membership-plan { border: 1px solid #8c7366; padding: 24px; text-align: center; background: #ffffff03; }
.membership-plan h3 { font-size: 20px; margin: 0; color: #e2cfbf; }
.plan-duration { color: #b9b1b2; margin: 9px 0; }
.plan-price { color: #efd3ba; font-size: 38px; margin: 13px 0; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 18px; color: inherit; margin-right: 6px; }
.plan-price > span { display: block; font-size: 11px; color: #a9a0a9; }
.plan-description { font-size: 12px; color: #b4b2c1; }
.membership-plan .button { width: min(100%, 260px); color: #4e3326; background: #e6bfa2; border-color: #e6bfa2; margin-top: 12px; }
.payment-test-note { color: #b3abb6; font-size: 12px; line-height: 1.8; margin: 18px 0 35px; }
.membership-comparison h2 { margin-top: 35px; }
.membership-comparison th, .membership-comparison td { padding: 17px; text-align: center; font-size: 13px; }
.membership-comparison th { background: transparent; color: #b8b9c9; font-weight: 400; }
.membership-comparison td:last-child { color: #dec8b7; }
@media (max-width: 1250px) {
  .inner-page .portal-topbar { padding-left: 245px; }
  .inner-page .page { width: calc(100% - 48px); }
  .watch-layout, .watch-details { grid-template-columns: minmax(0, 1fr) 280px; }
  .catalog-page .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .watch-sidebar { padding: 18px 16px; }
  .playback-controls { gap: 7px; padding-inline: 5px; }
}
@media (max-width: 1000px) {
  .inner-page .portal-topbar { padding-left: 180px; padding-right: 22px; }
  .inner-page .portal-topbar > .mobile-brand { left: 24px; width: 113px; }
  .inner-page .header-search { width: auto; flex: 1; max-width: 300px; min-width: 140px; }
  .inner-page .page { width: calc(100% - 36px); }
  .watch-layout, .watch-details { grid-template-columns: minmax(0, 1fr) 240px; }
  .watch-sidebar h1 { font-size: 18px; }
  .watch-subtitle { margin-bottom: 18px; }
  .playback-controls #play-toggle span { display: none; }
  .watch-options { margin-top: 18px; }
  .detail-lower { grid-template-columns: minmax(0, 1fr) 230px; gap: 25px; }
  .member-navigation { gap: 5px; }
  .member-navigation a { padding-inline: 20px; }
}
@media (max-width: 760px) {
  .inner-page .watch-layout, .inner-page .watch-details, .detail-lower { grid-template-columns: 1fr; }
  .watch-sidebar { min-height: 0; }
  .watch-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-note { margin: 14px 0; }
  .film-license { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .catalog-page .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .member-navigation a { padding-inline: 12px; font-size: 13px; }
}
@media (max-width: 660px) {
  .inner-page .portal-topbar { padding: 0 15px; }
  .inner-page .portal-topbar > .mobile-brand { position: static; width: 105px; }
  .inner-page .header-search { height: 36px; min-width: 0; }
  .inner-page .header-search input { font-size: 16px; height: 34px; }
  .inner-page .page { width: 100%; padding: 20px 16px 40px; }
  .inner-page .site-footer { padding-inline: 16px; }
  .catalog-heading h1 { font-size: 21px; }
  .catalog-filters { padding: 12px; }
  .filter-row { gap: 5px; padding: 6px 0; }
  .filter-name { min-width: 30px; font-size: 12px; padding-top: 10px; }
  .filter-row nav { gap: 4px; }
  .filter-row a { padding: 8px 10px; min-height: 40px; font-size: 13px; }
  .catalog-results { flex-wrap: wrap; gap: 12px; margin: 23px 0; }
  .catalog-results a { padding: 10px 16px; }
  .catalog-page .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .film-overview { grid-template-columns: 108px minmax(0, 1fr); gap: 18px; padding-bottom: 18px; }
  .film-cover { width: 108px; height: 154px; }
  .film-overview h1 { font-size: 21px; margin-bottom: 12px; }
  .film-tags { gap: 6px 12px; font-size: 12px; }
  .film-facts { font-size: 12px; }
  .film-facts > div:first-child { display: none; }
  .film-intro-short { display: none; }
  .film-actions { gap: 8px; }
  .film-actions .button { padding: 8px 12px; min-width: 0; font-size: 13px; }
  .film-actions svg { width: 15px; height: 15px; }
  .content-tabs { gap: 25px; }
  .content-tabs a { font-size: 16px; }
  .film-section > p { font-size: 15px; }
  .watch-page .breadcrumbs { font-size: 12px; }
  .watch-action-bar { gap: 16px; flex-wrap: wrap; }
  .watch-action-bar #action-status:empty { display: none; }
  .playback-controls { gap: 6px; padding-inline: 4px; }
  .playback-controls #play-toggle span { display: none; }
  .playback-controls .text-control { font-size: 12px; min-height: 40px; }
  #play-clock { font-size: 10px; }
  .watch-options { grid-template-columns: 1fr 1fr; }
  .watch-sidebar { padding: 20px 16px; }
  .watch-details { padding-top: 25px; gap: 25px; }
  .watch-details h2 { font-size: 21px; }
  .watch-details p { font-size: 15px; }
  .inner-page .membership-page { padding: 0 0 25px; margin-top: 0; }
  .member-banner { min-height: 190px; }
  .member-site { font-size: 13px; top: 16px; right: 16px; }
  .member-banner h1 { font-size: 16px; }
  .member-navigation { gap: 0; flex-wrap: wrap; }
  .member-navigation a { padding: 12px 10px; font-size: 12px; }
  .membership-content { padding: 25px 16px; }
  .vip-tabs { margin-bottom: 22px; }
  .member-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 6px; }
  .member-benefits strong { font-size: 13px; }
  .member-benefits span { font-size: 12px; }
  .member-benefits svg { margin-bottom: 12px; }
  .membership-plans { gap: 12px; }
  .membership-plan { padding: 20px 10px; }
  .membership-plan h3 { font-size: 18px; }
  .plan-price { font-size: 30px; }
  .plan-description { line-height: 1.8; }
  .membership-plan .button { font-size: 13px; padding-inline: 8px; }
  .membership-comparison th, .membership-comparison td { font-size: 12px; padding: 13px 8px; }
}
