/* ---------------------------------------------------------------
   COLORS AND SIZES
   These are CSS VARIABLES. Change a color here and it changes
   everywhere on the site.
   --------------------------------------------------------------- */
:root {
  /* Tell the browser this is a dark site, so scrollbars are dark too */
  color-scheme: dark;
  --bg: #0d1522;
  --surface: #142033;
  --surface-2: #1d2c44;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f5fa;
  --muted: #93a1b5;
  --accent: #f5b041;
  --accent-strong: #ffc35c;
  --accent-ink: #1a1205;       /* text ON the accent color */
  --danger: #ff6b6b;
  --good: #5fd08a;
  --radius: 14px;
  --page-padding: clamp(14px, 3vw, 40px);
  --display-font: Oswald, Inter, system-ui, sans-serif;
}

/* The light theme: the same names, other colors.
   script.js puts data-theme="light" on the <html> element. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #e8ecf3;
  --line: rgba(15, 25, 45, 0.12);
  --text: #101826;
  --muted: #5d6878;
  --accent: #f0a024;
  --accent-strong: #f5b041;
  --danger: #d43c3c;
  --good: #1f8f4e;
}

* {
  box-sizing: border-box;
}

/* Anything with the "hidden" attribute stays hidden, even if a
   rule below gives it a "display". */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;   /* so the top bar does not cover a heading */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* A clear outline for people who use the keyboard */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px var(--page-padding) 0;
}

/* ---------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, opacity 0.15s, border-color 0.15s;
}

.button:active {
  transform: scale(0.97);
}

.button:disabled {
  opacity: 0.5;
  cursor: default;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Colored button: the main action */
.button-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-accent:hover:not(:disabled) {
  background: var(--accent-strong);
}

/* Button with only a line around it */
.button-outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.button-outline:hover:not(:disabled) {
  background: rgba(128, 140, 160, 0.18);
}

/* See-through button: the quiet action */
.button-ghost {
  background: rgba(128, 140, 160, 0.14);
  border-color: var(--line);
  color: var(--text);
}

.button-ghost:hover:not(:disabled) {
  background: rgba(128, 140, 160, 0.26);
}

.button-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.button-danger:hover:not(:disabled) {
  background: var(--danger);
  color: white;
}

.button-large {
  font-size: 15px;
  padding: 12px 22px;
}

.button-wide {
  width: 100%;
  padding: 12px 18px;
  margin-top: 10px;
}

