:root {
  --bg-primary: #050505;
  --bg-secondary: #0d0d0f;
  --bg-tertiary: #17171b;
  --surface: rgba(18, 18, 20, 0.92);
  --surface-strong: rgba(24, 24, 28, 0.98);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --accent-primary: #e50914;
  --accent-secondary: #b20710;
  --accent-soft: rgba(229, 9, 20, 0.12);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.32);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1360px;
  --transition-fast: 140ms ease;
  --transition-base: 220ms ease;
}

/* ===== PAGE TRANSITIONS & PREMIUM FEEL ===== */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#main-content, .details-hero {
  animation: pageFadeIn 0.35s ease-out both;
}

main.account-page {
  animation: pageFadeIn 0.35s ease-out both;
}

.home-rail {
  animation: pageSlideUp 0.4s ease-out both;
}
.home-rail:nth-child(2) { animation-delay: 0.05s; }
.home-rail:nth-child(3) { animation-delay: 0.1s; }
.home-rail:nth-child(4) { animation-delay: 0.15s; }
.home-rail:nth-child(5) { animation-delay: 0.2s; }

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.page-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.btn-primary, .btn-secondary, .action-pill, .filter-btn {
  transition: all 200ms cubic-bezier(0.33, 1, 0.68, 1);
}
.btn-primary:active, .btn-secondary:active, .action-pill:active {
  transform: scale(0.97);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: #000;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.watch-body {
  background: #000;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #fff;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 60%, transparent 100%);
  border-bottom: 0;
  backdrop-filter: blur(12px);
}

/* ===== ACCOUNT PAGE LAYOUT ===== */
main.account-page {
  display: flex;
  gap: 2rem;
  padding: 2rem 1.25rem;
}

.account-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.account-sidebar .container {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.account-content {
  flex: 1;
  min-width: 0;
}

.account-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  margin-left: 0;
}

.account-nav a:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.04);
}

.account-nav a.active {
  color: var(--accent-primary);
  font-weight: 600;
  background: rgba(229, 9, 20, 0.1);
  border-left-color: var(--accent-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Account hero card */
.account-hero {
  margin-bottom: 2rem;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0.03) 100%);
  border: 1px solid var(--border-soft);
}

.account-avatar {
  min-width: 80px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

.account-copy {
  flex: 1;
}

.account-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.account-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* Account grid layout */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 0;
}

.account-grid .container {
  display: contents;
}

.account-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  transition: all var(--transition-base);
}

.account-panel:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.account-panel h2 {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.account-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.account-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.account-list > div:last-child {
  border-bottom: none;
}

.account-list dt {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.account-list dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.settings-list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: background var(--transition-fast);
}

.setting-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.setting-row span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-right: 1rem;
}

