/* ==========================================================================
   Budu - site styles
   1. Fonts & tokens       6. Search overlay & toast   11. Title page
   2. Base                 7. Footer                   12. Library (history/watchlist)
   3. Layout               8. Poster cards & carousels 13. Error page
   4. Sidebar & brand      9. Home                     14. Responsive
   5. Buttons & dropdowns 10. Search page
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */
/* Excon (Indian Type Foundry, free from Fontshare under the ITF Free Font License), served from
   this site in 400, 500 and 700. It has no 600: text asking for it gets the 700. */
@font-face {
  font-family: "Excon";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/excon-400.woff2") format("woff2");
}
@font-face {
  font-family: "Excon";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/excon-500.woff2") format("woff2");
}
@font-face {
  font-family: "Excon";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/excon-700.woff2") format("woff2");
}

:root {
  --bg: #000;
  --panel: #121212;
  --surface: #1f1f1f;
  --surface-hover: #2a2a2a;
  --placeholder: #1a1a1a;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --text-faint: rgba(255, 255, 255, 0.6);
  --text-grey: #a3a3a3; /* small facts: year, rating, type */
  --border: rgba(255, 255, 255, 0.1);
  --accent: #75b805;
  /* Raised faces sit on a thick darker edge (--edge) and sink into it while pressed. The main
     buttons are white on a grey edge (--play-edge). */
  --edge: #000;
  --raised: #262626;
  --raised-hover: #303030;
  --play-edge: #aab1bd;
  /* Fields and dropdowns: a slightly lighter face inside a solid 2px ring that lightens on
     hover and while open or typing. */
  --field-bg: #1a1a1a;
  /* Buttons: flat grey faces sitting in a darker tray (a group's container, or a ring round a
     button on its own). */
  --tray: #0a0a0a;
  --btn-face: #262626;
  --btn-face-hover: #313131;
  --field-border: #2c2c2c;
  --field-border-hover: #3d3d3d;
  --field-border-active: #5c5c5c;
  --play-hover: #eef0f3;
  --accent-hover: #82c712;
  --accent-edge: #4c7a00;
  --lift: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gold: #ffd700;
  --radius: 12px;
  --radius-sm: 8px;
  --block-gap: 24px; /* vertical rhythm between player, controls, episodes and sections */
  --gap: 10px;
  --sidebar-width: 300px;
  --details-width: 470px;
  --player-height: 600px;
  --hero-height: 440px;
  --shelf-card: 160px;
  --ease: 0.3s ease;
  --font:
    "Excon", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: var(--gap);
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.01rem;
  color: var(--text);
  background: var(--bg);
}
body.no-scroll {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
ul,
ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}
::-webkit-scrollbar {
  display: none;
}
* {
  scrollbar-width: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #000;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.js img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.js img[loading="lazy"].is-loaded {
  opacity: 1;
}
.empty-state {
  padding: 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.chip {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

/* 3. Layout --------------------------------------------------------------- */
.main-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--gap);
  height: calc(100vh - 2 * var(--gap));
  height: calc(100dvh - 2 * var(--gap));
}
.page-title .main-container {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(
      --details-width
    );
}
.left-panel {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.right-panel,
.middle-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 15px;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--panel);
}
.right-panel > *,
.middle-panel > * {
  flex-shrink: 0;
}

/* 4. Sidebar & brand ------------------------------------------------------ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  height: 100%;
}
.sidebar-top,
.sidebar-bottom {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel);
}
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
/* Each entry gets a flat grey face under the pointer; the current page keeps it. */
.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--text-muted);
  user-select: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.menu-link .icon {
  width: 25px;
  height: 25px;
}
.menu-link:hover,
.menu-link:focus-visible {
  background: var(--surface);
  color: var(--text);
}
.menu-link[aria-current="page"] {
  background: var(--btn-face);
  color: var(--text);
}
.menu-link[aria-current="page"] {
  font-weight: 700;
}
.menu-link[aria-current="page"] .icon {
  color: var(--accent);
}


.brand {
  display: flex;
  align-items: center;
  padding: 6px 10px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}
.brand-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
/* Text logo Bud<em>u</em>: the <em> is the green u. */
.brand-name em {
  font-style: normal;
  color: var(--accent);
}

/* 5. Buttons & dropdowns -------------------------------------------------- */
/* Buttons: flat grey faces in a darker tray. A group of them (carousel arrows, pagination, the
   title page's actions) shares one tray; a button on its own wears the tray as a ring. */
.carousel-buttons,
.pager,
.player-header-actions {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--tray);
}
.icon-button,
.carousel-btn,
.pager-btn,
.secondary-button {
  background: var(--btn-face);
  transition:
    transform 0.08s,
    background-color 0.15s,
    color 0.15s,
    opacity var(--ease);
}
.icon-button:hover,
.secondary-button:hover {
  background: var(--btn-face-hover);
}
.icon-button:active,
.carousel-btn:active:not(:disabled),
.pager-btn:active:not(.is-disabled),
.secondary-button:active {
  transform: scale(0.95);
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.secondary-button,
.trailer-close {
  box-shadow: 0 0 0 4px var(--tray);
}
.watch-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
/* The main action: a white face with dark letters on a grey edge (the same press as the others),
   40px tall with an outlined play glyph. */
.watch-button {
  height: 40px;
  gap: 4px;
  padding: 0 24px;
  border-radius: 12px;
  letter-spacing: 0;
  background: #fff;
  box-shadow: 0 4px 0 var(--play-edge);
  color: #000;
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    background-color 0.15s;
}
.watch-button:hover {
  background: var(--play-hover);
}
.watch-button:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--play-edge);
}
.watch-button .icon,
.secondary-button .icon {
  width: 18px;
  height: 18px;
}
.watch-button .icon {
  width: 16px;
  height: 16px;
}
.watch-button .icon path {
  stroke-width: 2.2;
}
.text-button {
  font-size: 13px;
  color: var(--text-muted);
}
.text-button:hover {
  color: var(--text);
}

