:root {
  --bg-page: #08070e;
  --bg-theater: #000000;
  --bg-surface: #12101b;
  --bg-card: #171422;
  --bg-card-hover: #211d30;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(192, 132, 252, 0.55);
  --cr-orange: #c084fc;        /* Light Royal Purple (replaces orange) */
  --cr-purple-soft: #d8b4fe;   /* Soft Lavender Highlight */
  --cr-gold: #f59e0b;          /* Warm Royal Gold */
  --cr-amber-bright: #fbbf24;  /* Bright Gold Highlight */
  --cr-teal: #c084fc;          /* Light Purple Accent */
  --text-main: #ffffff;
  --text-secondary: #e2dcf0;
  --text-muted: #9d96b0;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* Dim Lights Cinema Overlay */
.lights-off-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 80;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lights-off-overlay.hidden {
  opacity: 0;
}

/* =========================================================
   TOP STICKY NAVBAR (GOLD & LIGHT PURPLE)
   ========================================================= */
.cr-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(18, 16, 27, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.cr-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.cr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.cr-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cr-orange), var(--cr-gold));
  color: #09070f;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);
}

.cr-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.cr-brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--cr-amber-bright), var(--cr-purple-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cr-brand-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cr-purple-soft);
}

.cr-nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
}

.cr-nav-link {
  height: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.cr-nav-link:hover {
  color: var(--cr-purple-soft);
  background: rgba(192, 132, 252, 0.06);
}

.cr-nav-link.active {
  color: var(--cr-amber-bright);
  border-bottom-color: var(--cr-orange);
  background: rgba(192, 132, 252, 0.1);
}

.nav-count {
  font-size: 0.7rem;
  background: rgba(192, 132, 252, 0.14);
  padding: 1px 6px;
  border-radius: 99px;
  color: var(--cr-purple-soft);
}

.cr-nav-link.active .nav-count {
  background: rgba(245, 158, 11, 0.25);
  color: var(--cr-amber-bright);
}

.cr-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cr-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cr-search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.85rem;
  pointer-events: none;
}

.cr-search-box input {
  width: 240px;
  background: #08070e;
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 4px;
  padding: 8px 12px 8px 34px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, width 0.2s, box-shadow 0.2s;
}

.cr-search-box input:focus {
  border-color: var(--cr-amber-bright);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.25);
  width: 290px;
}

.cr-crown-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--cr-amber-bright);
  padding: 6px 11px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cr-studio-btn {
  text-decoration: none;
  background: #1c1829;
  border: 1px solid rgba(192, 132, 252, 0.25);
  color: var(--cr-purple-soft);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 4px;
  transition: all 0.15s;
}

.cr-studio-btn:hover {
  border-color: var(--cr-amber-bright);
  color: var(--cr-amber-bright);
}

/* =========================================================
   HOME VIEW: HERO SPOTLIGHT BANNER CAROUSEL
   ========================================================= */
.cr-hero-banner {
  position: relative;
  width: 100%;
  min-height: 490px;
  background: #05040a;
  border-bottom: 1px solid rgba(192, 132, 252, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cr-hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cr-hero-bg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.15) contrast(1.05);
}

.cr-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #08070e 0%, rgba(12, 10, 22, 0.92) 38%, rgba(12, 10, 22, 0.25) 100%),
    linear-gradient(0deg, #08070e 0%, rgba(12, 10, 22, 0) 45%);
}

.cr-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 28px 38px;
}

.cr-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cr-hero-crown {
  background: linear-gradient(135deg, var(--cr-amber-bright), var(--cr-gold));
  color: #09070f;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.cr-hero-tag {
  background: rgba(192, 132, 252, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: var(--cr-purple-soft);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.cr-hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.12;
  max-width: 680px;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.cr-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cr-amber-bright);
  margin-bottom: 14px;
}

