/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --primary: #e50914;
  --primary-hover: #f40612;
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --accent: #ff2e63;
  --gradient: linear-gradient(135deg, #e50914, #ff2e63);
  --radius: 8px;
  --shadow: 0 8px 30px rgba(0,0,0,0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== Pages ===== */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 70px;
}

.page.active {
  display: block;
}

.page-header {
  text-align: center;
  padding: 40px 4% 20px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

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

.search-box input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 8px 40px 8px 16px;
  color: var(--text);
  font-size: 0.9rem;
  width: 180px;
  outline: none;
  transition: all 0.3s;
}

.search-box input:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary);
  width: 220px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.btn-login {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.1);
}

.btn-subscribe {
  background: var(--gradient);
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-subscribe:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

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

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 80px;
  overflow: hidden;
  margin-top: -70px;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, var(--bg) 0%, transparent 40%),
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, transparent 60%),
    url('https://picsum.photos/id/1015/1920/1080') center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  animation: fadeUp 0.8s ease;
}

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

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-meta .rating {
  color: #46d369;
  font-weight: 700;
}

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

.btn-play, .btn-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-play {
  background: white;
  color: #000;
}

.btn-play:hover {
  background: rgba(255,255,255,0.85);
  transform: scale(1.03);
}

.btn-play svg {
  width: 22px;
  height: 22px;
}

.btn-info {
  background: rgba(109, 109, 110, 0.7);
  color: white;
  backdrop-filter: blur(4px);
}

.btn-info:hover {
  background: rgba(109, 109, 110, 0.5);
}

.btn-info svg {
  width: 22px;
  height: 22px;
}

/* ===== Content Rows ===== */
.content {
  padding: 0 4% 60px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.row {
  margin-bottom: 40px;
}

.row-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 4px;
}

.row-posters {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.row-posters::-webkit-scrollbar {
  display: none;
}

.row-posters.full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  overflow-x: visible;
  gap: 20px;
}

.card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s;
  position: relative;
}

.full-grid .card {
  flex: unset;
}

.card:hover {
  transform: scale(1.06);
  z-index: 5;
  box-shadow: var(--shadow);
}

.card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #222;
}

.card-info {
  padding: 12px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cat-card {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.cat-card span {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.cat-card:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

/* ===== Plans Page ===== */
.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 4%;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: #444;
}

.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.2);
  transform: scale(1.04);
}

.plan-card.popular:hover {
  transform: scale(1.06) translateY(-4px);
}

.plan-badge {
  display: inline-block;
  background: #333;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.popular-badge {
  background: var(--gradient);
  color: white;
}

.plan-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid #222;
}

.plan-features li.disabled {
  opacity: 0.4;
}

.plan-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid #444;
  background: transparent;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-btn:hover {
  background: #222;
  border-color: #666;
}

.plan-btn.primary {
  background: var(--gradient);
  border: none;
}

.plan-btn.primary:hover {
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
  transform: scale(1.02);
}

.payment-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-bottom: 40px;
}

.payment-note p {
  margin-bottom: 6px;
}

/* ===== Admin Dashboard ===== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4% 60px;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.admin-panel {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
}

.admin-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #222;
}

.activity-list {
  list-style: none;
}

.activity-list li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1a1a1a;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green { background: #46d369; }
.dot.blue { background: #3b82f6; }
.dot.orange { background: #f59e0b; }
.dot.red { background: #ef4444; }

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-btn {
  padding: 12px 16px;
  background: #1f1f1f;
  border: 1px solid #333;
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.admin-btn:hover {
  background: #2a2a2a;
  border-color: #555;
}

.admin-btn.danger {
  color: #ef4444;
  border-color: #3a1a1a;
}

.admin-btn.danger:hover {
  background: #2a1010;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #222;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
}

.status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.status.active {
  background: rgba(70, 211, 105, 0.15);
  color: #46d369;
}

.status.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ===== Footer ===== */
.footer {
  background: #080808;
  border-top: 1px solid #222;
  padding: 50px 4% 30px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Modals ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 20px;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #181818;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-body {
  padding: 0;
}

.modal-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding: 24px;
}

.modal-info h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.modal-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.modal-meta .rating {
  color: #46d369;
  font-weight: 700;
}

