:root {
  --primary: #8b2cff;
  --accent: #17d5ff;
  --accent-soft: rgba(23, 213, 255, 0.28);
  --bg: #121212;
  --text: #ffffff;
  --base-w: 1920px;
  --base-h: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body,
.app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

.app {
  position: fixed;
  inset: 0;
  min-width: 1280px;
  min-height: 720px;
}

button {
  border: 0;
  font: inherit;
}

.home-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 82px 116px;
  background: #121212;
}

.home-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.80)),
    radial-gradient(circle at 58% 34%, rgba(23, 213, 255, 0.26), transparent 32%),
    radial-gradient(circle at 42% 44%, rgba(139, 44, 255, 0.32), transparent 38%),
    linear-gradient(135deg, #151021 0%, #05070d 100%);
}

.home-header {
  position: relative;
  z-index: 2;
  margin-bottom: 34px;
  text-align: center;
}

.home-logo {
  width: 430px;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 20px 42px rgba(23, 213, 255, 0.24));
}

.logo-mark {
  color: #ffffff;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.logo-mark strong {
  color: var(--primary);
  margin-left: 12px;
}

.home-header p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 32px;
  font-weight: 800;
}

.menu-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 210px);
  grid-auto-rows: auto;
  gap: 30px;
  width: 1470px;
  justify-content: center;
  align-items: center;
}

.menu-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #9d37ff 0%, #6f21df 58%, #19bfea 100%);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, outline 0.16s ease;
}

.menu-card.large {
  grid-column: span 2;
  flex-direction: column;
  width: 450px;
  height: 375px;
  border-radius: 28px;
}

.menu-card.small {
  grid-column: span 2;
  flex-direction: row;
  gap: 20px;
  width: 450px;
  height: 180px;
  border-radius: 28px;
}

.menu-card.reload {
  grid-column: 3 / span 2;
  justify-self: center;
  flex-direction: row;
  gap: 20px;
  width: 378px;
  height: 88px;
  border-radius: 45px;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon svg {
  width: 96px;
  height: 96px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.small .menu-icon svg,
.reload .menu-icon svg {
  width: 66px;
  height: 66px;
}

.menu-label {
  margin-top: 38px;
  color: #ffffff;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

.small .menu-label,
.reload .menu-label {
  margin-top: 0;
}

.small .menu-label {
  font-size: 34px;
}

.menu-card.selected {
  outline: 4px solid #ffffff;
  outline-offset: 6px;
  transform: scale(1.06);
  box-shadow: 0 0 34px rgba(23, 213, 255, 0.78), 0 0 46px rgba(139, 44, 255, 0.50), 0 18px 42px rgba(0, 0, 0, 0.54);
}

.home-footer {
  position: absolute;
  z-index: 2;
  left: 78px;
  right: 78px;
  bottom: 38px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.78);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

.home-footer p {
  margin: 0;
}

.home-footer div:last-child {
  text-align: right;
}

.home-exit-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 25, 0.92);
}

.home-exit-box {
  width: min(850px, 76vw);
  padding: 58px 68px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.82);
  text-align: center;
  color: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.home-exit-box h2 {
  margin: 0 0 24px;
  font-size: 54px;
  font-weight: 900;
}

.home-exit-box p {
  margin: 0 0 42px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 30px;
  font-weight: 800;
}

.home-exit-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.home-exit-actions button {
  min-width: 132px;
  height: 64px;
  border-radius: 32px;
  background: #3a3a42;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.home-exit-actions button.danger {
  background: #ad0000;
}

.home-exit-actions button.focused {
  outline: 4px solid #ffffff;
  outline-offset: 6px;
}

.games-layout {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: #ffffff;
  background: #050505;
  font-family: Arial, Helvetica, sans-serif;
}

.games-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.80)),
    radial-gradient(circle at 48% 28%, rgba(204, 255, 0, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 12%, transparent 12% 26%, rgba(255, 255, 255, 0.04) 26% 38%, transparent 38% 100%),
    #171717;
}

.games-header {
  position: absolute;
  z-index: 2;
  left: 80px;
  right: 80px;
  top: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.games-header h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 900;
}

.games-header span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 28px;
  font-weight: 900;
}

.games-side {
  position: absolute;
  z-index: 2;
  left: 58px;
  top: 150px;
  bottom: 96px;
  width: 360px;
  overflow: hidden;
}

.games-side-row {
  width: 100%;
  height: 76px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 54px 1fr 58px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  text-align: left;
}

.games-side-row.focused {
  background: #ffffff;
  color: #111111;
}

.games-side-row.selected:not(.focused) {
  box-shadow: inset 7px 0 0 var(--primary);
}

.games-side-row span,
.games-side-row img {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.games-side-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.games-side-row em {
  font-style: normal;
  text-align: right;
}

.games-side-row svg {
  width: 38px;
  height: 38px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 5;
}

.games-main {
  position: absolute;
  z-index: 2;
  left: 456px;
  right: 80px;
  top: 150px;
  bottom: 96px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.game-card {
  height: 244px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 26px;
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.game-card.focused {
  outline: 5px solid var(--primary);
  outline-offset: 4px;
  transform: scale(1.025);
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
}

.game-league {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
}

.game-league img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.game-league span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-round {
  min-height: 30px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 21px;
  font-weight: 800;
}

.game-card.focused .game-round {
  color: #475569;
}

.game-round strong,
.game-round span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-teams {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  align-items: center;
  gap: 18px;
}

.game-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.game-team img,
.game-team span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  font-size: 22px;
  font-weight: 900;
}

.game-team strong {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
  font-weight: 900;
}

.game-score {
  text-align: center;
  color: var(--primary);
  font-size: 42px;
  font-weight: 900;
}

.game-card.focused .game-score {
  color: #111111;
}

.game-channel {
  height: 28px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  font-weight: 900;
}

.game-card.focused .game-channel {
  color: #475569;
}

.games-loading,
.games-empty {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 34px;
  font-weight: 900;
}

.games-footer {
  position: absolute;
  z-index: 2;
  left: 456px;
  right: 80px;
  bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 24px;
  font-weight: 800;
}

.game-channel-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
}

.game-channel-box {
  width: min(760px, 62vw);
  max-height: 78vh;
  padding: 34px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.game-channel-box h2 {
  margin: 0 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 36px;
  font-weight: 900;
}

.game-channel-box p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 22px;
  font-weight: 800;
}

.game-channel-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-channel-options button {
  height: 68px;
  padding: 0 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: left;
  font-size: 26px;
  font-weight: 900;
}

.game-channel-options button.focused {
  background: var(--primary);
  color: #111111;
}

@media (max-width: 1500px), (max-height: 900px) {
  html,
  body,
  .app {
    min-width: 0;
    min-height: 0;
  }

  .app {
    position: fixed;
    inset: 0;
    overflow: hidden;
  }

  .home-screen {
    justify-content: flex-start;
    padding: clamp(16px, 2.4vh, 30px) clamp(24px, 4vw, 52px) clamp(72px, 9vh, 96px);
  }

  .home-header {
    margin-bottom: clamp(14px, 2.3vh, 24px);
  }

  .home-logo {
    width: clamp(180px, 22vw, 270px);
    max-height: clamp(100px, 15vh, 145px);
  }

  .logo-mark {
    font-size: clamp(42px, 6vw, 70px);
  }

  .home-header p {
    font-size: clamp(18px, 2.4vw, 26px);
  }

  .menu-grid {
    width: min(1120px, calc(100vw - 56px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.2vw, 28px);
  }

  .menu-card.large,
  .menu-card.small {
    grid-column: auto;
    width: 100%;
    border-radius: clamp(16px, 2vw, 24px);
  }

  .menu-card.large {
    height: clamp(155px, 25vh, 235px);
  }

  .menu-card.small {
    height: clamp(92px, 14vh, 132px);
    gap: clamp(12px, 1.6vw, 18px);
  }

  .menu-card.reload {
    grid-column: 2;
    width: min(100%, 330px);
    height: clamp(58px, 8vh, 74px);
    gap: 14px;
    border-radius: 999px;
  }

  .menu-icon svg {
    width: clamp(46px, 6vw, 72px);
    height: clamp(46px, 6vw, 72px);
  }

  .small .menu-icon svg,
  .reload .menu-icon svg {
    width: clamp(34px, 4.8vw, 52px);
    height: clamp(34px, 4.8vw, 52px);
  }

  .menu-label {
    margin-top: clamp(16px, 2.6vh, 28px);
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1;
    text-align: center;
  }

  .small .menu-label {
    font-size: clamp(22px, 3vw, 30px);
  }

  .reload .menu-label {
    font-size: clamp(22px, 3vw, 30px);
  }

  .menu-card.selected {
    outline-width: 3px;
    outline-offset: 4px;
    transform: scale(1.025);
  }

  .home-footer {
    left: clamp(18px, 4vw, 46px);
    right: clamp(18px, 4vw, 46px);
    bottom: clamp(10px, 2vh, 22px);
    gap: 18px;
    font-size: clamp(15px, 1.8vw, 20px);
  }
}

@media (max-width: 760px) {
  .home-screen {
    overflow-y: auto;
    padding-bottom: 24px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-card.reload {
    grid-column: 1 / -1;
  }

  .home-footer {
    position: relative;
    inset: auto;
    width: min(100%, calc(100vw - 36px));
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-footer div:last-child {
    text-align: left;
  }
}

.livetv-layout {
  display: flex;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 12%, transparent 12% 26%, rgba(255, 255, 255, 0.04) 26% 38%, transparent 38% 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 18%, transparent 18% 42%, rgba(255, 255, 255, 0.04) 42% 56%, transparent 56% 100%),
    #1b1b1b;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.left-panel {
  width: 470px;
  height: 100%;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #333333;
}

.header-row {
  height: 58px;
  margin: 8px 8px 8px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 0;
  border-radius: 1px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  font-size: 18px;
}

.cat-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.count {
  font-size: 18px;
  font-weight: 900;
}

.channels-list {
  flex: 1;
  overflow: hidden;
}

.channel-item {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 10px;
  margin: 0 15px 8px;
  border-bottom: 0;
  border-radius: 6px;
  background: #111111;
  box-sizing: border-box;
}

.channel-item.active {
  background: #ffffff;
  color: #000000;
  font-weight: 900;
}

.channel-item.playing-channel:not(.active) {
  background: rgba(204, 255, 0, 0.1);
  box-shadow: inset 6px 0 0 var(--primary);
}

.ch-index {
  width: 30px;
  text-align: center;
  font-size: 15px;
}

.ch-logo {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 4px;
  color: #ccff00;
  font-size: 12px;
  font-weight: 900;
}

.channel-item.active .ch-logo {
  background: #111111;
}

.ch-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ch-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
}

.category-count {
  margin-left: 16px;
  color: #ffffff;
  font-size: clamp(16px, 1.3vw, 26px);
  font-weight: 900;
}

.favorite-indicator {
  margin-left: 8px;
  color: #d6ff00;
  font-size: 20px;
}

.playing-badge {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: #0b0b0b;
  font-size: 13px;
  font-weight: 900;
}

.right-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 8px 21px 12px;
}

.top-toolbar {
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 34px;
  background: #111111;
  border-radius: 1px;
}

.color-buttons {
  display: flex;
  gap: 20px;
}

.btn-color {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
}

.btn-color::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.btn-color.red::before {
  background: #ff0000;
}

.btn-color.green::before {
  background: #00ff00;
}

.btn-color.yellow::before {
  background: #ffff00;
}

.btn-color.blue::before {
  background: #0000ff;
}

.btn-color.active {
  color: var(--primary);
}

.clock {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.video-area {
  flex: 0 0 auto;
  width: 100%;
  height: 365px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 0;
}

.video-element {
  width: 100%;
  height: 100%;
  background: #000000;
}

.live-video-host {
  width: 100%;
  height: 100%;
}

.no-signal,
.loading-line {
  padding: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 22px;
  font-weight: 800;
}

.info-bar {
  min-height: 0;
  height: 74px;
  margin-top: -74px;
  padding: 12px 28px;
  position: relative;
  z-index: 3;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.82));
  border-radius: 0;
  overflow: hidden;
}

