:root { color-scheme: dark; --bg: #202129; --sidebar: #191c24; --panel: #353842; --line: #373a44; --ink: #e4e4e8; --muted: #9c9eaa; --accent: #8ab36d; --bad: #e88c90; }
[inert] { pointer-events: none; cursor: default; }
[inert], [inert] * { user-select: none; -webkit-user-select: none; }
.sidebar { overflow-y: auto; }
.accountMenuWrap { position: relative; margin-left: auto; }
.accountMenu { position: absolute; right: 0; top: calc(100% + 15px); z-index: 50; width: 250px; max-width: calc(100vw - 30px); background: var(--sidebar); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 12px 28px #0004; padding: 6px 0; }
.accountMenu p { padding: 12px 16px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.accountMenu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; background: transparent; }
.accountMenu button:hover, .accountMenu button:focus { background: var(--panel); }
.accountMenu svg, .accessApps svg { width: 18px; height: 18px; }
.accountMenu #menuLogout { border-top: 1px solid var(--line); }
.subscriptionBadge { color: var(--muted); white-space: nowrap; font-size: 12px; }
.devicesWorkspace h1 { font-size: 24px; }
.devicesWorkspace h2 { font-size: 21px; margin-bottom: 20px; }
.activationSection { border-bottom: 1px solid var(--line); padding: 14px 0 20px; }
.activationForm { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.activationForm label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; min-width: 0; width: min(300px, 100%); }
.activationForm input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); font: inherit; text-transform: uppercase; }
.deviceGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.deviceCard { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: start; gap: 14px; border: 1px solid var(--line); border-radius: 6px; padding: 22px 18px; }
.deviceCard > svg { width: 32px; height: 32px; color: var(--muted); }
.deviceInfo h3 { font-size: 15px; margin-bottom: 10px; overflow-wrap: anywhere; }
.deviceInfo p { font-size: 12px; margin-top: 8px; color: var(--muted); }
.deviceCurrent { display: inline-block; color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.deviceTools { display: flex; gap: 4px; }
.appsDialog { width: min(760px, calc(100% - 32px)); }
.installPlatform { padding: 24px 0; border-top: 1px solid var(--line); }
.installPlatform h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin-bottom: 12px; }
.installPlatform p, .installPlatform li { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.installPlatform .playButton { display: inline-flex; margin-block: 18px 8px; }
.installPlatform ol { padding-left: 22px; margin-block: 12px; }
.installPlatform li { padding-left: 3px; margin-bottom: 9px; }
.installPlatform > a:not(.playButton) { color: var(--accent); text-decoration: underline; }
.tvPairing { margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.tvPairing h2 { font-size: 20px; margin-bottom: 12px; }
.tvPairing output { display: block; font-size: 36px; font-weight: 600; margin-block: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tvPairing .muted { font-size: 13px; }
.accessApps { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.tv .accessBody { max-width: 600px; margin-top: 24px; display: flex; flex-direction: column; }
.tv .tvPairing { order: -1; margin-top: 0; }
.tv .deviceCard { padding: 26px; }
.tv .deviceInfo h3 { font-size: 21px; }
.tv .deviceInfo p { font-size: 16px; }
.tv .appsDialog { width: 900px; max-width: calc(100% - 60px); }
@media (max-width: 1000px) { .deviceGrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .subscriptionBadge { display: none; } .deviceCard { gap: 10px; padding: 18px 14px; grid-template-columns: 26px minmax(0, 1fr) auto; } .deviceCard > svg { width: 24px; height: 24px; } .deviceTools { flex-direction: column; } }
.appUpdate { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: var(--sidebar); }
.tvTransport { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 0; }
.tv .tvTransport .iconButton { width: 54px; height: 54px; }
.tvTransport span { min-width: 130px; text-align: center; font-variant-numeric: tabular-nums; }
.tv body { font-size: 20px; }
.tv :focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.tv .sidebar { width: 72px; padding-block: 12px; transform: none; pointer-events: auto; overflow-x: hidden; }
.tv .sidebar:focus-within { width: 236px; box-shadow: 12px 0 30px #0005; }
.tv .navItem { height: 40px; min-height: 40px; flex-shrink: 0; padding: 8px 22px; gap: 16px; font-size: 16px; white-space: nowrap; }
.tv .navItem svg { width: 22px; height: 22px; }
.tv .navItem .tvNavLabel { display: none; margin: 0; color: inherit; font-size: inherit; }
.tv .sidebar:focus-within .tvNavLabel { display: inline; }
.tv .navItem span:not(.tvNavLabel), .tv .navLabel, .tv .sideFoot { display: none; }
.tv .sidebar nav:nth-of-type(n+3) { display: none; }
.tv .sidebar:focus-within nav:nth-of-type(n+3) { display: grid; }
.tv .portal, .tv .topbar { margin-left: 72px; padding-inline: 24px; }
.tv .topbar { height: 72px; flex-wrap: nowrap; gap: 20px; }
.tv .portal { padding-top: 22px; }
.tv .portal footer { display: none; }
.tv .posterGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.tv .posterRail { grid-auto-columns: calc((100% - 100px) / 6); gap: 20px; }
.tv .posterButton { height: 0; padding-bottom: 150%; aspect-ratio: auto; }
.tv .posterButton img { position: absolute; inset: 0; }
.tv .brand { font-size: 22px; padding: 0 20px; height: 40px; margin-bottom: 12px; white-space: nowrap; }
.tv .brand strong { display: none; }
.tv .sidebar:focus-within .brand strong { display: block; }
.tv .mobileBrand { display: block; font-size: 22px; white-space: nowrap; flex-shrink: 0; }
.tv .menuButton { display: none; }
.tv .searchWrap { height: 44px; min-height: 44px; flex: 1 1 300px; width: auto; max-width: 480px; min-width: 0; margin: 0; order: 0; }
.tv .searchWrap input { height: 100%; min-height: 0; padding: 8px 12px; font-size: 17px; line-height: normal; }
.tv .searchButton { height: 100%; width: 44px; flex-basis: 44px; }
.tv .accountMenuWrap { margin-left: 0; flex-shrink: 0; }
.tv .accountButton { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.tv .subscriptionBadge { display: block; margin-left: auto; font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.tv .filters select { min-height: 48px; font-size: 20px; }
.tv .movieTitle { font-size: 16px; }
.tv .cardMeta, .tv .movieFacts { font-size: 16px; }
.tv .iconButton { min-width: 48px; min-height: 48px; }
.tv .cardBookmark { display: none; }
.tv .rating { font-size: 16px; line-height: 24px; padding: 2px 7px; }
.tv .accessGate { min-height: 100vh; }
.tv .accessBody { max-width: 480px; }
.tv .accountForm label { font-size: 18px; }
.tv .accountForm input { font-size: 22px; }
.tv .movieDialog { width: calc(100% - 120px); max-height: calc(100vh - 64px); }
.tv .movieDialog.playing { width: calc(100% - 96px); max-height: calc(100vh - 40px); padding: 22px; }
.tv .playerStage { height: calc((100vw - 140px) * .5625); max-height: calc(100vh - 265px); }
.tv .movieDialog.playing .detailInfo h2 { font-size: 22px; }
.tv .playbackField select { min-height: 52px; font-size: 20px; }
.tv .accountDialog { width: 620px; max-height: calc(100vh - 60px); }
.tv .accountDialog h3, .tv .deviceRow small { font-size: 18px; }
.tv .movieDialog:fullscreen { width: 100%; height: 100%; max-height: none; border: 0; }
.tv .movieDialog.playing.tvExpanded, .tv .movieDialog.playing:fullscreen { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #000; }
.tv .movieDialog.tvExpanded .movieDetail, .tv .movieDialog:fullscreen .movieDetail { display: none; }
.tv .movieDialog.tvExpanded .playerSection, .tv .movieDialog:fullscreen .playerSection { position: absolute; inset: 0; margin: 0; }
.tv .movieDialog.tvExpanded .playerStage, .tv .movieDialog:fullscreen .playerStage { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; }
.tv .tvPlayerOverlay { padding: 12px 0; }
.tv .movieDialog.tvExpanded .tvPlayerOverlay, .tv .movieDialog:fullscreen .tvPlayerOverlay { position: absolute; inset: auto 0 0; z-index: 3; padding: 48px 28px 24px; color: #fff; background: linear-gradient(transparent, #000d); }
.tv .tvTransport { padding: 6px; gap: 12px; }
.tv .tvTransport .iconButton { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-basis: 44px; color: #fff; }
.tv .tvTransport span { min-width: 128px; font-size: 16px; }
.tv #tvSeek { min-width: 60px; flex: 1; height: 36px; accent-color: var(--accent); }
.tv .movieDialog .playbackControls { padding: 12px 6px; margin: 0; border: 0; }
.tv .playbackField select { min-height: 44px; height: 44px; font-size: 16px; }
.tv #seasonControl { flex: 0 0 144px; }
.tv .episodeSteps { height: 48px; }
.tv .movieDialog.tvExpanded .dialogClose, .tv .movieDialog:fullscreen .dialogClose { z-index: 4; top: 24px; right: 24px; background: #0009; color: #fff; }
.tv .movieDialog.tvExpanded:not(.tvControlsVisible) .tvPlayerOverlay, .tv .movieDialog.tvExpanded:not(.tvControlsVisible) .dialogClose { visibility: hidden; opacity: 0; pointer-events: none; }
.tv .movieDialog.tvExpanded video:focus { outline: none; }
.tv .appUpdate { font-size: 20px; }
.accessMode > .sidebar, .accessMode > .topbar, .accessMode > .portal, .accessMode > .menuShade { display: none; }
.accessGate { min-height: 100svh; padding: 32px 24px; }
.accessBrand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; }
.accessBrand svg { width: 26px; height: 26px; color: var(--accent); }
.accessBody { width: 100%; max-width: 390px; margin: 64px auto 0; }
.accessBody h1 { font-size: 25px; margin-bottom: 24px; }
.accessTabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.accessTabs button { background: transparent; padding: 10px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.accessTabs button[aria-selected="true"], .accessTabs button[aria-current] { border-bottom-color: var(--accent); color: var(--ink); }
.accountForm { display: grid; gap: 18px; }
.accountForm label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; min-width: 0; }
.accountForm input, .accountForm select, .accountForm textarea, .adminToolbar input, .adminToolbar select { border: 1px solid #4a4e59; background: #2a2d35; border-radius: 4px; padding: 10px 12px; min-width: 0; width: 100%; color: var(--ink); font: inherit; }
.accountForm textarea { resize: vertical; }
.accountForm .playButton { justify-self: start; }
.accountMessage { min-height: 21px; margin: 14px 0; overflow-wrap: anywhere; color: var(--muted); }
.accountMessage.error, .danger { color: var(--bad); }
.accountEmail { margin: 12px 0 24px; overflow-wrap: anywhere; color: var(--muted); }
.accountActions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.textButton { background: transparent; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.planSummary { padding: 20px 0; border-block: 1px solid var(--line); }
.planSummary h2 { font-size: 20px; margin-bottom: 10px; }
.planSummary p { margin-top: 8px; overflow-wrap: anywhere; }
.accountDialog { position: relative; width: min(460px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 28px; border: 1px solid #4a4e59; border-radius: 6px; color: var(--ink); background: var(--bg); overflow-y: auto; }
.accountDialog::backdrop { background: #000a; }
.accountDialog h2 { font-size: 21px; padding-right: 25px; overflow-wrap: anywhere; }
.accountDialog h3 { font-size: 15px; }
.accountDialog > p { margin-block: 10px; overflow-wrap: anywhere; }
.accountDialog .accountForm { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.adminHeading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.adminHeading h1 { font-size: 23px; }
.adminToolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 18px; }
.adminToolbar > input { max-width: 300px; flex: 1; }
.adminToolbar > select { max-width: 440px; flex: 1 1 200px; }
.adminToolbar label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.adminToolbar label input { width: 72px; padding-inline: 8px; }
.adminToolbar span { color: var(--muted); font-size: 12px; }
.tableScroll { overflow-x: auto; width: 100%; }
.adminTable { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.adminTable th { padding: 12px 14px; background: #292c34; color: var(--muted); font-weight: 500; white-space: nowrap; }
.adminTable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adminTable td:first-child { max-width: 280px; overflow-wrap: anywhere; }
.adminTable td:last-child { white-space: nowrap; }
.good { color: var(--accent); }
.muted { color: var(--muted); }
#adminButton { padding-inline: 12px; gap: 8px; font-size: 12px; }
.planForm { max-width: 600px; }
.formColumns { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 760px) {
  .accessGate { padding: 24px 20px; }
  .accessBody { margin-top: 42px; }
  .adminHeading h1 { font-size: 20px; }
  .adminTable { min-width: 630px; }
  .adminWorkspace .accessTabs { gap: 0; }
  .adminWorkspace .accessTabs button { padding-inline: 8px; font-size: 12px; }
  .formColumns { grid-template-columns: 1fr 1fr; }
  .formColumns label:first-child { grid-column: 1 / -1; }
  .accountDialog { padding: 24px 20px; }
}
* { box-sizing: border-box; }
.deviceSection { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.deviceRow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.deviceRow > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.deviceRow small { display: block; color: var(--muted); }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
body.modalOpen { overflow: hidden; }
body.menuOpen { overflow: hidden; }
button, input, select, a { font: inherit; color: inherit; letter-spacing: 0; }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar { width: 188px; position: fixed; inset: 0 auto 0 0; z-index: 30; background: var(--sidebar); padding: 18px 0; display: flex; flex-direction: column; border-right: 1px solid #282b34; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 30px; margin-bottom: 30px; font-size: 21px; }
.brandMark { width: 29px; height: 29px; border: 1px solid #555966; border-radius: 50%; display: grid; place-items: center; }
.brandMark svg { width: 17px; height: 17px; }
.navLabel { padding: 0 20px; font-size: 10px; text-transform: uppercase; color: #7e818f; margin-bottom: 10px; }
.personalLabel { margin-top: 30px; }
.nav { display: grid; }
.navItem { background: transparent; padding: 11px 20px; display: flex; align-items: center; gap: 11px; text-align: left; color: #bbbcc6; font-size: 13px; min-height: 42px; border-left: 3px solid transparent; }
.navItem svg { width: 16px; height: 16px; }
.navItem:hover { background: #242731; color: white; }
.navItem.active { background: #272b33; border-left-color: var(--accent); color: var(--accent); }
.navItem span { margin-left: auto; color: #afb2bd; font-size: 11px; }
.sideFoot { margin-top: auto; padding: 20px 23px 2px; display: flex; align-items: center; gap: 8px; color: #888c99; font-size: 11px; }
.statusDot { width: 6px; height: 6px; border-radius: 50%; background: #888c99; }
.statusDot.ready { background: var(--accent); }
.statusDot.error { background: var(--bad); }
.topbar { margin-left: 188px; height: 64px; background: #272a33; border-bottom: 1px solid #30333d; display: flex; align-items: center; gap: 15px; padding: 0 25px; }
.searchWrap { display: flex; background: #383b46; width: 520px; max-width: calc(100% - 52px); height: 35px; border: 1px solid #444754; border-radius: 3px; }
.searchWrap input { width: 100%; min-width: 0; padding: 7px 11px; border: 0; background: transparent; font-size: 12px; }
.searchWrap input::placeholder { color: #9e9fab; }
.searchButton { width: 40px; flex: 0 0 40px; background: transparent; color: #d3d4dc; display: grid; place-items: center; }
.searchButton:hover { color: var(--accent); }
.iconButton { width: 36px; height: 36px; display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; border-radius: 4px; background: transparent; color: #c2c4ce; }
.iconButton:hover { background: #3b3e48; color: white; }
.accountButton { margin-left: auto; border: 1px solid #535763; border-radius: 50%; width: 31px; height: 31px; flex-basis: 31px; }
.mobileBrand, .menuButton, .menuShade { display: none; }
.portal { margin-left: 188px; padding: 23px 25px 16px; }
.shelf { margin-bottom: 27px; }
.sectionHead { display: flex; align-items: center; gap: 15px; margin-bottom: 13px; min-height: 30px; }
.sectionHead h2 { font-size: 21px; font-weight: 500; }
.sectionHead .shelfActions { display: flex; gap: 4px; margin-left: auto; }
.sectionHead .iconButton { width: 27px; height: 27px; flex-basis: 27px; background: #2a2d36; color: #9b9eab; }
.posterGrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 21px 14px; }
.posterRail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 84px) / 7); gap: 14px; overflow-x: auto; padding: 2px 2px 8px; margin: -2px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.posterRail::-webkit-scrollbar { display: none; }
.movieCard { min-width: 0; position: relative; scroll-snap-align: start; }
.posterButton { padding: 0; display: block; position: relative; width: 100%; aspect-ratio: 2 / 3; background: #2a2d37; border-radius: 3px; overflow: hidden; }
.posterButton img { width: 100%; height: 100%; display: block; object-fit: cover; transition: opacity .15s; }
.posterFallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 15px; color: #9b9daa; }
.posterFallback svg { width: 31px; height: 31px; }
.posterFallback span { font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.posterButton img + .posterFallback, .detailPoster img + .posterFallback { display: none; }
.posterButton.failed img, .detailPoster.failed img { display: none; }
.posterButton.failed .posterFallback, .detailPoster.failed .posterFallback { display: flex; }
.posterButton::after { content: ''; position: absolute; inset: 0; background: #050608; opacity: 0; transition: opacity .15s; }
.posterButton:hover::after, .posterButton:focus-visible::after { opacity: .4; }
.posterPlay { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.posterPlay svg { width: 38px; height: 38px; fill: white; stroke-width: 1.2; }
.posterButton:hover .posterPlay, .posterButton:focus-visible .posterPlay { opacity: 1; }
.cardBookmark { position: absolute; z-index: 3; right: 6px; top: 6px; width: 28px; height: 28px; background: #12141be6; border-radius: 3px; opacity: 0; }
.movieCard:hover .cardBookmark, .movieCard:focus-within .cardBookmark, .cardBookmark.saved { opacity: 1; }
.saved { color: #dcc67a !important; }
.rating { position: absolute; top: 6px; left: 6px; z-index: 2; color: #fff; background: #5d8146ee; border-radius: 2px; padding: 1px 5px; font-size: 10px; line-height: 18px; font-weight: 600; }
.movieTitle { margin-top: 8px; display: block; background: transparent; padding: 0; font-size: 12px; font-weight: 500; text-align: left; width: 100%; line-height: 1.4; }
.movieTitle span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; overflow-wrap: anywhere; }
.movieTitle:hover { color: var(--accent); }
.cardMeta { color: #898d9b; font-size: 10px; margin-top: 3px; display: flex; gap: 6px; min-height: 16px; white-space: nowrap; overflow: hidden; }
.cardMeta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pageHead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pageHead h1 { font-size: 23px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.pageHead span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 23px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.filters select { min-height: 35px; min-width: 145px; background: #2e313b; padding: 6px 27px 6px 11px; border: 1px solid #40434d; border-radius: 3px; font-size: 12px; }
.notice { border-left: 2px solid #cbbd79; padding: 10px 14px; margin-bottom: 20px; color: #cbbd79; background: #2d2d30; }
.notice.error { color: var(--bad); border-left-color: var(--bad); }
.empty { padding: 85px 15px; color: var(--muted); text-align: center; }
.empty svg { width: 34px; height: 34px; margin-bottom: 12px; }
.empty p { font-size: 14px; }
.loadMore { display: block; margin: 27px auto; padding: 9px 24px; border: 1px solid #414551; border-radius: 3px; background: #2d3039; font-size: 12px; }
.loadMore:hover { background: #393d45; }
.footer { margin-top: 30px; padding-top: 14px; border-top: 1px solid #30333d; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 10px; color: #747886; }
.footer a:hover { color: #b4b7c1; }
.skeletonPoster { aspect-ratio: 2 / 3; background: #2c2f38; border-radius: 3px; animation: pulse 1.5s infinite alternate; }
.skeletonLine { height: 9px; width: 70%; margin: 12px 0 7px; background: #30333d; }
@keyframes pulse { to { opacity: .5; } }
.movieDialog { position: fixed; width: min(940px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 32px; border: 1px solid #414550; border-radius: 6px; background: #242730; color: var(--ink); overflow-y: auto; }
.movieDialog::backdrop { background: #08090de0; }
.dialogClose { position: absolute; right: 10px; top: 10px; z-index: 5; }
.movieDetail { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 28px; }
.detailPoster { position: relative; aspect-ratio: 2 / 3; background: #2c3039; border-radius: 3px; overflow: hidden; align-self: start; }
.detailPoster img { width: 100%; height: 100%; object-fit: cover; }
.detailInfo { padding-right: 15px; }
.detailInfo h2 { font-size: 25px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; margin-bottom: 6px; }
.originalTitle { font-size: 13px; color: #8f94a2; margin-bottom: 14px; }
.movieFacts { display: flex; flex-wrap: wrap; gap: 6px 13px; font-size: 12px; color: #afb3c0; margin-bottom: 18px; }
.movieFacts .factRating { color: #a3c38b; }
.description { font-size: 13px; line-height: 1.75; color: #b7bbc7; max-height: 160px; overflow-y: auto; margin-bottom: 22px; overflow-wrap: anywhere; }
.detailActions { display: flex; gap: 12px; align-items: center; }
.playButton { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 37px; padding: 0 23px; background: var(--accent); color: #172111; border-radius: 3px; font-size: 13px; }
.playButton:hover { background: #a0c586; }
.playButton svg { width: 15px; height: 15px; fill: currentColor; }
.playerSection { margin-top: 25px; }
.playerStage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: max(160px, calc(100dvh - 210px)); background: #08090b; }
.playerSection video { display: block; width: 100%; height: 100%; object-fit: contain; background: #08090b; }
.playerStatus { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #08090bbf; pointer-events: none; padding: 25px; text-align: center; font-size: 13px; color: #d4d8df; }
.playerStatus.failed { pointer-events: auto; }
#retryPlayback:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.playerStatus svg { display: none; width: 26px; height: 26px; color: var(--accent); }
.playerStatus.loading svg { display: block; animation: player-spin 1.2s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.playerMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 9px; font-size: 12px; color: #a6acba; }
.playerMeta span { flex: 1; min-width: 160px; }
.playerMeta select { background: #353944; border: 1px solid #494d58; border-radius: 3px; max-width: 200px; padding: 6px; }
.movieDialog.playing .movieDetail { grid-template-columns: minmax(0, 1fr); }
.movieDialog.playing { width: min(1120px, calc(100% - 40px)); padding: 20px; }
.movieDialog.playing .detailPoster, .movieDialog.playing .description, .movieDialog.playing .originalTitle, .movieDialog.playing .detailActions { display: none; }
.movieDialog.playing .movieFacts { margin: 6px 0 0; font-size: 11px; }
.movieDialog.playing .detailInfo h2 { font-size: 17px; padding-right: 24px; margin: 0; }
.movieDialog.playing .playerSection { margin-top: 14px; }
.playbackControls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.movieDialog.playing .playbackControls { margin-top: 0; padding-top: 10px; border-top: none; }
.playbackField { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 0 1 120px; }
.playbackField span { color: var(--muted); font-size: 11px; }
.playbackField select, #videoFile { width: 100%; min-width: 0; height: 34px; border: 1px solid #3d424d; border-radius: 3px; background: #2c3039; padding: 5px 25px 5px 9px; font-size: 12px; text-overflow: ellipsis; }
#videoFile { width: auto; max-width: 180px; }
#reloadPlayer { margin-left: auto; }
.episodeField { flex: 1 1 220px; }
.audioField { flex: 1 1 190px; max-width: 330px; }
.audioField svg { width: 16px; height: 16px; color: var(--muted); }
.episodeSteps { display: flex; gap: 2px; height: 36px; }
@media (max-width: 480px) { .playbackField { flex-basis: 105px; } .episodeField { flex: 1 1 150px; } .audioField { flex: 1 1 150px; max-width: none; } .episodeSteps { margin-left: auto; } .movieDialog.playing { width: calc(100% - 20px); padding: 18px 12px 12px; } .playerStage { max-height: max(160px, calc(100dvh - 290px)); } }
@media (min-width: 1500px) { .posterGrid { grid-template-columns: repeat(9, minmax(0, 1fr)); } .posterRail { grid-auto-columns: calc((100% - 112px) / 9); } }
@media (max-width: 1100px) { .sidebar { width: 165px; } .portal, .topbar { margin-left: 165px; } .brand { font-size: 19px; } .navItem { padding-left: 15px; } .posterGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .posterRail { grid-auto-columns: calc((100% - 56px) / 5); } }
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .15s; width: 210px; padding-top: 22px; pointer-events: none; }
  .sidebar.open { transform: none; pointer-events: auto; }
  .menuShade { display: block; position: fixed; inset: 0; background: #06070ca6; z-index: 25; }
  .topbar { margin-left: 0; height: 58px; padding: 0 15px; gap: 10px; }
  .menuButton { display: inline-flex; flex-basis: 26px; width: 26px; }
  .mobileBrand { display: block; font-weight: 700; font-size: 17px; }
  .searchWrap { margin-left: auto; width: 330px; max-width: 100%; min-width: 0; }
  .accountButton { display: inline-flex; margin-left: auto; }
  .portal { margin-left: 0; padding: 20px 16px 14px; }
  .posterGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; }
  .posterRail { grid-auto-columns: calc((100% - 36px) / 4); gap: 12px; }
  .sectionHead h2 { font-size: 19px; }
  .cardBookmark { opacity: 1; }
  .filters select { min-width: 0; flex: 1 1 120px; }
  .movieDialog { padding: 30px 21px 20px; width: calc(100% - 28px); max-height: calc(100dvh - 28px); }
  .movieDetail { grid-template-columns: 125px minmax(0, 1fr); gap: 19px; }
  .detailInfo { padding-right: 0; }
  .detailInfo h2 { font-size: 20px; padding-right: 10px; }
  .description { font-size: 12px; max-height: 150px; }
}
@media (max-width: 480px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: 100px; padding: 12px 16px; gap: 9px; }
  .searchWrap { order: 3; width: 100%; height: 33px; }
  .mobileBrand { margin-left: 3px; }
  .portal { padding-top: 17px; }
  .posterGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .posterRail { grid-auto-columns: calc((100% - 26px) / 3.15); gap: 10px; }
  .movieTitle { font-size: 11px; }
  .sectionHead h2 { font-size: 18px; }
  .sectionHead { gap: 8px; }
  .sectionHead .shelfActions { gap: 3px; }
  .cardMeta { font-size: 9px; }
  .filters select { flex-basis: 100px; }
  .pageHead h1 { font-size: 21px; }
  .movieDetail { grid-template-columns: 95px minmax(0, 1fr); gap: 14px; }
  .detailInfo h2 { font-size: 18px; }
  .originalTitle { font-size: 11px; }
  .movieFacts { font-size: 11px; gap: 4px 8px; margin-bottom: 12px; }
  .description { font-size: 12px; max-height: 190px; }
  .playButton { padding: 0 13px; font-size: 12px; }
  .detailActions { gap: 5px; }
  .movieDialog { padding: 34px 16px 18px; }
  .playerMeta { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
