/* Local fonts: no dependency on fonts.googleapis.com. */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('/font/material-icons.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  src: url('/font/inter_variable.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  src: url('/font/dm_sans_variable.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 100 900;
  src: url('/font/opensans_variable.ttf') format('truetype');
}

/* Desktop "web mode" for the official Nuvio TV UI.
   The upstream app is a 10-foot TV interface: 20px body text, huge controls
   and 1920x1080 overscan. In a desktop browser we scale the canvas down and
   tighten the densest rails while leaving real TV mode untouched. */

@media (min-width: 900px) and (pointer: fine) {
  :root {
    --tv-body-text: 15px;
    --tv-secondary-text: 14px;
    --tv-caption-text: 12px;
    --tv-subtitle-text: 21px;
    --tv-title-text: 34px;
    --tv-safe-gutter: 26px;
    --tv-safe-gutter-wide: 30px;
    --tv-card-radius: 10px;
    --tv-card-gap: 10px;
    --tv-button-height: 40px;
    --tv-button-padding-x: 16px;
    --tv-control-size: 44px;
    --tv-control-icon-size: 19px;
  }

  html,
  body {
    font-size: 15px;
  }

  /* Scale the whole TV canvas uniformly. Unlike `zoom`, a transform does not
     change layout units, so the inverse width/height makes the scaled app
     occupy the entire viewport with no black margins. */
  #app {
    transform: scale(0.78);
    transform-origin: top left;
    width: 128.205vw;
    height: 128.205vh;
  }

  .screen {
    width: 100%;
    height: 100%;
  }

  /* Netflix-style density: shorter hero, narrower copy column, tighter rails. */
  .home-hero-card,
  .discover-hero,
  .detail-hero-section {
    min-height: 300px;
    border-radius: 14px;
  }

  .home-hero-title,
  .discover-hero-title,
  .detail-hero-title {
    max-width: 46%;
    font-size: 34px;
    line-height: 1.15;
  }

  .home-hero-description,
  .detail-hero-description {
    font-size: 14px;
    line-height: 1.5;
    max-width: 46%;
  }

  .home-row,
  .row,
  .rail,
  .poster-row {
    margin-left: 0;
    margin-right: 0;
    gap: 10px;
  }

  .modern-sidebar-panel {
    width: 190px;
  }

  .modern-sidebar-nav-item {
    height: 44px;
  }

  .card {
    border-radius: 10px;
  }

  .dialog,
  .settings-panel {
    border-radius: 14px;
  }

  /* Make interactive controls visibly clickable. The TV build relies on
     focus styling and icon-only glyphs, which read as plain text in a browser. */
  [data-action],
  button,
  .focusable,
  [role="button"],
  a[href],
  button.focusable,
  [role="button"].focusable,
  .player-source-card,
  .player-sources-filter,
  .player-episode-stream-filter,
  .qr-action-btn,
  .btn {
    pointer-events: auto;
    cursor: pointer;
  }

  .player-source-card,
  .player-sources-filter,
  .player-episode-stream-filter,
  .qr-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
  }

  .player-source-card:hover,
  .player-sources-filter:hover,
  .player-episode-stream-filter:hover,
  .qr-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
  }

  .material-icons,
  .material-symbols-outlined {
    font-family: 'Material Icons' !important;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
  }
}

