:root {
  color-scheme: dark;
  --bg: #02070c;
  --panel: rgba(5, 16, 27, 0.965);
  --panel-2: rgba(13, 31, 47, 0.94);
  --line: rgba(176, 217, 237, 0.2);
  --muted: #9db4c4;
  --text: #f7fbff;
  --aqua: #62f0d2;
  --blue: #37a9ff;
  --focus: #ffffff;
  --danger: #ff6d7a;
  --row-height: 76px;
  font-family: "LG Smart UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  cursor: default;
}

button, input, select { font: inherit; }
button { color: inherit; }

.app {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(31, 115, 164, 0.24), transparent 32%),
    radial-gradient(circle at 25% 78%, rgba(32, 154, 136, 0.16), transparent 38%),
    #02070c;
}

.app.is-web-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--web-preview-scale, 1));
  transform-origin: center center;
}
.app.is-web-preview .topbar { z-index: 12; }
.app.is-web-preview.is-movie-catalog .category-rail,
.app.is-web-preview.is-movie-catalog .category-list { overflow-x: auto; }
.app.is-web-preview.is-movie-catalog .category-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(98,240,210,.55) transparent;
}
.app.is-web-preview.is-movie-catalog .category-rail::-webkit-scrollbar { height: 7px; }
.app.is-web-preview.is-movie-catalog .category-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(98,240,210,.55);
}

.player,
.video-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player {
  z-index: 1;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-backdrop {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 119, 173, 0.26), transparent 38%),
    linear-gradient(135deg, #071725, #02070c 68%);
}

.app:not(.has-video) .player { opacity: 0; }

.subtitle-overlay {
  position: absolute;
  z-index: 5;
  left: 12%;
  right: 12%;
  bottom: 72px;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 3px 4px #000, 0 0 12px #000, 0 0 22px #000;
  pointer-events: none;
}
.subtitle-overlay[hidden] { display: none; }
.show-movie-controls .subtitle-overlay { bottom: 258px; }
.subtitle-overlay[data-subtitle-size="small"] { font-size: 30px; }
.subtitle-overlay[data-subtitle-size="medium"] { font-size: 38px; }
.subtitle-overlay[data-subtitle-size="large"] { font-size: 48px; }
.subtitle-overlay[data-subtitle-size="xlarge"] { font-size: 58px; }
.subtitle-overlay[data-subtitle-color="white"] { color: #fff; }
.subtitle-overlay[data-subtitle-color="yellow"] { color: #ffd84d; }
.subtitle-overlay[data-subtitle-color="cyan"] { color: #72efff; }

.stage-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 5, 10, 0.72), transparent 52%), linear-gradient(0deg, rgba(0, 5, 10, 0.72), transparent 42%);
  transition: opacity 180ms ease;
}

.is-panel-open .stage-shade,
.show-hud .stage-shade { opacity: 1; }