.current-program {
  display: flex;
  gap: 18px;
  align-items: center;
}

.lg-logo {
  width: 54px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 900;
}

.lg-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prog-details {
  flex: 1;
  min-width: 0;
}

.prog-details h2 {
  margin: 0 0 8px;
  font-size: 22px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prog-details p {
  margin: 0;
  color: #aaaaaa;
  display: none;
}

.now-playing,
.next-playing {
  display: none;
  gap: 14px;
  margin-top: 5px;
  font-size: 16px;
}

.time-range {
  color: var(--primary);
  font-weight: 900;
}

.p-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bottom-epg-list {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(9px, 0.9vh, 13px);
  height: calc(100vh - clamp(51px, 6.4vh, 72px) - clamp(14px, 1.4vh, 18px) - clamp(365px, 56vh, 610px) - 18px);
  min-height: 236px;
  max-height: 470px;
  margin-top: 16px;
  border-top: 0;
  overflow: hidden;
}

.epg-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 142px;
  align-items: center;
  height: 55px;
  gap: 10px;
  border-bottom: 0;
  color: #ffffff;
  padding: 0 24px;
  margin-bottom: 0;
  background: #111111;
  border-radius: 5px;
  box-sizing: border-box;
}

.epg-row.current {
  color: #ffffff;
  background: #111111;
}

.epg-row.focused {
  background: #ffffff;
  color: #111111;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #555555;
}

.epg-row.current .status-dot {
  background: var(--primary);
}

.epg-row.focused .status-dot {
  background: #08f000;
}

.epg-row.focused .epg-time {
  color: #111111;
}

.epg-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  font-weight: 800;
}

.epg-time {
  text-align: right;
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.far-right-calendar {
  width: 102px;
  background: transparent;
  border-left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 73px;
  gap: 8px;
}

.cal-day {
  width: 86px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-day.selected {
  border-color: #ffffff;
}

.cal-day.focused {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.cal-day.focused .day-name {
  color: #111111;
}

.day-num {
  font-size: 20px;
  font-weight: 900;
}

.day-name {
  color: #aaaaaa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.category-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
}

.live-search-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
}

.live-search-box {
  width: min(760px, 72vw);
  padding: 34px;
  border-radius: 8px;
  background: #111111;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.64);
}

.live-search-box h2 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: 30px;
}

.live-search-box input {
  width: 100%;
  height: 64px;
  padding: 0 22px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  font-size: 25px;
  font-weight: 800;
  outline: none;
}

.category-menu {
  width: 520px;
  max-height: 600px;
  overflow: hidden;
  background: #181818;
  border: 1px solid #333333;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.category-menu-header {
  height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
}

.category-menu-header h3 {
  margin: 0;
  font-size: 22px;
}

.close-btn {
  color: #ffffff;
  background: transparent;
  font-size: 24px;
}

.category-menu-list {
  max-height: 520px;
  overflow: hidden;
}

.category-menu-item {
  height: 52px;
  padding: 16px 20px;
  border-bottom: 1px solid #262626;
  color: #d7d7d7;
  font-weight: 800;
}

.category-menu-item.active {
  color: var(--primary);
}

.category-menu-item.focused {
  background: #ffffff;
  color: #000000;
}

/* 1920x1080 TV layout overrides */
.livetv-layout,
.catalog-layout,
.settings-layout,
.playlist-layout {
  width: 100vw;
  height: 100vh;
  min-width: 1280px;
  min-height: 720px;
  color: #ffffff;
}

.livetv-layout {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 12%, transparent 12% 26%, rgba(255, 255, 255, 0.04) 26% 38%, transparent 38% 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 18%, transparent 18% 42%, rgba(255, 255, 255, 0.04) 42% 56%, transparent 56% 100%),
    #1b1b1b;
}

.left-panel {
  width: clamp(490px, 38vw, 620px);
}

.header-row {
  height: clamp(52px, 7vh, 78px);
  margin: clamp(8px, 1vh, 12px) 8px clamp(12px, 1.4vh, 18px);
  padding: 0 clamp(20px, 1.8vw, 34px);
  background: #111111;
  border-radius: 1px;
}

.category-btn,
.count {
  font-size: clamp(22px, 1.55vw, 30px);
}

.channel-item {
  height: clamp(56px, calc((100vh - 116px) / 10), 92px);
  padding: 0 clamp(16px, 1.4vw, 28px);
  margin: 0 15px clamp(8px, 0.75vh, 12px);
  background: #111111;
  border-radius: 5px;
}

.ch-index {
  width: clamp(42px, 3.2vw, 62px);
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 900;
}

.ch-logo {
  width: clamp(42px, 3.4vw, 66px);
  height: clamp(42px, 3.4vw, 66px);
  margin: 0 clamp(20px, 1.8vw, 34px) 0 clamp(14px, 1.2vw, 24px);
}

