@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --red: #e50914;
  --red-hover: #f40612;
  --bg: #141414;
  --bg-secondary: #181818;
  --bg-card: #1f1f1f;
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --border: #2a2a2a;
  --nav-height: 68px;
}

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

html { direction: rtl; font-size: 16px; }

body {
  font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 4px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-red    { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); transform: scale(1.02); }

.btn-ghost  { background: rgba(109,109,110,0.65); color: #fff; }
.btn-ghost:hover { background: rgba(109,109,110,0.9); }

.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-sm  { padding: 7px 16px; font-size: 0.875rem; }
.btn-lg  { padding: 14px 32px; font-size: 1.1rem; }
.btn-xl  { padding: 16px 40px; font-size: 1.2rem; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  transition: background 0.4s ease;
}

.navbar.transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.navbar.solid {
  background: var(--bg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -2px;
  cursor: pointer;
  user-select: none;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* User menu */
.user-menu { position: relative; cursor: pointer; }

.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 5px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}

.user-caret {
  width: 0; height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  transition: transform 0.2s;
}

.user-menu:hover .user-caret { transform: rotate(180deg); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: rgba(10,10,10,0.97);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-user-name {
  padding: 14px 16px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.dropdown-user-name strong { display: block; color: var(--text); font-size: 0.95rem; }

.user-dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.user-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.dropdown-divider { border-top: 1px solid var(--border); }

/* ===================== LANDING PAGE ===================== */
.landing-page { background: var(--bg); }

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(229,9,20,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(229,9,20,0.08) 0%, transparent 45%),
    linear-gradient(135deg, #0d0d0d 0%, #1a0303 50%, #0a0a0a 100%);
}

/* Background mosaic (cinematic feel) */
.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  opacity: 0.07;
  transform: skewY(-4deg) scale(1.15);
  transform-origin: center;
}

.hero-mosaic > div {
  border-radius: 2px;
  background: linear-gradient(135deg, #2a2a2a, #0d0d0d);
}

.hero-mosaic > div:nth-child(3n) {
  background: linear-gradient(135deg, #3a1010, #0d0d0d);
}

.hero-mosaic > div:nth-child(5n) {
  background: linear-gradient(135deg, #1a1a3a, #0d0d0d);
}

.landing-hero .navbar { position: relative; background: transparent; }

.hero-content-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.hero-content-center h1 {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content-center .subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Dividers */
.section-divider {
  height: 8px;
  background: #222;
  border: none;
  margin: 0;
}

/* Features */
.features-section { background: var(--bg); }

.feature-block {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 70px 8%;
  border-bottom: 8px solid #222;
}

.feature-block.reverse { flex-direction: row-reverse; }

.feature-text { flex: 1; }

.feature-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.feature-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-visual {
  flex: 0 0 280px;
  height: 220px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.feature-visual.blue { background: linear-gradient(135deg, #1a237e, #0d47a1); }
.feature-visual.purple { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.feature-visual.green { background: linear-gradient(135deg, #1b5e20, #2e7d32); }

/* Preview section */
.coming-soon-section {
  padding: 60px 4%;
  background: var(--bg);
}

.coming-soon-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.coming-soon-section .section-sub {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* ===================== CARDS ===================== */
.cards-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.cards-scroll::-webkit-scrollbar { height: 4px; }
.cards-scroll::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }
.cards-scroll::-webkit-scrollbar-track { background: transparent; }

.series-card {
  min-width: 190px;
  max-width: 190px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.series-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8);
  z-index: 10;
}

.card-poster {
  position: relative;
  width: 100%;
  padding-top: 148%; /* ~2:3 ratio */
  overflow: hidden;
}

.card-poster-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
}

/* Daniel poster */
.daniel-bg {
  background: linear-gradient(160deg, #0f0c29, #302b63, #24243e);
}

.daniel-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(83,52,131,0.6) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(229,9,20,0.15) 0%, transparent 50%);
}

.poster-big-title {
  position: relative;
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.4), 0 2px 10px rgba(0,0,0,0.8);
  letter-spacing: 3px;
  z-index: 1;
}

.poster-series-label {
  position: relative;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
  z-index: 1;
}

.poster-season-badge {
  position: relative;
  margin-top: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  z-index: 1;
}

.badge-coming-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  z-index: 5;
}

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

.card-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-description {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== AUTH PAGE ===================== */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(229,9,20,0.12) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #180202 50%, #0a0a0a 100%);
  display: flex;
  flex-direction: column;
}

.auth-page .navbar { position: relative; background: transparent; }

.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(0,0,0,0.87);
  border-radius: 8px;
  padding: 48px 50px 56px;
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.auth-tab.active { color: var(--text); }
.auth-tab.active::after { transform: scaleX(1); }

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

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

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.form-group input {
  background: #333;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 14px 15px;
  color: var(--text);
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  outline: none;
  direction: rtl;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus { border-color: #888; background: #3a3a3a; }
.form-group input.has-error { border-color: var(--red) !important; }

.field-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  display: none;
}

.field-error.show { display: block; }

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.alert {
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}

.alert.show { display: block; }

.alert-error {
  background: rgba(229,9,20,0.12);
  border: 1px solid rgba(229,9,20,0.35);
  color: #ff8080;
}

.alert-success {
  background: rgba(70,211,105,0.12);
  border: 1px solid rgba(70,211,105,0.35);
  color: #7dff7d;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===================== HOME PAGE ===================== */
.home-page { background: var(--bg); min-height: 100vh; }

/* Featured Hero */
.featured-hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  max-height: 800px;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f0c29 0%, #302b63 45%, #24243e 75%, #1a0a2e 100%);
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(83,52,131,0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(229,9,20,0.2) 0%, transparent 40%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 40%),
    linear-gradient(to left, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.hero-info {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  letter-spacing: -1px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-meta .green { color: #46d369; font-weight: 600; }

.hero-meta .maturity {
  border: 1px solid var(--text-muted);
  padding: 1px 7px;
  border-radius: 2px;
  font-size: 0.78rem;
}

.hero-description {
  font-size: 0.97rem;
  color: #ddd;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

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

.btn-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 14px 26px;
  border-radius: 4px;
  font-family: 'Heebo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: default;
}

/* Content rows */
.content-area {
  position: relative;
  z-index: 2;
  padding: 0 4% 60px;
  margin-top: -40px;
}

.content-row { margin-bottom: 45px; }

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

.row-heading h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e5e5e5;
}

.row-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 4% 30px;
  color: var(--text-muted);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -1px;
  margin-bottom: 24px;
  display: inline-block;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: #555;
}

/* ===================== LOADING ===================== */
.page-loading {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}

.loading-logo {
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.96); }
}

/* ===================== NOTIFICATIONS ===================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #111;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  white-space: nowrap;
}

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

/* ===================== ANIMATIONS ===================== */

/* ── Keyframes ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Hero entrance (landing + home) ── */
.hero-content-center h1,
.hero-content-center .subtitle,
.hero-content-center .hero-cta,
.hero-content-center .tag-new,
.hero-info .hero-badge,
.hero-info .hero-title,
.hero-info .hero-meta,
.hero-info .genre-tags,
.hero-info .episode-info,
.hero-info .hero-description,
.hero-info .hero-actions,
.series-info .series-title-main,
.series-info .series-title-full,
.series-info .series-stats,
.series-info .series-desc,
.series-info .series-actions {
  animation: fadeInUp 0.65s ease both;
}

/* Staggered delays for hero children */
.hero-content-center .tag-new         { animation-delay: 0.05s; }
.hero-content-center h1                { animation-delay: 0.15s; }
.hero-content-center .subtitle         { animation-delay: 0.28s; }
.hero-content-center .hero-cta         { animation-delay: 0.42s; }

.hero-info .hero-badge                 { animation-delay: 0.1s; }
.hero-info .hero-title                 { animation-delay: 0.22s; }
.hero-info .hero-meta                  { animation-delay: 0.34s; }
.hero-info .episode-info               { animation-delay: 0.42s; }
.hero-info .genre-tags                 { animation-delay: 0.50s; }
.hero-info .hero-description           { animation-delay: 0.58s; }
.hero-info .hero-actions               { animation-delay: 0.68s; }

.series-info .series-title-main        { animation-delay: 0.1s; }
.series-info .series-title-full        { animation-delay: 0.2s; }
.series-info .series-stats             { animation-delay: 0.3s; }
.series-info .series-desc              { animation-delay: 0.42s; }
.series-info .series-actions           { animation-delay: 0.55s; }

/* ── Navbar slides in from top ── */
.navbar {
  animation: fadeInDown 0.5s ease both;
}

/* ── Auth card scales in ── */
.auth-card {
  animation: scaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.1s;
}

/* ── Scroll-reveal base ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }

/* ── Ripple effect on buttons ── */
.btn { position: relative; overflow: hidden; }

.ripple-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  width: 10px; height: 10px;
  margin-top: -5px; margin-right: -5px;
  transform: scale(0);
  animation: ripple-expand 0.55s ease-out forwards;
  pointer-events: none;
}

/* ── Button press ── */
.btn:active { transform: scale(0.96); }
.btn-red:active { transform: scale(0.96); }
.btn-play-first:active { transform: scale(0.97) !important; }

/* ── Smooth click scale for series cards ── */
.series-card:active { transform: scale(1.02) translateY(-2px) !important; }

/* ── Scroll anchor indicator (bounce arrow) ── */
.bounce-hint {
  display: inline-block;
  animation: bounce-y 1.8s ease-in-out infinite;
}

/* ── Loading spinner (replaces pulsing logo) ── */
.loading-logo {
  animation: fadeIn 0.3s ease both, pulse 1.2s ease-in-out infinite 0.3s;
}

/* ── Feature blocks slide in from sides ── */
.feature-block .feature-text { transition-property: opacity, transform; }

/* ── Page fade-in wrapper ── */
.page-fade {
  animation: fadeIn 0.4s ease both;
}

/* ── Smooth scroll progress indicator ── */
.scroll-progress {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: var(--red);
  transform-origin: right;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.1s linear;
}

/* ── Episode row hover is smoother ── */
.episode-row {
  transition: background 0.2s ease, transform 0.2s ease;
}
.episode-row:hover {
  transform: translateX(-4px);
}

/* ── Season tab switch animation ── */
.episodes-list {
  animation: fadeIn 0.3s ease both;
}

/* ── Welcome banner slides down ── */
.welcome-banner {
  animation: fadeInDown 0.5s ease both 0.3s;
  opacity: 0;
  animation-fill-mode: both;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .nav-links { display: none; }
  .logo { font-size: 1.8rem; }
  .user-name { display: none; }
  .navbar { padding: 0 4%; height: 58px; }

  /* ── Auth ── */
  .auth-card { padding: 28px 20px 36px; }
  .auth-card h1 { font-size: 1.6rem; margin-bottom: 22px; }

  /* ── Landing ── */
  .hero-content-center h1 { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .feature-block { flex-direction: column; gap: 24px; padding: 40px 5%; }
  .feature-block.reverse { flex-direction: column; }
  .feature-visual { flex: 0 0 140px; height: 140px; font-size: 3rem; width: 100%; }
  .coming-soon-section { padding: 40px 4%; }

  /* ── Home: Featured Hero ── */
  .featured-hero {
    height: auto;
    min-height: 0;
    padding: 100px 5% 50px;
    align-items: flex-start;
  }
  .hero-poster-side { display: none; }
  .hero-info { max-width: 100%; }
  .hero-title { font-size: 2.6rem; letter-spacing: -0.5px; }
  .hero-badge { font-size: 0.68rem; padding: 4px 10px; margin-bottom: 12px; }
  .hero-description { font-size: 0.9rem; margin-bottom: 20px; }
  .hero-meta { gap: 10px; font-size: 0.82rem; margin-bottom: 14px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-lg { padding: 12px 22px; font-size: 1rem; }
  .genre-tags { gap: 6px; margin-bottom: 12px; }
  .genre-tag { font-size: 0.7rem; padding: 3px 10px; }

  /* ── Home: Content area ── */
  .content-area { padding: 0 4% 50px; margin-top: -20px; }
  .content-row { margin-bottom: 32px; }
  .row-heading h3 { font-size: 1rem; }

  /* ── Cards ── */
  .series-card { min-width: 150px; max-width: 150px; }
  .poster-big-title { font-size: 2.4rem !important; }
  .card-info h3 { font-size: 0.85rem; }
  .card-description { display: none; }

  /* ── Series page (dasmal) ── */
  .series-hero {
    height: auto;
    min-height: 0;
    padding: 90px 5% 40px;
    align-items: flex-start;
  }
  .series-logo-area {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin-bottom: 20px;
  }
  .series-title-main { font-size: 3.5rem !important; }
  .series-title-full { font-size: 1.4rem !important; }
  .series-stats { font-size: 0.82rem !important; gap: 8px !important; }
  .series-desc { font-size: 0.88rem !important; }
  .series-actions { gap: 8px !important; flex-wrap: wrap; }

  /* Episodes */
  .series-content { padding: 0 4% 50px !important; }
  .season-tabs { gap: 6px !important; }
  .season-header { flex-direction: column; gap: 10px; align-items: flex-start !important; }

  .episode-row {
    padding: 14px 14px !important;
    gap: 12px !important;
  }
  .ep-number { font-size: 1.2rem !important; min-width: 28px !important; }
  .ep-info h4 { font-size: 0.92rem !important; }
  .ep-info p  { font-size: 0.78rem !important; }
  .ep-duration { display: none; }

  /* Player */
  .player-topbar { padding: 10px 16px; }
  .player-topbar-title strong { font-size: 0.9rem; }
  .episode-bar { padding: 14px 16px; }
  .ep-bar-info h3 { font-size: 0.95rem; }
  .ep-bar-actions { gap: 8px; }
  .ep-bar-actions a,
  .ep-bar-actions button { padding: 8px 14px; font-size: 0.82rem; }

  /* Footer */
  .site-footer { padding: 32px 4% 24px; }
  .footer-links { gap: 14px; }
  .footer-links a { font-size: 0.78rem; }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .series-title-main { font-size: 2.8rem !important; }
}