/* ===== Auth Modal ===== */
.auth-modal {
  max-width: 420px;
  padding: 32px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid #333;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: white;
  border-bottom-color: var(--primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-options a {
  color: var(--primary);
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 18px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #333;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-google {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #333;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.auth-google:hover {
  background: #2a2a2a;
}

/* ===== Video Player ===== */
.player-modal {
  background: rgba(0,0,0,0.95);
  padding: 0;
}

.player-modal.open {
  display: flex;
  flex-direction: column;
}

.player-container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  position: relative;
}

.player-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
}

.player-wrapper {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.big-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.big-play-btn:hover {
  transform: scale(1.1);
  background: var(--primary);
}

.big-play-btn svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
}

.player-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.player-info-overlay h2 {
  font-size: 1.6rem;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 40px 16px 12px;
}

.progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-bottom: 12px;
  cursor: pointer;
}

.progress-filled {
  height: 100%;
  width: 28%;
  background: var(--primary);
  border-radius: 3px;
  position: relative;
}

.progress-filled::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
}

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

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

.ctrl-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.ctrl-btn svg {
  width: 22px;
  height: 22px;
}

.time-display {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-episodes {
  margin-top: 20px;
  padding: 0 8px;
}

.player-episodes h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.episode {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.episode:hover {
  background: #222;
}

.episode.active {
  border-color: var(--primary);
  background: rgba(229, 9, 20, 0.1);
}

.ep-num {
  width: 32px;
  height: 32px;
  background: #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.episode.active .ep-num {
  background: var(--primary);
}

.ep-info {
  display: flex;
  flex-direction: column;
}

.ep-info strong {
  font-size: 0.95rem;
}

.ep-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #222;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid #333;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .search-box input {
    width: 130px;
  }
  
  .search-box input:focus {
    width: 150px;
  }
  
  .hero {
    height: 70vh;
    padding-bottom: 60px;
  }
  
  .card {
    flex: 0 0 150px;
  }
  
  .card-img {
    height: 220px;
  }
  
  .plan-card.popular {
    transform: none;
  }
  
  .plan-card.popular:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 12px 4%;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .btn-login {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .btn-subscribe {
    display: none; /* mobile: save space; use Plans tab */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
  
  .btn-play, .btn-info {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .card {
    flex: 0 0 130px;
  }
  
  .card-img {
    height: 190px;
  }
  
  .footer-links {
    gap: 30px;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .player-close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 36px;
    height: 36px;
  }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.2);
}

/* Light Theme */
body.light-theme {
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --text: #111111;
  --text-muted: #555555;
}

body.light-theme .navbar.scrolled {
  background: rgba(255,255,255,0.95);
}

body.light-theme .card,
body.light-theme .plan-card,
body.light-theme .stat-card,
body.light-theme .admin-panel,
body.light-theme .profile-card,
body.light-theme .profile-section {
  border-color: #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body.light-theme .footer {
  background: #eee;
  border-color: #ddd;
}

body.light-theme .bottom-nav {
  background: rgba(255,255,255,0.95);
  border-color: #ddd;
}

body.light-theme .modal-content,
body.light-theme .auth-modal {
  background: #fff;
  color: #111;
}

/* ===== Install Banner ===== */
.install-banner {
  position: fixed;
  bottom: 70px;
  left: 16px;
  right: 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 14px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: slideUp 0.4s ease;
}

.install-banner.show {
  display: flex;
}

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

.install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.install-content strong {
  font-size: 0.95rem;
  display: block;
}

.install-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-btn {
  background: var(--gradient);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.install-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #222;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
  justify-content: space-around;
}

.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 8px;
  transition: color 0.2s;
}

.bottom-item svg {
  width: 22px;
  height: 22px;
}

.bottom-item.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  
  .footer {
    margin-bottom: 70px;
  }
  
  .nav-links {
    display: none !important;
  }
}