.ch-name {
  font-size: clamp(16px, 1.3vw, 26px);
  font-weight: 900;
}

.right-panel {
  padding: clamp(8px, 1vh, 12px) clamp(18px, 1.6vw, 30px) clamp(12px, 1.5vh, 22px);
}

.top-toolbar {
  height: clamp(51px, 6.4vh, 72px);
  margin-bottom: clamp(14px, 1.4vh, 18px);
  padding: 0 clamp(34px, 3vw, 58px);
  background: #111111;
  border-radius: 1px;
}

.color-buttons {
  gap: clamp(30px, 3vw, 58px);
}

.btn-color {
  gap: clamp(12px, 1vw, 18px);
  font-size: clamp(20px, 1.35vw, 27px);
}

.btn-color::before {
  width: clamp(14px, 1.1vw, 20px);
  height: clamp(14px, 1.1vw, 20px);
}

.clock {
  font-size: clamp(23px, 1.55vw, 31px);
}

.info-bar {
  height: clamp(74px, 8.5vh, 98px);
  min-height: clamp(74px, 8.5vh, 98px);
  margin-top: clamp(-98px, -8.5vh, -74px);
  padding: clamp(12px, 1.3vh, 18px) clamp(28px, 2.2vw, 42px);
  position: relative;
  z-index: 3;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.82));
  border-radius: 0;
}

.lg-logo {
  width: clamp(54px, 4.4vw, 84px);
  height: clamp(50px, 4.1vw, 78px);
}

.prog-details h2 {
  font-size: clamp(22px, 1.6vw, 32px);
}

.prog-details p,
.now-playing,
.next-playing {
  font-size: clamp(16px, 1.15vw, 24px);
}

.epg-row {
  grid-template-columns: clamp(28px, 2.2vw, 42px) minmax(0, 1fr) clamp(145px, 12vw, 230px);
  height: 100%;
  min-height: 0;
  gap: clamp(15px, 1.4vw, 26px);
  font-size: clamp(17px, 1.25vw, 25px);
  padding: 0 clamp(24px, 2vw, 38px);
  margin-bottom: 0;
  background: #111111;
  border-radius: 5px;
}

.far-right-calendar {
  width: clamp(102px, 8vw, 150px);
  padding-top: clamp(73px, 8vh, 92px);
  gap: clamp(8px, 0.9vh, 12px);
}

.cal-day {
  width: clamp(86px, 6.8vw, 128px);
  height: clamp(82px, 10.8vh, 126px);
}

.day-num {
  font-size: clamp(30px, 2.4vw, 46px);
}

.day-name {
  font-size: clamp(18px, 1.35vw, 26px);
}

.catalog-layout {
  display: flex;
  overflow: hidden;
}

.catalog-sidebar {
  width: 470px;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  border-right: 1px solid #333333;
}

.catalog-side-header {
  height: 96px;
  padding: 29px 32px;
  background: var(--primary);
  color: #111111;
  display: flex;
  justify-content: space-between;
  font-size: 31px;
  font-weight: 900;
}

.catalog-cat-list {
  height: calc(100% - 96px);
  overflow: hidden;
  padding: 15px 0;
}

.catalog-cat {
  height: 82px;
  padding: 24px 32px;
  overflow: hidden;
  color: #bbbbbb;
  font-size: 29px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #242424;
}

.catalog-cat-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.catalog-cat-count {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.catalog-cat.active {
  color: var(--primary);
}

.catalog-cat.focused {
  background: #ffffff;
  color: #111111;
}

.catalog-main {
  flex: 1;
  min-width: 0;
  padding: 28px 42px 24px;
  background: #111111;
}

.catalog-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}

.catalog-topbar h1 {
  margin: 0;
  flex: 1;
  font-size: 46px;
  font-weight: 900;
}

.catalog-topbar span,
.catalog-back,
.catalog-search-btn {
  color: #dddddd;
  background: transparent;
  font-size: 22px;
  font-weight: 800;
}

.catalog-search-btn {
  min-width: 170px;
  height: 48px;
  border: 2px solid var(--primary);
  border-radius: 7px;
  color: var(--primary);
}

.catalog-back {
  min-width: 128px;
  white-space: nowrap;
  text-align: left;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 34px;
}

.poster-card {
  min-width: 0;
  position: relative;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.poster-card.selected {
  transform: scale(1.045);
  z-index: 2;
}

.poster-image {
  position: relative;
  height: clamp(370px, 36vh, 420px);
  overflow: hidden;
  border-radius: 10px;
  background: #222222;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.poster-card.selected .poster-image {
  outline: 5px solid var(--primary);
  outline-offset: 5px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.78), 0 0 0 9px rgba(204, 255, 0, 0.14);
}

.poster-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.poster-card.selected .poster-image img {
  transform: scale(1.045);
  filter: brightness(0.82);
}

.poster-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 70px;
  font-weight: 900;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.64));
  opacity: 0;
  color: #ffffff;
  font-size: 0;
}

.poster-card.selected .poster-overlay {
  opacity: 1;
}

.poster-overlay::before {
  content: "";
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.48);
}

.poster-overlay::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 27px solid #111111;
}

.poster-title {
  margin-top: 16px;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(25px, 1.55vw, 30px);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.poster-card.selected .poster-title {
  color: var(--primary);
}

.poster-rating {
  display: block;
  margin-top: 5px;
  color: #aaaaaa;
  font-size: 20px;
  font-weight: 800;
}


.catalog-loading,
.catalog-message {
  margin-top: 24px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.catalog-search-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.74);
}

.catalog-search-box {
  width: 720px;
  padding: 38px;
  border: 2px solid rgba(34, 255, 198, 0.42);
  border-radius: 10px;
  background: rgba(4, 24, 18, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.68);
}

.catalog-search-box h2 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
}

.catalog-search-box input {
  width: 100%;
  height: 66px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f4;
  color: #111111;
  font-size: 28px;
  font-weight: 800;
  outline: 4px solid var(--primary);
}

.catalog-search-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.catalog-search-box p {
  margin: 20px 0 0;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.settings-layout,
.playlist-layout {
  padding: 60px 80px;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.settings-header,
.playlist-header {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 85px;
  margin-bottom: 60px;
}

.settings-header h1,
.playlist-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 58px;
  font-weight: 900;
}

.settings-header button,
.playlist-header button {
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.settings-content {
  display: flex;
  gap: 75px;
  height: calc(100% - 145px);
}

.settings-menu {
  width: 525px;
}

.settings-option {
  height: 78px;
  margin-bottom: 20px;
  padding: 24px 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
}

.settings-option.active {
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.settings-option.focused,
.settings-option.active.focused {
  background: #ffffff;
  color: #111111;
}

.settings-panel {
  flex: 1;
  padding: 60px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.36);
}

.settings-panel h2 {
  margin: 0 0 40px;
  font-size: 46px;
}

.info-panel h3 {
  margin: 35px 0 20px;
  font-size: 32px;
}

.info-panel div {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
}

.info-panel strong {
  color: var(--primary);
}

.settings-placeholder {
  color: #cccccc;
  font-size: 28px;
  line-height: 1.45;
}

.settings-choice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-choice-row {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.settings-choice-row.selected {
  box-shadow: inset 6px 0 0 var(--primary);
}

.settings-choice-row.focused {
  background: #ffffff;
  color: #111111;
}

.storage-clear-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.storage-clear-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.storage-clear-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 32px;
  color: #ffffff;
  font-size: clamp(30px, 2.3vw, 44px);
  font-weight: 900;
}

.storage-clear-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.storage-clear-row span {
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.62);
  font-size: 26px;
  font-weight: 900;
}

.storage-clear-row.focused span {
  background: #ffffff;
  color: #111111;
}

.storage-clear-row.focused strong {
  color: var(--primary);
}

.storage-message {
  min-height: 34px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  font-weight: 900;
}

.storage-message.show {
  color: var(--primary);
}

.time-settings-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.device-time-label {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(24px, 1.8vw, 34px);
  font-weight: 900;
}

.device-time-value {
  margin-bottom: 64px;
  font-size: clamp(54px, 4.4vw, 84px);
  font-weight: 900;
  line-height: 1;
}

.time-format-title {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(30px, 2.4vw, 46px);
  font-weight: 900;
}

.time-format-list {
  width: min(620px, 48vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.time-format-row {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: clamp(30px, 2.2vw, 42px);
  font-weight: 900;
}

.time-format-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(24px, 1.7vw, 32px);
}

.time-format-row.selected {
  box-shadow: inset 7px 0 0 var(--primary);
}

.time-format-row.focused {
  background: #ffffff;
  color: #111111;
}

.time-format-row.focused span {
  color: #111111;
}

.tmdb-settings-panel {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.tmdb-choice-list {
  width: min(760px, 58vw);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tmdb-choice-row {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
}

.tmdb-choice-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(32px, 2.4vw, 46px);
  font-weight: 900;
}

.tmdb-choice-row small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(20px, 1.4vw, 27px);
  font-weight: 800;
}

.tmdb-choice-row span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary);
  font-size: 32px;
  font-weight: 900;
}