.cr-hero-desc {
  max-width: 600px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cr-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cr-btn-primary {
  background: linear-gradient(135deg, var(--cr-amber-bright), var(--cr-gold));
  border: none;
  color: #09070f;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 13px 26px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.38);
  transition: transform 0.15s, filter 0.15s;
}

.cr-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.cr-btn-secondary {
  background: rgba(23, 20, 34, 0.85);
  border: 2px solid var(--cr-orange);
  color: var(--cr-purple-soft);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 11px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.cr-btn-secondary:hover,
.cr-btn-secondary.bookmarked {
  background: var(--cr-orange);
  color: #09070f;
}

/* Hero Carousel Selector Pills */
.cr-hero-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-slide-pill {
  background: rgba(23, 20, 34, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 4px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s;
}

.hero-slide-pill:hover {
  border-color: var(--cr-orange);
  color: #fff;
}

.hero-slide-pill.active {
  background: rgba(192, 132, 252, 0.2);
  border-color: var(--cr-amber-bright);
  color: #fff;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.35);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cr-purple-soft);
}

.hero-slide-pill.active .hero-pill-dot {
  background: var(--cr-amber-bright);
}

/* =========================================================
   HOME VIEW: SHOWCASE SHELVES & COLLECTION CARDS
   ========================================================= */
.cr-home-shelves {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 28px 12px;
}

.cr-shelf-section {
  margin-bottom: 42px;
}

.cr-shelf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.16);
}

.cr-shelf-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
}

.cr-shelf-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Master Recording Collections Grid (Grouped Series Cards) */
.cr-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.cr-collection-card {
  background: linear-gradient(180deg, #191526 0%, #110e1a 100%);
  border: 1px solid rgba(192, 132, 252, 0.16);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cr-collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--cr-amber-bright);
  box-shadow: 0 10px 28px rgba(192, 132, 252, 0.22);
}

.cr-collection-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.cr-collection-banner video,
.cr-collection-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cr-collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 14, 26, 0.96) 0%, rgba(0, 0, 0, 0.15) 60%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
}

.cr-collection-top-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cr-series-pill {
  background: linear-gradient(135deg, var(--cr-orange), #9333ea);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.cr-versions-count-pill {
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--cr-amber-bright);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
}

.cr-collection-title-block h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.cr-collection-title-block span {
  font-size: 0.76rem;
  color: var(--cr-purple-soft);
}

.cr-collection-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cr-collection-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cr-collection-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cr-variant-btn {
  background: #201b30;
  border: 1px solid rgba(192, 132, 252, 0.25);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.cr-variant-btn:hover {
  background: linear-gradient(135deg, var(--cr-amber-bright), var(--cr-gold));
  border-color: var(--cr-amber-bright);
  color: #09070f;
}

.cr-variant-size {
  font-size: 0.68rem;
  opacity: 0.8;
}

/* =========================================================
   FULL-WIDTH PITCH-BLACK THEATER STAGE (PLAYER VIEW)
   ========================================================= */
.cr-theater-stage {
  position: relative;
  z-index: 90;
  width: 100%;
  background: var(--bg-theater);
  border-bottom: 1px solid rgba(192, 132, 252, 0.2);
}

.cr-theater-top-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cr-back-home-btn {
  background: #1a1626;
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: var(--cr-purple-soft);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.cr-back-home-btn:hover {
  background: var(--cr-orange);
  color: #09070f;
}

.cr-now-playing-pill {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cr-amber-bright);
}

.cr-theater-inner {
  max-width: 1280px;
  margin: 0 auto;
  transition: max-width 0.25s ease;
}

.cr-theater-stage.wide-mode .cr-theater-inner,
.cr-theater-stage.wide-mode .cr-theater-top-bar {
  max-width: 1680px;
}

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

#main-player {
  width: 100%;
  height: 100%;
  max-height: 74vh;
  outline: none;
  background: #000;
}