/* Prev / next buttons (carousels, episodes, pagination): same square size everywhere. */
.carousel-btn,
.pager-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.carousel-btn .icon,
.pager-btn .icon {
  width: 18px;
  height: 18px;
}
.carousel-btn:hover:not(:disabled),
.pager-btn:hover:not(.is-disabled) {
  background: var(--btn-face-hover);
}
/* The second pager, centred under the results grid, with the page number between its arrows */
.pager-bottom {
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 36px auto 0;
}
.pager-status {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-grey);
}
.carousel-btn:disabled,
.pager-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.dropdown {
  position: relative;
}
.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 170px;
  padding: 8px 12px;
  border: 2px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  transition: border-color 0.15s;
}
.dropdown-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* "Type:", "Genre:", "Player:" before the value, in grey */
.dropdown-key {
  margin-right: 2px;
  font-weight: 700;
  color: var(--text-grey);
}
.dropdown-btn:hover {
  border-color: var(--field-border-hover);
}
.dropdown.is-open .dropdown-btn {
  border-color: var(--field-border-active);
}
.dropdown-btn .icon {
  transition: transform var(--ease);
}
.dropdown.is-open .dropdown-btn .icon-chevron-down {
  transform: rotate(180deg);
}
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  border: 2px solid var(--field-border-active);
  border-radius: 12px;
  background: var(--field-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98) translateY(-4px);
  transform-origin: top left;
  transition:
    opacity var(--ease),
    transform var(--ease),
    visibility var(--ease);
}
.dropdown-end .dropdown-content {
  right: 0;
  left: auto;
  transform-origin: top right;
}
.dropdown.is-open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown-scroll {
  max-height: 300px;
  overflow-y: auto;
}
/* Full-width rows split by thin lines; the selected one white and bold on a lighter row, with
   the accent check mark on its right. */
.dropdown-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  color: var(--text-grey);
  text-align: left;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.dropdown-item + .dropdown-item {
  border-top: 1px solid var(--field-border);
}
.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: #212121;
  color: var(--text);
}
.dropdown-item[aria-current="true"] {
  background: #262626;
  font-weight: 700;
  color: #fff;
}
.dropdown-item[aria-current="true"]::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
  padding-left: 12px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    right center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    right center / 16px no-repeat;
}

/* 6. Search overlay & toast ----------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  /* Anchored near the top: results grow downwards and the field never jumps. */
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--ease);
}
.search-overlay[hidden] {
  display: none;
}
.search-overlay.is-open {
  opacity: 1;
}
.search-overlay-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform var(--ease);
}
.search-overlay.is-open .search-overlay-box {
  transform: none;
}
.search-overlay-title {
  padding: 0 5px 4px;
  font-size: 16px;
  font-weight: 600;
}
/* Search fields: the dropdowns' look, a lighter face in a solid ring that lightens while typing. */
.search-overlay-input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 2px solid var(--field-border);
  border-radius: 12px;
  outline: none;
  background: var(--field-bg);
  font-size: 16px;
  transition: border-color 0.15s;
}
.search-overlay-input:hover {
  border-color: var(--field-border-hover);
}
.search-overlay-input:focus {
  border-color: var(--field-border-active);
}
.search-overlay-input::placeholder {
  color: var(--text-faint);
  font-size: 14px;
}
.search-overlay-results:not(:empty) {
  max-height: min(560px, 70vh);
  margin-top: 10px;
  padding: 8px 8px 12px;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 5px 0 var(--edge);
}
.search-overlay-results .empty-state {
  padding: 8px;
}
.quick-result {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px;
  border-radius: var(--radius);
  transition:
    background-color 0.15s,
    box-shadow 0.08s,
    transform 0.08s;
}
.quick-results li + li {
  margin-top: 4px;
}
.quick-result:hover,
.quick-result:focus-visible {
  background: var(--btn-face);
}
.quick-result img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  background: var(--placeholder);
  box-shadow: 0 3px 0 var(--edge);
}
.quick-result-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quick-result-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating .icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
}
.quick-results-all {
  display: block;
  padding: 10px 8px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.quick-results-all:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1500;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow:
    0 4px 0 var(--edge),
    0 12px 24px -8px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity var(--ease),
    transform var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 7. Footer --------------------------------------------------------------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
}
.site-footer p {
  opacity: 0.4;
}
.site-footer-links {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer-links a {
  color: var(--text-faint);
  transition: color var(--ease);
}
.site-footer-links a:hover {
  color: var(--text);
}

/* 8. Poster cards & carousels --------------------------------------------- */
/* A poster sits on the thick dark edge. Under the pointer it lifts and an accent ring appears
   round it; at its foot, over a dark shade, its title and a grey line of facts (year, rating,
   type) fade in. Nothing moves inside the poster. */
.poster-card {
  position: relative;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.15s var(--lift);
}
.poster-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  background: var(--placeholder);
  box-shadow: 0 5px 0 var(--edge);
}
.poster-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
/* The ring: 3px drawn over the picture (a background with its middle masked out), so nothing
   moves when it appears. */
