.source-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}
.source-stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: calc(100% + 30px);
  height: 100%;
  border: 0;
  transform: translateX(-15px);
  transform-origin: top left;
}
.source-curtain {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #101116;
}
.source-preparing {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.source-preparing strong {
  font-size: 1.1rem;
}
.source-brand {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 4px;
}
.source-preparing p {
  color: var(--muted);
  margin: 0;
}
.source-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #30353d;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: source-spin 900ms linear infinite;
}
.source-startup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.source-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
@keyframes source-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .source-spinner {
    animation: none;
  }
}
@media (max-width: 600px) {
  .source-curtain {
    padding: 12px;
  }
  .source-preparing {
    gap: 8px;
  }
  .source-preparing p {
    display: none;
  }
  .source-preparing strong {
    font-size: 1rem;
  }
  .source-spinner {
    width: 24px;
    height: 24px;
  }
}
:root {
  font-family:
    "Noto Sans KR",
    system-ui,
    sans-serif;
  color: #ececf2;
  background: #101116;
  font-size: 16px;
  color-scheme: dark;
  --muted: #9a9cae;
  --accent: #a5edbc;
  --panel: #1a1b23;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 0;
}
button,
select {
  min-height: 44px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
header {
  height: 92px;
  border-bottom: 1px solid #262731;
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  background: var(--accent);
  color: #102a1a;
  border-radius: 9px;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-7deg);
}
.web-tag {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid #3a3d47;
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
nav {
  display: flex;
  gap: 24px;
}
.nav {
  background: transparent;
  color: var(--muted);
  position: relative;
  padding: 12px 0;
  font-size: 15px;
}
.nav.active {
  color: var(--accent);
}
.nav.active:after {
  content: "";
  position: absolute;
  bottom: -20px;
  height: 2px;
  left: 0;
  right: 0;
  background: var(--accent);
}
.account {
  display: flex;
  margin-left: auto;
  gap: 12px;
}
.quiet {
  background: transparent;
  color: #b3b5c3;
  font-size: 14px;
  padding: 8px;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 64px 5%;
  min-height: calc(100vh - 170px);
}
.welcome {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: center;
  padding: 44px 0 74px;
  max-width: 1150px;
  margin: auto;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
}
.welcome h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -3px;
  line-height: 1.3;
  margin: 27px 0;
}
.welcome h1 span {
  color: var(--accent);
}
p {
  line-height: 1.8;
  color: var(--muted);
}
.welcome-copy p {
  font-size: 18px;
}
.feature-note {
  margin-top: 45px;
  color: #a2a5b6;
  font-size: 14px;
  border-top: 1px solid #30313b;
  padding-top: 22px;
  max-width: 390px;
}
.login-panel {
  padding: 38px;
  border: 1px solid #30323e;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 80px #0003;
}
.login-panel h2 {
  font-size: 26px;
  letter-spacing: -1px;
  margin: 18px 0 6px;
}
.login-panel p {
  font-size: 14px;
  margin: 0 0 26px;
}
.login-panel label {
  display: block;
  font-size: 14px;
  margin: 18px 0 9px;
  color: #c3c5d1;
}
input {
  background: #111218;
  border: 1px solid #373944;
  border-radius: 8px;
  color: #eee;
  padding: 13px 15px;
  width: 100%;
  min-width: 0;
  outline: none;
}
input:focus {
  border-color: var(--accent);
}
.primary {
  background: var(--accent);
  color: #112b1c;
  border-radius: 8px;
  padding: 13px 24px;
  font-weight: 700;
}
.login-panel .primary {
  width: 100%;
  margin-top: 26px;
}
.login-panel small {
  font-size: 13px;
  line-height: 1.9;
  color: #a1a4b4;
  display: block;
  border-top: 1px solid #30323b;
  padding-top: 22px;
}
#login-error {
  color: #ffadad;
  margin-top: 12px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.section-heading h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  margin: 12px 0;
}
.section-heading p {
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 34px 0 25px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 600px;
}
.search span {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.search input {
  padding-left: 65px;
  height: 50px;
}
select {
  appearance: none;
  background: #20212b;
  color: #ddd;
  border: 1px solid #373944;
  border-radius: 8px;
  padding: 10px 32px 10px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239a9cae'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.secondary {
  background: #282a36;
  border: 1px solid #3b3e4b;
  color: #eee;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
}
.secondary:hover {
  background: #363948;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 32px 22px;
  margin-top: 28px;
}
.card {
  display: block;
  text-align: left;
  background: none;
  color: inherit;
  padding: 0;
  min-width: 0;
}
.poster {
  aspect-ratio: 2/3;
  width: 100%;
  object-fit: cover;
  background:
    linear-gradient(
      135deg,
      #34354b,
      #20252b);
  border-radius: 10px;
  display: block;
}
.poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  line-height: 1.6;
  color: #c0c3d4;
}
.card h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 13px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card small {
  font-size: 13px;
  color: var(--muted);
}
.card:hover .poster {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.progress {
  height: 3px;
  background: #3c3f4a;
  border-radius: 2px;
  margin-top: 9px;
  overflow: hidden;
}
.progress span {
  height: 100%;
  display: block;
  background: var(--accent);
}
.more {
  display: block;
  margin: 40px auto;
}
footer {
  border-top: 1px solid #272832;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  color: #878a9b;
  font-size: 13px;
}
footer span:first-child {
  font-weight: 700;
  color: #d0d2dd;
}
dialog {
  background: #181921;
  color: #ececf2;
  border: 1px solid #373944;
  border-radius: 16px;
  padding: 32px;
  max-width: 900px;
  width: calc(100% - 36px);
  max-height: 90vh;
}
dialog::backdrop {
  background: #06070bd9;
  backdrop-filter: blur(6px);
}
.close {
  display: block;
  margin-left: auto;
  background: #2b2d39;
  color: #eee;
  border-radius: 6px;
  padding: 8px 16px;
}
.detail-head {
  display: flex;
  gap: 25px;
  margin-top: 15px;
  align-items: center;
}
.detail-head .poster {
  width: 150px;
  flex-shrink: 0;
}
.detail-head h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.4;
}
.episode-list {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.episode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: #232531;
  color: #eee;
  border: 1px solid #363947;
  border-radius: 8px;
  padding: 15px;
}
.episode:hover {
  border-color: var(--accent);
}
.episode small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.notice {
  padding: 18px;
  border-radius: 8px;
  background: #262830;
  border: 1px solid #454855;
  color: #bfc1cf;
  line-height: 1.8;
  font-size: 14px;
}
.player-dialog {
  max-width: 1180px;
  background: #101116;
}
.player-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.player-top h2 {
  font-size: 20px;
  margin: 8px 0;
}
.player-dialog video {
  width: 100%;
  max-height: 65vh;
  background: #000;
  display: block;
  border-radius: 8px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.player-controls label {
  font-size: 14px;
  color: var(--muted);
  margin-left: auto;
}
.empty {
  padding: 60px 0;
  text-align: center;
  grid-column: 1/-1;
  color: var(--muted);
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 80px;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 5%;
  }
  .brand {
    font-size: 20px;
  }
  .account {
    gap: 0;
  }
  .quiet {
    font-size: 12px;
    padding: 4px;
  }
  nav {
    order: 3;
    width: 100%;
    gap: 22px;
  }
  .nav.active:after {
    bottom: -4px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 0;
  }
  .welcome h1 {
    font-size: 48px;
  }
  .feature-note {
    margin-top: 26px;
  }
  .login-panel {
    padding: 26px;
  }
  main {
    padding-top: 34px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h1 {
    font-size: 30px;
  }
  .section-heading .muted {
    display: block;
    margin-top: 12px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    flex-basis: 100%;
    max-width: none;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .card h3 {
    font-size: 14px;
  }
  .card small {
    font-size: 12px;
  }
  .detail-head .poster {
    width: 95px;
  }
  .detail-head h2 {
    font-size: 23px;
  }
  dialog {
    padding: 20px;
  }
  .player-top h2 {
    font-size: 16px;
  }
  .player-controls label {
    margin-left: 0;
  }
  footer span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s, outline-color 0.15s;
  }
}
:root {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Noto Sans KR",
    sans-serif;
  --accent:#5cd1bf;
  --panel:#1c2028;
  --muted:#a1abba;
  --sidebar-width:222px;
  background: #0e1015;
  color: #f0f2f7;
}
body {
  background: #0e1015;
  min-width: 320px;
}
button,
input,
select {
  font-size: 14px;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.primary {
  background: var(--accent);
  color: #081c1c;
  border-radius: 8px;
  font-weight: 600;
}
.secondary {
  background: #262b36;
  color: #f0f2f7;
  border: 0;
  border-radius: 8px;
}
.quiet {
  color: var(--muted);
  background: transparent;
}
.eyebrow {
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #13161c;
  border-right: 1px solid #ffffff08;
}
.sidebar-brand {
  font-size: 21px;
  font-weight: 750;
  padding: 24px 18px 16px;
  letter-spacing: -.6px;
}
.sidebar nav {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 0 10px 16px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 7px;
  color: #d9dee7;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 450;
}
.sidebar-link > span:first-child {
  font-size: 18px;
  width: 17px;
  flex-shrink: 0;
  text-align: center;
}
.sidebar-link.active {
  background: var(--accent);
  color: #071c1c;
  font-weight: 650;
}
.sidebar-link:hover:not(.active) {
  background: #ffffff08;
}
.sidebar-link small {
  font-size: 12px;
  color: #8993a3;
  margin-left: auto;
  white-space: nowrap;
}
.sidebar-link.active small {
  color: #173f3b;
}
.sidebar-caption {
  font-size: 12px;
  color: #7f8999;
  margin: 19px 8px 10px;
  font-weight: 600;
}
.sidebar-sections > summary.sidebar-caption { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.sidebar-sections > summary.sidebar-caption::before { content: "▸"; font-size: 10px; }
.sidebar-sections[open] > summary.sidebar-caption::before { content: "▾"; }
.sidebar-sections > summary::-webkit-details-marker { display: none; }
.sidebar-bottom {
  padding: 12px 10px 16px;
}
.sidebar-shade {
  display: none;
}
.app-topbar {
  position: fixed;
  inset: 0 0 auto var(--sidebar-width);
  height: 64px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: #0e1015ed;
  border-bottom: 1px solid #ffffff05;
  backdrop-filter: blur(12px);
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c2028;
  border-radius: 9px;
  padding: 0 10px;
  max-width: 460px;
  width: 100%;
  height: 40px;
  color: #7f8999;
}
.topbar-search input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  color: #f0f2f7;
  padding: 8px 0;
  font-size: 14px;
}
.topbar-search input:focus-visible {
  outline: none;
}
.topbar-search:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
}
.topbar-search button {
  min-height: 36px;
  padding: 0 3px;
}
.app-topbar #refresh {
  margin-left: auto;
  font-size: 23px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
}
main {
  padding: 0;
  max-width: none;
  min-height: 100vh;
}
.signed-in main {
  margin-left: var(--sidebar-width);
  padding-top: 64px;
  min-height: calc(100vh - 60px);
}
.welcome {
  min-height: 100vh;
  padding: 32px;
  max-width: 1200px;
  margin: auto;
}
.welcome h1 {
  font-size: clamp(36px, 5vw, 64px);
}
.signed-in footer {
  margin-left: var(--sidebar-width);
}
footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  color: #7f8999;
  font-size: 12px;
  padding: 24px 22px;
  background: #0e1015;
}
footer img {
  flex-shrink: 0;
}
body:not(.signed-in) > footer {
  display: none;
}
footer span:last-child {
  display: block;
}
#library-status {
  margin: 20px 22px;
  color: var(--muted);
}
#library-status:empty {
  display: none;
}
.section-heading {
  padding: 24px 22px 10px;
  margin: 0;
  display: block;
}
.section-heading h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.section-heading p {
  font-size: 14px;
  margin: 8px 0;
  color: var(--muted);
}
.catalog-filters {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 16px;
}
.catalog-filters select {
  background: #1c2028;
  min-height: 40px;
  border: 1px solid #ffffff0d;
  color: #e8edf5;
  padding: 8px 24px 8px 10px;
  border-radius: 7px;
  max-width: 100%;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 22px 16px;
  padding: 0 22px 22px;
}
.card {
  display: block;
  position: relative;
  padding: 0;
  background: transparent;
  color: inherit;
  min-width: 0;
  width: 100%;
  text-align: left;
  outline-offset: 4px;
  border-radius: 8px;
  align-self: start;
}
.card-art {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #1c2028;
}
.card .poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2/3;
  border-radius: 8px;
  display: block;
}
.card:hover .card-art {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.card:hover .poster {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.card h3 {
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0 5px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  color: #f0f2f7;
}
.card small {
  display: block;
  font-size: 12px;
  color: #8c97a7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.card-tags {
  position: absolute;
  bottom: 7px;
  left: 7px;
  right: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.provider-badges {
  display: flex;
  gap: 3px;
  flex-basis: 100%;
  margin-top: 2px;
}
.provider-badges img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: #141619;
}
.favorite-star {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  background: #000a;
  color: #faca54;
  padding: 4px 6px;
  font-size: 14px;
}
.tag {
  display: inline-block;
  color: #b4becd;
  background: #272d37;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.card .tag {
  background: #000b;
  color: #f0f2f7;
  border-radius: 5px;
}
.card .new-episode {
  background: var(--accent);
  color: #071c1c;
}
.card-rating {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #000a;
  color: #faca54;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 12px;
}
.progress {
  height: 3px;
  margin-top: 7px;
  background: #ffffff15;
}
.progress span {
  background: var(--accent);
}
.more {
  display: block;
  margin: 20px auto 40px;
}
.home-hero {
  position: relative;
  height: 360px;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(
      135deg,
      #213732,
      #141820);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -3;
}
.hero-image.poster-wash {
  filter: blur(24px);
  opacity: .45;
  object-position: 50% 30%;
}
.home-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #0e1015f0,
      #0e101550 65%,
      transparent);
  z-index: -2;
}
.home-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      #0e1015,
      transparent 75%);
  z-index: -1;
}
.hero-content {
  padding: 22px;
  width: min(610px, 90%);
}
.hero-content h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin: 0 0 10px;
  font-weight: 750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-overview {
  font-size: 14px;
  line-height: 1.5;
  color: #a1abba;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hero-actions button {
  min-height: 40px;
  padding: 9px 16px;
}
.home-row {
  padding: 0 22px;
  margin: 26px 0;
}
.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.row-heading h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 0;
  min-width: 0;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.row-actions .quiet {
  font-size: 13px;
  padding: 4px;
}
.row-turn {
  color: #a1abba;
  min-height: 32px;
  width: 32px;
  background: #1c2028;
  border-radius: 7px;
  font-size: 22px;
}
.row-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 174px;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #303743 transparent;
  padding: 2px 2px 10px;
}
.row-track .card {
  scroll-snap-align: start;
}
.home-notice {
  margin: 16px 22px;
}
.poster-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  color: #ccd5dc;
  background:
    linear-gradient(
      135deg,
      #24463e,
      #1c2636);
  font-size: 16px;
}
.detail-dialog {
  position: fixed;
  inset: 64px 0 0 var(--sidebar-width);
  margin: 0;
  width: calc(100% - var(--sidebar-width));
  height: calc(100dvh - 64px);
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #0e1015;
  padding: 20px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  z-index: 16;
}
.detail-dialog .close {
  float: none;
  position: static;
  margin: 0 0 20px;
  background: #262b36;
  color: #e0e6ef;
  border-radius: 7px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 14px;
}
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 0 0 22px;
}
.detail-head > .poster {
  width: 210px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
}
.detail-copy {
  min-width: 0;
  flex: 1;
}
.detail-copy h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.detail-copy p {
  font-size: 14px;
  color: #a1abba;
  line-height: 1.65;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.detail-actions button {
  padding: 9px 16px;
  min-height: 40px;
}
.provider-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}
.provider-details img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}
.episode-heading {
  font-size: 18px;
  margin: 16px 0;
}
.episode-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.episode-tools input {
  width: 300px;
  max-width: 100%;
  background: #1c2028;
  border: 0;
  padding: 10px 12px;
  border-radius: 7px;
  color: inherit;
}
.episode-tools button {
  padding: 8px 12px;
}
.season-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 14px;
  padding: 2px;
}
.season-tabs button {
  white-space: nowrap;
  background: #1c2028;
  color: #f0f2f7;
  padding: 9px 16px;
  border-radius: 7px;
}
.season-tabs button.active {
  background: var(--accent);
  color: #071c1c;
}
.episode-list {
  display: grid;
  gap: 8px;
}
.episode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: #1c2028;
  border: 0;
  border-radius: 8px;
  padding: 16px;
  color: #f0f2f7;
  min-height: 68px;
  text-align: left;
}
.episode:hover {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.episode > span:first-child {
  min-width: 0;
}
.episode small {
  display: block;
  color: #a1abba;
  margin-top: 6px;
  font-size: 13px;
}
.episode .episode-action {
  color: var(--accent);
  font-size: 15px;
  white-space: nowrap;
}
.account-dialog {
  max-width: 460px;
  background: #1c2028;
}
.account-dialog > button {
  margin: 12px 8px 0 0;
}
.player-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  background: #0e1015;
}
.player-top {
  gap: 12px;
  margin-bottom: 18px;
}
.player-top h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.player-top .eyebrow {
  font-size: 12px;
  color: var(--accent);
}
.player-top > button {
  flex-shrink: 0;
}
.player-dialog > p {
  font-size: 14px;
  line-height: 1.6;
}
.player-top > div {
  min-width: 0;
}
.source-options button,
.source-startup-actions button {
  min-height: 44px;
}
.source-stage {
  border-radius: 8px;
}
@media (min-width: 1800px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  }
  .home-hero {
    height: 420px;
  }
  .hero-content {
    width: 690px;
  }
  .hero-content h1 {
    font-size: 40px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar-width:200px;
  }
  .sidebar-brand {
    font-size: 20px;
  }
  .sidebar-link {
    font-size: 13px;
  }
  .sidebar-link small {
    font-size: 11px;
  }
  .row-track {
    grid-auto-columns: 152px;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .detail-head > .poster {
    width: 170px;
  }
  .detail-copy h2 {
    font-size: 26px;
  }
  .catalog-filters {
    justify-content: flex-start;
  }
  .home-hero {
    height: 340px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar-width:222px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .18s ease;
    box-shadow: 12px 0 48px #0006;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-shade:not([hidden]) {
    position: fixed;
    display: block;
    inset: 0;
    z-index: 19;
    background: #0009;
    border-radius: 0;
  }
  .sidebar-link {
    font-size: 14px;
    min-height: 44px;
  }
  .sidebar-link small {
    font-size: 12px;
  }
  .app-topbar {
    left: 0;
    height: 60px;
    padding: 8px 16px;
    gap: 10px;
  }
  .menu-toggle {
    display: block;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 20px;
  }
  .topbar-search {
    max-width: none;
    height: 40px;
  }
  .topbar-search button {
    font-size: 12px;
  }
  .signed-in main {
    margin-left: 0;
    padding-top: 60px;
  }
  .signed-in footer {
    margin-left: 0;
    padding: 20px 16px;
  }
  .home-hero {
    height: 330px;
  }
  .hero-content {
    padding: 20px 16px;
    width: min(570px, 100%);
  }
  .hero-content h1 {
    font-size: 29px;
  }
  .hero-overview {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
  .home-row {
    padding: 0 16px;
    margin: 24px 0;
  }
  .row-track {
    grid-auto-columns: 150px;
    gap: 12px;
  }
  .row-heading h2 {
    font-size: 18px;
  }
  .row-heading .row-turn {
    min-height: 36px;
    width: 36px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 22px 14px;
    padding: 0 16px 20px;
  }
  .section-heading {
    padding: 20px 16px 8px;
  }
  .catalog-filters {
    padding: 0 16px 16px;
    gap: 8px;
  }
  .catalog-filters select {
    flex: 1;
    min-width: 125px;
    font-size: 14px;
    min-height: 44px;
  }
  .detail-dialog {
    inset: 60px 0 0;
    width: 100%;
    height: calc(100dvh - 60px);
    padding: 18px 16px;
  }
  .detail-head {
    gap: 18px;
  }
  .detail-head > .poster {
    width: 150px;
  }
  .detail-copy h2 {
    font-size: 25px;
  }
  .detail-actions button {
    min-height: 44px;
  }
  .card h3 {
    font-size: 14px;
  }
  .detail-dialog .close {
    min-height: 44px;
  }
  .source-options {
    gap: 8px;
  }
  .welcome {
    padding: 24px;
    display: block;
  }
  .welcome-copy {
    margin-bottom: 30px;
  }
  .login-panel {
    max-width: 430px;
    margin: 0 auto;
  }
  .welcome-copy {
    max-width: 430px;
    margin: 20px auto 30px;
  }
  footer span {
    line-height: 1.5;
  }
}
@media (max-width: 480px) {
  .app-topbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .topbar-search {
    padding: 0 8px;
  }
  .topbar-search input {
    font-size: 16px;
  }
  .topbar-search button {
    display: none;
  }
  .home-hero {
    height: 340px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-overview {
    -webkit-line-clamp: 3;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions button {
    font-size: 14px;
    min-height: 44px;
    padding: 9px 13px;
  }
  .home-row {
    margin: 22px 0;
  }
  .row-track {
    grid-auto-columns: 140px;
  }
  .row-heading h2 {
    font-size: 17px;
  }
  .row-actions .quiet {
    font-size: 12px;
  }
  .row-actions {
    gap: 4px;
  }
  .row-turn {
    display: none;
  }
  .row-track {
    padding-bottom: 8px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .detail-head {
    gap: 14px;
    flex-wrap: wrap;
  }
  .detail-head > .poster {
    width: 110px;
  }
  .detail-copy {
    flex: 1;
    min-width: 170px;
  }
  .detail-copy h2 {
    font-size: 23px;
  }
  .detail-copy .tag {
    font-size: 11px;
  }
  .detail-actions {
    gap: 8px;
  }
  .detail-actions button {
    padding: 9px 12px;
  }
  .detail-synopsis {
    flex-basis: 100%;
    margin: 0;
  }
  .episode {
    padding: 14px 12px;
    gap: 10px;
  }
  .episode-tools input {
    width: 100%;
  }
  .episode-tools button {
    flex: 1;
    min-height: 44px;
  }
  .player-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }
  .player-top h2 {
    font-size: 17px;
  }
  .player-top > button {
    font-size: 13px;
    min-height: 44px;
    padding: 8px 12px;
  }
  .source-stage {
    border-radius: 5px;
  }
  .source-preparing strong {
    font-size: 14px;
  }
  .source-preparing {
    gap: 8px;
  }
  .source-spinner {
    width: 20px;
    height: 20px;
  }
  .source-startup-actions button {
    font-size: 12px;
    padding: 7px 10px;
  }
  .source-options {
    flex-direction: column;
    align-items: stretch;
  }
  .source-choice {
    font-size: 12px;
  }
  .player-dialog > p {
    font-size: 13px;
    margin: 10px 0;
  }
  .welcome {
    padding: 20px;
  }
  .welcome h1 {
    font-size: 38px;
  }
  .login-panel {
    padding: 24px;
  }
  .welcome-copy p {
    font-size: 16px;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .app-topbar {
    height: 52px;
  }
  .signed-in main {
    padding-top: 52px;
  }
  .detail-dialog {
    top: 52px;
    height: calc(100dvh - 52px);
  }
  .home-hero {
    height: 285px;
  }
  .hero-content {
    padding-top: 20px;
  }
  .hero-content h1 {
    font-size: 27px;
  }
  .hero-overview {
    -webkit-line-clamp: 2;
  }
  .player-dialog {
    max-height: 100dvh;
    width: min(100%, 1000px);
    padding: 12px 18px;
    border-radius: 0;
  }
  .player-top {
    margin-bottom: 10px;
  }
  .player-top .eyebrow {
    display: none;
  }
  .player-top h2 {
    font-size: 16px;
    margin: 0;
  }
  .player-top button {
    min-height: 36px;
  }
  .source-stage {
    width: min(100%, calc((100dvh - 92px)*1.7778));
    margin-inline: auto;
  }
  .player-dialog > p {
    font-size: 12px;
    margin: 6px 0;
  }
  .row-track {
    grid-auto-columns: 140px;
  }
  .sidebar-brand {
    padding: 12px 18px;
  }
  .sidebar-bottom {
    padding: 6px 10px;
  }
  .sidebar-link {
    min-height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}
@supports (padding:max(0px)) {
  .sidebar-bottom {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .app-topbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .player-dialog {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 12px 0 48px #0006;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-shade:not([hidden]) {
    position: fixed;
    display: block;
    inset: 0;
    z-index: 19;
    background: #0009;
    border-radius: 0;
  }
  .app-topbar {
    left: 0;
  }
  .signed-in main,
  .signed-in footer {
    margin-left: 0;
  }
  .menu-toggle {
    display: block;
    min-width: 40px;
    min-height: 36px;
    padding: 0;
  }
  .detail-dialog {
    left: 0;
    width: 100%;
  }
  .topbar-search {
    max-width: 460px;
  }
  .source-stage {
    max-width: 100%;
  }
}
.player-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.player-actions button {
  min-height: 44px;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 14px;
}
.expanded-player {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  display: block;
}
.expanded-player:not([open]) {
  display: none;
}
.expanded-player .source-stage {
  width: min(100%, calc((100dvh - 110px)*var(--player-ratio,1.7778)));
  margin: auto;
}
.expanded-player video {
  max-height: calc(100dvh - 100px);
}
.expanded-player > p {
  display: none;
}
.expanded-player .player-top {
  margin-bottom: 12px;
}
.expanded-player .source-options {
  justify-content: center;
  margin-top: 8px;
}
.expanded-player .source-choice {
  display: none;
}
@media (max-width: 480px) {
  .player-top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .player-top > div:first-child {
    width: 100%;
  }
  .player-top .eyebrow {
    display: none;
  }
  .player-actions {
    margin-left: auto;
  }
  .player-actions button {
    min-height: 44px;
    font-size: 13px;
  }
  .expanded-player {
    padding: 12px;
  }
  .expanded-player .player-top {
    flex-wrap: nowrap;
    align-items: center;
  }
  .expanded-player .player-top > div:first-child {
    width: auto;
  }
  .expanded-player .player-top h2 {
    font-size: 14px;
  }
  .expanded-player .player-actions {
    gap: 6px;
  }
  .expanded-player .player-actions button {
    padding: 7px 8px;
    font-size: 12px;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .player-top {
    align-items: center;
    flex-wrap: nowrap;
  }
  .player-actions button {
    min-height: 36px;
    font-size: 13px;
  }
  .source-stage {
    width: min(100%, calc((100dvh - 100px)*var(--player-ratio,1.7778)));
  }
  .expanded-player {
    padding: 10px 16px;
  }
  .expanded-player .source-stage {
    width: min(100%, calc((100dvh - 72px)*var(--player-ratio,1.7778)));
  }
  .expanded-player .source-options {
    position: absolute;
    bottom: 8px;
    right: 16px;
    background: #0e1015d9;
    padding: 4px;
    border-radius: 8px;
  }
}
.topbar-search button {
  flex-shrink: 0;
  white-space: nowrap;
}
.app-topbar {
  flex-wrap: nowrap;
}
.app-topbar .topbar-search {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
@media (pointer: coarse) {
  .sidebar-link,
  .row-turn,
  .menu-toggle,
  .player-actions button,
  .topbar-search button,
  .app-topbar #refresh {
    min-height: 44px;
  }
  .row-turn {
    min-width: 44px;
  }
  .topbar-search {
    height: 44px;
  }
  .app-topbar #refresh {
    min-width: 44px;
  }
  .season-tabs button {
    min-height: 44px;
  }
}
.app-topbar {
  min-height: 0;
}
/* The player always uses the viewport. All app controls stay outside the video. */
.player-dialog.expanded-player[open] {
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px 20px;
  gap: 12px;
  overflow: hidden;
}
.expanded-player .player-top {
  flex: none;
  margin: 0;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.expanded-player .player-top > div:first-child { width: auto; flex: 1; min-width: 0; }
.expanded-player .player-top h2 {
  font-size: 18px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.expanded-player .player-top .eyebrow { display: none; }
.player-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.expanded-player .source-stage {
  flex: none;
  max-width: 100%;
  margin: 0;
}
.expanded-player .player-viewport video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.player-footer {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  min-width: 0;
}
.player-footer:empty { display: none; }
.expanded-player .player-footer .source-options {
  position: static;
  margin: 0;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.expanded-player .source-choice { display: inline; font-size: 13px; }
.episode-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}
.episode-navigation button { min-height: 44px; min-width: 80px; white-space: nowrap; }
.episode-navigation span { font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-footer .player-controls { margin: 0; }
@media (max-width: 600px) {
  .player-dialog.expanded-player[open] { padding: 10px 12px; gap: 8px; }
  .expanded-player .player-top h2 { font-size: 15px; }
  .expanded-player .player-actions button { min-height: 44px; font-size: 13px; }
  .player-footer { gap: 8px; }
  .episode-navigation { margin-left: auto; }
  .episode-navigation span { max-width: 110px; font-size: 12px; }
  .episode-navigation button { min-width: 74px; padding: 8px 10px; font-size: 13px; }
  .expanded-player .player-footer .source-options { gap: 8px; }
  .source-choice { font-size: 12px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .player-dialog.expanded-player[open] { padding: 8px 14px; gap: 6px; }
  .expanded-player .player-top h2 { font-size: 15px; }
  .player-footer { gap: 6px 12px; }
  .player-footer button { min-height: 40px; }
}

/* Sign in */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.login-screen {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 32px 24px;
}
.login-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 340px);
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.login-brand img { display: block; border-radius: 16px; }
.login-brand h1 {
  margin: 0;
  color: #f0f2f7;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.8px;
}
.login-card input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #2b313d;
  border-radius: 10px;
  background: #191e26;
  color: #f0f2f7;
  font-size: 16px;
}
.login-card input::placeholder { color: #8590a1; }
.login-card .primary { min-height: 52px; margin-top: 4px; font-size: 16px; }
.login-card #login-error { margin: 0; color: #f27979; font-size: 14px; line-height: 1.5; }
.login-card #login-error:empty { display: none; }

#live-content { padding: 26px 22px; }
.live-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.live-heading h1 { margin: 0; font-size: 26px; }
.live-heading > span { font-size: 13px; white-space: nowrap; }
.live-providers { display: flex; gap: 8px; margin-bottom: 18px; }
.live-providers button { min-width: 90px; min-height: 44px; }
.live-providers .active { background: var(--accent); color: #10201d; }
.live-sports { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.live-sports button { min-height: 44px; flex: none; white-space: nowrap; }
.live-sports .active { background: var(--accent); color: #10201d; }
.live-subfilters { margin-top: -8px; margin-bottom: 18px; }
.live-subfilters button { min-height: 38px; font-size: 0.9em; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,270px),1fr)); gap: 14px; }
.live-match { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; min-height: 206px; padding: 18px; border: 1px solid #ffffff10; border-radius: 13px; background: #1b2029; color: #f0f2f7; text-align: left; }
.live-match:hover { background: #252c37; border-color: #67d9c960; }
.live-match:disabled { cursor: default; opacity: .65; }
.live-match:disabled:hover { background: #1b2029; border-color: #ffffff10; }
.live-match:disabled .live-play { color: #aab3bf; }
.live-match-status { font-size: 13px; color: #b9c4d2; }
.live-sport-mark { font-size: 25px; line-height: 1; }
.live-match-sport { color: #9ca8b8; font-size: 12px; }
.live-match-title { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.live-match-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; margin-top: auto; padding-top: 8px; font-size: 13px; }
.live-channel { padding: 0; gap: 0; overflow: hidden; }
.live-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0b1a17; }
.live-channel .live-match-title { padding: 10px 14px 0; font-size: 15px; }
.live-channel .live-match-footer { padding: 6px 14px 12px; }
.live-channel.no-thumb { padding: 18px; gap: 10px; }
.live-channel.no-thumb .live-match-title, .live-channel.no-thumb .live-match-footer { padding-left: 0; padding-right: 0; }
.live-channel { position: relative; }
.live-thumb-fallback { display: flex; align-items: center; justify-content: center; position: relative; background: linear-gradient(135deg, #202a38, #2d3a4d); }
.live-thumb-initial { font-size: 46px; font-weight: 800; color: #93a6bd; line-height: 1; }
.live-thumb-mark { position: absolute; right: 10px; bottom: 8px; font-size: 20px; opacity: .75; }
.live-fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(8,14,20,.6); color: #cdd6e2; font-size: 18px; line-height: 1; cursor: pointer; }
.live-fav.on { color: #ffd34d; }
.live-fav:hover { background: rgba(8,14,20,.88); }
@media (prefers-reduced-motion: reduce) { .live-fav { transition: none; } }
.live-reserve-heading { margin: 22px 0 12px; font-size: 16px; color: #d6deea; }
.live-reserve .live-match-footer button { min-height: 38px; padding: 0 12px; }
.live-reserve-play { background: var(--accent); color: #10201d; border: none; border-radius: 8px; }
.live-play { color: var(--accent); white-space: nowrap; }
.player-loading { display: flex; flex: 1; min-height: 160px; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #cbd5df; line-height: 1.6; }
.player-loading.is-loading::before { content: ""; width: 22px; height: 22px; flex: none; border: 2px solid #52616d; border-top-color: var(--accent); border-radius: 50%; animation: source-spin .85s linear infinite; }
@media (prefers-reduced-motion: reduce) { .player-loading.is-loading::before { animation: none; } }
@media (max-width: 600px) {
  #live-content { padding: 20px 12px; }
  .live-heading h1 { font-size: 23px; }
  .live-match { min-height: 182px; padding: 16px; }
}

.account-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 24px;
}
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-heading h2 { margin: 0; font-size: 22px; }
.account-heading button { min-height: 44px; }
#account-email { overflow-wrap: anywhere; margin: 10px 0 24px; }
.account-form { display: grid; gap: 10px; margin: 0; }
.account-form h3 { font-size: 16px; margin: 0 0 4px; }
.account-form input { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
.account-form button { min-height: 44px; }
.account-delete-section { border-top: 1px solid #ffffff14; margin-top: 24px; padding-top: 16px; }
.account-delete-section summary { cursor: pointer; color: #f1a3a3; min-height: 44px; padding-block: 10px; }
.account-delete-section[open] summary { margin-bottom: 8px; }
.account-danger { color: #ffd5d5; background: #7b3038; }
.account-danger:hover { background: #93404a; }
.account-delete-confirmation p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.account-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
#account-message { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #c9d2db; }
#account-message:empty { display: none; }
@media (max-width: 420px), (max-height: 500px) {
  .account-dialog { padding: 18px; }
  #account-email { margin-bottom: 18px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .login-screen { padding: 20px 24px; }
  .login-brand { flex-direction: row; justify-content: center; gap: 12px; margin-bottom: 6px; }
  .login-brand img { width: 48px; height: 48px; border-radius: 11px; }
  .login-brand h1 { font-size: 28px; }
}

/* Native video actions remain outside the image at a touchable size. */
.player-viewport { position: relative; }
.player-loading.is-vod-loading { position: absolute; inset: 0; z-index: 1; background: #000; pointer-events: none; }
.up-next {
  position: absolute;
  right: 20px;
  bottom: 64px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(320px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(16, 18, 26, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: up-next-in 0.25s ease;
}
@media (prefers-reduced-motion: reduce) { .up-next { animation: none; } }
@keyframes up-next-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.up-next-label { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.up-next-title { font-size: 15px; line-height: 1.35; color: #f2f4f8; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.up-next-actions { display: flex; gap: 8px; margin-top: 4px; }
.up-next-actions .primary, .up-next-actions .secondary { flex: 1; min-height: 38px; padding: 8px 12px; }
#up-next-count { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: 0.85; }
@media (max-width: 560px) { .up-next { right: 12px; bottom: 56px; left: 12px; max-width: none; } }
#video-tv, #video-fullscreen { min-height: 44px; min-width: 80px; }
button[aria-busy="true"] { cursor: progress; }

/* Keep native and app controls covered until the first restored video frame. */
.player-loading.is-vod-loading {
  z-index: 3;
  flex-direction: column;
  gap: 24px;
  background: radial-gradient(ellipse at center, #151d2b 0%, #090d15 56%, #05070b 100%);
  pointer-events: auto;
}
.player-loading.is-loading::before { display: none; }
.playback-loading-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.playback-loading-brand img { width: clamp(56px, 9vw, 80px); height: auto; border-radius: 18px; }
.playback-loading-brand strong { font-size: clamp(26px, 5vw, 38px); letter-spacing: -.04em; line-height: 1.2; color: #f4f7fc; }
.playback-loading-spinner { width: 24px; height: 24px; border: 2px solid #ffffff26; border-top-color: var(--accent); border-radius: 50%; animation: source-spin .85s linear infinite; }
.is-preparing .player-footer { visibility: hidden; pointer-events: none; }
@media (max-height: 430px) {
  .player-loading.is-vod-loading { gap: 14px; padding: 12px; }
  .playback-loading-brand { flex-direction: row; gap: 12px; }
  .playback-loading-brand img { width: 48px; border-radius: 12px; }
  .playback-loading-brand strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .playback-loading-spinner { animation: none; } }

/* Consistent playback glyphs; labels remain available to assistive technology. */
#player-dialog .icon-control { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #ffffff0d; border-radius: 12px; }
.control-icon { width: 23px; height: 23px; flex: none; }
#player-dialog .player-controls { align-items: center; gap: 8px; }
#player-dialog .speed-control { margin: 0; }
#player-dialog #speed { width: 72px; height: 44px; min-height: 44px; padding: 0 8px; border: 1px solid #ffffff16; border-radius: 12px; background: #1b202b; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.source-label-short { display: none; }
#player-dialog #video-tv[aria-pressed="true"] { color: var(--accent); background: #163d38; border-color: #70dbc34d; }
#player-dialog .icon-control:focus-visible { outline-offset: 2px; }
@media (max-width: 600px), (max-width: 1000px) and (max-height: 540px) and (orientation: landscape) {
  #player-dialog.expanded-player[open] { padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); gap: 8px; }
  #player-dialog .control-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  #player-dialog .icon-control { width: 44px; min-width: 44px; min-height: 44px; height: 44px; padding: 0; border-radius: 12px; background: #1b202b; color: #e1e8f3; touch-action: manipulation; }
  #player-dialog .icon-control:disabled { opacity: .35; cursor: default; }
  #player-dialog .control-icon { width: 24px; height: 24px; }
  #player-dialog .player-top h2 { font-size: 14px; line-height: 1.4; }
  #player-dialog .player-actions #player-close { background: #ffffff09; }
  #player-dialog .player-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  #player-dialog .player-controls { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: flex-end; gap: 8px; width: 100%; padding: 0; border: 0; }
  #player-dialog .speed-control { display: none; }
  #player-dialog #speed { width: 72px; height: 44px; padding-inline: 6px; font-size: 16px; }
  #player-dialog .source-options { grid-column: 1; grid-row: 2; gap: 0; flex-wrap: nowrap; }
  #player-dialog #source-choice { display: none; }
  #player-dialog .source-switch { width: auto; max-width: 100%; gap: 6px; padding-inline: 10px; font-size: 12px; }
  #player-dialog .source-switch .control-icon { width: 18px; height: 18px; }
  #player-dialog .source-label-short { display: inline; white-space: nowrap; }
  #player-dialog .episode-navigation { grid-column: 2; grid-row: 2; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; margin: 0; }
  #player-dialog #player-episode-label { max-width: none; text-align: center; font-size: 0; }
  #player-dialog #player-episode-label::after { content: attr(data-compact); font-size: 12px; }
}
@media (min-width: 360px) and (max-width: 600px), (min-width: 560px) and (max-width: 1000px) and (max-height: 540px) and (orientation: landscape) {
  #player-dialog .player-footer { grid-template-columns: auto minmax(120px, 1fr) auto; gap: 8px 12px; align-items: center; }
  #player-dialog .player-controls { grid-column: 3; grid-row: 1; width: 96px; padding: 0; border: 0; }
  #player-dialog .source-options { grid-column: 1; grid-row: 1; }
  #player-dialog .episode-navigation { grid-column: 2; grid-row: 1; width: 100%; }
}

#player-dialog .icon-control:active:not(:disabled) { background: #2a3648; }
