/* 
  RAYT CineStream OTT Studio & CMS Dashboard Theme
*/

:root {
  --bg-main: #0a0b0e;
  --bg-card: #14171f;
  --bg-card-hover: #1c212d;
  --bg-modal: #151821;
  --primary-red: #e50914;
  --primary-red-hover: #f40612;
  --accent-gold: #ffb703;
  --accent-cyan: #00d2ff;
  --accent-purple: #9d4edd;
  --accent-zee: #a855f7;
  --text-white: #ffffff;
  --text-gray: #9ba3af;
  --text-dim: #64748b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.6);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.95) 0%, rgba(10, 11, 14, 0.85) 75%, transparent 100%);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar.scrolled {
  background: rgba(10, 11, 14, 0.98);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-red {
  color: var(--primary-red);
}

.logo-white {
  color: #fff;
}

.badge-studio {
  font-size: 10px;
  background: linear-gradient(90deg, #ff0055, #ff5500);
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: 10px;
}

.nav-item {
  font-size: 15px;
  color: #ccc;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-red);
  border-radius: 2px;
}

.nav-cms-link {
  color: var(--accent-cyan) !important;
  font-weight: 700 !important;
}

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

.search-box i {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  font-size: 14px;
}

.search-box input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 16px 8px 36px;
  border-radius: 20px;
  font-size: 14px;
  width: 200px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.search-box input:focus {
  width: 260px;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
}

.btn-lang {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-dashboard-quick {
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.btn-dashboard-quick:hover {
  background: var(--accent-cyan);
  color: #000;
}

.btn-subscribe {
  background: linear-gradient(135deg, #e50914, #ff5722);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
  transition: var(--transition);
}

.user-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

/* ==================== VIEW SWITCHING ==================== */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

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

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

/* ==================== HERO CAROUSEL ==================== */
.hero-carousel-container {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 580px;
  background-color: #000;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  background-size: cover;
  background-position: center 25%;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 11, 14, 0.95) 0%,
    rgba(10, 11, 14, 0.8) 35%,
    rgba(10, 11, 14, 0.3) 70%,
    transparent 100%
  ),
  linear-gradient(0deg, rgba(10, 11, 14, 1) 0%, rgba(10, 11, 14, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-left: 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pill.exclusive {
  background: var(--primary-red);
  color: #fff;
}

.badge-pill.quality {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.badge-pill.imdb {
  background: #f5c518;
  color: #000;
  font-weight: 800;
}

.hero-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
}

.hero-meta-specs {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-meta-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-overview {
  font-size: 15px;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-hero-play {
  background: var(--primary-red);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-hero-play:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
}

.btn-hero-trailer {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-controls {
  position: absolute;
  bottom: 30px;
  right: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--primary-red);
}

/* ==================== CONTENT BODY & SHELVES ==================== */
.content-body {
  padding: 0 50px;
  margin-top: -30px;
  position: relative;
  z-index: 5;
}

.shelf-section {
  margin-bottom: 48px;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.title-wrap {
  position: relative;
  padding-left: 14px;
}

.accent-bar {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

.accent-bar.bar-red { background: var(--primary-red); }
.accent-bar.bar-purple { background: var(--accent-purple); }
.accent-bar.bar-orange { background: #ff7700; }
.accent-bar.bar-zee { background: var(--accent-zee); }
.accent-bar.bar-gold { background: var(--accent-gold); }
.accent-bar.bar-pink { background: #ff007f; }
.accent-bar.bar-cyan { background: var(--accent-cyan); }

.shelf-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.shelf-header .subtitle {
  font-size: 13px;
  color: var(--text-dim);
}

.btn-see-all {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-gray);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-see-all:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== PICK YOUR LANGUAGE SHELF ==================== */
.language-pill-tray {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.lang-card-pill {
  min-width: 145px;
  height: 90px;
  border-radius: 12px;
  background: linear-gradient(135deg, #181b24, #12141a);
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
}

.lang-card-pill:hover, .lang-card-pill.active {
  transform: translateY(-4px);
  border-color: var(--primary-red);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.25);
  background: linear-gradient(135deg, #23181d, #141721);
}

.lang-card-pill .native-script {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.lang-card-pill .lang-name {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

.lang-card-pill .lang-count {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==================== TRENDING TOP 10 FLASHCARDS ==================== */
.flashcards-top10-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 20px 4px;
}

.top10-card-wrapper {
  position: relative;
  min-width: 230px;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}

.top10-card-wrapper:hover {
  transform: scale(1.05);
  z-index: 10;
}

.top10-giant-rank {
  font-size: 110px;
  font-weight: 900;
  line-height: 0.8;
  color: #0c0d12;
  -webkit-text-stroke: 3px #555c6d;
  position: absolute;
  left: -10px;
  bottom: 10px;
  z-index: 1;
  user-select: none;
  font-family: impact, sans-serif;
  transition: var(--transition);
}

.top10-card-wrapper:hover .top10-giant-rank {
  -webkit-text-stroke: 3px var(--primary-red);
  color: rgba(229, 9, 20, 0.15);
}

.top10-poster-box {
  margin-left: 55px;
  position: relative;
  z-index: 2;
  width: 165px;
  height: 245px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.top10-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.top10-badge-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 10px 10px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top10-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top10-genre {
  font-size: 11px;
  color: var(--text-dim);
}

/* ==================== DRAMA & MAGIC BIG FLASHCARDS ==================== */
.drama-magic-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.drama-card {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
}

.drama-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.drama-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(10,11,14,0.4) 40%, rgba(10,11,14,0.95) 100%);
}

.drama-card-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  z-index: 2;
}

.drama-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #9d4edd, #e50914);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.drama-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.drama-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-gray);
}

.drama-hover-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.6);
  z-index: 3;
}

.drama-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8);
}

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

.drama-card:hover .drama-hover-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==================== STANDARD HORIZONTAL SHELVES ==================== */
.card-shelf-horizontal {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 20px 2px;
  scrollbar-width: thin;
}

.film-card {
  min-width: 190px;
  max-width: 190px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

.film-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-card);
}

.film-card-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #191c24;
}

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

.film-card:hover .film-card-img-wrap img {
  transform: scale(1.08);
}

.film-card-imdb {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffb703;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.film-card-lang {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.film-card-info {
  padding: 12px;
}

.film-card-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.film-card-meta {
  font-size: 11px;
  color: var(--text-gray);
  display: flex;
  justify-content: space-between;
}

/* ==================== AD BANNER ==================== */
.ad-interstitial-banner {
  margin: 35px 0 50px 0;
}

.ad-container {
  background: linear-gradient(90deg, #1b0a11 0%, #151928 50%, #0d1a24 100%);
  border: 1px dashed rgba(229, 9, 20, 0.4);
  border-radius: 12px;
  padding: 24px 32px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.ad-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.ad-content-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-tag {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-text-wrap h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0;
}

.ad-text-wrap p {
  font-size: 13px;
  color: #b0b8c6;
}

.ad-cta-btn {
  background: linear-gradient(135deg, #ff0055, #ff5500);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== PARTNERS & NEWS & TESTIMONIALS ==================== */
.section-center-heading {
  text-align: center;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-weight: 700;
}

.partners-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 45px;
}

.partner-logos-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.partner-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #cdd5e0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-section {
  margin-bottom: 50px;
}

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

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.news-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-body {
  padding: 14px;
}

.news-date {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.news-title {
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0;
}

.news-desc {
  font-size: 12px;
  color: var(--text-gray);
}

.testimonials-section {
  padding: 30px 0 50px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testi-card {
  background: linear-gradient(145deg, #13151c, #0e1015);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: 12px;
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testi-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 16px;
  font-style: italic;
}

.user-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==================== VIEW 2: DEDICATED PLAYER & X-RAY ==================== */
#view-player {
  padding-top: 72px;
  min-height: 100vh;
  overflow-y: visible !important;
}

.player-top-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: #0f1118;
  border-bottom: 1px solid var(--border-light);
}

.btn-back-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-playing-title-bar {
  font-size: 16px;
  font-weight: 700;
}

.btn-tool-toggle {
  background: #1e2330;
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-live {
  background: #00d2ff;
  color: #000;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 800;
}

.player-main-layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 130px);
  background: #08090c;
  overflow: visible;
}

.player-video-viewport {
  flex: 1;
  padding: 24px 30px;
  overflow: visible;
}

.video-mock-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #000;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
}

.video-center-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.main-play-trigger {
  font-size: 68px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.watermark-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 20px;
}

.scene-cue-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(15, 18, 25, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: #fff;
  z-index: 5;
}

.player-hud-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  z-index: 6;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
}

.scrub-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  margin-bottom: 12px;
}

.scrub-progress-fill {
  height: 100%;
  width: 32%;
  background: var(--primary-red);
  border-radius: 3px;
}

.scrub-thumb {
  position: absolute;
  top: -4px;
  left: 32%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.hud-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.timestamp-hud {
  font-size: 13px;
  color: var(--text-gray);
  font-family: monospace;
}

.badge-quality {
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.film-player-description-wrap {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
}

.desc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.desc-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.desc-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-gray);
}

.desc-imdb {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.desc-summary {
  font-size: 14px;
  line-height: 1.65;
  color: #d1d5db;
  margin-bottom: 16px;
}

.desc-director-cast {
  display: flex;
  gap: 30px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.similar-content-container {
  margin-top: 36px;
}

.horizontal-moving-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.moving-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
}

.moving-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.moving-item-card {
  width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.moving-item-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.moving-item-card .card-label {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Amazon X-Ray Panel */
.xray-sidebar-panel {
  width: 380px;
  background: #11141c;
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  position: sticky;
  top: 85px;
  transition: width 0.3s;
}

.xray-sidebar-panel.collapsed {
  width: 0;
  overflow: hidden;
  border-left: none;
}

.xray-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

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

.xray-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.xray-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.xray-tab-btn {
  flex: 1;
  padding: 12px 6px;
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.xray-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  background: rgba(0, 210, 255, 0.05);
}

.xray-tab-content {
  display: none;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.xray-tab-content.active {
  display: block;
}

.xray-subhead {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cast-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 12px;
}

.cast-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cast-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.cast-role {
  font-size: 12px;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.cast-other-projects {
  font-size: 11px;
  color: var(--text-dim);
}

.scene-marker-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.scene-marker-thumb {
  width: 80px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.scene-marker-info h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.scene-timecode {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.trivia-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-gold);
  padding: 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
  font-size: 12px;
  color: #d1d5db;
}

/* ==================== VIEW 3: "SEE ALL" GALLERY ==================== */
#view-gallery {
  padding-top: 72px;
}

.gallery-hero-header {
  background: linear-gradient(180deg, #161a24 0%, #0d0f14 100%);
  padding: 40px 50px 30px 50px;
  border-bottom: 1px solid var(--border-light);
}

.gallery-hero-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 14px 0 6px 0;
}

.gallery-hero-header p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.gallery-filters-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 600;
}

.filter-group select {
  background: #181b24;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.gallery-counter {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-dim);
}

.gallery-counter strong {
  color: var(--primary-red);
}

.gallery-grid-container {
  padding: 40px 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

/* ==================== VIEW 4: STUDIO CMS DASHBOARD ==================== */
#view-dashboard {
  padding-top: 85px;
  background: #090a0d;
  min-height: 100vh;
}

.cms-dashboard-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 40px 60px 40px;
}

.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.cms-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.cms-header-left h1 {
  font-size: 32px;
  font-weight: 900;
}

.cms-header-left p {
  font-size: 14px;
  color: var(--text-dim);
}

.cms-header-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cms-action {
  background: #191d28;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-cms-action:hover {
  background: #252b3b;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cms-action.btn-upload {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
}

.btn-cms-action.btn-export {
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
}

.btn-cms-action.btn-reset {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.cms-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  background: #11141c;
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  border-radius: 10px;
}

.metric-card .m-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.metric-card h2 {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin: 4px 0;
}

.metric-card .m-sub {
  font-size: 11px;
  color: var(--accent-cyan);
}

.cms-tabs-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.cms-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.cms-tab-btn:hover {
  color: #fff;
}

.cms-tab-btn.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.cms-tab-body {
  display: none;
}

.cms-tab-body.active {
  display: block;
}

.cms-form-card {
  background: #12151e;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px;
}

.cms-form-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cms-form-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
  background: #0b0c11;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
}

.form-btn-row {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.code-editor {
  font-family: monospace !important;
  font-size: 13px !important;
  line-height: 1.5;
  background: #06070a !important;
  border-color: rgba(0, 210, 255, 0.2) !important;
}

/* Manage List Table */
.cms-table-wrapper {
  background: #12151e;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.cms-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cms-table-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.cms-search-filter input {
  background: #0b0c11;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  width: 250px;
  outline: none;
}

.cms-data-table {
  width: 100%;
  border-collapse: collapse;
}

.cms-data-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}

.cms-data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.tbl-thumb {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.tbl-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-tbl-del {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
}

.btn-tbl-del:hover {
  background: #ef4444;
  color: #fff;
}

/* ==================== SITEMAP & FOOTER ==================== */
.site-footer {
  background-color: #060709;
  border-top: 1px solid var(--border-light);
  margin-top: 80px;
  position: relative;
}

.footer-top-accent {
  height: 3px;
  background: linear-gradient(90deg, #e50914, #ff5722, #a855f7, #00d2ff);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 40px 40px;
}

.footer-brand-col {
  margin-bottom: 40px;
  max-width: 550px;
}

.brand-bio {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 12px 0 16px 0;
}

.social-links-row {
  display: flex;
  gap: 16px;
}

.social-links-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-gray);
  transition: var(--transition);
}

.social-links-row a:hover {
  background: var(--primary-red);
  color: #fff;
}

.footer-sitemap-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sitemap-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.sitemap-col ul {
  list-style: none;
}

.sitemap-col ul li {
  margin-bottom: 10px;
}

.sitemap-col ul li a {
  font-size: 12px;
  color: var(--text-dim);
}

.sitemap-col ul li a:hover {
  color: #fff;
}

.footer-bottom-strip {
  background: #030405;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px 0;
}

.bottom-flex {
  padding: 0 40px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.app-download-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.btn-store {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copyright-text {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: var(--bg-modal);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-window.modal-wide {
  max-width: 850px;
}

.modal-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

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

.modal-title h3 {
  font-size: 18px;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 26px;
  cursor: pointer;
}

.modal-sub {
  padding: 16px 24px 8px 24px;
  font-size: 13px;
  color: var(--text-gray);
}

.lang-grid-selection {
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
}

.lang-select-box {
  background: #101218;
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-select-box.selected {
  border-color: var(--primary-red);
  background: rgba(229, 9, 20, 0.12);
}

.lang-select-box .lang-text-grp h5 {
  font-size: 15px;
  font-weight: 700;
}

.lang-select-box .lang-text-grp span {
  font-size: 12px;
  color: var(--text-dim);
}

.lang-check-icon {
  color: var(--primary-red);
  font-size: 16px;
  display: none;
}

.lang-select-box.selected .lang-check-icon {
  display: block;
}

.modal-foot {
  padding: 16px 24px;
  background: #0d0f15;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-red);
  border: none;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trailer-mock-viewport {
  position: relative;
  width: 100%;
  height: 420px;
  background: #000;
}

.trailer-preview-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trailer-preview-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.trailer-watermark {
  position: relative;
  z-index: 2;
  text-align: center;
}

.trailer-watermark i {
  font-size: 64px;
  color: var(--primary-red);
  margin-bottom: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .footer-sitemap-columns { grid-template-columns: repeat(3, 1fr); }
  .cms-metrics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero-title { font-size: 40px; }
  .player-main-layout { flex-direction: column; }
  .xray-sidebar-panel {
    width: 100%;
    position: relative;
    top: 0;
    height: 450px;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
  .content-body, .gallery-grid-container, .gallery-hero-header, .cms-dashboard-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .footer-sitemap-columns { grid-template-columns: repeat(2, 1fr); }
  .lang-grid-selection { grid-template-columns: repeat(2, 1fr); }
  .cms-metrics-row { grid-template-columns: 1fr; }
  .form-grid-2, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
}


/* YouTube Channel Grid & Flashcards */
.yt-flashcard {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.yt-flashcard:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #ff0000;
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.25);
}

.yt-thumb-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background-color: #050608;
  overflow: hidden;
}

.yt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yt-flashcard:hover .yt-thumb-wrap img {
  transform: scale(1.08);
}

.yt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 38px;
  color: #ff0000;
  background: rgba(0, 0, 0, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.yt-flashcard:hover .yt-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.yt-badge-live {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-badge-quality {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
}

.yt-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.yt-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 8px;
}

.yt-link-btn {
  font-size: 11px;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.yt-link-btn:hover {
  text-decoration: underline;
  color: #fff;
}

/* Madhu Entertainment Spotlight VIP card */
.madhu-spotlight-banner {
  background: linear-gradient(135deg, #2b0b14 0%, #151824 50%, #0c121e 100%);
  border: 2px solid #e50914;
  border-radius: 16px;
  padding: 26px 32px;
  margin-bottom: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.25);
}

.madhu-info h3 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.madhu-info p {
  font-size: 13px;
  color: #cdd5e0;
  line-height: 1.5;
  max-width: 650px;
}

.madhu-contact {
  font-size: 12px;
  color: var(--accent-gold);
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.madhu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-madhu-yt {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-airtel-stream {
  background: #e11d48;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ==================== VIP FLASH SALE & LUCKY SPIN MODULES ==================== */

/* Floating Spin & Sale Trigger Button */
.floating-spin-badge {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
  background: linear-gradient(135deg, #ff0055, #ffaa00);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(255, 0, 85, 0.6), 0 0 20px rgba(255, 170, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  animation: pulseSpinBtn 2.2s infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.floating-spin-badge:hover {
  transform: scale(1.08) translateY(-4px);
}

.floating-spin-badge i.fa-spin {
  font-size: 20px;
  color: #fff;
}

.badge-tag-sale {
  background: #000;
  color: #ffb703;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.5px;
}

@keyframes pulseSpinBtn {
  0% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 0, 85, 0.5); }
  50% { transform: scale(1.04); box-shadow: 0 15px 40px rgba(255, 170, 0, 0.7); }
  100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 0, 85, 0.5); }
}

/* Flashcard Sale Banner on Landing Page */
.sale-flashcard-shelf {
  background: linear-gradient(135deg, #1b0a1d 0%, #0d1222 50%, #170d18 100%);
  border: 2px solid #ff0055;
  border-radius: 18px;
  padding: 28px 36px;
  margin: 35px 0 45px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: 0 15px 40px rgba(255, 0, 85, 0.25);
  position: relative;
  overflow: hidden;
}

.sale-flashcard-shelf::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 85, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.sale-content-left {
  max-width: 680px;
  z-index: 2;
}

.sale-tags-ribbon {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sale-pill-badge {
  background: #ff0055;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sale-pill-discount {
  background: #ffb703;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
}

.sale-content-left h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #fff;
}

.sale-content-left p {
  font-size: 14px;
  color: #c9d2e0;
  line-height: 1.5;
  margin-bottom: 14px;
}

.sale-perks-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #00d2ff;
  font-weight: 600;
}

.sale-perks-list span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sale-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.btn-open-spin-modal {
  background: linear-gradient(135deg, #ff0055, #ff7700);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(255, 0, 85, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-open-spin-modal:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 119, 0, 0.6);
}

.spin-subnote {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* ==================== EXACT MODAL AS PER IMAGE (LUCKY WHEEL DIALOG) ==================== */
.lucky-spin-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(14px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lucky-spin-dialog-backdrop.active {
  display: flex;
}

.lucky-spin-card-window {
  background: #f1f6fc;
  color: #1a2233;
  width: 100%;
  max-width: 940px;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-close-spin-dialog {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #64748b;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.btn-close-spin-dialog:hover {
  color: #0f172a;
}

/* Wheel Canvas Left Column */
.spin-wheel-column {
  background: radial-gradient(circle at center, #edf4fb 0%, #e2eaf5 100%);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid #dce4ef;
}

.wheel-stage-container {
  position: relative;
  width: 330px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pointer Needle At Top (Exact Image match: blue arrow with circle) */
.wheel-pointer-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 36px;
  z-index: 20;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.wheel-pointer-pin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #0284c7;
}

.wheel-pointer-pin::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* The Animated SVG Wheel */
.wheel-rotating-canvas {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 10px solid #133b5c;
  box-shadow: 0 10px 25px rgba(19, 59, 92, 0.4), inset 0 0 12px rgba(0, 0, 0, 0.4);
  background: #133b5c;
  position: relative;
  overflow: hidden;
  transition: transform 5s cubic-bezier(0.12, 0.8, 0.15, 1);
}

/* Central "Sign Up to SPIN" Hub Button */
.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 0 4px #133b5c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  text-align: center;
  padding: 4px;
  transition: transform 0.2s, background-color 0.2s;
}

.wheel-center-hub:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: #f8fafc;
}

.wheel-center-hub span.sub {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.wheel-center-hub span.main {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.wheel-branding-footer {
  margin-top: 24px;
  text-align: center;
}

.wheel-branding-footer h4 {
  font-size: 18px;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: -0.5px;
}

.wheel-branding-footer p {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
}

/* Form Right Column (Exact Image Match) */
.spin-form-column {
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.reward-welcome-tag {
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.spin-form-column h3 {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.spin-form-column .sub-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 26px;
}

.spin-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.phone-input-group {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-group:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.phone-code-prefix {
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  padding: 12px 16px;
  font-weight: 800;
  color: #334155;
  font-size: 15px;
}

.phone-input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
}

.otp-box-container {
  display: none;
  margin-bottom: 16px;
  animation: fadeIn 0.3s;
}

.otp-box-container.active {
  display: block;
}

.otp-box-container input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  letter-spacing: 4px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.btn-send-spin-otp {
  width: 100%;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 800;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 20px;
}

.btn-send-spin-otp.ready {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-send-spin-otp.ready:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.spin-terms-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
}

.spin-terms-note a {
  color: #334155;
  font-weight: 700;
}

/* ==================== WINNING LOTTERY POPUP MODAL (CELEBRATION & STARS VIDEO) ==================== */
.lottery-winner-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(15px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lottery-winner-backdrop.active {
  display: flex;
}

.lottery-winner-card {
  background: linear-gradient(145deg, #18091f, #0d1222);
  border: 2px solid #ffb703;
  box-shadow: 0 20px 70px rgba(255, 183, 3, 0.4), 0 0 40px rgba(255, 0, 85, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  padding: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: zoomCelebration 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomCelebration {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Falling Ribbons & Confetti Canvas Overlay */
.confetti-canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.lottery-winner-content {
  position: relative;
  z-index: 2;
}

.lottery-trophy-icon {
  font-size: 54px;
  color: #ffb703;
  margin-bottom: 8px;
  animation: bounceTrophy 1.5s infinite;
}

@keyframes bounceTrophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.lottery-winner-card h2 {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.lottery-prize-highlight {
  display: inline-block;
  background: linear-gradient(90deg, #ff0055, #ffaa00);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 12px 0 16px 0;
  box-shadow: 0 6px 20px rgba(255, 0, 85, 0.5);
  letter-spacing: 0.5px;
}

.lottery-winner-card p.prize-desc {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Embedded Celebration / Stars Video Screen */
.lottery-video-player-frame {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
  border: 1px solid rgba(255, 183, 3, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.lottery-video-player-frame iframe,
.lottery-video-player-frame video {
  width: 100%;
  height: 100%;
  border: none;
}

.lottery-actions-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-claim-subscription {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s;
}

.btn-claim-subscription:hover {
  transform: translateY(-2px);
}

/* ==================== VIEW 5: VIP SUBSCRIPTION & RAZORPAY GATEWAY CHECKOUT ==================== */
#view-subscription {
  padding-top: 85px;
  background: #090a0f;
  min-height: 100vh;
}

.subscription-page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 40px 70px 40px;
}

.subscription-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px auto;
}

.subscription-header h1 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subscription-header p {
  font-size: 15px;
  color: var(--text-gray);
}

.applied-discount-banner {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  padding: 12px 20px;
  border-radius: 10px;
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.sub-plan-card {
  background: #11141d;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.sub-plan-card.featured {
  border-color: #ff0055;
  background: linear-gradient(180deg, #1c0e18 0%, #11141d 100%);
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 0, 85, 0.25);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff0055;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.plan-head h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-head p {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.plan-pricing-box {
  margin-bottom: 24px;
}

.original-price {
  font-size: 16px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 8px;
}

.current-price {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
}

.plan-features-ul {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features-ul li {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features-ul li i {
  color: #10b981;
}

.btn-razorpay-checkout {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: var(--transition);
}

.btn-razorpay-checkout:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  transform: translateY(-2px);
}

/* Payment Schedule & Invoice Breakdown Box */
.payment-schedule-card {
  background: #11141d;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 32px;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.schedule-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.schedule-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Payment Receipt Modal */
.receipt-modal-card {
  background: #11141e;
  border: 2px solid #10b981;
  border-radius: 18px;
  padding: 30px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.receipt-success-icon {
  font-size: 50px;
  color: #10b981;
  margin-bottom: 12px;
}

.receipt-id-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  color: #38bdf8;
  margin: 14px 0 20px 0;
}

/* =================== v10 ADD-ON: admin gate, wishlist, playlists, snapshot, genre =================== */
body:not(.is-admin) .admin-only { display: none !important; }
.rx-admin-link { margin-left: 10px; color: var(--text-dim); font-size: 11px; opacity: .5; text-decoration: none; }
.rx-admin-link:hover { opacity: 1; color: var(--accent-gold); }
.rx-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: #0f172a; color: #fff; border: 1px solid var(--accent-cyan); padding: 11px 20px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 10050; max-width: 90vw; }
.rx-toast.show { opacity: 1; transform: translate(-50%, 0); }
.rx-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 10040; padding: 16px; }
.rx-modal-backdrop.active { display: flex; }
.rx-modal { position: relative; background: var(--bg-modal); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 26px; width: 100%; max-width: 420px; max-height: 85vh; overflow: auto; }
.rx-modal h3 { margin-bottom: 6px; }
.rx-modal input[type=password], .rx-modal input[type=text], .rx-newlist input { width: 100%; padding: 11px 13px; margin: 10px 0; background: #0b0d13; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #fff; font-family: inherit; }
.rx-modal-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #9ba3af; font-size: 26px; cursor: pointer; }
.rx-err { color: #f87171; font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.rx-hint { color: var(--text-gray); font-size: 12.5px; margin: 4px 0 8px; }
.rx-pick-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.rx-pick-row span { flex: 1; } .rx-pick-row em { color: var(--text-dim); font-style: normal; font-size: 12px; }
.rx-newlist { display: flex; gap: 8px; margin-top: 12px; } .rx-newlist input { margin: 0; }

/* heart on cards */
.film-card, .top10-card-wrapper, .drama-card, .moving-item-card { position: relative; }
.rx-heart { position: absolute; top: 8px; left: 8px; z-index: 6; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(10,11,14,.72); color: #fff; cursor: pointer; opacity: 0; transition: .2s; backdrop-filter: blur(4px); }
.film-card:hover .rx-heart, .top10-card-wrapper:hover .rx-heart, .drama-card:hover .rx-heart, .moving-item-card:hover .rx-heart, .rx-heart.on { opacity: 1; }
.rx-heart.on { color: #ff4d6d; } .rx-heart:hover { transform: scale(1.12); background: rgba(0,0,0,.9); }
@media (hover: none) { .rx-heart { opacity: 1; } }

/* pages */
.rx-page { padding: 24px 5vw 60px; max-width: 1600px; margin: 0 auto; }
.rx-wl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rx-chip { background: #161a24; color: #cbd5e1; border: 1px solid rgba(255,255,255,.12); padding: 7px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; font-family: inherit; }
.rx-chip b { margin-left: 4px; color: var(--accent-gold); } .rx-chip.on { background: var(--accent-cyan); color: #04121a; border-color: var(--accent-cyan); } .rx-chip.on b { color: #04121a; }
.rx-chip.rx-add { border-style: dashed; }
.rx-pl-block { margin-bottom: 34px; } .rx-pl-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.rx-pl-head h3 { font-size: 20px; } .rx-pl-head span { color: var(--text-gray); font-size: 13px; }
.rx-pl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-more-note { color: var(--text-dim); font-size: 12px; margin-top: 8px; }
.rx-wl-grid { padding: 0; } .rx-wl-item { position: relative; }
.rx-wl-remove { position: absolute; top: 8px; right: 8px; z-index: 7; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(220,38,38,.9); color: #fff; cursor: pointer; }
.rx-empty { text-align: center; padding: 60px 10px; color: var(--text-gray); } .rx-empty i { font-size: 44px; color: var(--text-dim); margin-bottom: 10px; } .rx-empty.small { padding: 24px 6px; }
.pl-card .film-card-lang { background: var(--accent-cyan); color: #04121a; }

/* player toolbar */
.rx-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; }
.rx-tb-btn { background: #161a24; color: #e2e8f0; border: 1px solid rgba(255,255,255,.12); padding: 8px 13px; border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit; display: inline-flex; gap: 6px; align-items: center; }
.rx-tb-btn:hover { border-color: var(--accent-cyan); } .rx-tb-btn.on { background: rgba(0,210,255,.15); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.rx-tb-btn.rx-accent { background: linear-gradient(135deg, #e11d48, #ff4d6d); border-color: transparent; color: #fff; } .rx-tb-btn b { color: var(--accent-gold); }
.rx-tb-sep { width: 1px; height: 24px; background: rgba(255,255,255,.15); margin: 0 4px; }
.rx-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 94vw); background: #10131b; border-left: 1px solid rgba(255,255,255,.12); z-index: 10030; transform: translateX(105%); transition: transform .28s; display: flex; flex-direction: column; }
.rx-drawer.open { transform: none; }
.rx-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rx-drawer-tabs button { background: none; border: 0; color: var(--text-gray); font-size: 15px; font-weight: 700; padding: 6px 12px; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; } .rx-drawer-tabs button.on { color: #fff; border-color: var(--accent-cyan); }
.rx-drawer-body { overflow: auto; padding: 12px 14px 30px; flex: 1; }
.rx-q-row { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 8px; padding: 7px; color: #e2e8f0; cursor: pointer; text-align: left; font-family: inherit; font-size: 13px; }
.rx-q-row:hover { background: rgba(255,255,255,.06); } .rx-q-row.now { background: rgba(0,210,255,.14); border-left: 3px solid var(--accent-cyan); }
.rx-q-row img { width: 72px; height: 42px; object-fit: cover; border-radius: 5px; } .rx-q-row span { flex: 1; line-height: 1.3; } .rx-q-row em { color: var(--text-dim); font-style: normal; font-size: 11px; }
.rx-snap { display: flex; gap: 10px; margin-bottom: 12px; background: #161a24; border-radius: 10px; padding: 8px; } .rx-snap img { width: 130px; border-radius: 6px; object-fit: cover; }
.rx-snap-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; } .rx-snap-meta span { color: var(--text-dim); }
.rx-mini { background: #1f2937; color: #fff; border: 0; padding: 5px 9px; border-radius: 6px; font-size: 11px; cursor: pointer; text-decoration: none; margin-right: 4px; display: inline-block; }

/* more-like-this chips + genre pill */
.rx-mlt-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.rx-chip-info { color: var(--text-gray); font-size: 13px; margin-right: 6px; } .rx-chip-info i { color: var(--accent-cyan); }
.rx-genre-pill { color: var(--accent-gold); font-weight: 700; } .rx-card-tags { display: block; font-size: 10.5px; color: var(--accent-cyan); margin-top: 2px; font-weight: 600; }

/* =================== v10.1 FIXES: player frame, nav, custom player =================== */
.player-video-viewport { min-width: 0; overflow: hidden; }
.player-main-layout { max-width: 100vw; }
.horizontal-moving-marquee-wrapper, .similar-content-container { max-width: 100%; overflow: hidden; }
.video-mock-screen { width: min(100%, calc(70vh * 16 / 9)); margin: 0 auto; max-height: none; }
.video-mock-screen:fullscreen { width: 100vw; height: 100vh; max-height: none; border-radius: 0; border: 0; }
.player-top-action-bar { gap: 14px; flex-wrap: wrap; }
.current-playing-title-bar { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-top-toggles { display: flex; gap: 8px; flex-wrap: nowrap; }
.btn-tool-toggle { white-space: nowrap; }
/* navbar: never wrap */
.nav-left { min-width: 0; flex: 1; }
.nav-links { flex-wrap: nowrap; gap: 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-item { white-space: nowrap; font-size: 14px; }
.nav-right { flex-shrink: 0; gap: 12px; }
.brand-logo { flex-shrink: 0; }
@media (max-width: 1500px) { .nav-right .btn-lang span#currentLangLabel { display: none; } .search-box input { width: 120px; } }
/* custom player */
.rx-stage { position: absolute; inset: 0; background: #000; }
.rx-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.rx-shield { position: absolute; inset: 0 0 64px 0; z-index: 3; cursor: pointer; }
.rx-stage.paused .rx-shield::after { content: '\f04b'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(225,29,72,.88); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; padding-left: 5px; }
.rx-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 26px 14px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.9)); transition: opacity .25s; }
.rx-stage:not(.paused) .rx-ctrl { opacity: 0; } .rx-stage:hover .rx-ctrl, .rx-stage.paused .rx-ctrl { opacity: 1; }
@media (hover: none) { .rx-stage .rx-ctrl { opacity: 1 !important; } }
.rx-stage.rx-snapping .rx-ctrl, .rx-stage.rx-snapping .rx-shield::after, .rx-stage.rx-snapping .rx-msg { opacity: 0 !important; }
.rx-ctrl-row { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.rx-ctrl-row button { background: none; border: 0; color: #fff; font-size: 15px; width: 34px; height: 34px; border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: 700; }
.rx-ctrl-row button:hover { background: rgba(255,255,255,.16); }
.rx-spacer { flex: 1; } .rx-time { font-size: 12px; color: #e2e8f0; margin: 0 8px; white-space: nowrap; }
.rx-seek, .rx-vol { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; accent-color: #ff2d55; }
.rx-seek { width: 100%; margin: 0 0 6px; display: block; } .rx-vol { width: 70px; }
.rx-msg { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; background: rgba(8,9,12,.94); padding: 24px; color: #e2e8f0; }
.rx-msg.show { display: flex; } .rx-msg i { font-size: 38px; color: var(--accent-gold); } .rx-msg p { max-width: 520px; line-height: 1.5; } .rx-msg small { color: var(--text-dim); } .rx-msg code { background: #1f2937; padding: 2px 6px; border-radius: 4px; }