.poster-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 3px;
  border-radius: inherit;
  background: var(--accent);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}
/* The title under the poster: shown on hover (desktop); phones and tablets always show it. */
.poster-card-caption {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
@media (hover: hover) {
  .poster-card:hover {
    transform: translateY(-10px);
  }
  .poster-card:hover .poster-card-image::after,
  .poster-card:hover .poster-card-caption {
    opacity: 1;
  }
  .poster-card:hover .poster-card-caption {
    transform: none;
  }
}
/* Phones and tablets only (see the responsive section): rating badge on the poster */
.poster-card-rating {
  display: none;
}
.poster-card:focus-visible {
  outline: 0;
}
.poster-card:focus-visible .poster-card-image::after,
.poster-card:focus-visible .poster-card-caption {
  opacity: 1;
  transform: none;
}
[data-carousel] {
  overflow: hidden;
}
/* Room inside the clipped rows for a card's lift above it and its edge (and, on the shelves,
   its hover title) below it. */
.shelf-viewport {
  margin: -12px 0 -26px;
  padding: 12px 0 26px;
}
.episodes-viewport {
  margin: -8px 0;
  padding: 8px 0;
}
[data-carousel] > * {
  display: flex;
  gap: var(--gap);
  touch-action: pan-y pinch-zoom;
}

/* 9. Home ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--edge);
  user-select: none;
}
.hero-viewport {
  cursor: grab;
}
.hero-viewport:active {
  cursor: grabbing;
}
.hero-track {
  gap: 0;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: var(--hero-height);
  background: var(--placeholder);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* dark from the left, where the text sits, plus a light shade along the foot */
  background:
    linear-gradient(
      to right,
      rgba(10, 10, 10, 0.95) 0%,
      rgba(10, 10, 10, 0.8) 30%,
      rgba(10, 10, 10, 0.3) 60%,
      rgba(10, 10, 10, 0) 80%
    ),
    linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 40%);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  width: 50%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-grey);
}
.hero-rank {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-edge);
  font-weight: 700;
  color: #fff;
}
.hero-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-grey);
}
/* facts kept apart by a small dot, as on the posters */
.hero-meta li + li::before {
  content: "·";
  margin: 0 8px;
}
.hero-meta li {
  display: flex;
  align-items: center;
  line-height: 14px;
}
.hero-meta .icon {
  width: 12px;
  height: 12px;
}
.hero-description {
  --lines: 2;
  display: -webkit-box;
  overflow: hidden;
  width: 80%;
  height: calc(var(--lines) * 1.5em);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines);
}
/* Slide picker: small backdrops in a dark tray at the bottom right; the active one is ringed
   in green and, while autoplay runs, fills with a green bar timed to the next slide. */
.hero-nav {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
}
.hero-nav-item {
  position: relative;
  overflow: hidden;
  width: 60px;
  height: 34px;
  border-radius: 9px;
  background: var(--btn-face);
  transition:
    width 0.25s,
    transform 0.08s;
}
.hero-nav-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.hero-nav-item:hover img,
.hero-nav-item.is-active img {
  opacity: 1;
}
.hero-nav-item:active {
  transform: scale(0.95);
}
.hero-nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.15s;
}
.hero-nav-item.is-active::after {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.hero-nav-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hero.is-playing .hero-nav-item.is-active .hero-nav-progress {
  animation: hero-progress 5s linear forwards;
}
@keyframes hero-progress {
  to {
    transform: scaleX(1);
  }
}
.shelf {
  margin-top: 40px;
}
.shelf .section-header {
  margin-bottom: 10px;
}
.shelf h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.shelf-track .poster-card {
  flex: 0 0 var(--shelf-card);
  min-width: 0;
}

/* 10. Search page --------------------------------------------------------- */
.search-toolbar {
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.search-field {
  display: flex;
  flex-grow: 1;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 45px;
  padding-left: 15px;
  border: 2px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  transition: border-color 0.15s;
}
.search-field:hover {
  border-color: var(--field-border-hover);
}
.search-field:focus-within {
  border-color: var(--field-border-active);
}
.search-field .icon {
  color: var(--text-faint);
  transition: color 0.22s ease;
}
.search-field:focus-within .icon {
  color: var(--accent);
}
.search-input {
  width: 100%;
  height: 100%;
  padding: 0 10px 0 5px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}
.search-input::placeholder {
  color: var(--text-faint);
}
.search-input::-webkit-search-cancel-button,
.search-overlay-input::-webkit-search-cancel-button {
  filter: grayscale(1) brightness(2);
  cursor: pointer;
}
.page-search .dropdown-btn {
  width: 190px;
  height: 45px;
  font-size: 14px;
}
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  margin: 40px 0 20px;
}
.search-results-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.search-results-type {
  color: var(--text-grey);
}
.search-results-grid {
  display: grid;
  /* as many posters of about 150px as fit (phones and tablets set their own columns below) */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 26px 16px; /* room for the hover title under each poster */
}

/* 11. Title page ---------------------------------------------------------- */
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 12px;
}
.breadcrumb {
  min-width: 0;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 0;
  min-width: 0;
  font-size: 14px;
  color: var(--text-faint);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}
.breadcrumb a {
  transition: color var(--ease);
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
}
/* Pages other than the title page: breadcrumb sits above the content. */
main > .breadcrumb {
  margin: 2px 4px 16px;
}

