:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #000;
  color: #f5f5f7;
  font-synthesis: none;
  --edge: clamp(18px, 4vw, 64px);
  --edge-left: max(var(--edge), env(safe-area-inset-left));
  --edge-right: max(var(--edge), env(safe-area-inset-right));
}
:root, [data-theme="dark"] { --lg-fill: #59b3ff; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { min-width: 44px; min-height: 44px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:not(.lg-button):focus-visible, a:focus-visible, input:not(.lg-input input):focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
h1:focus { outline: none; }
::selection { background: #ffffff35; }
#app { min-height: 100svh; }
.detail-page { padding-bottom: 120px; }
.hero { background: #000; }
.hero-information { width: min(100%, 880px); margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) var(--edge-right) 24px var(--edge-left); text-align: center; }
.hero-artwork { width: min(100%, 680px); min-height: 100px; margin: 0 auto 24px; }
.hero-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.artwork-status { min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.artwork-status p { margin: 0; color: #dddde1; font-size: 14px; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.genre-line { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: #f5f5f7; }
.episode-line { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: #e1e1e5; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin: 12px 0; align-items: center; }
.lg-button.primary-action { color: #0b0b0d; font-size: 17px; font-weight: 650; }
.download-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 200px; min-height: 44px; max-width: 100%; padding: 10px 20px; border-radius: 999px; background: #f5f5f7; color: #0b0b0d; font-size: 17px; font-weight: 650; text-decoration: none; }
.download-action:hover { background: #e3e3e7; }
.download-action:active { background: #d2d2d7; }
.download-action svg { width: 22px; height: 22px; flex: 0 0 auto; }
.synopsis { margin: 0; text-align: left; font-size: 14px; line-height: 1.5; color: #e3e3e7; }
.media-facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 10px; color: #d2d2d7; font-size: 13px; line-height: 17px; }
.download-status { min-height: 0; margin: 0; font-size: 14px; line-height: 1.5; }
.download-status:not(:empty) { margin-top: 12px; }
.bottom-navigation { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: calc((100% + env(safe-area-inset-left) - env(safe-area-inset-right)) / 2); transform: translateX(-50%); width: max-content; max-width: calc(100% - var(--edge-left) - var(--edge-right)); z-index: 5; }
.library-page { padding: 0 var(--edge-right) 120px var(--edge-left); min-height: 100svh; }
.library-header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding-top: env(safe-area-inset-top); }
.wordmark { font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.library-page > h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.035em; margin: 18px 0 22px; }
.empty-library { min-height: 48svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.empty-library > svg { width: 54px; height: 54px; color: #8e8e93; }
.empty-library h2 { font-size: 22px; letter-spacing: -.02em; margin: 24px 0 8px; }
.empty-library p { font-size: 16px; color: #aaaab2; line-height: 1.5; max-width: 28ch; margin: 0 0 22px; }
.library-note { font-size: 14px; color: #aaaab2; margin: 0 0 22px; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 20px; }
.video-card { padding: 0; text-align: left; border: 0; color: inherit; background: transparent; cursor: pointer; }
.card-image { position: relative; display: block; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: #1c1c1e; }
.card-image > img { width: 100%; height: 100%; object-fit: cover; }
.card-image > svg { width: 46px; height: 46px; margin: 30px; color: #8e8e93; }
.card-title { display: block; font-weight: 650; font-size: 17px; margin-top: 12px; }
.card-caption { display: block; color: #aaaab2; font-size: 14px; margin-top: 4px; }
.library-search { margin-bottom: 24px; }
.about-page { max-width: 720px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) var(--edge-right) 140px var(--edge-left); }
.about-page h1 { font-size: 34px; letter-spacing: -.025em; margin: 0 0 12px; }
.about-intro { font-size: 20px; line-height: 1.4; color: #f5f5f7; }
.about-page section { margin-top: 32px; }
.about-page h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.about-page section p { font-size: 16px; line-height: 1.6; color: #d2d2d7; margin: 0; }
.privacy-glow-phrase {
  color: #f4f9ff;
  font-weight: 600;
  text-shadow: 0 0 8px rgb(89 179 255 / 0.82), 0 0 20px rgb(89 179 255 / 0.55), 0 0 34px rgb(92 200 192 / 0.38);
}
.about-page > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; color: #59b3ff; text-underline-offset: 4px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
input { font-size: 16px; }
.open-action { width: 100%; margin-top: 18px; }
.form-status { min-height: 1.5em; color: #dddde1; font-size: 14px; line-height: 1.5; margin-bottom: 0; }
@media (min-width: 800px) {
  .hero-information { padding-top: 80px; padding-bottom: 36px; }
  .genre-line { font-size: 18px; }
  .episode-line { font-size: 16px; }
  .hero-actions { margin-top: 24px; }
  .media-facts { justify-content: center; }
  .synopsis { text-align: left; max-width: 65ch; margin: auto; font-size: 16px; line-height: 1.45; }
  .library-page { max-width: 1500px; margin: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-information { animation: reveal-content .45s cubic-bezier(.16,1,.3,1) both; }
  .card-image img { transition: transform .2s ease-out; }
  .video-card:hover img { transform: scale(1.025); }
  .privacy-glow-phrase {
    animation: privacy-glow-breathe 4.8s var(--lg-ease, cubic-bezier(0.25, 0.1, 0.25, 1)) infinite;
  }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .privacy-glow-phrase {
      background-image: linear-gradient(
        106deg,
        #dceeff 0%,
        #dceeff 34%,
        #9fd6ff 43%,
        #ffffff 50%,
        #88ebe4 57%,
        #dceeff 66%,
        #dceeff 100%
      );
      background-size: 240% 100%;
      background-position: 100% 50%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: none;
      will-change: background-position, filter;
      animation:
        privacy-shimmer-sweep 5.2s var(--lg-ease, cubic-bezier(0.25, 0.1, 0.25, 1)) infinite,
        privacy-glow-drop 5.2s ease-in-out infinite;
    }
  }
  @keyframes reveal-content { from { opacity: .55; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes privacy-glow-breathe {
    0%, 100% {
      text-shadow: 0 0 7px rgb(89 179 255 / 0.68), 0 0 16px rgb(89 179 255 / 0.42), 0 0 28px rgb(92 200 192 / 0.26);
    }
    50% {
      text-shadow: 0 0 10px rgb(89 179 255 / 0.95), 0 0 24px rgb(89 179 255 / 0.72), 0 0 40px rgb(92 200 192 / 0.5);
    }
  }
  @keyframes privacy-shimmer-sweep {
    0% { background-position: 100% 50%; }
    68%, 100% { background-position: 0% 50%; }
  }
  @keyframes privacy-glow-drop {
    0%, 100% {
      filter: drop-shadow(0 0 6px rgb(89 179 255 / 0.58)) drop-shadow(0 0 16px rgb(89 179 255 / 0.34));
    }
    38% {
      filter: drop-shadow(0 0 10px rgb(89 179 255 / 0.92)) drop-shadow(0 0 24px rgb(92 200 192 / 0.54));
    }
  }
}
@media (prefers-contrast: more) {
  .privacy-glow-phrase {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
    filter: none;
    animation: none;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
/* Title pages follow the supplied Apple TV composition. */
.hero { position: relative; isolation: isolate; background: #101012; }
.hero-visual { position: absolute; inset: 0 0 auto; height: min(88svh, 820px); z-index: -1; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #10101200 35%, #10101255 56%, #101012 94%); }
.hero-information { width: min(100%, 1000px); padding: calc(28px + env(safe-area-inset-top)) var(--edge-right) 24px var(--edge-left); }
.has-backdrop .hero-information { padding-top: clamp(280px, 50svh, 540px); }
.hero-artwork { width: min(100%, 540px); min-height: 84px; margin-bottom: 12px; }
.genre-line { font-size: 16px; line-height: 1.4; margin: 0; }
.hero-actions { margin: 18px 0 16px; }
.download-action { min-height: 50px; min-width: 220px; font-size: 18px; padding: 12px 28px; }
.synopsis { font-size: 16px; line-height: 1.5; }
.synopsis strong { font-weight: 600; }
.media-facts { margin-top: 14px; font-size: 14px; gap: 12px; }
.quality-badge { font-size: 12px; font-weight: 700; border: 1px solid currentColor; padding: 0 4px; border-radius: 3px; }
.episode-section { padding: 24px 0 0; }
.season-heading { display: flex; gap: 6px; align-items: center; padding: 0 var(--edge-right) 16px var(--edge-left); }
.season-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.episode-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--edge-left); padding: 0 var(--edge-right) 14px var(--edge-left); }
.episode-card { flex: 0 0 min(76vw, 390px); position: relative; min-height: 300px; border-radius: 14px; overflow: hidden; background: #1c1c1e; scroll-snap-align: start; isolation: isolate; }
.episode-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.episode-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 12%, #161618b8 48%, #1c1c1ef5 100%); z-index: -1; }
.episode-content { padding: 140px 14px 14px; }
.episode-number { font-size: 12px; color: #e0e0e3; margin: 0 0 4px; }
.episode-content h3 { font-size: 18px; line-height: 1.25; margin: 0 0 6px; }
.episode-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #e0e0e3; font-size: 14px; line-height: 1.4; margin: 0; }
.episode-content a { color: #f5f5f7; display: inline-flex; gap: 4px; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; }
.episode-content a svg { width: 18px; height: 18px; }
.metadata-credit { font-size: 12px; line-height: 1.5; color: #aaaab2; padding: 16px var(--edge-right) 0 var(--edge-left); }
.metadata-credit a { color: inherit; text-underline-offset: 3px; }
@media(min-width:800px) { .hero-visual img { object-position: center 30%; } .has-backdrop .hero-information { padding-top: 360px; } .synopsis { max-width: 65ch; } .media-facts { justify-content: center; } .episode-section, .metadata-credit { max-width: 1200px; margin-left: auto; margin-right: auto; } }
.logo-interactive { position: relative; }
.rating-links a { position: absolute; bottom: 0; height: 29%; min-height: 44px; border-radius: 6px; }
.rating-links a:hover { background: #ffffff14; }
.rating-links a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
