/* ============================================================
   FlickFocus — UI
   ============================================================ */

:root {
  --bg: #070707;
  --bg-2: #111111;
  --bg-3: #1f1b18;
  --surface: #171412;
  --surface-2: #1d1816;
  --border: rgba(255, 255, 255, 0.08);
  --gold: #f6c957;
  --gold-dim: #be8e2c;
  --accent: #ff7a2a;
  --text: #f4efe7;
  --text-muted: #b9ab9a;
  --text-soft: rgba(255, 244, 231, 0.88);
  --radius: 12px;
  --radius-lg: 24px;
  --control-h: 46px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(255, 136, 48, 0.16), transparent 34%),
    linear-gradient(180deg, #150f0a 0%, #090909 28%, #060606 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.home-body .footer {
  position: relative;
  z-index: 2;
  background: rgba(7, 7, 7, 0.94);
}

/* NAV */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  background: linear-gradient(180deg, rgba(18, 15, 13, 0.9), rgba(15, 13, 11, 0.82));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  z-index: 100;
  pointer-events: auto;
}

.navbar.is-scrolled {
  background: rgba(10, 9, 8, 0.92);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.3px;
  transition: color var(--transition);
}

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

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 102;
  flex-wrap: nowrap;
}

.search-form {
  display: flex;
  align-items: center;
  min-height: var(--control-h);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.search-form input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  height: var(--control-h);
  padding: 0 1rem;
  font-size: 0.875rem;
  width: 250px;
}

.search-form input::placeholder {
  color: rgba(255, 244, 231, 0.55);
}

.search-form button {
  background: none;
  border: none;
  color: rgba(255, 244, 231, 0.55);
  height: var(--control-h);
  padding: 0 1rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-login {
  min-height: var(--control-h);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0 1.25rem;
  border-radius: 12px;
  transition: background var(--transition);
}

.btn-login:hover {
  background: rgba(245, 197, 24, 0.12);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  height: var(--control-h);
  padding: 0 0.5rem 0 0.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-caret {
  font-size: 0.8rem;
  color: rgba(255, 244, 231, 0.7);
}

.nav-login-link {
  position: relative;
  z-index: 103;
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  flex-shrink: 0;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  overflow: hidden;
  z-index: 120;
}

.user-dropdown.is-open {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: background var(--transition);
}

.user-dropdown a:hover {
  background: var(--bg-3);
  color: var(--text);
}

/* HOME */
.home-shell {
  position: relative;
  min-height: 100vh;
}

.home-wall {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0 18px;
  opacity: 0.28;
  pointer-events: none;
  transform: scale(1.03);
}

.home-wall-tile {
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f0c0a;
}

.home-wall-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.46);
}

.home-wall-overlay,
.home-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.home-wall-overlay {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.12) 0%, rgba(7, 7, 7, 0.68) 26%, rgba(7, 7, 7, 0.92) 100%),
    radial-gradient(circle at 50% 12%, rgba(255, 139, 49, 0.26), transparent 30%);
}

.home-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.25;
}

.home-main {
  position: relative;
  z-index: 2;
  width: min(1148px, calc(100% - 64px));
  margin: 86px auto 0;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.88), rgba(8, 8, 8, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.hero-panel {
  position: relative;
  min-height: 392px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center 20%;
  padding: 4.9rem 2rem 2.05rem;
}

.hero-panel-overlay,
.hero-panel-glow {
  position: absolute;
  inset: 0;
}

.hero-panel-overlay {
  background:
    linear-gradient(180deg, rgba(16, 12, 8, 0.12), rgba(16, 12, 8, 0.52) 62%, rgba(8, 8, 8, 0.94) 100%),
    radial-gradient(circle at center, rgba(255, 177, 59, 0.26), transparent 33%);
}

.hero-panel-glow {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 170, 61, 0.28), transparent 26%),
    radial-gradient(circle at 50% 62%, rgba(0, 0, 0, 0.12), transparent 42%);
}

.hero-orb {
  position: absolute;
  inset: auto 50% 36px auto;
  width: 390px;
  height: 390px;
  transform: translateX(50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 83, 0.22) 0%, rgba(255, 142, 46, 0.08) 52%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-content-centered {
  text-align: center;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe3b4;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.3rem);
  line-height: 1;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 6px 20px rgba(0, 0, 0, 0.65);
}

