:root {
  --bg: #0b0b10;
  --bg-elevated: #15151d;
  --bg-card: #1b1b26;
  --text: #f2f2f5;
  --text-muted: #9a98a8;
  --accent: #ff3d6e;
  --accent-2: #8a3dff;
  --border: #2a2a36;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 16, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

/* Hero */

.hero {
  padding: 64px 16px 48px;
  text-align: center;
  background: radial-gradient(circle at 50% -10%, rgba(255, 61, 110, 0.25), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(138, 61, 255, 0.2), transparent 55%);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 12px;
}

.hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Sections */

.section {
  padding: 32px 16px;
}

.section h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

/* Cards grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.series-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.series-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.series-card .poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #232333, #16161f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}

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

.series-card .info {
  padding: 10px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.series-card .title {
  font-weight: 600;
  font-size: 0.95rem;
}

.series-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tags / chips */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 61, 110, 0.12);
  border: 1px solid rgba(255, 61, 110, 0.35);
  color: #ff8fae;
}

/* Chips / filter form */

.chip-group {
  margin-bottom: 22px;
}

.chip-group h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row input[type="checkbox"],
.chip-row input[type="radio"] {
  display: none;
}

.chip-row label {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
}

.chip-row input:checked + label {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.range-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.range-fields label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.range-fields input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  width: 110px;
}

/* Empty state */

.empty-state {
  text-align: center;
  padding: 60px 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Series detail */

.series-detail {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}

@media (max-width: 700px) {
  .series-detail {
    grid-template-columns: 1fr;
  }
}

.series-detail .poster {
  border-radius: var(--radius);
}

.series-detail h1 {
  margin: 0 0 4px;
}

.series-detail .original-title {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.rating-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.rating-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.rating-pill b {
  display: block;
  font-size: 1.1rem;
}

.watch-options {
  margin: 16px 0;
}

.watch-options a {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