/* ===== Profile Page ===== */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 4% 80px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.profile-header h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.profile-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.profile-plan {
  display: inline-block;
  background: rgba(229,9,20,0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #222;
  padding-top: 20px;
}

.p-stat {
  text-align: center;
}

.p-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.p-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-section {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.profile-section h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.95rem;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #333;
  border-radius: 26px;
  transition: 0.3s;
}

.slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-btn {
  padding: 13px 16px;
  background: #1f1f1f;
  border: 1px solid #333;
  color: white;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.profile-btn:hover {
  background: #2a2a2a;
}

.profile-btn.primary {
  background: var(--gradient);
  border: none;
  text-align: center;
}

.profile-btn.danger {
  color: #ef4444;
  border-color: #3a1a1a;
}

.app-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ===== Search / No Results ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Adjust content padding for bottom nav on mobile */
@media (max-width: 768px) {
  .content {
    padding-bottom: 40px;
  }
  
  .page {
    padding-bottom: 20px;
  }
}

/* Logo adjustment for longer name */
.logo {
  font-size: 1.5rem !important;
  white-space: nowrap;
}
.logo span {
  font-size: 0.95em;
}
@media (max-width: 600px) {
  .logo {
    font-size: 1.25rem !important;
  }
}

/* ===== Enhanced Install Banner ===== */
.install-banner {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(145deg, #1a1a1a, #121212);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 18px;
  padding: 18px 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
  z-index: 1500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  animation: installSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-banner.show {
  display: flex;
}

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

.install-banner .install-dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #888;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.install-banner .install-dismiss:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.install-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 24px;
}

.install-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.install-text strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 3px;
}

.install-text p {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
  line-height: 1.4;
}

.install-banner .install-btn {
  width: 100%;
  background: linear-gradient(135deg, #e50914, #ff2e63);
  border: none;
  color: white;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.install-banner .install-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.45);
}

.install-banner .install-btn:active {
  transform: scale(0.98);
}

/* Desktop: bottom-right corner */
@media (min-width: 769px) {
  .install-banner {
    bottom: 24px;
    right: 24px;
    left: auto;
    max-width: 360px;
  }
}

/* ===== iOS Install Guide ===== */
.ios-guide {
  max-width: 400px !important;
  padding: 32px 28px !important;
  text-align: center;
}

.ios-guide-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ios-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
}

.ios-guide h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.ios-subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.ios-steps {
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.ios-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #222;
}

.ios-step:last-child {
  border-bottom: none;
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e50914, #ff2e63);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.step-content p {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
}

.ios-share-icon {
  display: inline-block;
  background: #333;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ===== Install Success Overlay ===== */
.install-success {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
  padding: 24px;
}

.install-success.show {
  opacity: 1;
  visibility: visible;
}

.success-content {
  text-align: center;
  max-width: 360px;
  animation: successPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #46d369, #2ea44f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(70, 211, 105, 0.4);
}

.success-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.success-content p {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* When app is running in standalone mode, hide install related UI */
@media (display-mode: standalone) {
  .install-banner {
    display: none !important;
  }
  #pwaInstallBtn {
    display: none !important;
  }
}

/* ===== Skeleton Loading ===== */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { pointer-events: none; }
.skeleton-img { width: 100%; height: 260px; }
.skeleton-text { height: 14px; margin: 10px 12px 6px; }
.skeleton-text.short { width: 60%; height: 12px; margin-bottom: 12px; }

/* ===== Card progress ===== */
.card-progress {
  height: 3px;
  background: #333;
  margin-top: 8px;
  border-radius: 2px;
  overflow: hidden;
}
.card-progress div {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== Video Player Frame ===== */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.player-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #111;
  border-radius: 0 0 12px 12px;
}
.player-meta-bar h3 {
  font-size: 1.1rem;
  margin: 0;
}

/* ===== Payment Modal ===== */
.payment-modal {
  max-width: 440px !important;
  padding: 28px !important;
}
.payment-body h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  text-align: center;
}
.pay-plan-name {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 22px;
}
.pay-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.pay-method {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 14px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-method.active {
  border-color: var(--primary);
  background: rgba(229, 9, 20, 0.1);
}
.pay-logo {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
}
.pay-logo.bkash { color: #e2136e; }
.pay-logo.nagad { color: #f59e0b; }
.pay-logo.rocket { color: #7c3aed; }
.pay-logo.card { color: #3b82f6; }

.pay-form { display: none; }
.pay-form.active { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.pay-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #1a1a1a;
  border-radius: 10px;
  margin: 18px 0;
}
.pay-amount strong {
  font-size: 1.4rem;
  color: var(--primary);
}
.pay-note {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-top: 12px;
}

/* ===== Admin Form ===== */
.admin-form {
  margin-top: 8px;
}
.admin-form .form-group {
  margin-bottom: 14px;
}
.admin-form label {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 5px;
}
.admin-content-list {
  margin-top: 8px;
}
.admin-content-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

/* Smooth page transitions */
.page {
  animation: pageIn 0.3s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card hover polish */
.card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.card:hover {
  transform: scale(1.07) translateY(-4px);
}

/* ===== Cloud Status & Firebase Setup ===== */
.cloud-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid #333;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cloud-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cloud-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(100,100,100,0.2);
}
.cloud-dot.online {
  background: #46d369;
  box-shadow: 0 0 0 4px rgba(70,211,105,0.25);
  animation: pulse-green 2s infinite;
}
.cloud-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
}
.cloud-dot.error {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.2);
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 4px rgba(70,211,105,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(70,211,105,0.1); }
}
.cloud-status-left strong {
  display: block;
  font-size: 1rem;
}
.cloud-status-left p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.firebase-setup-panel {
  background: var(--bg-card);
  border: 1px solid #333;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.firebase-setup-panel h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}
.setup-steps {
  padding-left: 22px;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.setup-steps li {
  margin-bottom: 10px;
}
.setup-steps code {
  background: #222;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #f59e0b;
}
.setup-steps a {
  color: var(--primary);
}
.setup-steps ul {
  margin-top: 6px;
  padding-left: 18px;
}
.setup-note {
  background: rgba(70,211,105,0.1);
  border: 1px solid rgba(70,211,105,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: #86efac;
}

/* ===== Onboarding Modal ===== */
.onboarding-modal {
  max-width: 400px !important;
  padding: 28px 24px !important;
  text-align: center;
}
.onboarding-body .ob-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.onboarding-body h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.ob-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.ob-steps {
  text-align: left;
  margin-bottom: 22px;
}
.ob-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #222;
}
.ob-step:last-child { border-bottom: none; }
.ob-step.done .ob-check,
.ob-step.done .ob-num {
  background: #46d369;
  color: #000;
}
.ob-num, .ob-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.ob-step strong {
  display: block;
  font-size: 0.95rem;
}
.ob-step p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Privacy / Legal page ===== */
.legal-content {
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 0 4% 40px;
  line-height: 1.7;
  color: var(--text-muted);
}
.legal-content section {
  margin-bottom: 28px;
}
.legal-content h2 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.legal-content ul {
  padding-left: 22px;
  margin-top: 8px;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content p {
  margin-bottom: 8px;
}

/* Payment info box */
.pay-info-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.pay-info-box p { margin: 0 0 4px; }
.pay-hint {
  color: #f59e0b !important;
  font-size: 0.82rem !important;
  margin-top: 8px !important;
}
.pay-logo.bank { color: #22c55e; }
.pay-methods {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Access badges on cards */
.card-access {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.3px;
}
.card-access.free {
  background: #16a34a;
  color: #fff;
}
.card-access.premium {
  background: rgba(0,0,0,0.75);
  color: #fbbf24;
  border: 1px solid #fbbf24;
}
.card-badge { right: auto; } /* keep HOT on left */

.access-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.access-tag.free {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}
.access-tag.premium {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.free-check-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 10px 12px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
}
.free-check-label input {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
}

/* Paywall modal */
.paywall-modal {
  max-width: 400px !important;
  padding: 28px 24px !important;
  text-align: center;
}
.paywall-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.paywall-body h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.paywall-body > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.paywall-benefits {
  list-style: none;
  text-align: left;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #1a1a1a;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.paywall-benefits li {
  padding: 6px 0;
}

/* Poster with image + text fallback */
.card-poster {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-poster .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.card-poster-fallback {
  position: relative;
  z-index: 0;
  padding: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.card-poster.no-img .card-poster-fallback {
  z-index: 2;
}
.card-poster.no-img .card-img {
  display: none !important;
}
@media (max-width: 600px) {
  .card-poster { height: 190px; }
}
@media (max-width: 900px) {
  .card-poster { height: 220px; }
}

.player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ctrl-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  border: 1px solid #444;
  cursor: pointer;
  font-size: 0.85rem;
}

.admin-login-hint {
  margin-top: 16px;
  padding: 16px;
  background: #1a1a1a;
  border: 1px dashed #e50914;
  border-radius: 12px;
  text-align: center;
}
