:root {
  --bg: #0b0b0c;
  --surface: #141417;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f2f1ee;
  --muted: #9a9893;
  --accent: #f2f1ee;
  --danger: #d96b6b;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Watch page */
.watch-body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: blur(26px) saturate(0.85);
  transform: scale(1.08);
  opacity: 0.32;
  z-index: 0;
}

.backdrop-scrim {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.92) 75%, #0b0b0c 100%);
  z-index: 1;
}

.watch-shell {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 8vh 24px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.poster-wrap { width: 100%; }

.poster {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
}

.title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.subline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.note {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-left: 2px solid rgba(242, 241, 238, 0.35);
  background: rgba(255, 255, 255, 0.04);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.overview {
  margin: 0 0 28px;
  color: rgba(242, 241, 238, 0.8);
  line-height: 1.6;
  max-width: 60ch;
}

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

.btn-primary {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #0b0b0c;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.45; cursor: default; }

.btn-secondary {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-ghost {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-danger { color: var(--danger); border-color: rgba(217, 107, 107, 0.3); }

.error-msg {
  margin-top: 14px;
  color: var(--danger);
  font-size: 0.9rem;
}

/* Episodes */
.episodes-block {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.episodes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.episode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.episode-row:hover, .episode-row.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.ep-num { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 10px; }
.ep-dur { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Player stage */
.player-stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  display: flex;
  flex-direction: column;
}

.player-stage[hidden] { display: none; }

.player-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
  flex-wrap: wrap;
}

.player-title {
  font-size: 0.95rem;
  color: var(--text);
  margin-right: auto;
}

.player-controls-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.select-subtle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.85rem;
}

.video-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: #000;
  outline: none;
}

video::cue {
  background: rgba(0, 0, 0, 0.55);
  color: #f6f5f0;
  font-family: var(--font);
  font-size: 1.05em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Empty & login */
.center-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.empty-message { color: var(--muted); font-size: 1rem; }

.login-card {
  width: 100%;
  max-width: 340px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.brand { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; margin: 0 0 18px; }

.login-form { display: flex; flex-direction: column; gap: 12px; }

input[type="password"], input[type="email"], input[type="search"], textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Auth tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
}

.auth-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Catalog */
.catalog-body {
  min-height: 100vh;
  background: var(--bg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.nav-brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 230px;
  transition: width 0.2s ease;
}

.nav-search-wrap:focus-within {
  width: 270px;
}

.nav-search-icon {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.nav-search-input {
  width: 100%;
  padding: 7px 30px 7px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.nav-search-input::placeholder { color: var(--muted); }

.nav-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.nav-search-input::-webkit-search-cancel-button { display: none; }

.nav-search-clear {
  position: absolute;
  right: 7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}

.nav-search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.nav-search-clear svg { width: 13px; height: 13px; }
.nav-logout-form { margin: 0; }
.nav-action { white-space: nowrap; }

.catalog-shell {
  padding-bottom: 72px;
}

/* Hero */
.hero {
  position: relative;
  height: 56vh;
  min-height: 390px;
  max-height: 560px;
  width: 100%;
  overflow: hidden;
  background: #101013;
  display: flex;
  align-items: flex-end;
}

.hero[hidden] { display: none; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.8s ease;
}

.hero-img.is-ready {
  opacity: 0.9;
  transform: scale(1);
}

.hero-scrim-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 11, 12, 0.94) 0%,
    rgba(11, 11, 12, 0.72) 40%,
    rgba(11, 11, 12, 0.22) 74%,
    rgba(11, 11, 12, 0.08) 100%
  );
}

.hero-scrim-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #0b0b0c 0%,
    rgba(11, 11, 12, 0.62) 26%,
    rgba(11, 11, 12, 0.1) 62%,
    rgba(11, 11, 12, 0.34) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 32px 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.hero-content {
  max-width: 640px;
}

.hero-meta {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(242, 241, 238, 0.74);
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-overview {
  margin: 0 0 24px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(242, 241, 238, 0.82);
  max-width: 56ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero-play-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.play-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.hero-controls[hidden] { display: none; }

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 11, 12, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-arrow svg { width: 17px; height: 17px; }

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.6); }

.hero-dot.active {
  width: 22px;
  background: var(--text);
}

/* Home shelves */
.home-rows {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.shelf-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.shelf-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shelf-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.shelf-more:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.shelf-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shelf-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.shelf-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.shelf-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.shelf-arrow svg { width: 15px; height: 15px; }

.shelf-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shelf-track::-webkit-scrollbar { display: none; }

.shelf-card {
  flex: 0 0 clamp(148px, 13.4vw, 186px);
  scroll-snap-align: start;
}

/* Poster cards (shared by shelves and grid) */
.poster-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  outline: none;
}

.poster-card.card-dim .card-poster-wrap img {
  opacity: 0.68;
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(155deg, #1b1b20 0%, #111114 100%);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.poster-card:hover .card-poster-wrap,
.poster-card:focus-visible .card-poster-wrap {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.68);
}

.card-poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(242, 241, 238, 0.36);
}

.card-poster-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.25s ease;
}

.card-poster-wrap img.loaded {
  opacity: 1;
}

.poster-card:hover .card-poster-wrap img,
.poster-card:focus-visible .card-poster-wrap img {
  transform: scale(1.045);
}

.card-badge {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  background: rgba(11, 11, 12, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(242, 241, 238, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 5px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sub {
  font-size: 0.79rem;
  color: var(--muted);
}

/* Grid view (category & search) */
.grid-view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 32px 0;
}

.grid-view[hidden] { display: none; }

.grid-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.grid-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.grid-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.catalog-count {
  font-size: 0.86rem;
}

.grid-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 26px 20px;
}

.catalog-more-wrap {
  margin-top: 38px;
  text-align: center;
}

.catalog-state {
  max-width: 1440px;
  margin: 48px auto;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.catalog-state[hidden] { display: none; }

/* Skeletons */
.home-skeleton[hidden] { display: none; }

.skeleton-hero {
  height: 56vh;
  min-height: 390px;
  max-height: 560px;
  background: linear-gradient(180deg, #16161a 0%, #0b0b0c 100%);
}

.skeleton-row {
  max-width: 1440px;
  margin: 28px auto 0;
  padding: 0 32px;
}

.skeleton-row-head {
  width: 160px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.skeleton-cards {
  display: flex;
  gap: 18px;
  overflow: hidden;
}

.skeleton-card {
  flex: 0 0 clamp(148px, 13.4vw, 186px);
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.watch-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -16px;
}

/* Admin */
.admin-body { min-height: 100vh; }

.admin-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.admin-brand { display: flex; align-items: baseline; gap: 10px; }
.admin-brand .brand { margin: 0; }
.version { color: var(--muted); font-size: 0.8rem; }

.admin-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.search-row { display: flex; gap: 10px; }

.search-results {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-item {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
}

.search-item:hover { background: rgba(255, 255, 255, 0.1); }

.create-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.create-selected { display: flex; gap: 10px; align-items: baseline; }
.create-actions { display: flex; gap: 10px; }

.created-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table th { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.row-inactive { opacity: 0.5; }
.cell-note { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.cell-actions { display: flex; gap: 6px; white-space: nowrap; }
.muted { color: var(--muted); }

@media (max-width: 960px) {
  .site-nav-inner {
    padding: 10px 20px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .site-nav-left {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
  .site-nav-right {
    width: 100%;
    justify-content: flex-end;
  }
  .nav-search-wrap,
  .nav-search-wrap:focus-within {
    flex: 1;
    width: auto;
    max-width: 320px;
    margin-right: auto;
  }
  .hero-inner {
    padding: 28px 20px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .home-rows,
  .grid-view,
  .skeleton-row {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 720px) {
  .watch-shell {
    grid-template-columns: 1fr;
    padding-top: 32px;
    gap: 24px;
  }
  .poster-wrap { max-width: 220px; }
  .hero {
    height: 52vh;
    min-height: 360px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
  }
  .hero-overview {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .shelf-arrows { display: none; }
  .shelf-card,
  .skeleton-card {
    flex: 0 0 138px;
  }
  .shelf-track { gap: 13px; }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(134px, 1fr));
    gap: 20px 14px;
  }
  .site-nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav-tabs {
    width: 100%;
    padding-bottom: 2px;
  }
}