.topbar {
  position: absolute;
  z-index: 4;
  top: 52px;
  left: 64px;
  right: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.show-hud .topbar,
.is-panel-open .topbar,
.app:not(.has-video) .topbar { opacity: 1; transform: translateY(0); }
.is-panel-open .topbar .brand { opacity: 0; }

.brand { display: flex; align-items: center; gap: 18px; }
.brand-icon { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; box-shadow: 0 12px 36px rgba(0,0,0,.35); }
.app.is-web-preview .brand-icon,
.app.is-web-preview .setup-brand img {
  transform: rotate(90deg);
  transform-origin: center;
}
.brand-kicker, .eyebrow { color: var(--aqua); font-weight: 800; letter-spacing: .19em; font-size: 16px; }
.brand-title { margin-top: 5px; font-weight: 750; font-size: 30px; }
.clock-block { text-align: right; text-shadow: 0 2px 12px #000; }
.clock-block time { display: block; font-size: 42px; font-weight: 800; }
.clock-block span { display: block; margin-top: 4px; color: #d3e2eb; font-size: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 24px; pointer-events: auto; }
.web-settings-button {
  min-width: 154px;
  height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 2px solid rgba(255,255,255,.42);
  border-radius: 18px;
  background: rgba(5,22,35,.9);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.web-settings-button[hidden] { display: none; }
.web-settings-icon { color: var(--aqua); font-size: 28px; line-height: 1; }
.web-settings-button:hover,
.web-settings-button:focus {
  outline: 0;
  border-color: #fff;
  background: rgba(22,55,73,.96);
  box-shadow: 0 0 0 5px rgba(98,240,210,.2), 0 14px 30px rgba(0,0,0,.34);
  transform: scale(1.035);
}

.now-playing {
  position: absolute;
  z-index: 4;
  left: 72px;
  right: 72px;
  bottom: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.show-hud .now-playing { opacity: 1; transform: translateY(0); }
.is-panel-open .now-playing { opacity: 0; }
.show-movie-controls .now-playing { bottom: 270px; }
.channel-number { position: relative; min-width: 76px; font-size: 54px; font-weight: 300; color: var(--aqua); }
.channel-number .movie-cover-placeholder { display: none; }
.channel-number.is-live-logo {
  flex: 0 0 112px;
  width: 112px;
  height: 88px;
  min-width: 112px;
  border: 2px solid rgba(255,255,255,.48);
  border-radius: 18px;
  background: rgba(5,16,27,.82);
  box-shadow: 0 12px 32px rgba(0,0,0,.42);
}
.channel-number.is-live-logo .now-playing-cover {
  padding: 8px;
  border-radius: 16px;
  object-fit: contain;
}
.channel-number.is-live-logo #channelNumberText {
  position: absolute;
  z-index: 2;
  right: -12px;
  bottom: -11px;
  min-width: 48px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.76);
  border-radius: 18px;
  background: #0b2737;
  color: var(--aqua);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 5px 18px rgba(0,0,0,.5);
}
.channel-number.is-movie-cover {
  flex: 0 0 86px;
  width: 86px;
  height: 116px;
  min-width: 86px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.52);
  border-radius: 13px;
  background: linear-gradient(145deg, #18384d, #07131d);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.channel-number.is-movie-cover .movie-cover-placeholder { display: block; }
.now-playing-cover { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.channel-number.has-cover .movie-cover-placeholder,
.movie-control-cover-frame.has-cover .movie-cover-placeholder,
.movie-detail-poster-frame.has-cover .movie-cover-placeholder { display: none; }
.movie-cover-placeholder { position: absolute; inset: 0; display: block; }
.movie-cover-placeholder::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 27%;
  bottom: 27%;
  border: 3px solid rgba(98,240,210,.6);
  border-radius: 7px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(98,240,210,.18) 9px 13px);
}
.movie-cover-placeholder::after {
  content: "";
  position: absolute;
  left: 41%;
  top: 40%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255,255,255,.76);
}
.now-copy { flex: 1; min-width: 0; }
.now-copy h1 { margin: 0; font-size: 48px; line-height: 1.05; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-shadow: 0 3px 20px #000; }
.now-copy p { margin: 9px 0 0; overflow: hidden; color: #d2e2eb; font-size: 22px; text-overflow: ellipsis; text-shadow: 0 2px 16px #000; white-space: nowrap; }
.icon-button { width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(5,16,27,.64); font-size: 42px; pointer-events: auto; }
.icon-button.is-active { color: #ffd45a; }

.movie-controls {
  position: absolute;
  z-index: 6;
  left: 72px;
  right: 72px;
  bottom: 62px;
  padding: 25px 30px 27px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: rgba(3, 13, 22, .92);
  box-shadow: 0 22px 70px rgba(0,0,0,.52), 0 0 0 4px rgba(98,240,210,.13);
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.show-movie-controls .movie-controls { opacity: 1; transform: translateY(0); }
.movie-control-cover-frame {
  position: relative;
  width: 94px;
  height: 132px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 12px;
  background: linear-gradient(145deg, #18384d, #07131d);
}
.movie-control-cover { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.movie-controls-main { min-width: 0; }
.movie-controls-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.movie-controls-head strong { display: block; max-width: 1000px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 27px; }
.movie-controls-head span { display: block; margin-top: 5px; color: var(--aqua); font-size: 16px; font-weight: 800; }
.movie-controls-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.movie-audio-button {
  min-width: 190px;
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 2px solid rgba(255,255,255,.46);
  border-radius: 15px;
  background: rgba(255,255,255,.09);
  color: #fff;
  text-align: left;
  pointer-events: auto;
}
.movie-audio-button[hidden] { display: none; }
.movie-audio-button:focus, .movie-audio-button:hover { outline: 0; border-color: #fff; background: rgba(98,240,210,.16); box-shadow: 0 0 0 4px rgba(98,240,210,.13); }
.movie-audio-button .movie-audio-icon { margin: 0; color: var(--aqua); font-size: 34px; line-height: 1; }
.movie-audio-button span { margin: 0; }
.movie-audio-button small { display: block; color: #bcd0dc; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.movie-audio-button strong { max-width: 155px; margin-top: 3px; font-size: 18px; }
.movie-controls-hint {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #c6d6df;
  font: inherit;
  font-size: 16px;
  white-space: nowrap;
  pointer-events: auto;
}
.movie-controls-hint:focus, .movie-controls-hint:hover { outline: 0; border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.1); color: #fff; }
.movie-timeline-row { margin-top: 22px; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 17px; }
.movie-timeline-row time { color: #edf7fb; font-size: 18px; font-variant-numeric: tabular-nums; }
.movie-timeline-row time:last-child { text-align: right; }
.movie-timeline { height: 12px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.2); }
.movie-progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), #52b8ff); box-shadow: 0 0 18px rgba(98,240,210,.7); transition: width 120ms linear; }

.audio-track-modal { z-index: 45; background: rgba(0,6,12,.82); }
.audio-track-card { width: 900px; max-height: 940px; padding: 42px; overflow-y: auto; }
.audio-track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.audio-track-head h2 { margin-top: 8px; }
.audio-track-head p { max-width: 590px; margin: 10px 0 0; overflow: hidden; color: #bcd0dc; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.audio-track-list { margin-top: 28px; display: grid; gap: 12px; }
.audio-track-row {
  width: 100%;
  min-height: 82px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  color: #fff;
  text-align: left;
}
.audio-track-row:focus, .audio-track-row:hover { outline: 0; border-color: #fff; background: rgba(255,255,255,.13); }
.audio-track-row.is-active { border-color: rgba(98,240,210,.72); background: rgba(98,240,210,.11); }
.audio-track-index { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--aqua); font-size: 18px; font-weight: 850; }
.audio-track-copy strong, .audio-track-copy small { display: block; }
.audio-track-copy strong { font-size: 21px; }
.audio-track-copy small { margin-top: 4px; color: var(--muted); font-size: 14px; }
.audio-track-check { color: var(--aqua); font-size: 28px; text-align: center; }
.subtitle-style-settings { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.subtitle-style-settings[hidden] { display: none; }
.subtitle-style-settings h3 { margin: 0 0 18px; color: #fff; font-size: 22px; }
.subtitle-setting-row { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 16px; margin-top: 12px; }
.subtitle-setting-row > span { color: var(--muted); font-size: 17px; font-weight: 750; }
.subtitle-option-group { display: flex; flex-wrap: wrap; gap: 10px; }
.subtitle-option-button {
  min-height: 48px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}
.subtitle-option-button:focus, .subtitle-option-button:hover { outline: 0; border-color: #fff; background: rgba(255,255,255,.15); }
.subtitle-option-button.is-active { border-color: var(--aqua); background: rgba(98,240,210,.14); box-shadow: 0 0 0 3px rgba(98,240,210,.1); }
.subtitle-color-swatch { width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.6); }
.subtitle-color-swatch.is-white { background: #fff; }
.subtitle-color-swatch.is-yellow { background: #ffd84d; }
.subtitle-color-swatch.is-cyan { background: #72efff; }
.audio-track-hint { margin: 22px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

.browser-panel {
  position: absolute;
  z-index: 10;
  inset: 0 auto 0 0;
  width: 950px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: 30px 0 90px rgba(0,0,0,.46);
  transform: translateX(-103%);
  transition: transform 230ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.is-panel-open .browser-panel { transform: translateX(0); }
.is-movie-catalog .browser-panel { width: 100%; border-right: 0; box-shadow: none; }
.panel-head { height: 176px; padding: 27px 44px 24px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.panel-title-block { min-width: 0; }
.panel-title-row { min-width: 0; display: flex; align-items: baseline; gap: 20px; }
.panel-head h2 { flex: 0 1 auto; min-width: 0; margin: 8px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 38px; }
.catalog-count { flex: 0 0 auto; color: var(--muted); font-size: 18px; white-space: nowrap; }
.content-switch { display: flex; align-items: center; gap: 9px; }
.content-switch-button {
  height: 46px;
  padding: 0 19px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}
.content-switch-button.is-current { background: rgba(98,240,210,.14); color: var(--aqua); }
.content-switch-button.is-selected, .content-switch-button:focus {
  outline: 0;
  border-color: #fff;
  background: rgba(255,255,255,.15);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(98,240,210,.12);
}
.panel-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 285px 1fr; }
.category-rail { min-height: 0; padding: 22px 16px; border-right: 1px solid var(--line); overflow: hidden; }
.rail-action, .category-button {
  width: 100%; height: 64px; margin: 0 0 8px; padding: 0 18px; display: flex; align-items: center; gap: 15px;
  border: 2px solid transparent; border-radius: 14px; background: transparent; color: #c8d8e3; text-align: left; font-size: 20px;
}
.rail-icon { width: 28px; text-align: center; color: var(--aqua); font-size: 25px; }
.movie-sort-control[hidden] { display: none; }
.movie-history-button[hidden] { display: none; }
.movie-history-button .rail-icon { color: #7fe7ff; }
.movie-history-button[data-special="watched"] .rail-icon { color: var(--aqua); }
.movie-sort-control .rail-icon { flex: 0 0 auto; color: #ffd45a; }
.movie-sort-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: #c8d8e3;
}
.movie-sort-caption { flex: 0 0 auto; color: #dce9f0; font-weight: 800; }
.movie-sort-select-shell { position: relative; display: block; }
.movie-sort-select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--aqua);
  border-bottom: 3px solid var(--aqua);
  box-sizing: border-box;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.movie-sort-select {
  height: 42px;
  width: 158px;
  padding: 0 38px 0 13px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(176,217,237,.28);
  border-radius: 11px;
  outline: 0;
  background: rgba(255,255,255,.075);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.movie-sort-select option { background: #0b1a26; color: #fff; }
.movie-sort-then { flex: 0 0 auto; color: var(--muted); font-size: 14px; font-weight: 900; text-transform: uppercase; }
.movie-sort-secondary-select { width: 158px; }
.movie-sort-control:focus-within,
.movie-sort-control.is-selected {
  border-color: var(--focus);
  background: rgba(255,255,255,.13);
  box-shadow: 0 0 0 3px rgba(98,240,210,.12);
}
.movie-sort-control:focus-within .movie-sort-select,
.movie-sort-select.is-selected { border-color: var(--aqua); background: rgba(98,240,210,.12); }
.rail-action.is-current, .category-button.is-current { background: rgba(63, 185, 216, .14); color: #fff; }
.rail-action.is-selected, .category-button.is-selected { border-color: var(--focus); background: rgba(255,255,255,.13); color: #fff; box-shadow: 0 0 0 3px rgba(98,240,210,.12); }
.rail-divider { height: 1px; margin: 14px 10px; background: var(--line); }
.category-list { height: 555px; overflow: hidden; }
.catalog-category-picker[hidden] { display: none; }
.catalog-category-picker { min-width: 0; align-items: center; gap: 10px; }
.catalog-category-picker > label { flex: 0 0 auto; color: #dce9f0; font-size: 17px; font-weight: 800; }
.catalog-category-select-shell { position: relative; display: block; min-width: 0; }
.catalog-category-select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--aqua);
  border-bottom: 3px solid var(--aqua);
  box-sizing: border-box;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.catalog-category-select {
  width: 230px;
  height: 46px;
  padding: 0 40px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(176,217,237,.28);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,.075);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.catalog-category-select option { background: #0b1a26; color: #fff; }
.catalog-category-picker:focus-within .catalog-category-select,
.catalog-category-picker.is-selected .catalog-category-select {
  border-color: #fff;
  background: rgba(98,240,210,.13);
  box-shadow: 0 0 0 3px rgba(98,240,210,.12);
}
.movie-year-picker[hidden],
.is-movie-catalog .movie-year-picker[hidden] { display: none; }
.movie-year-picker { min-width: 0; align-items: center; gap: 10px; }
.movie-year-picker > label { flex: 0 0 auto; color: #dce9f0; font-size: 17px; font-weight: 800; }
.movie-year-select-shell { position: relative; display: block; }
.movie-year-select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--aqua);
  border-bottom: 3px solid var(--aqua);
  box-sizing: border-box;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.movie-year-select {
  width: 142px;
  height: 46px;
  padding: 0 38px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(176,217,237,.28);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,.075);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.movie-year-select option { background: #0b1a26; color: #fff; }
.movie-year-picker:focus-within .movie-year-select,
.movie-year-picker.is-selected .movie-year-select {
  border-color: #fff;
  background: rgba(98,240,210,.13);
  box-shadow: 0 0 0 3px rgba(98,240,210,.12);
}

.channel-pane { position: relative; min-width: 0; padding: 22px 22px 0; overflow: hidden; }
.search-wrap { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 2px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.055); }
.search-wrap:focus-within { border-color: #fff; background: rgba(255,255,255,.1); }
.search-icon,
.empty-search-icon,
.search-action-icon { position: relative; display: inline-block; color: var(--aqua); }
.search-icon { flex: 0 0 25px; width: 25px; height: 25px; }
.search-icon::before,
.empty-search-icon::before,
.search-action-icon::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  left: 2px;
  top: 2px;
  border: 3px solid currentColor;
  border-radius: 50%;
}
.search-icon::after,
.empty-search-icon::after,
.search-action-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 3px;
  left: 15px;
  top: 18px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 21px; }
.search-wrap input::placeholder { color: #8099aa; }
.search-key { border: 0; color: #d0a71b; background: transparent; font-size: 12px; letter-spacing: .08em; }
.channel-list { position: relative; height: 660px; margin-top: 15px; overflow: hidden; }
.channel-row {
  position: absolute; left: 0; right: 0; height: var(--row-height); padding: 7px 14px 7px 10px; display: grid; grid-template-columns: 62px 1fr 46px; gap: 15px; align-items: center;
  border: 2px solid transparent; border-radius: 15px; background: transparent; transition: background 90ms linear, border-color 90ms linear;
}
.channel-row.is-selected { border-color: #fff; background: rgba(255,255,255,.14); box-shadow: 0 0 0 3px rgba(98,240,210,.12); }
.channel-row.is-playing { background: rgba(44, 181, 165, .13); }
.channel-logo { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: rgba(255,255,255,.08); }
.channel-logo-fallback { display: flex; align-items: center; justify-content: center; color: var(--aqua); font-weight: 800; font-size: 18px; }
.channel-copy { min-width: 0; }
.channel-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 22px; }
.channel-copy small { display: block; margin-top: 5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.channel-fav { color: #ffd45a; font-size: 25px; text-align: center; }

.is-movie-catalog .panel-head { height: 142px; padding: 22px 48px 18px; }
.is-movie-catalog .panel-head h2 { margin-top: 5px; font-size: 34px; }
.is-movie-catalog .panel-title-row { max-width: 780px; }
.is-movie-catalog .panel-body { display: flex; flex-direction: column; }
.is-movie-catalog .category-rail {
  flex: 0 0 76px;
  min-height: 76px;
  padding: 10px 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.is-movie-catalog .rail-action,
.is-movie-catalog .category-button {
  flex: 0 0 auto;
  width: auto;
  height: 54px;
  margin: 0;
  padding: 0 17px;
  gap: 9px;
  font-size: 17px;
}
.is-movie-catalog .movie-sort-control {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 8px 0 13px;
  font-size: 17px;
}
.is-movie-catalog .rail-icon { width: 21px; font-size: 20px; }
.is-movie-catalog .rail-divider { flex: 0 0 1px; width: 1px; height: 36px; margin: 0 5px; }
.is-movie-catalog .category-list { display: none; }
.is-movie-catalog .catalog-category-picker { flex: 0 1 auto; display: flex; }
.is-movie-catalog .movie-year-picker { flex: 0 0 auto; display: flex; }
.is-movie-catalog .channel-pane { flex: 1; min-height: 0; padding: 15px 48px 0; }
.is-movie-catalog .search-wrap { width: 720px; height: 54px; }
.is-movie-catalog .channel-list {
  height: 668px;
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.movie-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 19px;
  background: #0a1823;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  transform: translateZ(0);
  transition: border-color 100ms linear, transform 100ms ease, box-shadow 100ms ease;
}
.movie-card.is-selected {
  z-index: 2;
  border-color: #fff;
  transform: scale(1.035);
  box-shadow: 0 0 0 4px rgba(98,240,210,.2), 0 18px 40px rgba(0,0,0,.5);
}
.movie-card.is-playing { border-color: var(--aqua); }
.movie-cover-wrap { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg, #143146, #06111a); }
.movie-cover { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter 150ms ease, opacity 150ms ease; }
.movie-card.is-watched .movie-cover { filter: grayscale(.42) saturate(.45) brightness(.68); opacity: .78; }
.movie-card.is-watched .movie-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3,12,18,.15);
  pointer-events: none;
}
.movie-card.is-selected.is-watched .movie-cover { filter: grayscale(.28) saturate(.58) brightness(.78); opacity: .86; }
.movie-cover-fallback { display: none; color: rgba(255,255,255,.32); font-size: 25px; font-weight: 900; letter-spacing: .2em; }
.movie-cover-wrap.is-missing .movie-cover-fallback { display: block; }
.movie-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 43%, rgba(2,8,13,.32) 57%, rgba(2,8,13,.97) 100%); }
.movie-card-copy { position: absolute; z-index: 1; left: 17px; right: 17px; bottom: 16px; text-shadow: 0 2px 10px #000; }
.movie-card-copy strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 20px; line-height: 1.12; }
.movie-card-copy small { display: block; margin-top: 7px; overflow: hidden; color: #c8d9e3; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.movie-card-favorite { position: absolute; z-index: 2; top: 12px; right: 13px; color: #ffd45a; font-size: 25px; text-shadow: 0 2px 8px #000; }
.movie-card-watchlist {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  max-width: 47%;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(127,231,255,.82);
  border-radius: 999px;
  background: rgba(3,35,49,.92);
  color: #8eecff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px #000;
  box-shadow: 0 4px 14px rgba(0,0,0,.38), 0 0 0 2px rgba(82,203,255,.08);
}
.movie-card-watchlist:empty { display: none; }
.movie-card.is-watchlisted { box-shadow: inset 0 0 0 2px rgba(98,208,255,.25), 0 12px 28px rgba(0,0,0,.28); }
.movie-card.is-selected.is-watchlisted { box-shadow: inset 0 0 0 2px rgba(98,208,255,.28), 0 0 0 4px rgba(98,240,210,.2), 0 18px 40px rgba(0,0,0,.5); }
.movie-card.is-watchlisted .movie-card-favorite { top: 49px; }
.movie-card.is-watchlisted .media-card-status { max-width: 47%; }
.media-card-status {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 58px);
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(2,9,15,.82);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card-status.is-watched { border-color: rgba(98,240,210,.75); background: rgba(2,24,25,.9); color: var(--aqua); box-shadow: 0 3px 13px rgba(0,0,0,.38); }
.media-card-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 7px; background: rgba(255,255,255,.18); }
.media-card-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), #48b8ff); box-shadow: 0 0 13px rgba(98,240,210,.72); }
.is-movie-catalog .panel-footer { padding: 0 48px; gap: 28px; }

.movie-detail {
  position: absolute;
  z-index: 25;
  inset: 0;
  overflow: hidden;
  background: #02070c;
}
.movie-detail[hidden] { display: none; }
.movie-detail-backdrop {
  position: absolute;
  inset: -38px;
  background-position: center;
  background-size: cover;
  opacity: .28;
  filter: blur(14px) saturate(.9);
  transform: scale(1.04);
}
.movie-detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,7,12,.98) 0%, rgba(2,7,12,.9) 42%, rgba(2,7,12,.58) 72%, rgba(2,7,12,.86) 100%),
    linear-gradient(0deg, rgba(2,7,12,.98), transparent 58%);
}
.movie-detail-close {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 58px;
  width: 66px;
  height: 66px;
  border: 2px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(5,16,27,.7);
  color: #fff;
  font-size: 42px;
  line-height: 1;
}
.movie-detail-layout {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 72px 118px 66px;
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}
.movie-detail-poster-frame {
  position: relative;
  width: 430px;
  height: 645px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.58);
  border-radius: 25px;
  background: linear-gradient(145deg, #18384d, #07131d);
  box-shadow: 0 32px 80px rgba(0,0,0,.58), 0 0 0 6px rgba(98,240,210,.1);
}
.movie-detail-poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.movie-detail-copy { min-width: 0; max-width: 1130px; }
.movie-detail-copy h2 {
  max-width: 1080px;
  margin: 14px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 62px;
  line-height: 1.04;
  text-overflow: ellipsis;
  text-shadow: 0 4px 24px rgba(0,0,0,.7);
}
.movie-detail-badges { min-height: 44px; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.movie-detail-badges span {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #e4f0f6;
  font-size: 17px;
  font-weight: 750;
}
.movie-detail-badges span[hidden] { display: none; }
.movie-detail-badges .is-rating { border-color: rgba(255,212,90,.5); color: #ffd45a; }
.movie-detail-badges .is-imdb { border-color: rgba(245,197,24,.72); background: rgba(245,197,24,.14); color: #f5c518; }
.movie-detail-badges .is-rotten { border-color: rgba(250,64,75,.7); background: rgba(250,64,75,.13); color: #ff8790; }
.movie-detail-badges .is-metacritic { border-color: rgba(67,170,255,.7); background: rgba(67,170,255,.13); color: #7cc5ff; }
.movie-detail-badges .is-progress { border-color: rgba(98,240,210,.5); color: var(--aqua); }

.field-hint { margin-left: 8px; color: var(--muted); font-size: .72em; font-weight: 600; }
.movie-detail-plot {
  max-width: 1080px;
  min-height: 112px;
  max-height: 185px;
  margin: 23px 0 0;
  overflow: hidden;
  color: #edf5f8;
  font-size: 25px;
  line-height: 1.46;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.movie-detail-credits { margin: 24px 0 0; }
.movie-detail-credits div { margin-top: 14px; display: grid; grid-template-columns: 118px 1fr; gap: 18px; }
.movie-detail-credits dt { color: var(--aqua); font-size: 18px; font-weight: 800; }
.movie-detail-credits dd {
  max-width: 920px;
  margin: 0;
  overflow: hidden;
  color: #d0dee6;
  font-size: 19px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movie-detail-videos {
  height: 120px;
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
}
.movie-detail-videos[hidden],
.movie-detail-video-card[hidden] { display: none; }
.movie-detail-video-card {
  flex: 0 0 355px;
  min-width: 0;
  height: 112px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.22);
  border-radius: 17px;
  background: rgba(7,25,38,.88);
  text-align: left;
  box-shadow: 0 13px 30px rgba(0,0,0,.24);
}
.movie-detail-video-card.is-review { background: linear-gradient(135deg, rgba(74,31,82,.9), rgba(8,28,41,.92)); }
.movie-detail-video-thumb {
  position: relative;
  flex: 0 0 156px;
  height: 88px;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(145deg, #17415b, #07131d);
}
.movie-detail-video-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); }
.movie-detail-video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.movie-detail-video-thumb img[hidden] { display: none; }
.movie-detail-video-thumb i {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(1,8,13,.7);
  color: #fff;
  font-size: 18px;
  font-style: normal;
  transform: translate(-50%, -50%);
}
.movie-detail-video-copy { min-width: 0; display: block; }
.movie-detail-video-copy small,
.movie-detail-video-copy strong,
.movie-detail-video-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movie-detail-video-copy small { color: var(--aqua); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.movie-detail-video-copy strong { margin-top: 7px; color: #fff; font-size: 18px; line-height: 1.15; }
.movie-detail-video-copy em { margin-top: 6px; color: #aebfca; font-size: 14px; font-style: normal; }
.movie-detail-video-card:focus {
  outline: 0;
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(98,240,210,.2), 0 13px 34px rgba(0,0,0,.34);
  transform: scale(1.025);
}
.movie-detail.has-detail-videos .movie-detail-copy h2 { margin-top: 9px; font-size: 54px; }
.movie-detail.has-detail-videos .movie-detail-badges { margin-top: 15px; }
.movie-detail.has-detail-videos .movie-detail-plot { min-height: 76px; max-height: 116px; margin-top: 15px; font-size: 21px; line-height: 1.35; }
.movie-detail.has-detail-videos .movie-detail-credits { margin-top: 12px; }
.movie-detail.has-detail-videos .movie-detail-credits div { margin-top: 7px; }
.movie-detail.has-detail-videos .movie-detail-actions { margin-top: 17px; }
.movie-detail.is-series .movie-detail-copy h2 { font-size: 54px; }
.movie-detail.is-series .movie-detail-plot { min-height: 82px; max-height: 112px; font-size: 22px; }
.movie-detail.is-series .movie-detail-credits { margin-top: 18px; }
.series-explorer { margin-top: 22px; }
.series-explorer[hidden] { display: none; }
.series-section-head { display: flex; align-items: center; justify-content: space-between; color: #fff; }
.series-section-head strong { font-size: 22px; }
.series-section-head span { color: var(--muted); font-size: 15px; }
.series-season-list { height: 52px; margin-top: 11px; display: flex; gap: 10px; overflow: hidden; }
.series-season-button {
  flex: 0 0 auto;
  min-width: 70px;
  height: 46px;
  padding: 0 17px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: #dceaf1;
  font-size: 17px;
  font-weight: 800;
}
.series-season-button.is-current { border-color: var(--aqua); background: rgba(98,240,210,.16); color: #fff; }
.series-episode-list { height: 136px; margin-top: 11px; display: flex; gap: 12px; overflow: hidden; }
.series-episode-card {
  position: relative;
  flex: 0 0 228px;
  height: 128px;
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 15px;
  background: linear-gradient(145deg, #173448, #07121b);
  text-align: left;
}
.series-episode-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.series-episode-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(2,7,12,.96) 100%); }
.series-episode-copy { position: absolute; z-index: 1; left: 13px; right: 13px; bottom: 11px; text-shadow: 0 2px 8px #000; }
.series-episode-copy strong, .series-episode-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.series-episode-copy strong { font-size: 16px; }
.series-episode-copy small { margin-top: 5px; color: #c6d7e0; font-size: 13px; }
.series-episode-progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.2); }
.series-episode-progress span { display: block; height: 100%; background: var(--aqua); }
.series-episode-watched {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(2,14,18,.86);
  color: var(--aqua);
  font-size: 10px;
  font-weight: 900;
}
.series-episode-empty { width: 100%; padding: 31px 22px; border: 1px dashed rgba(255,255,255,.2); border-radius: 14px; color: var(--muted); font-size: 17px; text-align: center; }
.series-season-button:focus,
.series-episode-card:focus {
  outline: 0;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(98,240,210,.18);
}
.movie-detail-actions { margin-top: 32px; display: flex; align-items: center; gap: 16px; }
.movie-detail.is-series .movie-detail-actions { margin-top: 20px; }
.movie-detail-actions button { min-width: 210px; }
.movie-detail-actions button[hidden] { display: none; }
.movie-detail-actions button:focus,
.movie-detail-close:focus {
  outline: 0;
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(98,240,210,.2), 0 12px 30px rgba(0,0,0,.34);
  transform: scale(1.035);
}

.movie-video-dialog {
  position: absolute;
  z-index: 38;
  inset: 0;
  padding: 28px 54px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(34,130,185,.22), transparent 38%),
    #010509;
}
.movie-video-dialog[hidden] { display: none; }
.movie-video-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr) 82px;
  gap: 14px;
}
.movie-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.movie-video-copy { min-width: 0; }
.movie-video-copy h2 {
  max-width: 1570px;
  margin: 6px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 35px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movie-video-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.movie-video-close {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(9,25,38,.9);
  color: #fff;
  font-size: 38px;
  line-height: 1;
}
.movie-video-frame-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.42);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0,0,0,.54), 0 0 0 5px rgba(98,240,210,.08);
}
.movie-video-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.movie-video-status {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(13,47,68,.96), rgba(1,5,9,.98) 70%);
  color: #fff;
  text-align: center;
}
.movie-video-status[hidden] { display: none; }
.movie-video-status strong { margin-top: 20px; font-size: 30px; }
.movie-video-status small { margin-top: 10px; color: #b7cbd7; font-size: 18px; }
.movie-video-dialog.has-error .movie-video-status { background: rgba(1,5,9,.97); }
.movie-video-dialog.has-error .movie-video-spinner { display: none; }
.movie-video-spinner {
  width: 58px;
  height: 58px;
  border: 6px solid rgba(255,255,255,.18);
  border-top-color: var(--aqua);
  border-radius: 50%;
  animation: movie-video-spin 900ms linear infinite;
}
@keyframes movie-video-spin { to { transform: rotate(360deg); } }
.movie-video-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.movie-video-footer button { min-width: 160px; height: 60px; }
.movie-video-footer .movie-video-seek-button {
  min-width: 196px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.movie-video-seek-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.movie-video-seek-icon text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
}
.movie-video-seek-button > span {
  color: inherit;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}
.movie-video-footer #movieVideoToggle { min-width: 270px; }
.movie-video-footer #movieVideoYoutube { min-width: 230px; }
.movie-video-footer > span { margin-left: auto; color: var(--muted); font-size: 16px; }
.movie-video-footer button:focus,
.movie-video-close:focus {
  outline: 0;
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(98,240,210,.2), 0 12px 30px rgba(0,0,0,.34);
  transform: scale(1.035);
}
.empty-state { position: absolute; inset: 160px 30px auto; text-align: center; color: var(--muted); }
.empty-state .empty-search-icon { width: 62px; height: 62px; color: #577286; }
.empty-state .empty-search-icon::before { width: 34px; height: 34px; left: 4px; top: 4px; border-width: 5px; }
.empty-state .empty-search-icon::after { width: 23px; height: 5px; left: 39px; top: 44px; }
.empty-state strong { display: block; margin-top: 12px; color: #e8f3f9; font-size: 25px; }
.empty-state small { display: block; margin-top: 8px; font-size: 17px; }

.live-epg {
  position: absolute;
  z-index: 27;
  inset: 0;
  pointer-events: none;
}
.live-epg[hidden] { display: none; }
.live-epg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,6,12,.92) 0%, rgba(0,6,12,.46) 55%, transparent 100%);
}
.live-epg-card {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 42px;
  height: 520px;
  padding: 34px 38px 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.48);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(12,31,46,.97), rgba(3,13,22,.985));
  box-shadow: 0 28px 100px rgba(0,0,0,.65), 0 0 0 5px rgba(98,240,210,.1);
  pointer-events: auto;
}
.live-epg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.live-epg-head h2 { margin: 8px 0 0; font-size: 38px; line-height: 1.08; }
.live-epg-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.live-epg-close {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  font-size: 38px;
  line-height: 1;
}
.live-epg-list { height: 286px; margin-top: 24px; overflow: hidden; }
.live-epg-row {
  min-height: 82px;
  margin-bottom: 10px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 20px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}
.live-epg-row.is-selected {
  border-color: #fff;
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 0 4px rgba(98,240,210,.12);
}
.live-epg-row.is-current { background: rgba(98,240,210,.12); }
.live-epg-time { color: #dceaf1; font-size: 20px; font-variant-numeric: tabular-nums; }
.live-epg-time strong { color: var(--aqua); }
.live-epg-copy { min-width: 0; }
.live-epg-copy strong, .live-epg-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-epg-copy strong { font-size: 22px; }
.live-epg-copy small { margin-top: 5px; color: var(--muted); font-size: 15px; }
.live-epg-status { color: var(--muted); font-size: 14px; font-weight: 850; text-align: right; }
.live-epg-row.is-current .live-epg-status { color: var(--aqua); }
.live-epg-empty {
  height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 18px;
  color: var(--muted);
  font-size: 20px;
  text-align: center;
}
.live-epg-footer {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #b8cad5;
  font-size: 15px;
}
.live-epg-close:focus { outline: 0; border-color: #fff; box-shadow: 0 0 0 4px rgba(98,240,210,.14); }

.panel-footer { height: 78px; padding: 0 34px; display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #aebfca; font-size: 15px; }
.help-action {
  min-width: 0;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}
.help-action:hover,
.help-action:focus { outline: 0; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); color: #fff; }
.pc-key { display: none; }
.app.is-web-preview .pc-key { display: inline-block; }
.app.is-web-preview .tv-key { display: none; }
kbd { min-width: 29px; padding: 5px 8px; display: inline-block; border: 1px solid rgba(255,255,255,.35); border-radius: 7px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; text-align: center; }
.key-dot { display: inline-block; width: 13px; height: 13px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.key-dot.green { background: #49db9b; } .key-dot.blue { background: #3baaff; } .key-dot.yellow { background: #f2c744; }

.loading-state, .error-state {
  position: absolute; z-index: 8; left: 50%; top: 50%; width: 560px; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; text-align: center;
}
.loading-state[hidden], .error-state[hidden] { display: none; }
.loader { width: 58px; height: 58px; margin-bottom: 24px; border: 5px solid rgba(255,255,255,.14); border-top-color: var(--aqua); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state strong, .error-state strong { font-size: 29px; }
.loading-state span, .error-state span { margin-top: 10px; color: var(--muted); font-size: 19px; line-height: 1.4; }
.web-playback-start { min-width: 310px; height: 66px; margin-top: 24px; padding: 0 28px; font-size: 20px; }
.web-playback-start[hidden] { display: none; }
.loading-state.is-awaiting-play .loader { display: none; }
.loading-state.is-awaiting-play strong { font-size: 33px; }
.error-mark { width: 64px; height: 64px; margin-bottom: 22px; display: grid; place-items: center; border: 3px solid var(--danger); border-radius: 50%; color: var(--danger); font-size: 38px; font-weight: 800; }

.modal { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; padding: 70px; background: rgba(0,6,12,.78); backdrop-filter: blur(18px); }
.modal[hidden] { display: none; }
.modal-card { width: 840px; max-height: 930px; padding: 48px; overflow: hidden; border: 1px solid rgba(172,221,242,.26); border-radius: 32px; background: linear-gradient(145deg, rgba(17,42,61,.98), rgba(5,16,27,.99)); box-shadow: 0 35px 110px rgba(0,0,0,.55); }
.setup-modal { padding: 34px; }
.setup-modal .modal-card { width: 1120px; max-height: 1010px; padding: 32px 38px; overflow-y: auto; }
.setup-brand { display: flex; align-items: center; gap: 22px; }
.setup-brand img { width: 68px; height: 68px; border-radius: 20px; object-fit: cover; }
.modal-card h2 { margin: 8px 0 0; font-size: 42px; }
.setup-intro { margin: 16px 0 20px; color: #c0d1db; font-size: 18px; line-height: 1.4; }
.provider-manager { margin-bottom: 22px; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(0,7,13,.32); }
.provider-manager-head, .provider-form-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.provider-manager-head strong, .provider-form-head strong { color: #fff; font-size: 20px; }
.provider-manager-head small, .provider-form-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.provider-add, .provider-edit { border: 2px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; font-weight: 800; }
.provider-add { height: 48px; padding: 0 18px; font-size: 16px; }
.provider-list { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.provider-card { min-height: 76px; padding: 12px 13px 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid transparent; border-radius: 15px; background: rgba(255,255,255,.06); }
.provider-card.is-editing { border-color: rgba(98,240,210,.62); background: rgba(98,240,210,.08); }
.provider-check { min-width: 0; flex: 1; display: flex; align-items: center; gap: 13px; cursor: pointer; }
.provider-check input, .provider-merge-toggle input { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; accent-color: var(--aqua); }
.provider-check span { min-width: 0; }
.provider-check strong, .provider-check small, .provider-merge-toggle strong, .provider-merge-toggle small { display: block; }
.provider-check strong { overflow: hidden; color: #fff; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.provider-check small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.provider-edit { height: 42px; padding: 0 14px; font-size: 14px; }
.provider-add:focus, .provider-edit:focus { outline: 3px solid #fff; outline-offset: 2px; }
.provider-empty { grid-column: 1 / -1; padding: 18px; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.045); text-align: center; }
.provider-merge-toggle { display: flex; align-items: center; gap: 14px; color: #fff; cursor: pointer; }
.provider-merge-toggle strong { font-size: 17px; }
.provider-merge-toggle small { margin-top: 3px; color: var(--muted); font-size: 14px; font-weight: 400; }
.provider-form-head { margin-bottom: 12px; }
.setup-modal form label { display: block; color: #cad9e2; font-size: 17px; font-weight: 700; }
.setup-modal input:not([type="checkbox"]), .setup-modal select { width: 100%; height: 56px; margin-top: 7px; padding: 0 16px; border: 2px solid rgba(255,255,255,.2); border-radius: 13px; outline: 0; background: rgba(1,8,14,.62); color: #fff; font-size: 19px; }
.setup-modal input:not([type="checkbox"]):focus, .setup-modal select:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(98,240,210,.14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0; }
.credentials-row { margin-bottom: 14px; }
.field-hint { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.form-error { margin-top: 20px; padding: 14px 17px; border-radius: 12px; background: rgba(255, 75, 91, .16); color: #ffabb3; font-size: 17px; }
.form-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 14px; }
.primary-button, .secondary-button { min-width: 180px; height: 62px; padding: 0 25px; border: 2px solid transparent; border-radius: 14px; font-weight: 800; font-size: 19px; }
.primary-button { background: var(--aqua); color: #04201b; }
.secondary-button { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.06); color: #fff; }
.primary-button:focus, .secondary-button:focus, .settings-row:focus { outline: 3px solid #fff; outline-offset: 3px; }

.settings-card { width: 720px; }
.settings-card h2 { margin-bottom: 28px; }
.settings-row { width: 100%; min-height: 92px; margin-bottom: 12px; padding: 17px 22px; display: flex; align-items: center; justify-content: space-between; border: 2px solid transparent; border-radius: 16px; background: rgba(255,255,255,.07); text-align: left; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { font-size: 21px; }
.settings-row small { margin-top: 5px; color: var(--muted); font-size: 15px; }
.settings-row b { color: var(--aqua); font-size: 34px; }
.settings-refresh-icon { width: 38px; height: 38px; display: grid; place-items: center; }
.settings-refresh-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.settings-row:hover, .settings-row:focus { border-color: #fff; background: rgba(255,255,255,.13); }

.actions-modal {
  place-items: stretch end;
  padding: 0;
  background: rgba(0, 6, 12, .5);
  backdrop-filter: blur(8px);
}
.actions-card {
  width: 570px;
  max-height: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 58px 44px 42px;
  border-width: 0 0 0 1px;
  border-radius: 34px 0 0 34px;
  box-shadow: -30px 0 100px rgba(0, 0, 0, .58);
}
.actions-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.actions-card-head h2 { margin-top: 9px; font-size: 46px; }
.actions-close {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 38px;
  line-height: 1;
}
.actions-channel { min-height: 48px; margin: 20px 0 28px; color: var(--muted); font-size: 18px; line-height: 1.4; }
.action-row {
  width: 100%;
  min-height: 104px;
  margin-bottom: 14px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 58px 1fr 26px;
  align-items: center;
  gap: 16px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  text-align: left;
}
.action-row-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(98, 240, 210, .13);
  color: var(--aqua);
  font-size: 30px;
}
.search-action-icon::before { width: 18px; height: 18px; left: 12px; top: 10px; border-width: 3px; }
.search-action-icon::after { width: 13px; height: 3px; left: 30px; top: 31px; }
.action-row strong, .action-row small { display: block; }
.action-row strong { font-size: 21px; }
.action-row small { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.25; }
.action-row b { color: var(--aqua); font-size: 34px; }
.action-row:hover, .action-row:focus, .actions-close:hover, .actions-close:focus {
  outline: 0;
  border-color: #fff;
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 0 4px rgba(98,240,210,.12);
}
.action-row:disabled { opacity: .45; }
.action-row[hidden] { display: none; }
.actions-footer-hint { margin: auto 0 0; padding-top: 24px; color: var(--muted); font-size: 16px; text-align: center; }

.toast { position: absolute; z-index: 50; left: 50%; bottom: 65px; max-width: 850px; padding: 16px 25px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(4,14,24,.94); color: #fff; font-size: 18px; opacity: 0; transform: translate(-50%, 24px); pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.quick-help { position: absolute; z-index: 4; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 17px; color: #c3d3dc; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 180ms ease; }
.show-hud .quick-help { opacity: 1; pointer-events: auto; }
.is-panel-open .quick-help { opacity: 0; pointer-events: none; }
.show-movie-controls .quick-help { opacity: 0; }
.show-movie-controls .stage-shade { opacity: 1; }

.pointer-action { cursor: pointer; }
.is-booting .browser-panel { transition: none; }

@media (max-width: 1280px) {
  .app:not(.is-web-preview) { transform-origin: top left; transform: scale(.6666667); }
}
