:root {
  --bg-abyss: #06080d;
  --bg-dark: #0b0f19;
  --bg-card: #111726;
  --bg-card-hover: #172033;
  --bg-elevated: #1a2338;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(239, 68, 68, 0.45);
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-glow: rgba(239, 68, 68, 0.28);
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.75);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-abyss);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(239, 68, 68, 0.11), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.08), transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.06), transparent 45%);
  min-height: 100vh;
}

body.lights-off::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 900;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-abyss);
}
::-webkit-scrollbar-thumb {
  background: #26324d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Top Rule Ticker */
.rule-ticker {
  background: linear-gradient(90deg, #1a080c 0%, #2a0a10 50%, #1a080c 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.28);
  padding: 8px 16px;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fecdd3;
  position: relative;
  z-index: 50;
}

.rule-ticker-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 12px var(--primary-glow);
}

.rule-ticker-text {
  font-weight: 500;
  text-align: center;
}

.rule-next-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.rule-next-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 18, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent-amber));
  box-shadow: 0 0 18px var(--primary-glow);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}

.brand-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-abyss);
  border-radius: 50%;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  background: linear-gradient(90deg, #fff 0%, #fca5a5 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: #fff;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.18);
}

.nav-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkin-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.83rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.22s;
}
.checkin-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3);
}

.yt-sub-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
  transition: all 0.2s;
}
.yt-sub-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Main Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* Hero Spotlight */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(8px) scale(1.06);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 8, 13, 0.96) 0%, rgba(11, 15, 25, 0.88) 55%, rgba(11, 15, 25, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-hot {
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-genre {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 680px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.5);
  transition: all 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-visual {
  position: relative;
  z-index: 2;
  padding: 28px 32px 28px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.hero-poster-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  group: true;
}

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

.hero-poster-frame:hover img {
  transform: scale(1.04);
}

.hero-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.hero-poster-frame:hover .hero-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.play-pulse-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.22);
  transition: transform 0.25s;
}

.hero-poster-frame:hover .play-pulse-circle {
  transform: scale(1.1);
}

.hero-Select-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.hero-thumb-dot {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}
.hero-thumb-dot.active,
.hero-thumb-dot:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--primary);
  color: #fff;
}

/* Quick Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Filter & Search Bar */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-top-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box input {
  width: 100%;
  background: var(--bg-abyss);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 16px 11px 40px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.sort-select {
  background: var(--bg-abyss);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

/* Movie Cards Grid */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--primary);
  border-radius: 4px;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.75), 0 0 20px rgba(239, 68, 68, 0.12);
}

.movie-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070b;
  overflow: hidden;
  cursor: pointer;
}

.movie-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-thumb-wrap img {
  transform: scale(1.06);
}

.movie-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(239, 68, 68, 0.92);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.movie-save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
}
.movie-save-btn:hover,
.movie-save-btn.saved {
  background: var(--primary);
  border-color: var(--primary);
}

.movie-bottom-bar {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(to top, rgba(6, 8, 13, 0.95), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
}

.ep-count-pill {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  padding: 2px 8px;
  border-radius: 5px;
}

.duration-pill {
  background: rgba(0, 0, 0, 0.75);
  color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 5px;
  font-family: monospace;
}

.movie-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.movie-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.38;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-title:hover {
  color: #f87171;
}

.movie-synopsis {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.movie-cat-tag {
  font-size: 0.71rem;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.movie-ep-quicklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.ep-mini-btn {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
}
.ep-mini-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ep-mini-btn.watched {
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

/* View Panels (Tabs) */
.view-panel {
  display: none;
}
.view-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Schedule Section */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.schedule-card.pinned {
  border-color: rgba(245, 158, 11, 0.45);
}

.schedule-head {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-day {
  font-weight: 800;
  color: #fde68a;
  font-size: 0.9rem;
}

.schedule-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.schedule-status.confirmed {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.schedule-status.estimated {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.schedule-body {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.schedule-body img {
  width: 110px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Survival Profile Card */
.survival-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.rank-badge-large {
  display: inline-block;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: var(--bg-abyss);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.ranks-ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.ladder-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ladder-item.unlocked {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.ladder-item.current {
  border-color: var(--primary);
  background: rgba(239, 68, 68, 0.14);
}

/* Donate & Shopee Layout */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.donor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.donor-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.08);
}
.donor-rank.top-1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.donor-rank.top-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #000; }
.donor-rank.top-3 { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }

.shopee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.shopee-card {
  background: var(--bg-abyss);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shopee-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.shopee-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Modal / Cinema Player */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.cinema-modal {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 1001;
}

.cinema-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.player-aspect {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}

.player-aspect iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cinema-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ep-selector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ep-btn-large {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-family: inherit;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
  text-align: left;
  transition: all 0.2s;
}
.ep-btn-large:hover {
  border-color: var(--primary);
}
.ep-btn-large.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

/* Admin Forms */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  background: var(--bg-abyss);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #161f33;
  border-left: 4px solid var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.88rem;
  font-weight: 600;
  animation: fadeIn 0.25s ease;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #040609;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 960px) {
  .hero-banner,
  .survival-layout,
  .donate-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-visual {
    padding: 0 24px 24px;
  }
}

@media (max-width: 560px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 22px;
  }
}
