:root {
  --bg: #090b10;
  --panel: #11151c;
  --panel-2: #171d26;
  --panel-3: #0f1318;
  --text: #f5f7fa;
  --muted: #99a3af;
  --border: #27303b;
  --primary: #e50914;
  --primary-hover: #c50711;
  --soft-red: rgba(229, 9, 20, 0.12);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.08), transparent 25%),
    linear-gradient(180deg, #090b10 0%, #0b0e13 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #d7dce3;
  font-size: 15px;
}

.main-nav a:hover {
  color: white;
}

.hero {
  padding: 44px 0 28px;
}

.hero-v2 {
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffadb1;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  max-width: 700px;
}

.hero-desc {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #1d2430;
  color: #fff;
  border: 1px solid #313b48;
}

.btn-secondary:hover {
  background: #252e3b;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(22, 27, 35, 0.9) 0%, rgba(13, 16, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 22px;
}

.hero-search {
  margin-bottom: 18px;
}

.hero-search input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0e131a;
  color: white;
  padding: 0 16px;
  outline: none;
}

.hero-search input::placeholder {
  color: #7f8994;
}

.hero-search input:focus {
  border-color: #546172;
}

.hero-featured-card {
  min-height: 280px;
}

.featured-block {
  background: linear-gradient(135deg, #1e2936 0%, #17101a 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.featured-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #253447 0%, #28161c 100%);
}

.featured-content {
  padding: 18px;
}

.featured-content h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.featured-content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 28px 0 58px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 34px;
}

.muted {
  color: var(--muted);
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}

.movie-card {
  background: linear-gradient(180deg, #151b23 0%, #10151b 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: #465366;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.movie-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #28384b 0%, #24161d 100%);
  color: #fff;
  font-size: 42px;
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
}

.movie-card-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.movie-card-desc {
  color: var(--muted);
  line-height: 1.7;
  min-height: 50px;
}

.movie-card-meta {
  margin-top: 14px;
  font-size: 14px;
  color: #d7dce3;
}

.movie-banner {
  padding: 32px 0 10px;
}

.movie-detail-shell {
  background: linear-gradient(180deg, #171d25 0%, #10151b 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.movie-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.movie-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(135deg, #28384b 0%, #24161d 100%);
  display: grid;
  place-items: center;
  font-size: 70px;
  font-weight: 800;
}

.movie-detail-title {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.05;
}

.movie-detail-desc {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 22px;
}

.movie-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.meta-pill {
  background: #1a212b;
  color: #d9e0e8;
  border: 1px solid #2c3541;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.movie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.episode-grid,
.episode-list {
  display: grid;
  gap: 12px;
}

.episode-list.compact {
  gap: 10px;
}

.episode-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  transition: 0.18s ease;
}

.episode-item:hover {
  background: var(--panel-2);
  border-color: #475566;
}

.episode-left strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.episode-left span {
  color: var(--muted);
  font-size: 14px;
  word-break: break-all;
}

.episode-link {
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.episode-link:hover {
  background: var(--primary-hover);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.watch-main,
.watch-sidebar {
  background: linear-gradient(180deg, #171d25 0%, #10151b 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.watch-main {
  padding: 20px;
}

.watch-sidebar {
  padding: 18px;
}

.watch-head h1 {
  margin: 0;
  font-size: 34px;
}

.player-shell {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid #222b34;
}

.player-shell iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.loading-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 10px;
}

.footer-inner {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-text {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d2d9e0;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .movie-detail-grid {
    grid-template-columns: 1fr;
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  .main-nav {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .movie-detail-title,
  .watch-head h1 {
    font-size: 30px;
  }

  .episode-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }
}