.tmdb-choice-row.selected {
  box-shadow: inset 7px 0 0 var(--primary);
}

.tmdb-choice-row.focused {
  background: #ffffff;
  color: #111111;
}

.tmdb-choice-row.focused small {
  color: #333333;
}

.language-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.language-flag {
  margin-left: 28px;
  font-size: 34px;
  line-height: 1;
}

.pin-panel {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.pin-panel h3 {
  margin: 0 0 46px;
  font-size: clamp(34px, 2.5vw, 48px);
  font-weight: 900;
}

.pin-boxes {
  display: flex;
  gap: 66px;
  margin-bottom: 84px;
}

.pin-boxes span {
  width: 106px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-size: 54px;
  font-weight: 900;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 14px;
  width: min(760px, 64vw);
}

.pin-key {
  height: 52px;
  border-radius: 7px;
  background: #111111;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.pin-key.focused {
  background: #ffffff;
  color: #111111;
}

.pin-delete {
  min-width: 64px;
  font-size: 18px;
}

.pin-message {
  min-height: 28px;
  margin: 72px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 22px;
  font-weight: 900;
}

.pin-message.show {
  color: var(--primary);
}

.category-manage-row {
  max-width: 720px;
}

.category-arrow {
  margin-left: 24px;
  font-size: 38px;
  font-weight: 900;
}

.category-lock-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: clamp(34px, 4.4vh, 52px) clamp(44px, 4.8vw, 92px);
  background: #020419;
  color: #ffffff;
}

.category-lock-panel h3 {
  margin: 0 0 clamp(24px, 3vh, 38px);
  font-size: clamp(48px, 3.8vw, 70px);
  font-weight: 900;
}

.category-lock-list {
  width: min(1280px, 92vw);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vh, 16px);
}

.category-lock-row {
  height: clamp(72px, 8.2vh, 94px);
  display: grid;
  grid-template-columns: clamp(44px, 3.8vw, 64px) minmax(0, 1fr) clamp(82px, 6vw, 116px) clamp(86px, 6vw, 120px) clamp(94px, 7vw, 132px);
  gap: clamp(14px, 1.6vw, 26px);
  align-items: center;
  padding: 0 clamp(24px, 2vw, 42px);
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: #151515;
  font-size: clamp(28px, 2vw, 40px);
  font-weight: 900;
}

.category-lock-row.focused {
  background: #ffffff;
  color: #111111;
}

.category-lock-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-lock-name {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 12px;
}

.category-blue-icon {
  width: clamp(30px, 2.5vw, 46px);
  height: clamp(30px, 2.5vw, 46px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b83d8;
  color: #ffffff;
  font-size: clamp(22px, 1.8vw, 34px);
}

.category-lock-row b,
.category-eye,
.category-lock {
  text-align: center;
  font-size: clamp(24px, 1.8vw, 34px);
}

.category-eye,
.category-lock {
  position: relative;
  height: clamp(52px, 5.8vh, 70px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.category-eye::before {
  content: "";
  width: 34px;
  height: 20px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.category-eye::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.category-lock {
  position: relative;
}

.category-lock::before {
  content: "";
  width: 32px;
  height: 26px;
  margin-top: 10px;
  border-radius: 4px;
  background: currentColor;
}

.category-lock::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 24px;
  height: 22px;
  border: 5px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.category-lock.unlocked::after {
  transform: translateX(12px) rotate(22deg);
}

.category-lock-row .action-focused {
  background: var(--primary);
  color: #111111;
  box-shadow: 0 0 0 5px rgba(204, 255, 0, 0.22);
}

.playlist-header {
  justify-content: space-between;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.playlist-header button {
  padding: 18px 28px;
  border-radius: 12px;
  background: var(--primary);
  color: #111111;
}

.playlist-list {
  width: 1100px;
  margin: 0 auto;
}

.playlist-row {
  height: 92px;
  margin-bottom: 22px;
  padding: 0 30px;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 30px;
  font-weight: 900;
}

.playlist-row.selected {
  outline: 5px solid var(--primary);
  outline-offset: 8px;
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.42);
}

.playlist-footer {
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 42px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 23px;
  font-weight: 800;
}

.playlist-login-layout {
  position: fixed;
  inset: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #061c15;
  overflow: hidden;
}

.playlist-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(204, 255, 0, 0.13), transparent 31%),
    radial-gradient(circle at 20% 100%, rgba(0, 255, 190, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.68)),
    linear-gradient(135deg, #073423 0%, #05241c 46%, #03130f 100%);
}

.playlist-bg::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 520px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid rgba(204, 255, 0, 0.26);
  border-left-color: transparent;
  border-top-color: transparent;
  transform: rotate(-18deg);
  box-shadow: -22px -28px 0 -24px rgba(204, 255, 0, 0.32), -58px -58px 0 -54px rgba(204, 255, 0, 0.22);
}

.playlist-brand {
  position: relative;
  z-index: 2;
  margin-top: 122px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.playlist-list-brand {
  margin-top: 82px;
}

.playlist-add-top {
  position: absolute;
  top: 0;
  right: 78px;
  min-width: 220px;
  height: 58px;
  padding: 0 28px;
  border-radius: 29px;
  background: var(--primary);
  color: #111111;
  font-size: 22px;
  font-weight: 900;
}

.playlist-add-top.selected {
  outline: 5px solid rgba(255, 255, 255, 0.86);
  outline-offset: 6px;
}

.playlist-logo {
  font-size: 74px;
  color: rgba(255, 255, 255, 0.92);
}

.playlist-logo strong {
  color: var(--primary);
}

.playlist-form-logo {
  width: clamp(320px, 28vw, 520px);
  max-height: clamp(150px, 18vh, 230px);
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(23, 213, 255, 0.2));
}

.playlist-form {
  position: relative;
  z-index: 2;
  width: min(900px, 70vw);
  margin-top: clamp(76px, 9vh, 128px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

.playlist-cards {
  position: relative;
  z-index: 2;
  width: 980px;
  margin-top: 110px;
}

.playlist-card {
  width: 980px;
  min-height: 86px;
  margin-bottom: 22px;
  padding: 0 24px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #202020;
  font-size: 27px;
  font-weight: 900;
}

.playlist-card.active {
  box-shadow: inset 7px 0 0 var(--primary);
}

.playlist-card.selected,
.playlist-card-btn.selected {
  outline: 5px solid var(--primary);
  outline-offset: 6px;
  box-shadow: 0 0 28px rgba(204, 255, 0, 0.36);
}

.playlist-card-actions {
  display: flex;
  gap: 14px;
}

.playlist-card-btn {
  min-width: 120px;
  height: 52px;
  border-radius: 26px;
  background: var(--primary);
  color: #111111;
  font-size: 20px;
  font-weight: 900;
}

.playlist-card-btn.danger {
  background: #ffffff;
  color: #c80024;
}

.playlist-empty {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 26px;
  font-weight: 900;
}

.playlist-field {
  width: min(900px, 70vw);
  height: clamp(78px, 8.2vh, 106px);
  padding: 0 clamp(44px, 3.5vw, 66px);
  display: flex;
  align-items: center;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.92);
  color: #202020;
  font-size: clamp(30px, 2.2vw, 42px);
  font-weight: 900;
}

.playlist-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202020;
  font: inherit;
}

.playlist-field.editing {
  background: #ffffff;
}

.playlist-field.selected {
  outline: 5px solid var(--primary);
  outline-offset: 7px;
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.32);
}

.playlist-enter {
  width: min(560px, 44vw);
  height: clamp(84px, 8vh, 112px);
  margin-top: clamp(46px, 5vh, 72px);
  border-radius: 39px;
  background: var(--primary);
  color: #111111;
  font-size: clamp(32px, 2.4vw, 46px);
  font-weight: 900;
}

.playlist-enter.selected {
  outline: 5px solid rgba(255, 255, 255, 0.86);
  outline-offset: 7px;
  box-shadow: 0 0 34px rgba(204, 255, 0, 0.36);
}

.playlist-status {
  min-height: 34px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.playlist-login-footer {
  z-index: 2;
  left: 46px;
  right: 46px;
  bottom: 42px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  line-height: 1.24;
}

.playlist-list-screen {
  position: fixed;
  inset: 0;
  padding: 0;
  overflow: hidden;
  background: #111111;
}

.playlist-list-screen .playlist-bg {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 13%, transparent 13% 28%, rgba(255, 255, 255, 0.05) 28% 41%, transparent 41% 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 18%, transparent 18% 42%, rgba(255, 255, 255, 0.05) 42% 57%, transparent 57% 100%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 38%),
    #171717;
}

.playlist-list-screen .playlist-bg::after {
  display: none;
}

.playlist-list-title {
  position: relative;
  z-index: 2;
  width: min(1180px, 82vw);
  margin: clamp(42px, 5vh, 70px) auto 0;
}

.playlist-list-title h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(54px, 4.2vw, 78px);
  font-weight: 900;
}