/* Under-Player Control Strip */
.cr-player-toolbar {
  background: #110e1a;
  border-top: 1px solid rgba(192, 132, 252, 0.14);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cr-toolbar-left,
.cr-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-tool-btn {
  background: #1e192c;
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.cr-tool-btn:hover {
  background: #2a233d;
  color: #fff;
  border-color: var(--cr-orange);
}

.cr-tool-btn.active {
  background: var(--cr-orange);
  color: #09070f;
  border-color: var(--cr-orange);
}

.cr-autoplay-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: 6px;
  user-select: none;
}

.cr-autoplay-toggle input {
  accent-color: var(--cr-orange);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.cr-toolbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cr-server-label {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cr-amber-bright);
}

.cr-server-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.version-pill {
  background: #1c1829;
  border: 1px solid rgba(192, 132, 252, 0.22);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.version-pill:hover {
  border-color: var(--cr-orange);
  color: #fff;
}

.version-pill.active {
  background: linear-gradient(135deg, var(--cr-amber-bright), var(--cr-gold));
  border-color: var(--cr-amber-bright);
  color: #09070f;
  font-weight: 800;
}

/* =========================================================
   MAIN CONTAINER BELOW THEATER STAGE
   ========================================================= */
.cr-main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.cr-player-details-wrap {
  padding-bottom: 12px;
}

.cr-watch-columns {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
}

/* Left Column: Episode Details */
.cr-series-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.cr-series-title {
  color: var(--cr-purple-soft);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cr-dot {
  color: var(--text-muted);
}

.cr-rating-stars {
  color: var(--cr-amber-bright);
}

.cr-maturity-tag,
.cr-subdub-tag {
  background: #231e33;
  color: var(--cr-purple-soft);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cr-quality-badge {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--cr-amber-bright);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 800;
}

.cr-episode-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #fff;
}

.cr-episode-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.15);
  margin-bottom: 20px;
}

.cr-meta-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cr-gold-text {
  color: var(--cr-amber-bright);
  font-weight: 700;
}

.cr-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1b1728;
  border: 1px solid rgba(192, 132, 252, 0.22);
  color: var(--text-main);
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cr-action-btn:hover {
  border-color: var(--cr-orange);
  background: #262038;
}

.cr-action-btn.liked,
.cr-action-btn.bookmarked {
  background: linear-gradient(135deg, var(--cr-amber-bright), var(--cr-gold));
  border-color: var(--cr-amber-bright);
  color: #09070f;
  font-weight: 800;
}

/* Synopsis & Telemetry Card */
.cr-synopsis-card {
  background: var(--bg-surface);
  border: 1px solid rgba(192, 132, 252, 0.16);
  border-radius: 6px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.cr-synopsis-left h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.cr-synopsis-left p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

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

.cr-tag {
  background: #211c30;
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: var(--cr-purple-soft);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.cr-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cr-stat-box {
  background: #0b0914;
  border: 1px solid rgba(192, 132, 252, 0.14);
  padding: 10px 12px;
  border-radius: 4px;
}

.cr-stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.cr-stat-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cr-amber-bright);
}

/* =========================================================
   RIGHT COLUMN: NEXT EPISODE & QUEUE SIDEBAR
   ========================================================= */
.cr-upnext-sidebar {
  background: var(--bg-surface);
  border: 1px solid rgba(192, 132, 252, 0.16);
  border-radius: 6px;
  padding: 18px;
}

.cr-upnext-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cr-upnext-header h3 {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.cr-queue-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cr-purple-soft);
}

.cr-next-spotlight {
  margin-bottom: 20px;
}

.next-ep-card {
  background: #0c0a14;
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.next-ep-card:hover {
  transform: translateY(-2px);
  border-color: var(--cr-amber-bright);
}

.next-ep-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.next-ep-thumb video,
.next-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-ep-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 18, 0.88), rgba(0, 0, 0, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-play-pill {
  background: linear-gradient(135deg, var(--cr-amber-bright), var(--cr-gold));
  color: #09070f;
  font-weight: 900;
  font-size: 0.76rem;
  padding: 7px 14px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.next-ep-info {
  padding: 11px 13px;
}

.next-ep-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--cr-purple-soft);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.next-ep-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Compact Queue List */
.cr-upnext-list-header h4 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cr-upnext-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.queue-row-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 6px;
  border-radius: 4px;
  background: #0e0c18;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.queue-row-item:hover {
  background: #1b172b;
  border-color: rgba(192, 132, 252, 0.25);
}

.queue-row-item.active {
  background: rgba(192, 132, 252, 0.14);
  border-color: var(--cr-amber-bright);
}

.queue-row-thumb {
  position: relative;
  width: 100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
}

