@font-face {
  font-family: Local;
  src: local("Avenir Next");
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #193d36;
  --paper: #f6f4e9;
  --orange: #f66c38;
  --lime: #e9ee97;
  --muted: #626e62;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Local, "Avenir Next", Avenir, system-ui, sans-serif;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 98px;
  margin: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #193d3630;
}
.brand {
  font-size: 39px;
  letter-spacing: -3px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tv {
  font-size: 24px;
  letter-spacing: -1px;
  border: 2px solid currentColor;
  padding: 0 7px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transform: rotate(-5deg);
  line-height: 1.1;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.tagline,
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.text-button {
  background: none;
  border: 0;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 700;
}
.text-button span {
  margin-left: 12px;
}
.hero {
  margin: 0 5%;
  min-height: 465px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 48px 0 42px;
}
.eyebrow {
  margin: 0 0 21px;
  line-height: 1.6;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  margin-right: 6px;
}
h1 {
  font-size: clamp(50px, 5.9vw, 88px);
  letter-spacing: -5px;
  line-height: 1.02;
  margin: 0 0 24px;
  font-weight: 900;
}
h1 span {
  color: var(--orange);
}
.hero-description {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.button {
  min-height: 46px;
  border-radius: 7px;
  padding: 12px 20px;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dark {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.dark:hover {
  background: #2e5645;
}
.outline {
  background: transparent;
  border: 1px solid #193d3650;
  color: var(--ink);
}
.outline:hover {
  background: #193d3609;
}
.small-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.hero-art {
  height: 350px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 48% 46% 44% 50%;
  isolation: isolate;
  margin: 5px 12px 0 25px;
}
.retro-tv {
  width: 82%;
  background: #244e41;
  border: 3px solid var(--ink);
  padding: 17px 14px 14px;
  border-radius: 26px;
  transform: rotate(-8deg);
  box-shadow: 8px 12px 0 #183d3533;
  display: flex;
  gap: 12px;
  position: relative;
}
.screen {
  border-radius: 48%/12%;
  background: var(--lime);
  border: 5px solid #0f302a;
  min-height: 194px;
  width: 88%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #193d3608 4px
  );
  position: relative;
}
.rocket {
  font-size: clamp(30px, 4.1vw, 61px);
  font-weight: 1000;
  line-height: 0.85;
  letter-spacing: -2px;
  font-style: italic;
  transform: rotate(-4deg);
  margin: 15px 0;
  color: #1e4a3f;
  text-shadow: 2px 2px #f6f4e9;
}
.screen-small,
.screen-bottom {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.tv-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.tv-controls i {
  height: 19px;
  width: 19px;
  border: 2px solid #102f29;
  border-radius: 50%;
  background: var(--paper);
}
.tv-controls span {
  writing-mode: vertical-rl;
  font-size: 17px;
}
.antenna {
  position: absolute;
  left: 47%;
  top: -40px;
  height: 40px;
  width: 44px;
  border-left: 3px solid var(--ink);
  transform: rotate(-23deg);
  z-index: -1;
}
.antenna:after {
  content: "";
  position: absolute;
  left: 8px;
  height: 45px;
  width: 3px;
  background: var(--ink);
  transform: rotate(60deg);
}
.sticker {
  position: absolute;
  right: -5px;
  top: -5px;
  background: var(--lime);
  border: 1px solid var(--ink);
  padding: 19px 13px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  transform: rotate(12deg);
  border-radius: 50%;
  z-index: 2;
  line-height: 1.1;
}
.star {
  position: absolute;
  font-size: 69px;
  z-index: 3;
}
.star-one {
  left: -20px;
  top: 10px;
}
.star-two {
  right: 10px;
  bottom: 10px;
  color: var(--lime);
  font-size: 58px;
}
.art-caption {
  position: absolute;
  bottom: -25px;
  font-size: 13px;
  font-style: italic;
  transform: rotate(-3deg);
}
.ticker {
  border-top: 1px solid #193d3628;
  border-bottom: 1px solid #193d3628;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 25px;
  padding: 15px 3%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker b {
  font-size: 23px;
  color: var(--orange);
}
.library {
  padding: 48px 5% 50px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
h2 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin: 0;
  font-weight: 850;
}
.count {
  font-size: 11px;
  color: var(--muted);
}
.library-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.season-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.season-tabs button {
  border: 1px solid #193d3628;
  background: transparent;
  border-radius: 6px;
  padding: 10px 17px;
  font-size: 11px;
  font-weight: 700;
  min-height: 42px;
}
.season-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.search {
  border-bottom: 1px solid #193d3640;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search span {
  font-size: 25px;
}
.search input {
  padding: 9px 0;
  background: transparent;
  border: 0;
  width: 170px;
  font-size: 12px;
  color: var(--ink);
  outline-offset: 5px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px 20px;
}
.episode-card {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0;
  color: var(--ink);
  min-width: 0;
}
.episode-image {
  position: relative;
  aspect-ratio: 16/10;
  background: #c9ddca;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 11px;
}
.episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.episode-card:hover img {
  transform: scale(1.045);
}
.episode-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--paper);
  font-size: 9px;
  font-weight: 800;
  padding: 5px 7px;
  border-radius: 3px;
}
.play-circle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 10px;
  padding-left: 2px;
}
.episode-meta {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 5px;
}
.episode-title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
  margin: 0;
}
.episode-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 0;
  appearance: none;
}
.episode-progress::-webkit-progress-bar {
  background: #ffffff50;
}
.episode-progress::-webkit-progress-value {
  background: var(--orange);
}
.airplay-strip {
  margin: 0 5% 46px;
  padding: 27px 30px;
  background: #e6eadc;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 12px;
}
.airplay-strip h3 {
  font-size: 18px;
  margin: 0 0 5px;
  letter-spacing: -0.4px;
}
.airplay-strip p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.airplay-strip button {
  margin-left: auto;
}
.airplay-symbol {
  font-size: 36px;
  line-height: 0.48;
  text-align: center;
  padding: 10px;
}
footer {
  margin: 0 5%;
  border-top: 1px solid #193d3628;
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 22px 0 30px;
}
footer > .brand {
  font-size: 27px;
}
footer .tv {
  font-size: 17px;
}
footer > span {
  font-size: 11px;
  margin-left: auto;
}
.footer-star {
  color: var(--orange);
  font-size: 20px;
  vertical-align: middle;
  margin-left: 12px;
}
footer button {
  font-size: 10px !important;
}
.login {
  padding: 65px 0 80px;
  margin: auto;
  max-width: 560px;
  text-align: center;
}
.login h1 {
  font-size: 70px;
}
.login > p:not(.eyebrow) {
  line-height: 1.7;
  color: var(--muted);
}
.sunburst {
  color: var(--orange);
  font-size: 75px;
}
.login label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  margin: 28px 0 9px;
}
.code-row {
  display: flex;
  gap: 8px;
}
.code-row input {
  width: 100%;
  min-width: 0;
  padding: 13px;
  border-radius: 6px;
  border: 1px solid #193d3650;
  background: #fffef8;
}
.code-row button {
  white-space: nowrap;
}
.handwritten {
  font-style: italic;
  font-size: 15px;
}
.error {
  color: #ab3020;
  font-size: 13px;
  line-height: 1.6;
}
.notice {
  font-size: 13px;
  padding: 15px;
  background: #f7e2c9;
  border-radius: 7px;
}
.empty {
  text-align: center;
  padding: 60px;
}
.error:empty {
  display: none;
}
dialog {
  border: 0;
  border-radius: 17px;
  background: var(--paper);
  color: var(--ink);
  padding: 34px;
  max-width: 520px;
  width: calc(100% - 30px);
  box-shadow: 0 25px 100px #0004;
}
dialog::backdrop {
  background: #0b251ee0;
}
dialog ol {
  padding-left: 22px;
  line-height: 1.8;
  font-size: 14px;
}
dialog li {
  padding: 9px 0;
}
.close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}
.close:hover {
  background: #193d3610;
  border-radius: 50%;
}
#helpDialog > .close {
  position: absolute;
  right: 15px;
  top: 12px;
}
#playerDialog {
  max-width: 1000px;
  padding: 20px;
}
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.player-header h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.player-header .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}
video {
  width: 100%;
  max-height: 65vh;
  background: #10271f;
  border-radius: 9px;
  display: block;
  aspect-ratio: 16/9;
}
.player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
#playHint {
  font-size: 11px;
  color: var(--muted);
}
.preparing {
  padding: 60px 20px;
  text-align: center;
  background: #e6eadc;
  border-radius: 9px;
}
.preparing p {
  font-size: 13px;
  color: var(--muted);
}
.preparing progress {
  width: 80%;
  height: 8px;
  accent-color: var(--orange);
}
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #193d3620;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
:focus-visible {
  outline: 3px solid #d85220;
  outline-offset: 4px;
}
@media (min-width: 1500px) {
  body {
    max-width: 1500px;
    margin: auto;
  }
}
@media (max-width: 900px) {
  .tagline {
    display: none;
  }
  .hero {
    gap: 5px;
  }
  .hero-art {
    height: 280px;
    margin-left: 10px;
  }
  .screen {
    min-height: 160px;
  }
  .episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero-description br {
    display: none;
  }
  .sticker {
    font-size: 9px;
    padding: 15px 10px;
  }
  .retro-tv {
    width: 88%;
    padding: 12px 9px;
  }
  .screen-small,
  .screen-bottom {
    font-size: 5px;
  }
  .ticker {
    justify-content: start;
  }
  .art-caption {
    font-size: 11px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 78px;
  }
  .brand {
    font-size: 34px;
  }
  .topbar .text-button {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 0 44px;
    gap: 34px;
  }
  .hero h1 {
    font-size: 54px;
    letter-spacing: -3px;
    margin-bottom: 19px;
  }
  .hero-description {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 21px;
  }
  .hero-art {
    height: 245px;
    max-width: 350px;
    width: 90%;
    margin: 0 auto;
  }
  .screen {
    min-height: 145px;
  }
  .rocket {
    font-size: 46px;
  }
  .retro-tv {
    width: 80%;
  }
  .sticker {
    right: -4px;
  }
  .hero .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .small-note {
    font-size: 10px;
  }
  .ticker {
    padding: 10px 5%;
    font-size: 8px;
    gap: 22px;
  }
  .ticker b {
    font-size: 20px;
  }
  .library {
    padding-top: 32px;
  }
  .section-heading {
    align-items: start;
    gap: 10px;
  }
  h2 {
    font-size: 24px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .count {
    font-size: 9px;
    white-space: nowrap;
    padding-top: 24px;
  }
  .library-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    margin-bottom: 20px;
  }
  .season-tabs {
    gap: 5px;
  }
  .season-tabs button {
    padding: 10px 12px;
    font-size: 10px;
    flex: 1;
    white-space: nowrap;
  }
  .search input {
    width: 100%;
    font-size: 13px;
  }
  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 12px;
  }
  .episode-title {
    font-size: 12px;
  }
  .episode-meta {
    font-size: 8px;
  }
  .episode-badge {
    font-size: 8px;
    top: 7px;
    left: 7px;
  }
  .episode-image {
    border-radius: 7px;
  }
  .airplay-strip {
    padding: 22px 18px;
    flex-wrap: wrap;
    gap: 13px;
  }
  .airplay-strip h3 {
    font-size: 16px;
  }
  .airplay-strip p {
    font-size: 11px;
    max-width: 220px;
    line-height: 1.6;
  }
  .airplay-strip button {
    margin-left: 0;
    width: 100%;
  }
  .airplay-symbol {
    font-size: 29px;
    padding: 5px;
  }
  footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  footer > span {
    font-size: 9px;
  }
  .footer-star {
    margin-left: 5px;
  }
  footer #logout {
    width: 100%;
    text-align: right;
    padding: 0;
  }
  .login {
    margin: 0 6%;
    padding-top: 30px;
  }
  .login h1 {
    font-size: 62px;
  }
  .code-row {
    flex-direction: column;
  }
  .player-header h2 {
    font-size: 16px;
  }
  #playerDialog {
    padding: 13px;
  }
  .player-bottom {
    flex-wrap: wrap;
  }
  .player-bottom .button {
    flex: 1;
  }
  #playHint {
    width: 100%;
    order: 3;
    text-align: center;
    font-size: 10px;
  }
  .preparing {
    padding: 35px 12px;
  }
  dialog {
    padding: 30px 23px;
  }
  .button {
    min-height: 46px;
  }
  .hero-actions .button {
    padding: 12px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.episode-card {
  display: block;
}
.episode-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 5% 55px;
  min-height: 70vh;
}
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
}
.episode-page .player-header {
  margin-bottom: 24px;
}
.episode-page .player-header h2 {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.25;
}
.episode-page video {
  max-height: 70vh;
}
.episode-page .player-bottom {
  margin-top: 22px;
}
@media (max-width: 600px) {
  .episode-page {
    padding-top: 18px;
    min-height: 65vh;
  }
  .back-link {
    margin-bottom: 18px;
  }
}