.playlist-plus {
  width: clamp(94px, 7vw, 132px);
  height: clamp(62px, 6.3vh, 84px);
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(46px, 3.5vw, 66px);
  font-weight: 900;
}

.playlist-header-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: clamp(16px, 1.5vw, 26px);
  align-items: center;
}

.playlist-refresh {
  width: clamp(72px, 5.7vw, 102px);
  height: clamp(62px, 6.3vh, 84px);
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-refresh svg {
  width: clamp(34px, 2.6vw, 48px);
  height: clamp(34px, 2.6vw, 48px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.playlist-plus.focused,
.playlist-refresh.focused {
  background: #ffffff;
  color: #111111;
}

.playlist-list-main {
  position: relative;
  z-index: 2;
  width: min(1320px, 88vw);
  margin: clamp(48px, 6vh, 78px) auto 0;
}

.playlist-list-row-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.playlist-user-row {
  width: min(1050px, calc(88vw - 140px));
  height: clamp(86px, 9.2vh, 118px);
  display: grid;
  grid-template-columns: clamp(68px, 5vw, 96px) 1fr;
  align-items: center;
  padding: 0 clamp(34px, 3vw, 52px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #111111;
  color: #ffffff;
  text-align: left;
  font-size: clamp(32px, 2.5vw, 46px);
  font-weight: 900;
}

.playlist-user-row b {
  font-size: clamp(30px, 2.3vw, 42px);
}

.playlist-user-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.playlist-user-row.active {
  box-shadow: inset 6px 0 0 var(--accent);
}

.playlist-user-row.focused {
  background: #ffffff;
  color: #111111;
}

.playlist-trash {
  position: absolute;
  left: min(1090px, calc(88vw - 104px));
  width: clamp(78px, 6.2vw, 104px);
  height: clamp(78px, 6.2vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ac0000;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.playlist-trash svg {
  width: clamp(34px, 2.8vw, 48px);
  height: clamp(34px, 2.8vw, 48px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.playlist-trash.focused {
  outline: 4px solid #ffffff;
  outline-offset: 5px;
  background: #d00000;
}

.playlist-list-footer {
  z-index: 2;
  left: clamp(44px, 4vw, 78px);
  right: clamp(44px, 4vw, 78px);
  bottom: clamp(34px, 4vh, 56px);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(24px, 1.8vw, 34px);
  line-height: 1.22;
}

.playlist-list-footer p {
  margin: 0;
}

.playlist-delete-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020419;
}

.playlist-delete-box {
  width: min(920px, 82vw);
  text-align: center;
  color: #ffffff;
}

.playlist-delete-box h2 {
  margin: 0 0 54px;
  font-size: 54px;
  font-weight: 900;
}

.playlist-delete-box p {
  margin: 0 0 40px;
  font-size: 34px;
  font-weight: 900;
}

.playlist-delete-actions {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.playlist-delete-actions button {
  min-width: 100px;
  height: 56px;
  border-radius: 28px;
  background: #3a3a42;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.playlist-delete-actions button.danger {
  background: #aa0000;
}

.playlist-delete-actions button.focused {
  outline: 4px solid #ffffff;
  outline-offset: 6px;
}

.reload-layout {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(204, 255, 0, 0.16), transparent 34%),
    linear-gradient(135deg, #181818 0%, #050505 100%);
}

.reload-box {
  width: 760px;
  padding: 70px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.46);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.reload-spinner {
  width: 96px;
  height: 96px;
  margin: 0 auto 34px;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.reload-box h1 {
  margin: 0 0 18px;
  font-size: 58px;
  font-weight: 900;
}

.reload-box p {
  margin: 0 0 38px;
  color: #cccccc;
  font-size: 28px;
}

.reload-box button {
  padding: 18px 34px;
  border-radius: 12px;
  background: var(--primary);
  color: #111111;
  font-size: 24px;
  font-weight: 900;
}

/* Live TV category/channel navigation and preview polish */
.panel-subtitle {
  min-height: 44px;
  padding: 10px 22px;
  background: #111111;
  color: rgba(255, 255, 255, 0.66);
  border-bottom: 1px solid #262626;
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-row {
  position: relative;
  background:
    linear-gradient(90deg, rgba(34, 255, 198, 0.08), rgba(153, 74, 255, 0.04)),
    #171717;
  padding-right: 20px;
}

.category-tv-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 18px;
  border: 3px solid var(--primary);
  border-radius: 5px;
  box-shadow: 0 0 18px rgba(34, 255, 198, 0.24);
}

.category-tv-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--primary);
  border-radius: 2px;
}

.category-tv-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
}

.category-row.selected-category:not(.active) {
  box-shadow: inset 6px 0 0 var(--primary);
}

.preview-frame {
  position: relative;
  height: clamp(365px, 56vh, 610px);
  min-height: clamp(365px, 56vh, 610px);
  max-height: clamp(365px, 56vh, 610px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.preview-frame::before {
  display: none;
}

.preview-caption {
  position: absolute;
  left: clamp(34px, 4.1vw, 78px);
  right: auto;
  bottom: clamp(16px, 2.1vh, 38px);
  z-index: 2;
  display: grid;
  width: min(680px, 68%);
  grid-template-columns: clamp(38px, 3vw, 58px) clamp(76px, 5.7vw, 110px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 36px);
  align-items: end;
  padding: 0;
  border-radius: 5px;
  background: transparent;
  color: #ffffff;
  pointer-events: none;
}

.preview-channel-meta strong,
.preview-channel-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.preview-channel-number {
  padding-bottom: clamp(3px, 0.4vh, 8px);
  font-size: clamp(20px, 1.55vw, 30px);
  font-weight: 900;
  text-align: center;
}

.preview-channel-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.preview-channel-logo img {
  max-width: 100%;
  max-height: clamp(46px, 4.5vw, 84px);
  object-fit: contain;
}

.preview-channel-logo span {
  font-size: clamp(22px, 1.8vw, 34px);
  font-weight: 900;
}

.preview-channel-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.preview-channel-meta strong {
  font-size: clamp(22px, 1.8vw, 36px);
  font-weight: 900;
  line-height: 1.05;
}

.preview-channel-meta span {
  color: #ffffff;
  font-size: clamp(16px, 1.2vw, 24px);
  font-weight: 800;
  line-height: 1.12;
}

.preview-channel-meta b {
  color: #ffffff;
  margin-right: 10px;
}

.video-element {
  object-fit: contain;
}

.fullscreen-mode .left-panel,
.fullscreen-mode .top-toolbar,
.fullscreen-mode .info-bar,
.fullscreen-mode .bottom-epg-list,
.fullscreen-mode .far-right-calendar,
.fullscreen-mode .live-message {
  display: none;
}

.fullscreen-mode .right-panel {
  padding: 0;
}

.fullscreen-mode .preview-frame {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.fullscreen-mode .preview-frame::before {
  display: none;
}

.fullscreen-mode .preview-caption {
  display: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.player-overlay.hidden {
  display: none;
}

.fullscreen-footer {
  position: absolute;
  left: clamp(70px, 5.8vw, 112px);
  right: clamp(70px, 5.8vw, 112px);
  bottom: clamp(54px, 6.2vh, 82px);
  z-index: 3;
  display: grid;
  grid-template-columns: clamp(82px, 7vw, 128px) minmax(0, 1fr) clamp(105px, 9vw, 160px);
  gap: clamp(22px, 2vw, 36px);
  align-items: center;
  padding: clamp(20px, 2.1vh, 30px) clamp(28px, 2.6vw, 48px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58));
  border-left: clamp(6px, 0.55vw, 10px) solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.64);
  animation: footerShowThenHide 7s ease forwards;
}

.fullscreen-channel-logo {
  width: clamp(82px, 7vw, 128px);
  height: clamp(58px, 5.6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: var(--primary);
  font-size: clamp(18px, 1.5vw, 30px);
  font-weight: 900;
}

.fullscreen-channel-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fullscreen-program {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1vh, 14px);
}

.fullscreen-program strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(34px, 2.9vw, 56px);
  font-weight: 900;
}

.fullscreen-program span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(24px, 1.8vw, 36px);
  font-weight: 800;
}

.fullscreen-quality {
  justify-self: end;
  min-width: clamp(78px, 7vw, 128px);
  padding: clamp(13px, 1.4vh, 22px) clamp(14px, 1.4vw, 28px);
  border-radius: 8px;
  background: var(--primary);
  color: #111111;
  text-align: center;
  font-size: clamp(26px, 2vw, 40px);
  font-weight: 900;
}

.mini-spinner {
  width: 54px;
  height: 54px;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.vod-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000000;
}

.vod-video-host,
.vod-video-host .video-element {
  width: 100vw;
  height: 100vh;
}

.vod-video-host .video-element {
  object-fit: contain;
  background: #000000;
}

.vod-player-overlay:not(.show-controls) .vod-control-panel {
  opacity: 0;
  pointer-events: none;
}

.vod-control-panel {
  position: absolute;
  left: clamp(64px, 5vw, 96px);
  right: clamp(64px, 5vw, 96px);
  bottom: clamp(54px, 6vh, 82px);
  z-index: 3;
  padding: clamp(24px, 2.4vh, 34px) clamp(30px, 2.8vw, 54px);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.58));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.64);
  color: #ffffff;
}

.vod-control-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.vod-control-top strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(34px, 2.4vw, 48px);
  line-height: 1.08;
}

.vod-control-top span {
  color: var(--primary);
  font-size: clamp(26px, 1.7vw, 34px);
  font-weight: 900;
  white-space: nowrap;
}

.vod-progress {
  height: clamp(16px, 1.5vh, 24px);
  margin: clamp(22px, 2vh, 30px) 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.vod-progress div {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.vod-center-feedback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.vod-center-feedback.show {
  opacity: 1;
  transform: scale(1);
}

.vod-circle-icon {
  width: clamp(128px, 10vw, 178px);
  height: clamp(128px, 10vw, 178px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 4px solid rgba(255, 255, 255, 0.86);
  color: #ffffff;
  font-size: clamp(62px, 5vw, 90px);
  font-weight: 900;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

.vod-skip-icon {
  min-width: clamp(178px, 14vw, 260px);
  padding: clamp(24px, 2.5vh, 36px) clamp(30px, 2.8vw, 50px);
  border-radius: 70px;
  background: rgba(0, 0, 0, 0.72);
  border: 4px solid rgba(34, 255, 198, 0.78);
  color: #ffffff;
  text-align: center;
  font-size: clamp(34px, 2.5vw, 48px);
  font-weight: 900;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

.vod-track-menu {
  position: absolute;
  right: clamp(64px, 5vw, 96px);
  bottom: clamp(188px, 21vh, 250px);
  z-index: 4;
  width: clamp(520px, 34vw, 680px);
  padding: clamp(26px, 2.4vw, 42px);
  border-radius: 8px;
  border: 2px solid rgba(34, 255, 198, 0.5);
  background: rgba(0, 0, 0, 0.88);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vod-track-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vod-track-menu h3 {
  margin: 0 0 22px;
  color: var(--primary);
  font-size: clamp(28px, 1.9vw, 38px);
}

.vod-track-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(24px, 1.55vw, 32px);
}

.vod-track-row.focused {
  color: var(--primary);
}

.vod-track-menu p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(20px, 1.25vw, 26px);
  font-weight: 800;
}

.catalog-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: #050706;
  color: #ffffff;
}

.catalog-detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.28;
  filter: blur(2px);
  transform: scale(1.02);
}

.catalog-detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 25, 18, 0.82) 48%, rgba(0, 0, 0, 0.72) 100%);
}

.catalog-detail-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  padding: 86px 86px 0;
}