.queue-row-thumb video,
.queue-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-row-dur {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
}

.queue-row-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.queue-row-ep {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--cr-amber-bright);
}

.queue-row-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-row-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* =========================================================
   SEASON EPISODE GRID SECTION
   ========================================================= */
.cr-season-section {
  margin-bottom: 48px;
}

.cr-season-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.16);
  margin-bottom: 22px;
}

.cr-season-select-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cr-season-pill {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cr-purple-soft);
}

.cr-ep-total {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cr-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cr-chip {
  background: #171422;
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.cr-chip:hover {
  border-color: var(--cr-orange);
  color: #fff;
}

.cr-chip.active {
  background: linear-gradient(135deg, var(--cr-orange), #a855f7);
  border-color: var(--cr-purple-soft);
  color: #09070f;
  font-weight: 800;
}

/* 4-Column Episode Cards Grid */
.cr-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cr-ep-card {
  background: var(--bg-card);
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  display: flex;
  flex-direction: column;
}

.cr-ep-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--cr-orange);
}

.cr-ep-card.active {
  border: 2px solid var(--cr-amber-bright);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.cr-ep-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.cr-ep-thumb video,
.cr-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cr-ep-thumb video.cr-ep-thumb-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.cr-ep-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 7, 15, 0.88);
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: var(--cr-amber-bright);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.cr-ep-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(9, 7, 15, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.cr-ep-play-hover {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 22, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cr-ep-card:hover .cr-ep-play-hover {
  opacity: 1;
}

.cr-play-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cr-amber-bright), var(--cr-orange));
  color: #09070f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
}

.cr-ep-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.cr-ep-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cr-orange), var(--cr-amber-bright));
}

.cr-ep-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.cr-ep-series-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.cr-ep-num {
  color: var(--cr-amber-bright);
}

.cr-ep-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cr-ep-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cr-subdub-mini {
  font-weight: 700;
  color: var(--cr-purple-soft);
}

/* =========================================================
   COMMENTS & DISCUSSION SECTION
   ========================================================= */
.cr-comments-section {
  background: var(--bg-surface);
  border: 1px solid rgba(192, 132, 252, 0.16);
  border-radius: 6px;
  padding: 24px;
}

.cr-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cr-comments-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-comment-badge {
  background: var(--cr-orange);
  color: #09070f;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
}

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

.cr-comment-form {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 10px;
  margin-bottom: 22px;
}

.cr-comment-form input {
  background: #08070e;
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 4px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
}

.cr-comment-form input:focus {
  border-color: var(--cr-amber-bright);
}

.cr-submit-btn {
  background: linear-gradient(135deg, var(--cr-orange), #a855f7);
  border: none;
  color: #09070f;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.15s;
}

.cr-submit-btn:hover {
  filter: brightness(1.1);
}

.cr-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  background: #0d0b16;
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 5px;
  padding: 12px 16px;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-author {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--cr-amber-bright);
}

