:root {
  --bg-main: #07070a;
  --bg-elevated: #111118;
  --bg-card: #171721;
  --bg-glass: rgba(18, 18, 26, 0.85);
  --phoenix-gold: #f59e0b;
  --phoenix-amber: #fbbf24;
  --phoenix-orange: #ff5500;
  --phoenix-red: #e50914;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-subtle: rgba(245, 158, 11, 0.2);
  --gradient-phoenix: linear-gradient(135deg, #f59e0b 0%, #ff4500 60%, #b91c1c 100%);
  --shadow-glow: 0 10px 30px -5px rgba(255, 85, 0, 0.35);
}

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

body {
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Focus ring for Android TV / Streamer Remote Control D-Pad */
button:focus-visible,
.media-card:focus-visible,
.profile-card:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--phoenix-amber);
  outline-offset: 3px;
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.65);
}

/* ==================== AUTH / LOGIN / REGISTER ==================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(229, 9, 20, 0.14), transparent 50%),
    #050507;
}

.auth-card {
  width: 100%;
  max-width: 470px;
  background: rgba(17, 17, 24, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(16px);
}

.brand-logo-large {
  width: 190px;
  height: auto;
  display: block;
  margin: 0 auto 14px auto;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(255, 85, 0, 0.35);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0b0b10;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-tab {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--gradient-phoenix);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: #0c0c12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.98rem;
  transition: border 0.2s;
}

.form-input:focus {
  border-color: var(--phoenix-gold);
  outline: none;
}

.btn-primary {
  width: 100%;
  background: var(--gradient-phoenix);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 1.03rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.15s, opacity 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.demo-switcher {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-switcher-title {
  font-size: 0.82rem;
  color: var(--phoenix-amber);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.demo-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-demo {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f8fafc;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.btn-demo:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--phoenix-amber);
}

/* ==================== WHO'S WATCHING (PROFILES) ==================== */
.profiles-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.15), transparent 60%), #07070a;
}

.profiles-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 14px 0 8px;
}

.profiles-subtitle {
  color: var(--text-secondary);
  margin-bottom: 34px;
  font-size: 1rem;
}

.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  max-width: 900px;
  margin-bottom: 36px;
}

.profile-card {
  width: 150px;
  background: rgba(23, 23, 33, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
}

.profile-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--phoenix-amber);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.25);
}

.profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
}

.profile-name {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-badges {
  display: flex;
  gap: 5px;
  justify-content: center;
  min-height: 22px;
}

.badge-kids {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
}

.badge-pin {
  background: rgba(245, 158, 11, 0.2);
  color: var(--phoenix-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
}

/* ==================== TOP NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.nav-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

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

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-btn.active {
  background: rgba(245, 158, 11, 0.18);
  color: var(--phoenix-amber);
  border-color: rgba(245, 158, 11, 0.45);
}

.nav-btn-adult {
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.nav-btn-adult.active {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  color: #fff;
  border-color: #f87171;
}

.nav-btn-admin {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.25));
  color: var(--phoenix-amber);
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.nav-btn-admin.active {
  background: var(--gradient-phoenix);
  color: #fff;
}

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

.search-box {
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 0.88rem;
  width: 200px;
}

.active-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 44px 36px;
  background-size: cover;
  background-position: center 25%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(7, 7, 10, 0.96) 25%, rgba(7, 7, 10, 0.65) 65%, rgba(7, 7, 10, 0.3) 100%),
    linear-gradient(to top, #07070a 5%, transparent 65%);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--phoenix-amber);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
}

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

.hero-quality {
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-desc {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-play-hero {
  background: var(--gradient-phoenix);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
}

/* ==================== CONTENT ROWS & CARDS ==================== */
.catalog-section {
  padding: 26px 32px 10px;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.row-title {
  font-size: 1.32rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 18px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.media-card:hover {
  transform: translateY(-6px);
  border-color: var(--phoenix-gold);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 158, 11, 0.25);
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0d0d14;
  overflow: hidden;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 7, 10, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--phoenix-amber);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.card-badge-scheduled {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(220, 38, 38, 0.95));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.progress-bar-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-phoenix);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== ADMIN PANEL ==================== */
.admin-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px;
}

.admin-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(229, 9, 20, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--phoenix-amber);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 4px;
}