.catalog-detail-poster {
  width: 330px;
  height: 495px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62);
}

.catalog-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-detail-poster span {
  color: var(--primary);
  font-size: 96px;
  font-weight: 900;
}

.catalog-detail-info {
  min-width: 0;
  padding-top: 10px;
}

.catalog-detail-info h1 {
  max-width: 1280px;
  margin: 0 0 24px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(64px, 4.2vw, 82px);
  line-height: 1.04;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.55);
}

.catalog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.catalog-detail-meta span {
  padding: 11px 17px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(23px, 1.45vw, 30px);
  font-weight: 800;
}

.catalog-detail-synopsis {
  max-width: 1320px;
  margin-bottom: 28px;
}

.catalog-detail-synopsis strong {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: clamp(24px, 1.55vw, 32px);
  font-weight: 900;
}

.catalog-detail-plot {
  max-width: 1320px;
  max-height: 330px;
  margin: 0;
  overflow: auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(30px, 1.8vw, 38px);
  line-height: 1.32;
}

.catalog-detail-plot::-webkit-scrollbar {
  display: none;
}

.catalog-detail-cast {
  max-width: 1280px;
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(24px, 1.5vw, 31px);
  font-weight: 700;
}

.catalog-detail-cast strong {
  color: var(--primary);
}

.catalog-detail-cast span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.catalog-detail-actions {
  display: flex;
  gap: 24px;
}

.detail-action {
  min-width: 240px;
  height: 74px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: clamp(25px, 1.55vw, 32px);
  font-weight: 900;
}

.catalog-detail-actions .detail-action:nth-child(2) {
  min-width: 370px;
}

.catalog-progress-note {
  margin-top: 18px;
  color: var(--primary);
  font-size: clamp(22px, 1.35vw, 28px);
  font-weight: 900;
}

.detail-action.primary {
  background: var(--primary);
  color: #08110d;
}

.detail-action.focused,
.season-pill.focused,
.episode-preview-card.focused {
  outline: 4px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 7px rgba(34, 255, 198, 0.22);
}

.catalog-detail-bottom {
  position: absolute;
  left: 86px;
  right: 86px;
  bottom: 46px;
  z-index: 1;
}

.detail-season-row,
.detail-episode-row {
  display: flex;
  gap: 14px;
  overflow: hidden;
}

.detail-season-row {
  margin-bottom: 16px;
}

.season-pill {
  height: 46px;
  min-width: 132px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.season-pill.active {
  background: var(--primary);
  color: #06110d;
}

.episode-preview-card {
  flex: 0 0 245px;
  min-width: 245px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.episode-preview-img {
  position: relative;
  width: 100%;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.42);
}

.episode-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-preview-img b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 34px;
}

.episode-preview-card strong,
.episode-preview-card span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.episode-preview-card strong {
  margin-top: 8px;
  color: var(--primary);
  font-size: 17px;
}

.episode-preview-card span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 800;
}

.catalog-detail-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 25px;
}

@media (min-width: 1600px) {
.panel-subtitle {
  display: none;
}

.category-btn .icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: transparent;
}

