/* Kannada OTT - Main Stylesheet */
:root {
  --bg-main: #080808;
  --bg-secondary: #111111;
  --bg-card: #181818;
  --bg-elevated: #222222;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #737373;
  --accent: #c41e3a;
  --accent-hover: #e02445;
  --accent-dark: #8b1529;
  --gold: #c9a962;
  --gold-soft: rgba(201, 169, 98, 0.15);
  --glass: rgba(17, 17, 17, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-hero: linear-gradient(180deg, rgba(8, 8, 8, 0.1) 0%, rgba(8, 8, 8, 0.6) 45%, #080808 100%);
  --gradient-side: linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, 0.85) 35%, rgba(8, 8, 8, 0.4) 65%, transparent 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --container-max: 1440px;
  --row-gap: 3rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg-main);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-screen__logo {
  width: 120px;
  height: auto;
}

.loading-screen__bar {
  width: 120px;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
}

.loading-screen__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: inherit;
  animation: loadingBar 1.2s ease-in-out infinite;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--glass-border);
}

.site-header__inner {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}

.site-header__nav a:hover,
.site-header__nav a.active {
  color: var(--text-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-nav a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a8893f);
  color: #111;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero__side-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-side);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(100% - 2rem, var(--container-max));
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) 0 5rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 169, 98, 0.35);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero__meta .rating {
  color: var(--gold);
  font-weight: 600;
}