.breadcrumb-current {
  flex-shrink: 1 !important;
  gap: 10px;
  min-width: 0;
}
.content-title {
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* TV titles: "Breaking Bad (2008) Season 2 Episode 3"; the name shortens first, the episode stays whole. */
.content-title:has(.content-title-episode) {
  display: flex;
  gap: 0.3em;
  min-width: 0;
}
.content-title-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content-title-episode {
  flex-shrink: 0;
}
.player-header-actions {
  flex-shrink: 0;
}
.watchlist-btn.is-active {
  color: var(--accent);
}
.watchlist-btn.is-active .icon {
  fill: currentColor;
  animation: heart-pop 0.35s ease;
}
@keyframes heart-pop {
  50% {
    transform: scale(1.25);
  }
}
/* Player: a cover with a Play button until the visitor starts it, then the embed iframe. */
.player-frame {
  position: relative;
  height: var(--player-height);
  overflow: hidden;
  border-radius: var(--radius);
  /* Plain black while the embed loads after Play. */
  background: #000;
  box-shadow: 0 5px 0 var(--edge);
}
.player-frame iframe,
.player-cover {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* New players load on top of the previous content and fade in when ready. */
.player-frame iframe {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.player-frame iframe.is-ready {
  opacity: 1;
}
.player-frame.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.player-frame.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  animation: player-spin 0.8s linear infinite;
}
.player-frame.is-loading .player-cover-play {
  opacity: 0;
}
@keyframes player-spin {
  to {
    transform: rotate(360deg);
  }
}
.player-cover {
  position: relative;
  cursor: pointer;
}
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.55)
  );
  transition: background-color var(--ease);
}
.player-cover:hover img {
  transform: scale(1.02);
}
.player-cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 5px 0 var(--accent-edge),
    0 18px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease,
    box-shadow 0.08s,
    background-color 0.15s;
}
/* the play glyph nudged right, so it looks centred in the circle */
.player-cover-play .icon {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}
.player-cover-play .icon path {
  stroke-width: 2.4;
}
.player-cover:hover .player-cover-play,
.player-cover:focus-visible .player-cover-play {
  background: var(--accent-hover);
  transform: translate(-50%, -50%) scale(1.06);
}
.player-cover:active .player-cover-play {
  transform: translate(-50%, -50%) translateY(5px);
  box-shadow: 0 0 0 var(--accent-edge);
}

/* Trailer pop-up (YouTube, loaded only when opened). */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.trailer-modal[hidden] {
  display: none;
}
.trailer-box {
  position: relative;
  width: min(1100px, 100%);
}
.trailer-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 6px 0 var(--edge);
}
.trailer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.trailer-close {
  position: absolute;
  top: -46px;
  right: 0;
}
.player-controls {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  margin-top: var(--block-gap);
}
.episodes-controls {
  display: flex;
  gap: 5px;
}
.episodes {
  margin-top: var(--block-gap);
}
.episodes-viewport {
  border-radius: var(--radius);
}
.episodes-track[aria-busy="true"] {
  opacity: 0.5;
  transition: opacity var(--ease);
}
.episode-card {
  position: relative;
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--edge);
  opacity: 0.6;
  filter: saturate(0.75);
  user-select: none;
  transition:
    opacity var(--ease),
    filter var(--ease);
}
.episode-card:hover,
.episode-card.is-playing {
  opacity: 1;
  filter: saturate(1.25);
}
/* The episode playing: the accent ring, drawn over the picture as the posters' one. */
.episode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 3px;
  border-radius: inherit;
  background: var(--accent);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
.episode-card.is-playing::after {
  opacity: 1;
}
.episode-card.is-unreleased {
  opacity: 0.35;
  cursor: not-allowed;
}
.episode-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--placeholder) url("/assets/images/backdrop-placeholder.svg")
    center / cover no-repeat;
}
.episode-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.episode-card.is-playing .episode-card-image img {
  opacity: 0.95;
}
.tag {
  position: absolute;
  left: 0;
  max-width: calc(100% - 16px);
  margin: 8px;
  padding: 4px 9px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(38, 38, 38, 0.85);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-top {
  top: 0;
}
.tag-bottom {
  bottom: 0;
}
.episode-card.is-playing .tag-bottom {
  margin: 10px;
  background: #fff;
  box-shadow: 0 2px 0 var(--play-edge);
  color: #000;
}
.you-may-like {
  margin-top: var(--block-gap);
}
.you-may-like h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.you-may-like-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px var(--gap); /* room for the hover title under each poster */
}

.content-details {
  display: grid;
  grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
  gap: var(--gap);
  margin-bottom: 20px;
}
.content-poster {
  width: 100%;
  /* Grows with the details column so the list never runs below the poster. */
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--placeholder);
  box-shadow: 0 5px 0 var(--edge);
  user-select: none;
}
.details-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
/* Extra fact that completes the two-column grid on mobile only. */
.details-extra {
  display: none;
}
.details-list dt {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}
.details-list dd {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-description {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  text-align: left;
  color: var(--text-muted);
  transition: background-color var(--ease);
}
.content-description:hover {
  background: var(--surface-hover);
}
.content-description span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.content-description[aria-expanded="true"] span {
  display: block;
}
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-bottom: 20px;
}
.genre-list a {
  display: block;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--btn-face);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.08s;
}
.genre-list a:hover {
  background: var(--btn-face-hover);
  color: var(--text);
}
.genre-list a:active {
  transform: scale(0.95);
}
.cast h2 {
  font-size: 18px;
  font-weight: 700;
}
.cast-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: var(--gap);
}
.cast-list:not(.is-expanded) > :nth-child(n + 6) {
  display: none;
}
.cast-item {
  display: flex;
  align-items: center;
  gap: var(--gap);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color var(--ease);
}
.cast-item:hover {
  background: var(--surface-hover);
}
.cast-item img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--placeholder);
}
.cast-item div {
  min-width: 0;
}
.cast-item h3,
.cast-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cast-item h3 {
  font-size: 16px;
  font-weight: 700;
}
.cast-item p {
  margin-top: 4px;
  font-size: 12px;
  color: #737373;
}