.hero-tagline {
  color: rgba(255, 244, 231, 0.9);
  font-size: 0.86rem;
  margin-bottom: 0.65rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: rgba(255, 244, 231, 0.82);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-meta-centered,
.hero-actions-centered {
  justify-content: center;
}

.hero-actions-centered .btn-primary,
.hero-actions-centered .btn-secondary,
.genre-hero .hero-actions .btn-primary,
.genre-hero .hero-actions .btn-secondary {
  min-width: 180px;
}

.meta-dot {
  opacity: 0.45;
}

.rating-badge {
  color: var(--gold);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  height: var(--control-h);
  line-height: 1;
  gap: 0.4rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  transition: opacity var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  height: var(--control-h);
  line-height: 1;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0 1.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background var(--transition);
  cursor: pointer;
}

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

.btn-in-list {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* SECTIONS */
.section {
  padding: 1.45rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.home-section {
  padding-top: 0.65rem;
}

.home-section-tight {
  padding-top: 0.2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.see-all {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.see-all:hover {
  opacity: 0.7;
}

/* CARDS */
.cards-top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  padding-bottom: 0.5rem;
}

.card {
  position: relative;
  background: rgba(21, 17, 15, 0.92);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-spotlight {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.card-rank {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.card-poster {
  aspect-ratio: 0.73;
  overflow: hidden;
  background: var(--bg-3);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-poster-placeholder,
.detail-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--text-muted);
}

.card-info {
  padding: 0.52rem 0.52rem 0.62rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.card-title {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-rating {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-synopsis {
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cards-series {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.cards-shorts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.short-card {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: rgba(21, 17, 15, 0.92);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.short-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.short-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg-3);
}

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

.short-card-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(197, 19, 19, 0.85);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.short-card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.shorts-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
}

.shorts-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.shorts-modal-dialog {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.shorts-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 1.1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.98), rgba(10, 10, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.shorts-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.shorts-modal-head {
  padding: 0.45rem 0.1rem 0.95rem;
}

.shorts-modal-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
  line-height: 1;
}

.shorts-modal-player {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.shorts-modal-player iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  display: block;
}

.card-wide {
  background: rgba(21, 17, 15, 0.92);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.card-wide:hover {
  transform: translateY(-4px);
}

.card-wide-img {
  position: relative;
  aspect-ratio: 2.15 / 1;
  overflow: hidden;
  background: var(--bg-3);
}

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

.card-wide-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38) 62%, rgba(0, 0, 0, 0.8));
}

.card-wide-rating {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(10, 10, 15, 0.85);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  z-index: 1;
}

.card-wide-title {
  padding: 0.46rem 0.62rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf-arrows {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 244, 231, 0.62);
  font-size: 1.25rem;
}

.shelf-arrows span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.genres-grid-catalog {
  margin-bottom: 2.2rem;
}

.genres-grid-home {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.genre-chip {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  transition: transform var(--transition), border-color var(--transition);
}

.genre-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.genre-chip-catalog {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
}

.genre-chip-catalog.is-active {
  border-color: rgba(246, 201, 87, 0.38);
  background:
    linear-gradient(180deg, rgba(246, 201, 87, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  color: #fffaf2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.genre-chip-cinematic {
  min-height: 68px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    linear-gradient(120deg, rgba(255, 140, 51, 0.24), rgba(20, 20, 20, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* DETAIL */
.detail-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background-size: cover;
  background-position: center top;
}

.detail-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.35), rgba(7, 7, 7, 0.88) 72%, rgba(7, 7, 7, 1));
}

.detail-main {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.6rem) 1.25rem 4rem;
}

.detail-page-body {
  background:
    linear-gradient(180deg, rgba(16, 14, 12, 0.08), rgba(7, 7, 7, 1) 32%),
    #070707;
}

.detail-backdrop-cinematic {
  height: 500px;
  filter: saturate(0.88);
}

.detail-backdrop-cinematic .detail-backdrop-overlay {
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.18), rgba(11, 10, 9, 0.55) 54%, rgba(7, 7, 7, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.3), rgba(7, 7, 7, 0.12));
}

.detail-hero-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.45rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.detail-poster {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-poster-featured {
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.detail-info-topline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.detail-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0.8px;
  margin-bottom: 0.1rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.detail-meta-compact {
  font-size: 0.95rem;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  color: rgba(255, 244, 231, 0.88);
}

.detail-meta-compact strong {
  color: var(--text);
}

.rating-badge-lg {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.meta-sep {
  color: rgba(255, 255, 255, 0.18);
}

.detail-synopsis {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.detail-synopsis-rich {
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 244, 231, 0.82);
}

.detail-extra {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.detail-extra strong {
  color: var(--text);
}

.detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.detail-actions .btn-primary,
.detail-actions .btn-secondary {
  min-width: 180px;
}

.detail-copy-block {
  max-width: 980px;
}

.detail-section-block {
  margin-bottom: 1.5rem;
}

.detail-section-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.watch-card {
  min-height: 168px;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.1rem;
  transition: opacity var(--transition);
}

.watch-card:hover {
  opacity: 0.9;
}

.watch-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background: transparent;
  color: #fff;
  overflow: hidden;
  margin: 0.2rem 0;
}

.watch-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}

.watch-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 244, 231, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.watch-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.watch-card span:last-child {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 244, 231, 0.92);
}

.watch-card small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.media-card {
  position: relative;
  min-height: 195px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.media-card-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.media-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  z-index: 1;
}

.media-label {
  position: absolute;
  left: 0.8rem;
  bottom: 0.65rem;
  z-index: 1;
  font-weight: 700;
  font-size: 0.95rem;
}

.detail-rating-panel {
  padding-top: 0.15rem;
}

.rating-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 195px;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rating-bar-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rating-bar-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d99a2c, #f6c957);
}

.rating-score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
}

.rating-score-box strong {
  font-size: 3.6rem;
  line-height: 0.95;
  font-family: var(--font-display);
}

.rating-score-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.rating-stars,
.rating-stars-inline {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.rating-stars-inline {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.review-quote-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.review-quote {
  font-size: 1rem;
  color: rgba(255, 244, 231, 0.84);
}

.review-quote p {
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

.review-quote cite {
  font-style: normal;
  font-weight: 700;
}

.detail-rating-form {
  max-width: none;
  width: 100%;
}

.detail-recommendations {
  margin-top: 2.2rem;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.detail-related-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.detail-related-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.detail-related-poster {
  aspect-ratio: 2 / 3;
  background: var(--bg-3);
  overflow: hidden;
}

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

.detail-related-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.detail-related-info h3 {
  font-size: 1rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RATING */
.rating-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.rating-form h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.star-select {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.star-select input {
  display: none;
}

.star-select label {
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.star-select label:hover,
.star-select label:hover ~ label,
.star-select input:checked ~ label {
  color: var(--gold);
}

.rating-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.rating-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.rating-form .btn-primary {
  width: 100%;
  justify-content: center;
}

.rating-vote-count {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.review-empty {
  color: var(--text-muted);
  line-height: 1.6;
}

/* AUTH */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 50%, rgba(232, 83, 58, 0.08), transparent 60%), var(--bg);
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

.auth-logo {
  font-size: 2rem;
}

.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.auth-card-modal {
  max-width: 420px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition);
  background: transparent;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--bg-3);
  color: var(--text);
  border-bottom: 2px solid var(--gold);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.auth-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color var(--transition);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: flex;
}

/* PAGES */
.page-main {
  max-width: 980px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.page-header em {
  color: var(--gold);
}

.search-form-lg {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
}

.search-form-lg input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  min-height: 48px;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.search-form-lg input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.search-form-lg button {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  min-height: 48px;
  padding: 0 1.5rem;
  font-weight: 700;
  cursor: pointer;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.genre-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.genre-hero {
  position: relative;
  min-height: 340px;
  margin-bottom: 1.75rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 122, 42, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.genre-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.92), rgba(9, 8, 7, 0.72) 50%, rgba(9, 8, 7, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
}

.genre-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.genre-hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 1px;
}

.genre-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: rgba(255, 244, 231, 0.84);
  font-size: 0.95rem;
}

.genre-hero-content p {
  color: rgba(255, 244, 231, 0.86);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 60ch;
}

.genre-results-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.genre-results-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1.5px;
  line-height: 1;
}

.genre-results-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.genre-result-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.result-card {
  display: flex;
  gap: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.result-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.result-poster {
  width: 220px;
  flex-shrink: 0;
  align-self: flex-start;
  aspect-ratio: 2 / 3;
  background: var(--bg-3);
  overflow: hidden;
}

.result-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-info {
  padding: 1.2rem 1.2rem 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  justify-content: center;
}

.result-type {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.result-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-info p {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-genres,
.result-year {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.result-provider-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.result-provider-title {
  color: rgba(255, 244, 231, 0.88);
  font-size: 0.88rem;
}

.result-provider-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.result-provider-row img,
.result-provider-fallback {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex-shrink: 0;
}

.result-provider-row img {
  object-fit: cover;
  display: block;
}

.result-provider-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.result-short-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.result-short-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 33, 33, 0.18), rgba(255, 33, 33, 0.1));
  border: 1px solid rgba(255, 56, 56, 0.28);
  color: #ffe3e3;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ALERTS */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(232, 83, 58, 0.15);
  border: 1px solid rgba(232, 83, 58, 0.4);
  color: #ff8a75;
}

.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state a {
  color: var(--gold);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 2rem 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .cards-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-series {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-shorts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genres-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.8rem;
    align-items: center;
    flex-direction: column;
  }

  .logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.25rem;
  }

  .logo-image {
    height: 52px;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: space-around;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .user-name,
  .shelf-arrows {
    display: none;
  }

  .nav-right {
    width: 100%;
    margin-left: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    width: 100%;
    min-width: 0;
  }

  .nav-login-link,
  .user-menu {
    justify-self: end;
  }

  .home-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-main {
    width: calc(100% - 20px);
    margin-top: 205px;
    border-radius: 0 0 20px 20px;
  }

  .cards-top {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(164px, 74vw);
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0 13vw 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .cards-top::-webkit-scrollbar {
    display: none;
  }

  .cards-top .card-spotlight {
    scroll-snap-align: center;
  }

  .cards-series {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 82vw);
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0 9vw 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .cards-series::-webkit-scrollbar {
    display: none;
  }

  .cards-series .card-wide {
    scroll-snap-align: center;
  }

  .cards-shorts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 66vw);
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0 17vw 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .cards-shorts::-webkit-scrollbar {
    display: none;
  }

  .cards-shorts .short-card {
    scroll-snap-align: center;
  }

  .hero-actions-centered {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .hero-actions-centered .btn-primary,
  .hero-actions-centered .btn-secondary,
  .genre-hero .hero-actions .btn-primary,
  .genre-hero .hero-actions .btn-secondary {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .hero-panel {
    min-height: 400px;
    padding: 205px 1rem 2rem;
  }

  .hero-orb {
    width: 240px;
    height: 240px;
    bottom: 42px;
  }

  .section,
  .page-main,
  .detail-main {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 205px;
  }

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

  .genre-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .genre-hero {
    min-height: 300px;
  }

  .genre-hero-content {
    padding: 1.35rem;
  }

  .result-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.75rem;
    min-height: 0;
    align-items: flex-start;
  }

  .result-poster {
    grid-column: 1;
    grid-row: 1 / span 5;
    width: 100px;
    border-radius: 6px;
  }

  .result-info {
    display: contents;
  }

  .result-type,
  .result-info h3,
  .result-info .card-rating,
  .result-year,
  .result-provider-row,
  .result-provider-group {
    grid-column: 2;
    min-width: 0;
  }

  .result-genres {
    grid-column: 1 / -1;
    width: 100%;
    text-align: right;
  }

  .result-provider-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: -0.25rem;
  }

  .result-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .result-info p {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 244, 231, 0.75);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .result-type {
    font-size: 0.7rem;
    margin-bottom: -0.2rem;
  }

  .result-genres {
    grid-column: 1 / -1;
    width: 100%;
    text-align: left;
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .result-year {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
  }

  .result-info .card-rating {
    font-size: 0.82rem;
    margin-top: -0.2rem;
  }

  .result-provider-row {
    margin-top: 0.1rem;
    gap: 0.4rem;
  }

  .card-provider-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 220px;
  }

  .detail-hero-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster-featured {
    max-width: 230px;
  }

  .watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .detail-recommendations .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .detail-related-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(184px, 78vw);
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .detail-related-grid::-webkit-scrollbar {
    display: none;
  }

  .detail-related-card {
    scroll-snap-align: start;
  }

  .detail-actions-cinematic {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .detail-actions-cinematic .btn-primary,
  .detail-actions-cinematic .btn-secondary {
    width: 100%;
    min-width: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem;
    justify-content: center;
  }

  .detail-title {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .media-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-summary-grid {
    grid-template-columns: 1fr;
  }
}