.comment-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1080px) {
  .cr-watch-columns {
    grid-template-columns: 1fr;
  }

  .cr-synopsis-card {
    grid-template-columns: 1fr;
  }

  .cr-nav-links {
    display: none;
  }

  .cr-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 720px) {
  .cr-navbar {
    padding: 0 14px;
  }

  .cr-search-box input {
    width: 150px;
  }

  .cr-search-box input:focus {
    width: 180px;
  }

  .cr-main-container,
  .cr-home-shelves {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cr-comment-form {
    grid-template-columns: 1fr;
  }

  .cr-submit-btn {
    padding: 10px;
  }
}

/* Crunchyroll-Style Closed Caption / Subtitle Styling */
video::cue {
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: 'Rubik', 'Noto Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 2px black;
  border-radius: 4px;
  padding: 2px 6px;
}

/* =====================================================================
   SERIES & SEASON HUBS STYLES
   ===================================================================== */
.cr-series-hub {
  background: linear-gradient(180deg, rgba(22, 17, 36, 0.95) 0%, rgba(13, 10, 22, 0.95) 100%);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cr-series-hub-header {
  margin-bottom: 16px;
}

.cr-series-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cr-series-badge {
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.cr-series-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.02em;
}

.cr-series-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cr-tag-quality {
  background: rgba(192, 132, 252, 0.15);
  color: #d8b4fe;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.cr-subdub-pill {
  background: rgba(255, 158, 0, 0.15);
  color: #ff9e00;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 158, 0, 0.3);
}

.cr-season-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cr-season-tab {
  background: rgba(30, 24, 46, 0.9);
  border: 1px solid rgba(192, 132, 252, 0.25);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cr-season-tab:hover {
  background: rgba(192, 132, 252, 0.2);
  border-color: rgba(192, 132, 252, 0.6);
  color: #fff;
}

.cr-season-tab.active {
  background: linear-gradient(135deg, #ff9e00, #ff6000);
  border-color: #ffb703;
  color: #000;
  box-shadow: 0 0 16px rgba(255, 158, 0, 0.4);
}

.cr-season-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(10, 8, 16, 0.6);
  border-left: 4px solid #ff9e00;
  border-radius: 4px;
  margin-bottom: 20px;
}

.cr-season-arc-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.cr-season-ep-count {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.cr-queue-season-dropdown {
  background: #1e1730;
  color: #ff9e00;
  border: 1px solid rgba(255, 158, 0, 0.4);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.cr-catalog-season-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 16px 0;
  border-bottom: 1px solid rgba(192, 132, 252, 0.15);
  margin-bottom: 20px;
}

/* =====================================================================
   FEATURED ANIME SERIES CARDS (SINGLE-WINDOW HOME VIEW)
   ===================================================================== */
.cr-series-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 24px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .cr-series-cards-grid {
    grid-template-columns: 1fr;
  }
}

.cr-series-poster-card {
  position: relative;
  background: linear-gradient(135deg, rgba(28, 22, 45, 0.95) 0%, rgba(14, 11, 24, 0.98) 100%);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.cr-series-poster-card:hover {
  transform: translateY(-4px);
  border-color: #ff9e00;
  box-shadow: 0 14px 40px rgba(255, 158, 0, 0.25), 0 0 24px rgba(192, 132, 252, 0.2);
}

.cr-series-card-banner {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #09070f;
}

.cr-series-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cr-series-poster-card:hover .cr-series-card-banner img {
  transform: scale(1.04);
}

.cr-series-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 11, 24, 1) 0%, rgba(14, 11, 24, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.cr-series-card-top-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cr-series-badge-pill {
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.cr-series-eps-pill {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 158, 0, 0.4);
  color: #ffb703;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
}

.cr-series-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.cr-series-card-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.02em;
}

.cr-series-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.cr-series-card-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

.cr-series-card-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(192, 132, 252, 0.15);
}

.cr-series-explore-btn {
  background: linear-gradient(135deg, #ff9e00, #ff6000);
  border: none;
  color: #09070f;
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 158, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cr-series-explore-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 158, 0, 0.5);
}

/* =====================================================================
   DEDICATED SERIES PAGE VIEW (SEPARATE FULL PAGE FOR EACH ANIME)
   ===================================================================== */
.cr-series-view {
  min-height: 100vh;
  padding-bottom: 80px;
}

.cr-series-hero {
  position: relative;
  min-height: 480px;
  background: #09070f;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(192, 132, 252, 0.2);
  overflow: hidden;
}

.cr-series-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cr-series-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.4);
}

.cr-series-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 7, 15, 0.95) 0%, rgba(9, 7, 15, 0.8) 50%, rgba(9, 7, 15, 0.95) 100%),
              linear-gradient(0deg, rgba(9, 7, 15, 1) 0%, transparent 60%);
}

.cr-series-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

.cr-series-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cr-series-page-indicator {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffb703;
}

.cr-series-hero-details {
  max-width: 780px;
}

.cr-series-hero-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cr-series-crown {
  background: linear-gradient(135deg, #ff9e00, #ff6000);
  color: #09070f;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.cr-series-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px 0;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.cr-series-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cr-series-hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 720px;
}

.cr-series-content-wrap {
  padding-top: 36px;
}

.cr-series-seasons-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.cr-seasons-heading {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

.cr-theater-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