/* 12. Library (history / watchlist) --------------------------------------- */
.page-library .right-panel {
  z-index: 1;
}
.page-library .right-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--panel) 40%,
    rgba(18, 18, 18, 0.9) 50%,
    rgba(18, 18, 18, 0) 100%
  );
}
.library-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 70%;
  background-position: center;
  background-size: cover;
  filter: blur(10px) brightness(0.7);
  transition: background-image var(--ease);
}
.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: 20px;
}
.library-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.library-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.history-group h2 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 70%;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(31, 31, 31, 0.2);
  transition:
    background-color 0.15s,
    box-shadow 0.15s;
}
.history-item:hover {
  background: rgba(38, 38, 38, 0.85);
}
.history-link {
  display: flex;
  flex-grow: 1;
  gap: 20px;
  min-width: 0;
}
.history-poster {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  background: var(--placeholder);
  box-shadow: 0 3px 0 var(--edge);
}
.history-info {
  min-width: 0;
  font-size: 11px;
}
.history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.history-title h3 {
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-type {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.history-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.library-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: none;
  color: var(--text-faint);
}
.library-remove:hover {
  color: var(--text);
}
.library-remove .icon {
  width: 16px;
  height: 16px;
}

/* 13. Error page ---------------------------------------------------------- */
.error-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60vh;
  text-align: center;
}
.error-section .error-code {
  max-width: none;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.error-section h1 {
  font-size: 28px;
  font-weight: 700;
}
.error-section p {
  max-width: 420px;
  color: var(--text-muted);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

/* 15. Landing page (/) ---------------------------------------------------- */
.page-landing {
  margin: 0;
}
.landing {
  overflow-x: hidden;
}
/* Top bar: the logo, and Home / Movies / TV Shows in a dark tray. */
.landing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 0;
}
.landing-bar .brand {
  margin: 0;
  padding: 0;
  border: 0;
}
.landing-tray {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--tray);
}
.landing-tray a {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--btn-face);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.08s;
}
.landing-tray a:hover {
  background: var(--btn-face-hover);
  color: var(--text);
}
.landing-tray a:active {
  transform: scale(0.95);
}

.landing-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 84px 20px 0;
  text-align: center;
}
/* "HD | Free to watch · …": a small tray with a green badge. */
.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 4px 14px 4px 4px;
  border-radius: 12px;
  background: var(--tray);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-grey);
}
.landing-pill span {
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-edge);
  font-weight: 700;
  color: #fff;
}
.landing-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.landing-hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}
.landing-lead {
  max-width: 620px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-grey);
  text-wrap: pretty;
}
.landing-search {
  position: relative;
  display: flex;
  gap: var(--gap);
  width: 100%;
  max-width: 720px;
  margin-top: 32px;
  text-align: left;
}
.landing-search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 2px solid var(--field-border);
  border-radius: 14px;
  background: var(--field-bg);
  transition: border-color 0.15s;
}
.landing-search-field:hover {
  border-color: var(--field-border-hover);
}
.landing-search-field:focus-within {
  border-color: var(--field-border-active);
}
.landing-search-field .icon {
  color: var(--text-faint);
  transition: color 0.22s ease;
}
.landing-search-field:focus-within .icon {
  color: var(--accent);
}
.landing-search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}
/* No native blue "x" in the field: the arrow button is the only control inside it. */
.landing-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.landing-search-field input::placeholder {
  color: var(--text-faint);
}
/* Room on the right for the submit arrow, so typed text never runs under it. */
.landing-search-field {
  padding-right: 58px;
}
.landing-search-submit {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 var(--play-edge);
  color: #000;
  cursor: pointer;
  transition:
    opacity var(--ease),
    transform var(--ease),
    box-shadow 0.08s;
}
.landing-search-submit .icon {
  width: 20px;
  height: 20px;
}
.landing-search-submit:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--play-edge);
  transition-duration: 0.08s;
}
/* Hidden until the user types something. */
.landing-search:has(input:placeholder-shown) .landing-search-submit {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
/* While empty it must not take a slot (and a gap) in the flex row. */
.landing-search-results:empty {
  display: none;
}
.landing-search-results:not(:empty) {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 20;
  margin-top: 0;
  background: var(--surface);
  box-shadow:
    0 5px 0 var(--edge),
    0 24px 48px -16px rgba(0, 0, 0, 0.8);
}
.landing-search-results .quick-result:hover,
.landing-search-results .quick-result:focus-visible {
  background: var(--raised-hover);
}
.landing-actions {
  margin-top: 30px;
}
.landing-actions .watch-button {
  height: 48px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 15px;
}
.landing-actions .watch-button .icon {
  width: 18px;
  height: 18px;
}

/* Decorative row of trending posters (pictures only, no links) on black edges, one ringed in green, fading at both ends. */
.landing-wall {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 64px;
  padding-bottom: 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
}
.landing-wall-tile {
  position: relative;
  flex: 0 0 140px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 0 var(--edge);
  user-select: none;
}
.landing-wall-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* the green ring drawn over the picture */
.landing-wall-tile.is-lit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--accent);
}
.landing-wall-tile:nth-child(even) {
  margin-top: 36px;
  background: var(--raised);
}