.admin-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-panel-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.admin-item-row {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.admin-thumb {
  width: 64px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.status-approved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.status-blocked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

/* ==================== MODAL & VIDEO PLAYER ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #14141d;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}

.video-player-wrap {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0;
}

.video-player-wrap video {
  width: 100%;
  max-height: 440px;
  display: block;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.episode-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.episode-row:hover {
  border-color: var(--phoenix-amber);
  background: rgba(245, 158, 11, 0.12);
}

/* ==================== TOAST ==================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #181824;
  border-right: 4px solid var(--phoenix-amber);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ==================== NETFLIX HORIZONTAL CAROUSEL ROWS ==================== */
.netflix-row-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cards-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 10px 4px 18px 4px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-carousel::-webkit-scrollbar {
  display: none;
}

.cards-carousel .media-card {
  flex: 0 0 205px;
  width: 205px;
  min-width: 205px;
}

.row-scroll-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 15;
  width: 44px;
  height: 92px;
  border-radius: 12px;
  background: rgba(7, 7, 10, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--phoenix-amber);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.75);
  transition: all 0.2s;
  opacity: 0.88;
}

.row-scroll-btn:hover {
  background: var(--gradient-phoenix);
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
}

.row-scroll-right {
  right: -12px;
}

.row-scroll-left {
  left: -12px;
}

/* ==================== FULLSCREEN CINEMA PLAYER ==================== */
.fullscreen-cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: flex;
  flex-direction: column;
}

.fullscreen-cinema-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 310;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fullscreen-cinema-video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

/* ==================== PLEX-STYLE MEDIA DETAILS, SEASONS, RATINGS & CAST ==================== */
.modal-box-wide {
  max-width: 920px;
  padding: 0;
  overflow-x: hidden;
}

.media-details-hero {
  position: relative;
  padding: 28px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.media-details-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(14, 14, 22, 0.96) 25%, rgba(14, 14, 22, 0.85) 70%, rgba(14, 14, 22, 0.94) 100%);
  backdrop-filter: blur(8px);
}

.media-details-layout {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.media-details-poster {
  width: 175px;
  height: 260px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(245, 158, 11, 0.4);
}

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

.media-details-body {
  padding: 22px 28px 28px;
}

.rating-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 8px 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stars-row {
  display: inline-flex;
  gap: 4px;
  direction: ltr;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, color 0.15s;
  padding: 0 2px;
  line-height: 1;
}

.star-btn.active,
.star-btn:hover {
  color: #fbbf24;
  transform: scale(1.18);
}

.season-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.season-tab-btn {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s;
}

.season-tab-btn:hover {
  border-color: var(--phoenix-amber);
  color: #fff;
}

.season-tab-btn.active {
  background: var(--gradient-phoenix);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.cast-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cast-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 2px 10px;
  scrollbar-width: thin;
}

.cast-card {
  flex: 0 0 105px;
  width: 105px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.cast-card:hover {
  transform: translateY(-4px);
}

.cast-avatar-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  position: relative;
}

.cast-card:hover .cast-avatar-wrap {
  border-color: var(--phoenix-amber);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.cast-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-avatar-fallback {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--phoenix-amber);
}

.cast-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

.cast-sub {
  font-size: 0.72rem;
  color: var(--phoenix-amber);
  margin-top: 2px;
}

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

.btn-remove-continue {
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  width: 100%;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-remove-continue:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.card-quick-play {
  position: absolute;
  bottom: 12px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-phoenix);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  z-index: 5;
  transition: transform 0.18s;
}

.card-quick-play:hover {
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .media-details-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