.setting-row strong {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.setting-row small {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.setting-row input[type="checkbox"] {
  width: 44px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.6rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.logo::before {
  display: none;
}

.logo-main {
  font-size: inherit;
  font-style: italic;
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.logo-tagline {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.chrome-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.chrome-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-greeting {
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Nav - desktop horizontal pills */
.nav {
  display: block;
  border-top: none;
}

.nav .container {
  padding: 0.25rem 0 0.4rem;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav a.active {
  color: #fff;
  background: transparent;
  font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: none;
}

.btn-primary:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.88);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: transparent;
}

.btn-secondary:hover,
.btn-outline:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-block {
  width: 100%;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-inner {
  width: min(100% - 2rem, 640px);
  display: grid;
  gap: 1.5rem;
}

.search-overlay-bar {
  display: flex;
  gap: 0.5rem;
}

.search-overlay-bar input {
  flex: 1;
  min-height: 56px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 30, 34, 0.95);
  color: #fff;
  outline: none;
  font-size: 1.1rem;
}

.search-overlay-bar input:focus {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.search-overlay-bar input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-overlay-bar button {
  min-height: 56px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.search-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.search-results-mini {
  display: grid;
  gap: 0.5rem;
  max-height: 50vh;
  overflow-y: auto;
}

.search-results-mini .result-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-results-mini .result-poster {
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.search-results-mini .result-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-results-mini .result-info h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.search-results-mini .result-info p {
  margin: 0.2rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* ===== HERO ===== */
.hero,
.browse-shell,
.details-sections,
.auth-page {
  position: relative;
  isolation: isolate;
}

.hero {
  padding: 0;
  margin-top: -72px;
}

.hero-home {
  padding-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: auto;
}

.hero-copy {
  padding: 1.5rem 0 0.75rem;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy > p,
.hero-buttons {
  display: none;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-copy h1,
.details-copy h1,
.auth-card h1,
.movies-header h1,
.section-title,
.section-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-panel {
  display: flex;
  justify-content: flex-start;
}

.hero-panel-card {
  width: 100%;
  min-height: min(55vh, 520px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-panel-label {
  display: none;
}

/* ===== HERO SLIDES ===== */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  min-height: min(55vh, 520px);
}

.hero-slide-card {
  position: relative;
  min-height: min(60vh, 560px);
  padding: 72px 0 1rem;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%),
    var(--hero-bg) center/cover no-repeat;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(70deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.05) 70%, transparent 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.95) 100%);
}

.hero-slide-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.hero-slide-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 0.65rem;
  width: min(100%, 38rem);
  height: 100%;
  padding: 0 1.25rem 2rem;
}

.hero-slide-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  font-weight: 700;
}

.hero-slide-badge::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

.hero-slide-copy h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hero-slide-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-size: 0.85rem;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-slide-meta span {
  min-height: unset;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 500;
}

.hero-slide-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.hero-slide-actions .btn-primary {
  min-height: 44px;
  padding: 0 1.5rem;
  width: auto;
  border-radius: var(--radius-pill);
}

.hero-slide-actions .btn-secondary {
  min-height: 44px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
}

.hero-carousel-footer {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.hero-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.hero-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: width 240ms cubic-bezier(0.33, 1, 0.68, 1), background 200ms ease;
}

.hero-dot.active {
  width: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
}

/* ===== HOME RAILS ===== */
.home-rails {
  padding: 0.75rem 0 2rem;
}

.home-rail {
  margin-top: 1.25rem;
}

.home-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.home-rail-head h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: -0.01em;
  font-weight: 700;
}

.home-rail-head a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.home-rail-head a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.home-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100px, 120px);
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}

.home-rail-track::-webkit-scrollbar {
  height: 0.15rem;
}

.home-rail-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.rail-card {
  scroll-snap-align: start;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  display: grid;
  gap: 0.4rem;
  transition: transform 280ms cubic-bezier(0.33, 1, 0.68, 1);
  cursor: pointer;
  padding: 0;
}

.rail-card:hover {
  transform: scale(1.04);
}

.rail-card-image {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: box-shadow 300ms ease;
}

.rail-card:hover .rail-card-image {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.rail-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.33, 1, 0.68, 1);
}

.rail-card:hover .rail-card-image img {
  transform: scale(1.05);
}

.rail-card-copy h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.rail-card-copy p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

/* Continue Watching card overlay play button */
.rail-card-image {
  position: relative;
}
.rail-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 200ms ease;
}
.rail-card:hover .rail-card-overlay {
  opacity: 1;
}
.rail-card-play {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.rail-card-play:hover {
  transform: scale(1.12);
  background: #fff;
}

/* ===== CONTENT CARDS / MOVIE GRID ===== */
.content-slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.content-card,
.media-card,
.episode-rail-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.content-card:hover,
.media-card:hover {
  transform: translateY(-2px);
}

.content-card-img {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.content-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

.content-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-remove-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease, background 150ms ease;
  z-index: 2;
}
.content-card-img:hover .list-remove-btn,
.list-remove-btn:focus {
  opacity: 1;
}
.list-remove-btn:hover {
  background: #e50914;
}

.content-card-info {
  padding: 0;
}

.content-card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 600;
}

.content-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

/* ===== BROWSE PAGE (Movies/TV/Anime) ===== */
.browse-shell {
  padding: 5.5rem 0 2.5rem;
}

.movies-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.movies-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.movies-header p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  min-width: min(100%, 28rem);
}

.search-box input,
.auth-card input,
.watch-toolbar select,
.details-episode-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 20, 0.92);
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  main.account-page {
    flex-direction: column;
    gap: 1.5rem;
  }

  .account-sidebar {
    width: 100%;
  }

  .account-nav ul {
    flex-direction: row;
    border-bottom: 1px solid var(--border-soft);
    gap: 0;
  }

  .account-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 1rem;
    margin-left: 0;
  }

  .account-nav a.active {
    border-left: none;
    border-bottom-color: var(--accent-primary);
  }
}

@media (max-width: 768px) {
  main.account-page {
    padding: 1rem 1.25rem;
  }

  .account-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .account-actions {
    justify-content: center;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-list > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-list dd {
    text-align: left;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  main.account-page {
    padding: 0.75rem 0.75rem;
  }

  .account-card {
    padding: 1.5rem;
  }

  .account-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .account-panel {
    padding: 1.5rem;
  }

  .account-actions {
    gap: 0.5rem;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    min-height: 40px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    width: 100%;
  }

  .account-nav a {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
}