.landing-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 30px;
}
.landing-section {
  margin-top: 88px;
}
.landing-kicker {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.landing-section h2,
.landing-final h2 {
  max-width: 680px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}
.landing-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 22px;
}
.landing-columns p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Feature cards: panels raised on the dark edge, the icon in a small tray. */
.landing-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.landing-features li,
.landing-steps li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 0 var(--edge);
}
.landing-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--tray);
  color: var(--accent);
}
.landing-feature-icon .icon {
  width: 22px;
  height: 22px;
}
.landing-features h3,
.landing-steps h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}
.landing-features p,
.landing-steps p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  list-style: none;
}
.landing-steps li {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--field-border);
}
.landing-step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-edge);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.landing .faq-list {
  max-width: 760px;
  margin-top: 18px;
}
.landing .faq-list details p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.landing-more {
  margin-top: 18px;
  font-size: 14px;
}
.landing-more a {
  font-weight: 700;
  color: var(--accent);
}
.landing-more a:hover {
  color: var(--accent-hover);
}

/* The site's description, large and centred, before the last call. */
.landing-statement {
  max-width: 780px;
  margin: 96px auto 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
/* Last call: a raised panel with the white button. */
.landing-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding: 48px 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 6px 0 var(--edge);
  text-align: center;
}
.landing-final p {
  margin: 10px 0 26px;
  font-size: 15px;
  color: var(--text-grey);
}
.landing-final .watch-button {
  height: 48px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 15px;
}

/* Small partner backlink above the footer. */
.landing-partner {
  margin-top: 40px;
  font-size: 12px;
  text-align: center;
  color: var(--text-faint);
}
.landing-partner a {
  color: var(--text-faint);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}
.landing-partner a:hover {
  color: var(--text);
}
.landing-body .site-footer {
  margin-top: 28px;
}