/* A round button with only a drawing in it */
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.800;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------
   THE TOP BAR
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px var(--page-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo strong {
  font-weight: 700;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.logo rect {
  fill: var(--accent);
}

.logo path {
  fill: var(--accent-ink);
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* The search box grows to fill the free space in the middle */
.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  margin: 0;
  padding: 9px 40px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The round circle with the first letter of your email */
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-transform: uppercase;
}

/* The small number on the admin button: how many orders wait */
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 12px;
}

/* ---------------------------------------------------------------
   THE TOP OF THE PAGE: membership box + hero, side by side
   --------------------------------------------------------------- */
.top {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plans-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.plans-card h2 {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

/* The row of plan buttons: 24 hours, 1 month, ... */
.plan-tabs {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.plan-tab {
  flex: 1;
  padding: 8px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.plan-tab:hover {
  color: var(--text);
}

/* The plan that is chosen right now */
.plan-tab[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.plan-badge {
  align-self: flex-start;
  margin-top: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
}

.plan-price s {
  color: var(--muted);
  font-size: 15px;
}

.plan-price strong {
  font-family: var(--display-font);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.plan-note {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 13px;
}

.plan-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
}

.plan-points li {
  position: relative;
  margin-top: 8px;
  padding-left: 26px;
}

/* A small tick drawn with borders */
.plan-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-status {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--good);
  border-radius: 10px;
  color: var(--good);
  font-size: 14px;
  font-weight: 600;
}

/* Push the button to the bottom of the box */
.plans-card .button-wide {
  margin-top: auto;
}

.plan-points + .button-wide,
.plan-status + .button-wide {
  margin-top: 18px;
}

/* ---------------------------------------------------------------
   THE HERO
   It is always dark, in both themes, so white words are readable
   on top of the picture.
   --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 440px;
  padding: 40px 64px 56px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(245, 176, 65, 0.28), transparent 70%),
    #101826;
  color: #f2f5fa;
}

/* The poster again, made huge and blurry: soft colors behind the words */
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(46px) saturate(1.2) brightness(0.4);
  transform: scale(1.3);
}

.hero-content {
  position: relative;
  flex: 1;
  min-width: 0;
  /* script.js restarts this each time the movie changes */
  animation: rise 0.5s ease-out both;
}

.hero-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 10px;
  font-family: var(--display-font);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-description {
  margin-top: 14px;
  max-width: 560px;
  color: #c9d2df;
  font-size: 15px;
  /* Show at most 4 lines, then "..." */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  margin-top: 14px;
  color: #c9d2df;
  font-size: 14px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero .button-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #f2f5fa;
}

.hero-poster {
  position: relative;
  flex: none;
  width: min(230px, 26%);
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: rise 0.5s ease-out both;
}

.hero-arrow {
  position: absolute;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 16, 26, 0.5);
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(10, 16, 26, 0.9);
}

.hero-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #f2f5fa;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-arrow-left {
  left: 16px;
}

.hero-arrow-right {
  right: 16px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

/* The dot of the movie on screen is wider */
.hero-dot[aria-current="true"] {
  width: 28px;
  background: var(--accent);
}

/* ---------------------------------------------------------------
   GENRE BUTTONS
   --------------------------------------------------------------- */
.chips {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 4px;
  overflow-x: auto;           /* slide sideways on small screens */
  scrollbar-width: none;
}

.chip {
  flex: none;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chip:hover {
  color: var(--text);
  background: rgba(128, 140, 160, 0.14);
}

/* The genre that is chosen right now */
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------------------------------------------------------------
   THE MOVIES
   --------------------------------------------------------------- */
.shelf {
  padding: 34px 0 0;
}

.shelf-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.shelf-heading h2 {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
}

.movie-count {
  color: var(--muted);
  font-size: 14px;
}

/* A ROW: cards side by side that slide sideways */
.movie-row {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.movie-row .movie-card {
  flex: none;
  width: 172px;
  scroll-snap-align: start;
}

/* THE GRID: auto-fill means "fit as many columns as the screen allows" */
.movie-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 28px 16px;
}

.movie-card {
  position: relative;
  min-width: 0;
  animation: rise 0.5s ease-out both;
}

/* The poster is a button, so it can be clicked with the keyboard too */
.movie-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;        /* the shape of a real movie poster */
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-poster img,
.movie-poster video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* fill the shape, cut off the extra */
  transition: transform 0.4s ease;
}

/* The big first letter on a card with no picture */
.movie-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 72px;
  font-weight: 700;
}

/* The price in the corner of a card */
.movie-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}

/* A movie you may already watch */
.movie-tag.open {
  background: var(--good);
  color: white;
}

/* A dark fade and a round play button, shown on hover */
.movie-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.movie-play svg {
  width: 52px;
  height: 52px;
  padding: 15px;
  border-radius: 50%;
  background: var(--accent);
  fill: var(--accent-ink);
  transform: scale(0.8);
  transition: transform 0.25s;
}

.movie-poster:hover,
.movie-poster:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.movie-poster:hover img,
.movie-poster:hover video {
  transform: scale(1.06);
}

.movie-poster:hover .movie-play,
.movie-poster:focus-visible .movie-play {
  opacity: 1;
}

.movie-poster:hover .movie-play svg,
.movie-poster:focus-visible .movie-play svg {
  transform: scale(1);
}

.movie-title {
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.movie-info {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.movie-info .star {
  color: var(--accent);
  font-weight: 600;
}

/* Shown when there are no movies to show */
.empty {
  grid-column: 1 / -1;
  padding: 44px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Grey placeholder cards with a moving shine */
.skeleton .movie-poster {
  cursor: default;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%;
  animation: shine 1.4s linear infinite;
}

.site-footer {
  max-width: 1440px;
  margin: 56px auto 0;
  padding: 24px var(--page-padding);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------------
   POP-UP WINDOWS
   --------------------------------------------------------------- */
.dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.dialog[open] {
  animation: pop 0.25s ease-out;
}

/* The dark, blurry layer between the pop-up and the page */
.dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-body {
  position: relative;
}

.dialog-padded {
  padding: 28px;
}

.dialog h2 {
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 700;
  padding-right: 40px;        /* room for the X button */
}

.dialog-hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(40, 50, 66, 0.85);
  cursor: pointer;
  transition: background 0.15s;
}

.dialog-close:hover {
  background: rgba(80, 92, 110, 0.95);
}

.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #f2f5fa;
  stroke-width: 2;
  stroke-linecap: round;
}

.dialog-wide {
  width: min(680px, calc(100vw - 24px));
}

/* ---- The window for one movie ---- */
.dialog-movie {
  width: min(820px, calc(100vw - 24px));
}

.movie-detail {
  display: flex;
  gap: 26px;
  padding: 28px;
}

.movie-detail-poster {
  position: relative;
  flex: none;
  width: 240px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.movie-detail-poster img,
.movie-detail-poster video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-detail-text {
  flex: 1;
  min-width: 0;
}

.movie-detail-text h2 {
  margin-top: 6px;
  font-size: 32px;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.movie-detail-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.movie-detail-meta .star {
  color: var(--accent);
  font-weight: 600;
}

.movie-detail-description {
  margin-top: 14px;
  white-space: pre-wrap;      /* keep line breaks the writer typed */
  overflow-wrap: anywhere;    /* break very long words on phones */
}

/* "You may watch until ..." */
.movie-access {
  margin-top: 16px;
  color: var(--good);
  font-size: 14px;
  font-weight: 600;
}

.movie-detail-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.movie-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.like-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.800;
}

/* Liked: the heart is filled in */
.like-button[aria-pressed="true"] {
  border-color: var(--danger);
  color: var(--danger);
}

.like-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.stars {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars-label {
  color: var(--muted);
  font-size: 14px;
}

.stars-row {
  display: inline-flex;
}

.star-button {
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* A star you have given */
.star-button.on {
  color: var(--accent);
}

.star-button:hover {
  transform: scale(1.15);
}

.movie-detail-text .button-danger {
  margin-top: 22px;
}

/* ---- The player ---- */
.dialog-player {
  width: min(1100px, calc(100vw - 24px));
  background: #000;
}

#player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 74dvh;
  background: #000;
}

.player-info {
  padding: 16px 24px 20px;
  background: var(--surface);
}

.player-info h2 {
  font-size: 22px;
}

.player-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

/* ---- The payment window ---- */
.order-amount strong {
  font-family: var(--display-font);
  font-size: 40px;
  font-weight: 700;
}

.steps {
  margin: 14px 0 0;
  padding-left: 20px;
}

.steps li {
  margin-top: 14px;
  padding-left: 4px;
}

.pay-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 10px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
}

.pay-box dt {
  color: var(--muted);
}

.pay-box dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.order-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* The code is big, so nobody mistypes it */
.order-code {
  padding: 6px 16px;
  border: 1.500px dashed var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 30px;
  letter-spacing: 0.12em;
}

/* ---- The admin window ---- */
.admin-subheading {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.order-row-code {
  font-family: var(--display-font);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.order-row-text {
  flex: 1;
  min-width: 180px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.order-row-text small {
  display: block;
  color: var(--muted);
}

.order-row-amount {
  font-weight: 700;
}

.order-row-status {
  color: var(--muted);
  font-size: 13px;
}

.order-row-status.paid {
  color: var(--good);
}

.order-empty {
  padding: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------
   FORMS
   --------------------------------------------------------------- */
form {
  margin-top: 18px;
}

label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form select,
form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-grow {
  flex: 1;
  min-width: 0;
}

.form-small {
  width: 110px;
}

/* The box you click or drop a file on */
.file-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 16px;
  border: 1.500px dashed var(--muted);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.file-zone:hover,
.file-zone:focus-within {
  border-color: var(--accent);
  background: rgba(245, 176, 65, 0.07);
}

/* script.js adds "has-file" after you choose a file */
.file-zone.has-file {
  border-style: solid;
}

/* The real file input: invisible, but it covers the whole box */
.file-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-zone > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-zone-text {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.file-zone-hint {
  color: var(--muted);
  font-size: 12px;
}

.file-zone-small {
  flex-direction: row;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  text-align: left;
}

.poster-preview {
  width: 40px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.form-message {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.form-message.error {
  color: var(--danger);
}

/* The upload progress line */
.progress {
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s;
}

/* ---------------------------------------------------------------
   THE SMALL MESSAGE AT THE BOTTOM
   --------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------
   MOVEMENT
   --------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -50% 0;
  }
}

/* Some people get dizzy from movement and turn it off in their
   computer settings. Respect that. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------------------------------------------------------------
   TABLETS: the membership box moves under the hero
   --------------------------------------------------------------- */
@media (max-width: 980px) {
  .top {
    grid-template-columns: 1fr;
  }

  .hero {
    order: -1;                /* show the hero first */
  }

  .nav {
    display: none;
  }
}

/* ---------------------------------------------------------------
   PHONES
   --------------------------------------------------------------- */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo span {
    font-size: 18px;
  }

  /* The search box drops to its own line */
  .search-box {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .button {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 0;
    padding: 26px 20px 64px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
  }

  .movie-row .movie-card {
    width: 142px;
  }

  .movie-detail {
    flex-direction: column;
    padding: 22px 18px;
  }

  .movie-detail-poster {
    width: 150px;
  }

  .movie-detail-text h2 {
    font-size: 26px;
  }

  .dialog-padded {
    padding: 22px 18px;
  }
}