.category-btn .icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background:
    linear-gradient(#ffffff, #ffffff) 0 0 / 10px 10px no-repeat,
    linear-gradient(#ffffff, #ffffff) 14px 0 / 10px 10px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 14px / 10px 10px no-repeat,
    linear-gradient(#ffffff, #ffffff) 14px 14px / 10px 10px no-repeat;
  border-radius: 3px;
}

.panel-subtitle {
  min-height: 60px;
  padding: 15px 30px;
  font-size: 24px;
}

  .category-tv-icon {
    width: 36px;
    height: 24px;
  }

  .preview-frame {
    height: clamp(365px, 56vh, 610px);
    min-height: clamp(365px, 56vh, 610px);
    max-height: clamp(365px, 56vh, 610px);
    border-radius: 0;
  }

  .fullscreen-mode .preview-frame {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes footerShowThenHide {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  10%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(22px);
  }
}

@media (max-width: 1500px), (max-height: 900px) {
  html,
  body,
  .app,
  .settings-layout,
  .playlist-layout {
    min-width: 0;
    min-height: 0;
  }

  .home-screen {
    justify-content: flex-start;
    padding: 22px 46px 28px;
  }

  .home-header {
    margin-bottom: 30px;
  }

  .home-logo {
    width: clamp(132px, 13vw, 178px);
    max-height: 124px;
  }

  .menu-grid {
    width: min(1120px, calc(100vw - 88px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
  }

  .menu-card {
    min-width: 0;
    overflow: hidden;
  }

  .menu-card.large,
  .menu-card.small {
    grid-column: auto;
    width: 100%;
    border-radius: 20px;
  }

  .menu-card.large {
    height: clamp(174px, 24vh, 216px);
  }

  .menu-card.small {
    height: clamp(96px, 13vh, 122px);
    gap: 16px;
    padding: 0 26px;
  }

  .menu-card.reload {
    grid-column: 2;
    width: min(330px, 100%);
    height: 68px;
    border-radius: 999px;
    gap: 14px;
  }

  .menu-icon {
    flex: 0 0 auto;
  }

  .menu-icon svg {
    width: clamp(44px, 5vw, 58px);
    height: clamp(44px, 5vw, 58px);
  }

  .small .menu-icon svg,
  .reload .menu-icon svg {
    width: 44px;
    height: 44px;
  }

  .menu-label {
    max-width: 100%;
    margin-top: 24px;
    overflow: hidden;
    font-size: clamp(25px, 2.65vw, 32px);
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .small .menu-label,
  .reload .menu-label {
    min-width: 0;
    margin-top: 0;
    font-size: clamp(18px, 1.95vw, 24px);
    overflow: visible;
    }

  .menu-card.selected {
    outline-width: 3px;
    outline-offset: 4px;
    transform: scale(1.018);
  }

  .home-footer {
    left: 46px;
    right: 46px;
    bottom: 18px;
    gap: 24px;
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.3;
  }

  .games-header {
    left: 40px;
    right: 40px;
    top: 24px;
  }

  .games-header h1 {
    font-size: clamp(34px, 3.8vw, 44px);
  }

  .games-header span {
    font-size: clamp(18px, 2vw, 23px);
  }

  .games-side {
    left: 36px;
    top: 104px;
    bottom: 58px;
    width: clamp(245px, 25vw, 310px);
  }

  .games-side-row {
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    height: clamp(48px, 6.5vh, 60px);
    margin-bottom: 9px;
    gap: 10px;
    padding: 0 14px;
    font-size: clamp(16px, 1.7vw, 20px);
  }

  .games-side-row span,
  .games-side-row img {
    width: 32px;
    height: 32px;
  }

  .games-side-row svg {
    width: 28px;
    height: 28px;
  }

  .games-main {
    left: calc(clamp(245px, 25vw, 310px) + 60px);
    right: 40px;
    top: 104px;
    bottom: 58px;
    overflow: hidden;
  }

  .games-grid {
    gap: 18px;
  }

  .game-card {
    height: clamp(158px, 24vh, 206px);
    padding: 16px 18px;
  }

  .game-card.focused {
    outline-width: 3px;
    outline-offset: 3px;
    transform: scale(1.012);
  }

  .game-league {
    min-height: 26px;
    font-size: clamp(16px, 1.7vw, 21px);
  }

  .game-round,
  .game-channel {
    font-size: clamp(14px, 1.45vw, 18px);
  }

  .game-teams {
    grid-template-columns: minmax(0, 1fr) clamp(82px, 11vw, 130px) minmax(0, 1fr);
    gap: 12px;
  }

  .game-team img,
  .game-team span {
    width: clamp(46px, 6.2vw, 62px);
    height: clamp(46px, 6.2vw, 62px);
    font-size: 17px;
  }

  .game-team strong {
    font-size: clamp(14px, 1.45vw, 17px);
  }

  .game-score {
    font-size: clamp(26px, 3vw, 36px);
  }

  .games-footer {
    left: calc(clamp(245px, 25vw, 310px) + 60px);
    right: 40px;
    bottom: 22px;
    font-size: clamp(15px, 1.6vw, 19px);
  }

  .settings-layout,
  .playlist-layout {
    padding: 30px 42px;
    overflow: hidden;
  }

  .settings-header,
  .playlist-header {
    height: 58px;
    margin-bottom: 26px;
    gap: 18px;
  }

  .settings-header h1,
  .playlist-header h1 {
    font-size: clamp(34px, 3.8vw, 44px);
  }

  .settings-header button,
  .playlist-header button {
    font-size: 18px;
  }

  .settings-content {
    height: calc(100% - 84px);
    gap: 28px;
  }

  .settings-menu {
    width: clamp(270px, 28vw, 340px);
  }

  .settings-option {
    height: clamp(48px, 6.4vh, 58px);
    margin-bottom: 10px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: clamp(16px, 1.65vw, 20px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .settings-panel {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 18px;
    overflow: hidden;
  }

  .settings-panel h2 {
    margin-bottom: 22px;
    font-size: clamp(28px, 3.2vw, 36px);
  }

  .info-panel h3 {
    margin: 20px 0 12px;
    font-size: clamp(21px, 2.35vw, 27px);
  }

  .info-panel div {
    padding: 14px 18px;
    gap: 18px;
    font-size: clamp(16px, 1.8vw, 21px);
  }

  .info-panel span,
  .info-panel strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .settings-placeholder {
    font-size: clamp(18px, 2vw, 23px);
  }

  .settings-choice-list {
    gap: 10px;
  }

  .settings-choice-row {
    height: clamp(50px, 6.6vh, 62px);
    padding: 0 18px;
    font-size: clamp(18px, 2vw, 23px);
  }

  .storage-clear-panel,
  .time-settings-panel {
    min-height: 0;
    height: 100%;
  }

  .storage-clear-row {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 18px;
    font-size: clamp(20px, 2.4vw, 30px);
  }

  .storage-clear-row span {
    height: 50px;
    font-size: 20px;
  }

  .time-format-list {
    width: min(520px, 100%);
  }

  .time-format-row {
    height: 66px;
    padding: 0 22px;
  }

  .playlist-login-layout,
  .playlist-list-screen {
    overflow: hidden;
  }

  .playlist-brand {
    margin-top: clamp(34px, 5vh, 58px);
  }

  .playlist-list-brand {
    margin-top: clamp(28px, 4.5vh, 50px);
  }

  .playlist-form-logo {
    width: clamp(150px, 14vw, 205px);
    max-height: clamp(82px, 11vh, 116px);
  }

  .playlist-add-top {
    right: clamp(36px, 6vw, 78px);
    min-width: clamp(170px, 18vw, 220px);
    height: 48px;
    padding: 0 22px;
    font-size: clamp(17px, 1.8vw, 21px);
  }

  .playlist-form {
    width: min(760px, 70vw);
    margin-top: clamp(36px, 6vh, 56px);
    gap: 14px;
  }

  .playlist-field {
    width: min(760px, 70vw);
    height: clamp(54px, 6.4vh, 68px);
    padding: 0 clamp(28px, 3vw, 46px);
    border-radius: 28px;
    font-size: clamp(22px, 2.2vw, 30px);
  }

  .playlist-field.selected {
    outline-width: 3px;
    outline-offset: 4px;
  }

  .playlist-enter {
    width: min(460px, 45vw);
    height: clamp(54px, 6.4vh, 68px);
    margin-top: clamp(14px, 2.4vh, 24px);
    border-radius: 999px;
    font-size: clamp(24px, 2.5vw, 32px);
  }

  .playlist-enter.selected {
    outline-width: 3px;
    outline-offset: 5px;
  }

  .playlist-status {
    min-height: 24px;
    margin-top: 8px;
    font-size: 18px;
  }

  .playlist-login-footer,
  .playlist-list-footer {
    left: 46px;
    right: 46px;
    bottom: 18px;
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.25;
  }

  .playlist-login-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: end;
  }

  .playlist-login-footer div:last-child,
  .playlist-list-footer div:last-child {
    text-align: right;
  }

  .playlist-list-title {
    width: min(1050px, calc(100vw - 88px));
    margin-top: clamp(26px, 4vh, 46px);
  }

  .playlist-list-title h1 {
    font-size: clamp(34px, 4vw, 48px);
  }

  .playlist-header-actions {
    gap: 14px;
  }

  .playlist-plus,
  .playlist-refresh {
    width: clamp(54px, 6vw, 72px);
    height: clamp(48px, 6vh, 62px);
    font-size: clamp(30px, 3vw, 42px);
  }

  .playlist-refresh svg {
    width: 30px;
    height: 30px;
  }

  .playlist-list-main {
    width: min(1050px, calc(100vw - 88px));
    margin-top: clamp(30px, 5vh, 52px);
  }

  .playlist-list-row-wrap {
    margin-bottom: 12px;
  }

  .playlist-user-row {
    width: calc(100% - 88px);
    height: clamp(58px, 7.2vh, 76px);
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 0 24px;
    font-size: clamp(22px, 2.5vw, 30px);
  }

  .playlist-user-row b {
    font-size: clamp(21px, 2.3vw, 28px);
  }

  .playlist-trash {
    left: auto;
    right: 0;
    width: clamp(56px, 6.2vw, 74px);
    height: clamp(56px, 6.2vw, 74px);
  }

  .playlist-trash svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 900px) {
  .home-screen {
    padding: 18px 24px 24px;
    overflow-y: auto;
  }

  .menu-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .menu-card.reload {
    grid-column: 1 / -1;
  }

  .home-footer {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-footer div:last-child {
    text-align: left;
  }

  .games-side,
  .settings-menu {
    width: 220px;
  }

  .games-main,
  .games-footer {
    left: 278px;
  }
}

@media (max-width: 1500px), (max-height: 900px) {
  .catalog-layout {
    min-width: 0;
    min-height: 0;
    display: flex;
    overflow: hidden;
  }

  .catalog-sidebar {
    width: clamp(250px, 25vw, 330px);
  }

  .catalog-side-header {
    height: clamp(58px, 7vh, 72px);
    padding: 0 20px;
    align-items: center;
    font-size: clamp(19px, 2vw, 24px);
  }

  .catalog-cat-list {
    height: calc(100% - clamp(58px, 7vh, 72px));
    padding: 8px 0;
  }

  .catalog-cat {
    height: clamp(46px, 6.2vh, 58px);
    padding: 0 18px;
    gap: 12px;
    font-size: clamp(16px, 1.7vw, 20px);
  }

  .catalog-cat-count {
    font-size: clamp(15px, 1.55vw, 18px);
  }

  .catalog-main {
    padding: 18px 26px 20px;
    overflow: hidden;
  }

  .catalog-topbar {
    height: clamp(46px, 6vh, 56px);
    gap: 16px;
    margin-bottom: 14px;
  }

  .catalog-topbar h1 {
    font-size: clamp(28px, 3vw, 38px);
  }

  .catalog-topbar span,
  .catalog-back,
  .catalog-search-btn {
    font-size: clamp(15px, 1.55vw, 18px);
  }

  .catalog-search-btn {
    min-width: 128px;
    height: 40px;
  }

  .catalog-back {
    min-width: 104px;
  }

  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .poster-card.selected {
    transform: scale(1.018);
  }

  .poster-image {
    height: clamp(205px, 30vh, 285px);
    border-radius: 8px;
  }

  .poster-card.selected .poster-image {
    outline-width: 3px;
    outline-offset: 3px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.64), 0 0 0 5px rgba(204, 255, 0, 0.12);
  }

  .poster-overlay::before {
    width: 58px;
    height: 58px;
  }

  .poster-overlay::after {
    margin-left: 6px;
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 18px;
  }

  .poster-title {
    margin-top: 9px;
    font-size: clamp(16px, 1.6vw, 20px);
  }

  .poster-rating {
    margin-top: 3px;
    font-size: clamp(13px, 1.3vw, 16px);
  }

  .catalog-loading,
  .catalog-message {
    font-size: clamp(18px, 2vw, 23px);
  }

  .catalog-search-box {
    width: min(620px, 82vw);
    padding: 28px;
  }

  .catalog-search-box h2 {
    font-size: clamp(26px, 3vw, 34px);
  }

  .catalog-search-box input {
    height: 54px;
    font-size: 22px;
  }

  .catalog-detail-body {
    grid-template-columns: clamp(190px, 21vw, 255px) minmax(0, 1fr);
    gap: 28px;
    padding: 38px 46px 0;
  }

  .catalog-detail-poster {
    width: clamp(190px, 21vw, 255px);
    height: clamp(285px, 49vh, 382px);
  }

  .catalog-detail-poster span {
    font-size: 64px;
  }

  .catalog-detail-info {
    padding-top: 2px;
  }

  .catalog-detail-info h1 {
    margin-bottom: 14px;
    font-size: clamp(36px, 4vw, 52px);
  }

  .catalog-detail-meta {
    gap: 10px;
    margin-bottom: 16px;
  }

  .catalog-detail-meta span {
    padding: 7px 11px;
    font-size: clamp(15px, 1.5vw, 19px);
  }

  .catalog-detail-synopsis {
    max-height: 124px;
    overflow: hidden;
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.35;
  }

  .detail-actions {
    gap: 14px;
    margin-top: 22px;
  }

  .detail-action {
    min-width: 128px;
    height: 48px;
    padding: 0 20px;
    font-size: clamp(16px, 1.65vw, 20px);
  }

  .series-seasons {
    margin-top: 18px;
  }

  .season-tabs {
    gap: 10px;
  }

  .season-tab {
    height: 42px;
    padding: 0 16px;
    font-size: 16px;
  }

  .episode-grid {
    gap: 12px;
  }

  .episode-card {
    min-height: 58px;
    padding: 10px 14px;
    font-size: 16px;
  }
}

@media (max-width: 1100px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poster-image {
    height: clamp(190px, 29vh, 255px);
  }

  .catalog-sidebar {
    width: 230px;
  }
}

@media (max-width: 1366px), (max-height: 820px) {
  button,
  .menu-card,
  .catalog-cat,
  .poster-card,
  .detail-action,
  .settings-option,
  .settings-choice-row,
  .games-side-row,
  .game-card,
  .playlist-add-top,
  .playlist-plus,
  .playlist-refresh,
  .playlist-user-row,
  .playlist-trash,
  .playlist-enter {
    cursor: pointer;
  }

  .catalog-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  .catalog-sidebar {
    width: 300px;
    min-width: 0;
  }

  .catalog-side-header {
    height: 58px;
    padding: 0 18px;
    font-size: 22px;
  }

  .catalog-cat-list {
    height: calc(100vh - 58px);
    padding: 4px 0;
  }

  .catalog-cat {
    height: 48px;
    padding: 0 18px;
    font-size: 20px;
  }

  .catalog-cat-count {
    font-size: 18px;
  }

  .catalog-main {
    min-width: 0;
    padding: 14px 20px 16px;
    overflow: hidden;
  }

  .catalog-topbar {
    height: 44px;
    gap: 12px;
    margin-bottom: 10px;
  }

  .catalog-topbar h1 {
    font-size: 36px;
    line-height: 1;
  }

  .catalog-back {
    min-width: 116px;
    font-size: 17px;
  }

  .catalog-search-btn {
    min-width: 126px;
    height: 38px;
    font-size: 17px;
  }

  .catalog-topbar span {
    width: 84px;
    font-size: 17px;
    line-height: 1.1;
  }

  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .poster-image {
    height: 31vh;
    max-height: 238px;
    min-height: 185px;
  }

  .poster-card.selected {
    transform: none;
  }

  .poster-card.selected .poster-image {
    outline-width: 3px;
    outline-offset: 3px;
  }

  .poster-title {
    margin-top: 8px;
    font-size: 19px;
  }

  .poster-rating {
    font-size: 15px;
  }

  .catalog-detail-layer {
    overflow: hidden;
  }

  .catalog-detail-body {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    height: 100vh;
    padding: 52px 46px 0;
    overflow: hidden;
  }

  .catalog-detail-poster {
    width: 300px;
    height: min(494px, 57vh);
  }

  .catalog-detail-info h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: 48px;
    line-height: 1.04;
  }

  .catalog-detail-meta {
    gap: 10px;
    margin-bottom: 18px;
  }

  .catalog-detail-meta span {
    padding: 8px 12px;
    font-size: 18px;
  }

  .catalog-detail-synopsis {
    max-height: 116px;
    margin-bottom: 16px;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.28;
  }

  .catalog-detail-cast,
  .catalog-detail-info p {
    max-width: 100%;
    overflow: hidden;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 18px;
  }

  .detail-action {
    min-width: 0;
    width: 100%;
    height: 54px;
    padding: 0 12px;
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .series-seasons {
    position: absolute;
    left: 46px;
    right: 46px;
    bottom: 46px;
    margin: 0;
  }

  .season-tabs {
    gap: 10px;
    margin-bottom: 10px;
  }

  .season-tab {
    height: 38px;
    padding: 0 16px;
    font-size: 15px;
  }

  .episode-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 12px;
    max-height: 154px;
    overflow: hidden;
  }

  .episode-card {
    min-height: 66px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .episode-thumb {
    height: 64px;
  }
}