/* 16. Long-form text (landing copy and information pages) ------------------ */
.prose h1 {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prose h2 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prose * + h2 {
  margin-top: 36px;
}
.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}
.prose p + p,
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p {
  margin-top: 12px;
}
/* The footer keeps its own small type when it sits inside long-form text. */
.prose .site-footer p {
  font-size: inherit;
  line-height: 1.5;
  color: inherit;
}
.prose strong {
  font-weight: 700;
  color: var(--text);
}
.prose code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface);
  font-size: 13px;
}
.prose a:not(.site-footer-links a) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--ease);
}
.prose a:not(.site-footer-links a):hover {
  text-decoration-color: var(--text);
}
.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li::marker {
  color: var(--accent);
}
.info-page {
  max-width: 820px;
}
.info-updated {
  margin-bottom: 28px;
  font-size: 13px !important;
  color: var(--text-faint) !important;
}
.info-page > h1 + p:not(.info-updated) {
  margin-top: 16px;
}
.contact-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0 8px !important;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 0 var(--edge);
}
.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-faint);
}
.prose .contact-email {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

/* FAQ accordion (landing and /faq) */
.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-list summary {
  position: relative;
  padding: 16px 32px 16px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-faint);
  transform: translateY(-50%);
  transition: transform var(--ease);
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details p {
  padding-bottom: 16px;
}

/* 14. Responsive ---------------------------------------------------------- */
@media (max-width: 1700px) {
  :root {
    --sidebar-width: 270px;
    --player-height: 550px;
    --hero-height: 420px;
    --shelf-card: 155px;
  }
  .hero-title {
    font-size: 34px;
  }
  .history-item {
    width: 75%;
  }
}

@media (max-width: 1500px) {
  :root {
    --sidebar-width: 225px;
    --details-width: 25%;
    --player-height: 475px;
  }
  .tag {
    font-size: 11px;
  }
  .history-item {
    width: 80%;
  }
}

/* Collapsed icon-only sidebar */
@media (max-width: 1300px) {
  :root {
    --sidebar-width: 70px;
    --details-width: 30%;
    --player-height: 450px;
    --hero-height: 400px;
    --shelf-card: 150px;
  }
  .sidebar-top,
  .sidebar-bottom {
    padding: 12px 8px;
  }
  .menu-link {
    justify-content: center;
  }
  .menu-link span {
    display: none;
  }
  /* Collapsed sidebar: only the u, by right-aligning the word in a box as wide as the u. */
  .sidebar .brand-name {
    display: flex;
    justify-content: flex-end;
    width: 0.69em;
    overflow: hidden;
    white-space: nowrap;
  }
  .sidebar .brand {
    justify-content: center;
    padding: 4px 0 12px;
    overflow: hidden;
  }
  .sidebar .brand-name {
    font-size: 30px;
  }
  .hero-meta,
  .hero-description {
    font-size: 13px;
  }
  .episode-card {
    flex-basis: calc((100% - 2 * var(--gap)) / 3);
  }
  .history-item {
    width: 85%;
  }
}

@media (max-width: 1200px) {
  .history-item {
    width: 90%;
  }
}

/* Mobile & tablet: top header, bottom navigation, single column */
@media (max-width: 1024px) {
  /* "You May Like": one swipeable row on mobile. */
  /* A scrolling row clips its cards above and below too: room for a card's lift and its edge. */
  .you-may-like-grid {
    display: flex;
    gap: var(--gap);
    margin-right: -10px;
    padding: 8px 10px 10px 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .you-may-like h2 {
    margin-bottom: 4px;
  }
  .you-may-like-grid .poster-card {
    flex: 0 0 30%;
    min-width: 0;
    scroll-snap-align: start;
  }
  /* Posters under a finger: no hover effects (no lift, no ring, no facts over the picture);
     the rating stays on the top left and the title, one line, goes under the poster. */
  .poster-card:hover,
  .poster-card:focus-visible {
    transform: none;
  }
  .poster-card:hover .poster-card-image::after {
    display: none;
  }
  .poster-card-rating {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 7px;
    background: rgba(18, 18, 18, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-grey);
    pointer-events: none;
  }
  .poster-card-rating .icon {
    width: 10px;
    height: 10px;
    color: var(--gold);
  }
  .poster-card-caption {
    position: static;
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    color: var(--text-muted);
    opacity: 1;
    transform: none;
  }
  /* Slider titles: one line, cut with an ellipsis. */
  .hero-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Mobile footer: only on the landing page, centered; the other pages have the tab bar. */
  .main-container .site-footer {
    display: none;
  }
  .landing .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .landing .site-footer p {
    display: none;
  }
  .landing .site-footer {
    padding-top: 24px;
    font-size: 13px !important;
  }
  .landing .site-footer-links {
    justify-content: center;
  }
  .landing-body {
    padding-bottom: 20px;
  }
  .landing-columns,
  .landing-features,
  .landing-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-columns {
    gap: 14px;
  }
  .landing-section {
    margin-top: 64px;
  }
  .landing-wall {
    margin-top: 48px;
  }
  .landing-wall-tile {
    flex-basis: 104px;
  }
  /* No tab bar on the landing page, so no space reserved for it. */
  .page-landing {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .landing-body .site-footer {
    margin-top: 24px;
  }
  :root {
    --mobile-nav-height: 64px;
    --block-gap: 16px;
  }
  body {
    margin: 0;
    /* No top bar on mobile: keep content clear of the notch, and of the tab bar below. */
    padding-top: env(safe-area-inset-top);
    padding-bottom: calc(
      var(--mobile-nav-height) + env(safe-area-inset-bottom)
    );
  }

  .main-container,
  .page-title .main-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(
      100dvh - var(--mobile-nav-height) - env(safe-area-inset-bottom)
    );
    gap: 0;
  }
  .main-container > main.right-panel {
    flex: 1 0 auto;
  }
  .right-panel,
  .middle-panel {
    height: auto;
    padding: 10px;
    overflow: visible;
    background: transparent;
  }

  /* Sidebar becomes the bottom tab bar */
  .left-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    height: auto;
    overflow: visible;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 18, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .sidebar,
  .sidebar-bottom {
    flex-direction: row;
    gap: 0;
  }
  .sidebar {
    height: var(--mobile-nav-height);
  }
  .sidebar-top,
  .sidebar-bottom {
    display: contents;
  }
  .sidebar .brand,
  .menu-item-search,
  .menu-item-surprise,
  .menu-item-watchseries,
  .menu-item-watchmovies {
    display: none;
  }
  .menu {
    display: contents;
  }
  .menu-item {
    flex: 1;
    min-width: 0;
  }
  .menu-link,
  .menu-link span {
    display: flex;
  }
  .menu-link {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: 100%;
    padding: 6px 2px;
    border: 0;
    border-radius: 0;
    font-size: 10px;
    color: var(--text-faint);
  }
  .menu-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .menu-link .icon {
    width: 22px;
    height: 22px;
  }
  .menu-link:hover,
  .menu-link:focus-visible,
  .menu-link[aria-current="page"] {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
  }
  .menu-link:active {
    transform: translateY(2px);
  }
  .menu-link[aria-current="page"] .icon {
    color: var(--accent);
  }
  .toast {
    bottom: calc(var(--mobile-nav-height) + 16px + env(safe-area-inset-bottom));
  }

  /* Home: the picker shrinks to pills at the top right; the active one stretches and fills. */
  .hero {
    box-shadow: none;
  }
  .hero-nav {
    top: 12px;
    right: 12px;
    bottom: auto;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 10px;
  }
  .hero-nav-item {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
  }
  .hero-nav-item.is-active {
    width: 22px;
  }
  .hero-nav-item img,
  .hero-nav-item::after {
    display: none;
  }
  .hero-nav-progress {
    top: 0;
    height: auto;
  }
  .hero:not(.is-playing) .hero-nav-item.is-active .hero-nav-progress {
    transform: scaleX(1);
  }
  .hero-slide::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.25) 20%,
      rgba(0, 0, 0, 0.5) 35%,
      rgba(0, 0, 0, 0.75) 50%,
      #000 100%
    );
  }
  .shelf {
    margin-top: 20px;
  }

  /* Title page: player first, details next, recommendations and footer last */
  .page-title .middle-panel {
    display: contents;
  }
  .page-title .middle-panel > * {
    order: 1;
    margin-right: 10px;
    margin-left: 10px;
  }
  .page-title .player-header {
    margin-top: 4px;
  }
  .page-title .content-panel {
    order: 2;
  }
  .page-title .you-may-like {
    order: 3;
    padding-bottom: 12px;
  }
  .page-title .site-footer {
    order: 4;
  }
  .player-frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .player-cover-play {
    width: 60px;
    height: 60px;
  }
  .player-cover-play .icon {
    width: 26px;
    height: 26px;
    margin-left: 3px;
  }
  /* Details under the player: small poster on the left, facts in two columns beside it. */
  .content-details {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
  }
  .content-poster {
    width: 104px;
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
  }
  .details-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  .details-list > div {
    min-width: 0;
  }
  .details-list > .details-extra {
    display: block;
  }
  .details-list dt {
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
  }
  .details-list dd {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
  }
  /* Cast: one swipeable row of photos instead of a long list. */
  .cast-list,
  .cast-list:not(.is-expanded) {
    flex-direction: row;
    gap: 14px;
    margin-right: -10px;
    padding-right: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .cast-list:not(.is-expanded) > :nth-child(n + 6) {
    display: flex;
  }
  .cast-item {
    flex: 0 0 84px;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    background: none;
    text-align: center;
    scroll-snap-align: start;
  }
  .cast-item:hover {
    background: none;
  }
  .cast-item img {
    width: 84px;
    height: 84px;
    border-radius: var(--radius);
  }
  .cast-item div {
    width: 100%;
  }
  .cast-item h3 {
    display: -webkit-box;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .cast-item p {
    margin-top: 2px;
    font-size: 10px;
  }
  [data-cast-toggle] {
    display: none;
  }
  .episode-card {
    flex-basis: calc((100% - 3 * var(--gap)) / 4);
  }

  /* Library */
  .page-library .right-panel::before {
    background: linear-gradient(
      to top,
      #000 40%,
      rgba(0, 0, 0, 0.9) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  .library-backdrop {
    height: 100%;
    filter: blur(20px) brightness(0.7);
  }
  .history-item {
    width: 100%;
    background: rgba(31, 31, 31, 0.4);
  }
  .site-footer {
    font-size: 10px;
  }
}

@media (max-width: 800px) {
  .search-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Slider content centered on phones. */
  .hero-content {
    right: 15px;
    left: 15px;
    width: auto;
    text-align: center;
  }
  .hero-eyebrow,
  .hero-meta {
    justify-content: center;
  }
  :root {
    --hero-height: 380px;
    --shelf-card: 125px;
  }
  .hero-description {
    width: 100%;
  }

  .episode-card {
    flex-basis: 30%;
  }
  .breadcrumb ol {
    font-size: 13px;
  }
  /* Title pages: the breadcrumb stays on one line; a long title is cut with an ellipsis. */
  .player-header .breadcrumb ol {
    flex-wrap: nowrap;
  }
  /* Title pages on phones: only the title line is shown; the trail stays in the markup and JSON-LD. */
  .player-header .breadcrumb li:not(:last-child) {
    display: none;
  }
  .player-header .breadcrumb-current {
    gap: 8px;
  }
  .content-title {
    font-size: 16px;
  }
  .player-header-actions {
    gap: 2px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 675px) {
  .search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-field,
  .page-search .dropdown-btn {
    height: 42px;
  }
  /* the field on a row of its own, the two dropdowns sharing the next */
  .search-toolbar {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
  }
  .page-search .search-toolbar .dropdown {
    flex: 1;
    min-width: 0;
  }
  .page-search .dropdown-btn {
    width: 100%;
    font-size: 13px;
  }
  .search-results-header {
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  /* Mobile search: at the very top, so the field stays above the on-screen keyboard. */
  .search-overlay {
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }
  .search-overlay-results:not(:empty) {
    max-height: calc(100dvh - 150px);
  }
  .landing-bar {
    padding: 16px 16px 0;
  }
  .landing-hero {
    padding: 48px 16px 0;
  }
  .landing-pill {
    font-size: 12px;
  }
  .landing-lead {
    font-size: 15px;
  }
  .landing-body {
    padding-right: 16px;
    padding-left: 16px;
  }
  .landing-statement {
    margin-top: 64px;
  }
  .landing-final {
    margin-top: 36px;
    padding: 36px 20px;
  }
  .landing-search-field {
    height: 50px;
  }
  .landing-search-submit {
    top: 5px;
    right: 5px;
  }
  .prose h2 {
    font-size: 20px;
  }
  :root {
    --hero-height: 340px;
  }
  .hero-content {
    bottom: 16px;
  }
  .hero-title {
    margin-bottom: 8px;
    font-size: 26px;
  }
  .hero-meta {
    margin-bottom: 10px;
    font-size: 12px;
  }
  .hero-meta .icon {
    width: 12px;
    height: 12px;
  }
  .hero-description {
    --lines: 2;
    margin-bottom: 12px;
    font-size: 12px;
  }
  .watch-button {
    font-size: 13px;
  }
  .shelf h2,
  .search-results-title {
    font-size: 20px;
  }
  .episode-card {
    flex-basis: 42%;
  }
  .details-list dt {
    font-size: 14px;
  }
  .details-list dd {
    font-size: 13px;
  }
  .history-poster {
    width: 80px;
    height: 80px;
  }
  .history-link {
    gap: 12px;
  }
  .history-title h3 {
    font-size: 16px;
  }
  .chip {
    font-size: 11px;
  }
  .history-info {
    font-size: 10px;
  }
  .history-type {
    margin-bottom: 5px;
  }
  .library-header h1 {
    font-size: 22px;
  }
}

@media (max-width: 475px) {
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 425px) {
  :root {
    --hero-height: 310px;
    --shelf-card: 115px;
  }
  .dropdown-btn {
    width: 130px;
  }
  /* no room for "Player:" on small phones: the player's name alone */
  .player-controls .dropdown-key {
    display: none;
  }
  .episode-card {
    flex-basis: 55%;
  }
  .tag {
    font-size: 10px;
  }
  .site-footer {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
