:root {
  --bg: #08080d;
  --surface: #12121b;
  --surface-hover: #1b1b28;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.11);
  --primary: #e83a3a;
  --primary-hover: #ff4c4c;
  --accent: #ff6b3d;
  --gold: #e7b85a;
  --green: #24d18f;
  --text: #f7f7fb;
  --muted: #9da0b3;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(232, 58, 58, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 900;
  letter-spacing: 1.2px;
  font-size: 18px;
  background: linear-gradient(90deg, #fff, #ffb4a2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

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

.nav-tab {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 14px rgba(232, 58, 58, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  width: 240px;
  transition: border-color 0.2s, width 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  width: 280px;
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.clear-search {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-select-wrap {
  position: relative;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 30px 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.13);
}

.lang-select option {
  background: #151520;
  color: #fff;
}

.user-btn {
  background: linear-gradient(135deg, rgba(232, 58, 58, 0.2), rgba(255, 107, 61, 0.15));
  color: #fff;
  border: 1px solid rgba(232, 58, 58, 0.5);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.user-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* Main Container */
.main-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 64px;
  flex: 1;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 52px;
  margin-bottom: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/hero_velvet_contract.png");
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.45);
  transform: scale(1.06);
  transition: background-image 0.4s ease;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 13, 0.96) 0%, rgba(8, 8, 13, 0.78) 55%, rgba(8, 8, 13, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-poster-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.hero-poster-card {
  width: 230px;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.hero-poster-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-crimson {
  background: var(--primary);
  color: #fff;
}

.badge-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-gold {
  background: rgba(231, 184, 90, 0.18);
  color: var(--gold);
  border: 1px solid rgba(231, 184, 90, 0.4);
}

.badge-free {
  background: rgba(36, 209, 143, 0.16);
  color: var(--green);
  border: 1px solid rgba(36, 209, 143, 0.4);
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-logline {
  font-size: 18px;
  color: rgba(247, 247, 251, 0.85);
  margin-bottom: 18px;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag-chip {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 58, 58, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(232, 58, 58, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-danger {
  background: rgba(232, 58, 58, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(232, 58, 58, 0.4);
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger:hover {
  background: rgba(232, 58, 58, 0.3);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.text-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.text-btn:hover {
  text-decoration: underline;
}

/* Content Sections */
.content-section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Genre Filter Pills */
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-pill {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.genre-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.genre-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Poster Grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 24px;
}

.series-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.series-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 58, 58, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: #1a1a26;
}

.card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.series-card:hover .card-poster-img {
  transform: scale(1.06);
}

.card-rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(231, 184, 90, 0.4);
}

.card-release-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 13, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.series-card:hover .card-play-overlay {
  opacity: 1;
}

.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(232, 58, 58, 0.6);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-rating {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.card-logline {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Continue Watching Cards */
.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.continue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.continue-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.continue-thumb {
  width: 68px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.continue-info {
  flex: 1;
  min-width: 0;
}

.continue-info h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.continue-ep {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}

/* Discover & Library Headers */
.discover-hero,
.library-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 32px;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.page-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 6px;
}

.page-sub {
  color: var(--muted);
  font-size: 15px;
}

.hot-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.hot-tags-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.hot-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-tag-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.hot-tag-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.stats-cards {
  display: flex;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 22px;
  text-align: center;
  min-width: 110px;
}

.stat-val {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
}

.stat-lbl {
  font-size: 12px;
  color: var(--muted);
}

/* Player Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 4, 8, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.player-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 1180px;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 360px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.player-video-col {
  display: flex;
  flex-direction: column;
  background: #050508;
}

.player-topbar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.player-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.player-ep-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.icon-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.icon-close-btn:hover {
  background: var(--primary);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  max-height: 68vh;
  outline: none;
}

.player-bottom-controls {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.player-nav-btns,
.player-action-btns {
  display: flex;
  gap: 10px;
}

.player-status-text {
  font-size: 13px;
  color: var(--muted);
}

.player-sidebar-col {
  border-left: 1px solid var(--border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-series-info {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.sidebar-poster {
  width: 76px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.sidebar-meta {
  font-size: 12px;
  color: var(--gold);
  margin: 4px 0 6px;
}

.sidebar-logline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.episode-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.ep-item:hover {
  border-color: rgba(232, 58, 58, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.ep-item.active {
  background: rgba(232, 58, 58, 0.16);
  border-color: var(--primary);
}

.ep-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.ep-item.active .ep-num {
  background: var(--primary);
  color: #fff;
}

.ep-name {
  font-size: 14px;
  font-weight: 600;
}

.ep-dur {
  font-size: 12px;
  color: var(--muted);
}

/* Auth Modal */
.auth-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.auth-tab {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 9px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compact-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-error {
  color: #ff6b6b;
  font-size: 13px;
  background: rgba(232, 58, 58, 0.14);
  padding: 8px 12px;
  border-radius: 8px;
}

.demo-login-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.demo-login-box p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 14px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-danger-zone {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  background: #1d1d2b;
  color: #fff;
  border: 1px solid var(--primary);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #06060a;
  padding: 28px 24px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

.api-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.api-status.online {
  color: var(--green);
  background: rgba(36, 209, 143, 0.12);
}

@media (max-width: 960px) {
  .hero-banner {
    flex-direction: column-reverse;
    padding: 28px 24px;
    text-align: center;
  }
  .hero-badges,
  .hero-tags,
  .hero-buttons {
    justify-content: center;
  }
  .hero-poster-card {
    width: 160px;
    height: 224px;
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: 32px;
  }
  .player-modal-card {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
  .player-sidebar-col {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}
