:root {
  --bg-body: #050816;
  --bg-elevated: #0b1120;
  --bg-elevated-soft: #020617;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.08);
  --accent-strong: #06b6d4;
  --accent-secondary: #4ade80;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #111827;
  --chip-bg: #020617;
  --chip-border: #1f2937;
  --danger: #f97373;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.8);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #020617 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94),
    rgba(15, 23, 42, 0.6)
  );
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #22d3ee, #22c55e 55%, #0ea5e9 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #0b1120;
  font-weight: 800;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.header-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.header-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.65rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem 1.25rem;
}

/* Links & text */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: #f9fafb;
  letter-spacing: 0.01em;
}

p {
  line-height: 1.6;
}

/* Intro section */

.hero {
  margin-top: 1.3rem;
  margin-bottom: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 1.5rem;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-main {
  padding-right: 0.5rem;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-size: 1.8rem;
  margin: 0.25rem 0 0.7rem 0;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 32rem;
}

.hero-highlight {
  display: inline-block;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), transparent 65%);
  border-radius: 999px;
  padding: 0.12rem 0.75rem;
  font-size: 0.78rem;
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
  margin-bottom: 0.5rem;
}

.hero-side {
  align-self: center;
}

.hero-stat-card {
  background: radial-gradient(circle at top, #0f172a, #020617 60%);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0f2fe;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tag-pill {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

/* Drama grid */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.6rem 0 0.75rem 0;
}

.section-header h2 {
  font-size: 1.05rem;
  margin: 0;
}

.section-header p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 0.2rem;
}

.drama-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 55%),
    var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.drama-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.drama-card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease-out;
}

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

.drama-chip {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.88);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  color: #e0f2fe;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.drama-body {
  padding: 0.8rem 0.85rem 0.85rem 0.85rem;
}

.drama-title {
  font-size: 0.95rem;
  margin: 0 0 0.3rem 0;
}

.drama-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.drama-overview {
  font-size: 0.82rem;
  color: #cbd5f5;
  margin: 0 0 0.7rem 0;
  min-height: 2.6em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at top left, var(--accent), var(--accent-strong));
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.btn span {
  font-size: 0.9em;
}

.btn:hover {
  text-decoration: none;
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

/* Series page */

.series-page {
  margin-top: 1.3rem;
}

.series-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.5fr);
  gap: 1.5rem;
}

@media (max-width: 880px) {
  .series-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.series-header {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

@media (max-width: 640px) {
  .series-header {
    flex-direction: column;
  }
}

.series-poster {
  width: 180px;
  flex-shrink: 0;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.85);
}

.series-meta h1 {
  font-size: 1.5rem;
  margin: 0 0 0.35rem 0;
}

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

.chips {
  margin-top: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-right: 0.3rem;
}

.series-body-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-card);
}

.section-block {
  margin-bottom: 1.1rem;
}

.section-block h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem 0;
}

.section-block p {
  margin: 0;
  font-size: 0.86rem;
  color: #d1d5db;
}

/* Watch info box */

.watch-box {
  margin-top: 0.4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(52, 211, 153, 0.06));
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
}

.watch-box-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5f3fc;
  margin-bottom: 0.3rem;
}

.watch-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.4rem;
  margin: 0.4rem 0;
  padding: 0;
  list-style: none;
}

.watch-pill {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: rgba(15, 23, 42, 0.87);
  border: 1px solid rgba(148, 163, 184, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #e0f2fe;
}

/* Episode list */

.episode-list {
  margin: 0.4rem 0 0 0;
  padding-left: 0;
  list-style: none;
}

.episode-list li {
  margin-bottom: 0.35rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.episode-list a {
  font-size: 0.85rem;
  font-weight: 500;
}

.ep-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Episode page */

.episode-page {
  margin-top: 1.4rem;
}

.episode-header h1 {
  font-size: 1.4rem;
  margin: 0 0 0.3rem 0;
}

.badge-episode {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.episode-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2fr);
  gap: 1.5rem;
}

@media (max-width: 880px) {
  .episode-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 0.8rem;
}

.panel h2 {
  font-size: 1rem;
  margin: 0 0 0.4rem 0;
}

.panel p {
  font-size: 0.86rem;
  color: #e5e7eb;
}

.note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* FAQ */

.faq {
  margin: 0.35rem 0 0 0;
  padding: 0;
}

.faq dt {
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0.5rem 0 0.1rem 0;
}

.faq dd {
  margin: 0 0 0.3rem 0;
  font-size: 0.84rem;
  color: #d1d5db;
}

/* Episode nav */

.episode-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.prev-next {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1rem 1.25rem 1.5rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