.hero__desc {
  max-width: 540px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

/* Content Rows */
.content-section {
  padding: 0 0 var(--row-gap);
  position: relative;
}

.content-section:first-of-type {
  margin-top: -3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 1rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title--gold {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.section-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}

.section-link:hover { color: var(--accent); }

.content-row {
  position: relative;
  padding: 0 1rem;
}

.content-row__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.content-row__track::-webkit-scrollbar { display: none; }

.row-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}

.content-row:hover .row-nav { opacity: 1; }
.row-nav:hover { background: rgba(196, 30, 58, 0.8); }
.row-nav--prev { left: 0.25rem; }
.row-nav--next { right: 0.25rem; }

/* Media Cards */
.media-card {
  flex: 0 0 auto;
  width: clamp(140px, 16vw, 200px);
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.media-card:hover {
  transform: scale(1.06);
  z-index: 10;
  box-shadow: var(--shadow-card);
}

.media-card__poster {
  aspect-ratio: 2/3;
  width: 100%;
  object-fit: cover;
  background: var(--bg-card);
}

.media-card__info {
  padding: 0.75rem;
}

.media-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.media-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.media-card:hover .media-card__overlay { opacity: 1; }

.media-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.media-card__actions .btn-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

/* Top 10 */
.top10-row .media-card {
  width: clamp(160px, 18vw, 220px);
}

.top10-card {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.top10-card__rank {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
  margin-right: -1.5rem;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.top10-card .media-card {
  margin-left: 0;
}

/* Continue Watching */
.continue-card {
  width: clamp(220px, 24vw, 280px);
}

.continue-card .media-card__poster {
  aspect-ratio: 16/9;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.continue-card__episode,
.continue-card__time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Originals */
.original-card {
  width: clamp(260px, 30vw, 380px);
}

.original-card .media-card__poster {
  aspect-ratio: 16/9;
}

.badge-original {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* Genre Grid */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  padding: 0 1rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.genre-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.genre-card:hover { transform: scale(1.04); }

.genre-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genre-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.5), rgba(8, 8, 8, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
}

.genre-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Page Header */
.page-header {
  padding: calc(var(--header-height) + 3rem) 1rem 2rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  max-width: var(--container-max);
  margin-inline: auto;
}

.page-header p {
  color: var(--text-secondary);
  max-width: var(--container-max);
  margin: 0.5rem auto 0;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 2rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding: 0 1rem 3rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.grid-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.grid-card__poster {
  aspect-ratio: 2/3;
  width: 100%;
  object-fit: cover;
}

.grid-card__body {
  padding: 0.85rem;
}

.grid-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.grid-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.load-more-wrap {
  text-align: center;
  padding: 1rem 1rem 4rem;
}

/* Detail Page */
.detail-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #080808 0%, rgba(8, 8, 8, 0.4) 50%, rgba(8, 8, 8, 0.7) 100%);
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--container-max));
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) 0 3rem;
}

.detail-hero__poster {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 2/3;
  object-fit: cover;
  width: 100%;
}

.detail-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.detail-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.detail-section {
  padding: 2rem 1rem 4rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.cast-card {
  text-align: center;
}

.cast-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  background: var(--bg-card);
}

.cast-card span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.crew-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.crew-list dt {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crew-list dd {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Series Episodes */
.season-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.season-tab {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.season-tab.active,
.season-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.episode-list {
  display: grid;
  gap: 1rem;
}

.episode-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.episode-item:hover { background: var(--bg-elevated); }

.episode-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.episode-item__num {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.episode-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.episode-item__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.episode-item__duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Video Player */
.player-page {
  background: #000;
  min-height: 100vh;
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 100vh;
  background: #000;
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  opacity: 0;
  transition: opacity var(--transition);
}

.video-player-wrap:hover .player-controls,
.video-player-wrap.controls-visible .player-controls {
  opacity: 1;
}

.player-progress {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.player-progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  position: relative;
}

.player-progress__fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-toolbar__left,
.player-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.player-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.player-next {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

/* Search */
.search-page {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 80vh;
}

.search-box {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  outline: none;
  transition: border-color var(--transition);
}

.search-box input:focus {
  border-color: var(--accent);
}

.search-box svg {
  position: absolute;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-results {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.search-group {
  margin-bottom: 2.5rem;
}

.search-group h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.search-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.actor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 120px;
}

.actor-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auth-page__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.auth-page__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.82);
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 440px);
  padding: 2.5rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.auth-card__logo {
  display: block;
  height: 42px;
  margin: 0 auto 1.5rem;
}

.auth-card h1 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus { border-color: var(--accent); }

.form-error {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

.social-login {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-login button {
  flex: 1;
  padding: 0.65rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Subscription */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-card);
  transform: scale(1.03);
}

.plan-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.plan-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.plan-card__price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-card ul {
  text-align: left;
  margin-bottom: 1.5rem;
}

.plan-card li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
}

.plan-card li::before {
  content: '✓';
  color: var(--accent);
  margin-right: 0.5rem;
}

/* Profile */
.profile-select {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, #151515 0%, #080808 70%);
}

.profile-select h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.profile-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.profile-avatar {
  width: 140px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.profile-avatar:hover { transform: scale(1.08); }

.profile-avatar__icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 0.75rem;
  transition: border-color var(--transition);
}

.profile-avatar:hover .profile-avatar__icon,
.profile-avatar.active .profile-avatar__icon {
  border-color: var(--accent);
}

.profile-avatar--add .profile-avatar__icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  border: 2px dashed var(--glass-border);
  background: transparent;
}

.profile-dashboard {
  padding-top: calc(var(--header-height) + 2rem);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.profile-tab {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
}

.profile-tab.active,
.profile-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 1rem 2rem;
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}

.site-footer__brand img {
  height: 52px;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.site-footer ul li { margin-bottom: 0.6rem; }

.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.site-footer a:hover { color: #fff; }

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.site-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__bottom {
  max-width: var(--container-max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__credit {
  margin-top: 0.5rem;
}

.site-footer__credit a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__credit a:hover {
  color: var(--text-primary);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Image Placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #181818, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

/* Ranking cards for trending page */
.rank-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  transition: background var(--transition);
  cursor: pointer;
}

.rank-card:hover { background: var(--bg-elevated); }

.rank-card__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  min-width: 48px;
}

.rank-card img {
  width: 80px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-card__info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.rank-card__info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trending-sections {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.trending-block {
  margin-bottom: 3rem;
}

.trending-block h2 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* App Download / Store Badges */
.app-download {
  position: relative;
  margin: var(--row-gap) auto;
  width: min(100% - 2rem, var(--container-max));
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(196, 30, 58, 0.22), rgba(201, 169, 98, 0.14)), var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
}

.app-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201, 169, 98, 0.25), transparent 55%);
  pointer-events: none;
}

.app-download__text {
  position: relative;
  max-width: 560px;
}

.app-download__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.app-download__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.app-download__text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.app-download__note {
  margin-top: 0.75rem;
  color: var(--gold) !important;
  font-size: 0.9rem !important;
  font-weight: 600;
}

.app-download__cta {
  margin-top: 1.5rem;
  animation: cta-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(196, 30, 58, 0.5);
}

@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(196, 30, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

.store-badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.store-badges a {
  display: inline-flex;
  transition: transform var(--transition), filter var(--transition);
  border-radius: var(--radius-sm);
}

.store-badges a:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.store-badges img {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .app-download {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.5rem;
  }
  .store-badges {
    justify-content: center;
  }
}
