/* ========================================
   DRAMAFLIX — 全网爆款短剧集合 落地页样式
   ======================================== */

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

:root {
  --dark:       #0A0A0F;
  --cream:      #F5F0EB;
  --crimson:    #DC2626;
  --amber:      #F59E0B;
  --rose:       #FB7185;
  --deep-purple:#1E1B2E;
  --radius:     12px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 68px; /* fixed bottom bar space */
}

img { display: block; max-width: 100%; height: auto; }
img[src=""] { display: none; }

/* Fallback gradient for broken images */
.drama-card__cover,
.featured-item__thumb,
.new-release__featured-cover,
.sub-card__cover,
.modal__cover {
  background: linear-gradient(135deg, var(--deep-purple) 0%, #2a1f3d 50%, var(--dark) 100%);
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Utility ---------- */
.font-display { font-family: var(--font-display); }

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Film grain overlay */
.film-grain { position: relative; overflow: hidden; }
.film-grain::after {
  content: '';
  position: absolute;
  inset: -200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Animations ---------- */
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(-10%, 5%); }
  70% { transform: translate(7%, -8%); }
  90% { transform: translate(-3%, 10%); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.05); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(220,38,38,0.4), 0 0 24px rgba(220,38,38,0.1); }
  50%      { box-shadow: 0 0 16px rgba(220,38,38,0.6), 0 0 40px rgba(220,38,38,0.2); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.breathe       { animation: breathe 4s ease-in-out infinite; }
.pulse-glow    { animation: pulse-glow 2s ease-in-out infinite; }

.animate-slide-up { animation: slide-up 0.6s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

.shimmer-text {
  background: linear-gradient(90deg, var(--cream) 0%, var(--amber) 50%, var(--cream) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Scroll reveal (JS toggles .revealed) */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  text-align: center;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--red   { left: 50%; top: 25%; width: 500px; height: 500px; transform: translate(-50%,-50%); background: rgba(220,38,38,0.18); }
.hero__glow--amber { right: 0;   bottom: 25%; width: 400px; height: 400px; background: rgba(245,158,11,0.10); animation-delay: 2s; }
.hero__glow--rose  { left: 0;    bottom: 0;   width: 300px; height: 300px; background: rgba(251,113,133,0.10); animation-delay: 3s; }

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(220,38,38,0.3);
  background: rgba(220,38,38,0.08);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--crimson);
}
.live-dot {
  position: relative;
  width: 8px; height: 8px;
}
.live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--crimson);
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--crimson);
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 18vw, 112px);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--cream);
}

.hero__tagline {
  margin-top: 12px;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--amber);
}

.hero__sub {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245,240,235,0.55);
}

.hero__actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  background: var(--crimson);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  transition: transform 0.15s;
}
.btn-play:active { transform: scale(0.95); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(245,240,235,0.2);
  background: rgba(255,255,255,0.04);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(245,240,235,0.8);
  transition: background 0.2s, transform 0.15s;
}
.btn-outline:active { transform: scale(0.95); background: rgba(255,255,255,0.08); }

.social-proof {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: rgba(245,240,235,0.4);
}
.social-proof__item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.social-proof__num  { font-size: 18px; font-weight: 700; }
.social-proof__divider { width: 1px; height: 24px; background: rgba(245,240,235,0.1); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,240,235,0.25);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint__line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(245,240,235,0.3), transparent);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ---------- Section Header ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 20px;
}
.section-header__left { display: flex; align-items: center; gap: 12px; }
.section-header__bar { width: 4px; height: 20px; border-radius: 4px; }
.section-header__bar--crimson { background: var(--crimson); }
.section-header__bar--amber   { background: var(--amber); }
.section-header__bar--rose    { background: var(--rose); }
.section-header__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.section-header__link { font-size: 12px; color: var(--amber); }

/* ---------- TRENDING ---------- */
.trending { padding: 40px 0; }

.trending__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 8px;
}

.drama-card {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.drama-card:active, .drama-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(220,38,38,0.2);
}

.drama-card__cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.drama-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.drama-card:hover .drama-card__cover img,
.drama-card:active .drama-card__cover img {
  transform: scale(1.05);
}

.drama-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.drama-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
}
.drama-card__title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-card__subtitle {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(245,240,235,0.5);
}
.drama-card__meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drama-card__views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(245,240,235,0.7);
}
.drama-card__episodes { font-size: 10px; color: var(--amber); }

/* HOT badge */
.hot-badge {
  position: absolute;
  top: 12px; left: 0;
  z-index: 3;
  padding: 3px 12px 3px 8px;
  background: var(--crimson);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* Tag pill */
.tag-pill {
  position: absolute;
  top: 12px; right: 8px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(30,27,46,0.8);
  backdrop-filter: blur(4px);
  font-size: 9px;
  color: var(--rose);
}

/* ---------- CATEGORIES ---------- */
.categories { padding: 40px 20px; }

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.category-btn:active,
.category-btn.active {
  background: rgba(220,38,38,0.15);
  border-color: #DC2626;
  transform: scale(0.95);
  box-shadow: 0 0 12px rgba(220,38,38,0.3);
}
.category-btn.active .category-btn__label {
  color: #DC2626;
}
.category-btn.active .category-btn__icon {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}
.category-btn__icon { font-size: 20px; }
.category-btn__label { font-size: 11px; font-weight: 500; color: rgba(245,240,235,0.8); }
.category-btn__count { font-size: 9px; color: rgba(245,240,235,0.3); }

/* ---------- FEATURED LIST ---------- */
.featured { padding: 40px 20px; }

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

.featured-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.featured-item:active {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.featured-item__thumb {
  position: relative;
  flex-shrink: 0;
  width: 80px; height: 112px;
  border-radius: 8px;
  overflow: hidden;
}
.featured-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-item__ep {
  position: absolute;
  bottom: 4px; right: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0,0,0,0.7);
  font-size: 8px;
  color: var(--amber);
}

.featured-item__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }

.featured-item__header { display: flex; align-items: center; gap: 8px; }
.featured-item__title { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.04em; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-item__rank {
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(220,38,38,0.2);
  font-size: 8px;
  font-weight: 700;
  color: var(--crimson);
}

.featured-item__sub { margin-top: 4px; font-size: 12px; color: rgba(245,240,235,0.4); }

.featured-item__tags { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.featured-item__tag {
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(30,27,46,0.6);
  font-size: 9px;
  color: var(--rose);
}
.featured-item__total { font-size: 9px; color: rgba(245,240,235,0.3); }

.featured-item__footer { display: flex; align-items: center; justify-content: space-between; }

.btn-chase {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(220,38,38,0.12);
  font-size: 10px;
  font-weight: 500;
  color: var(--crimson);
  transition: background 0.2s;
}
.btn-chase:active { background: rgba(220,38,38,0.25); }

/* ---------- NEW RELEASE ---------- */
.new-release { padding: 40px 20px; }

.new-release__featured {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.new-release__featured:active { transform: scale(0.98); }

.new-release__featured-cover {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.new-release__featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.new-release__featured-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.play-overlay__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(220,38,38,0.2);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
}
.play-overlay__btn:active { transform: scale(0.9); background: rgba(220,38,38,0.35); }
.play-overlay__btn svg { fill: #fff; }

.new-release__featured-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
}
.new-release__featured-badges { display: flex; align-items: center; gap: 8px; }
.badge-new {
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--crimson);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.badge-update { font-size: 10px; color: var(--amber); }

.new-release__featured-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.new-release__featured-sub { margin-top: 4px; font-size: 14px; color: rgba(245,240,235,0.5); }
.new-release__featured-meta { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 10px; color: rgba(245,240,235,0.4); }
.new-release__featured-meta span { color: var(--rose); }

/* Sub cards */
.new-release__sub {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sub-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.sub-card:active { transform: translateY(-4px); }
.sub-card__cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.sub-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.sub-card__gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); }
.sub-card__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; }
.sub-card__title { font-size: 10px; font-weight: 500; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-card__sub   { margin-top: 2px; font-size: 8px; color: rgba(245,240,235,0.4); }

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 40px 20px; }

.testimonials__list { display: flex; flex-direction: column; gap: 12px; }

.testimonial {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}
.testimonial__header { display: flex; align-items: center; gap: 10px; }
.testimonial__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(220,38,38,0.2);
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
}
.testimonial__user { font-size: 12px; font-weight: 500; color: var(--cream); }
.testimonial__stars { display: flex; gap: 2px; }
.testimonial__stars svg { width: 10px; height: 10px; fill: var(--amber); }
.testimonial__text { margin-top: 12px; font-size: 14px; line-height: 1.6; color: rgba(245,240,235,0.6); }

/* ---------- CTA SECTION ---------- */
.cta-section {
  position: relative;
  padding: 64px 20px;
  text-align: center;
  overflow: hidden;
}
.cta-section__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 400px; height: 400px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(220,38,38,0.12);
  filter: blur(100px);
  pointer-events: none;
}
.cta-section__label {
  position: relative;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
}
.cta-section__title {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 64px);
  letter-spacing: 0.06em;
  color: var(--cream);
}
.cta-section__sub {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(245,240,235,0.5);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 32px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__brand { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.15em; color: rgba(245,240,235,0.4); }
.footer__links { display: flex; gap: 24px; font-size: 10px; color: rgba(245,240,235,0.25); }
.footer__copy  { font-size: 9px; color: rgba(245,240,235,0.15); }

/* ---------- FIXED BOTTOM BAR ---------- */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bottom-bar__info { flex: 1; }
.bottom-bar__brand { font-size: 12px; font-weight: 600; color: var(--cream); }
.bottom-bar__promo { font-size: 10px; color: rgba(245,240,235,0.4); }
.bottom-bar__btn {
  flex-shrink: 0;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--crimson);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s;
}
.bottom-bar__btn:active { transform: scale(0.95); }

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 90%;
  max-width: 360px;
  border-radius: 16px;
  background: var(--deep-purple);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.35s ease;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__cover { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__cover-gradient { position: absolute; inset: 0; background: linear-gradient(to top, var(--deep-purple) 0%, transparent 100%); }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--cream);
  z-index: 2;
  transition: background 0.2s;
}
.modal__close:active { background: rgba(0,0,0,0.7); }

.modal__body { padding: 20px; }
.modal__title { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.04em; color: var(--cream); }
.modal__subtitle { margin-top: 4px; font-size: 13px; color: rgba(245,240,235,0.5); }
.modal__meta { margin-top: 10px; display: flex; align-items: center; gap: 12px; font-size: 11px; }
.modal__tag {
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(220,38,38,0.15);
  color: var(--crimson);
  font-weight: 500;
}
.modal__ep { color: var(--amber); }
.modal__views { color: rgba(245,240,235,0.4); }

.modal__actions { margin-top: 20px; display: flex; gap: 10px; }
.modal__btn-play {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--crimson);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s;
}
.modal__btn-play:active { transform: scale(0.95); }
.modal__btn-fav {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 18px;
  transition: background 0.2s;
}
.modal__btn-fav:active { background: rgba(220,38,38,0.15); }
.modal__btn-fav.is-fav { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.3); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(30,27,46,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ---------- Loading Overlay ---------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 0 32px;
}

/* Spinner rings */
.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}
.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}
.spinner-ring:nth-child(1) {
  border-top-color: var(--crimson);
  animation: spin 1.2s linear infinite;
}
.spinner-ring:nth-child(2) {
  inset: 8px;
  border-right-color: var(--amber);
  animation: spin 1.6s linear infinite reverse;
}
.spinner-ring:nth-child(3) {
  inset: 16px;
  border-bottom-color: var(--rose);
  animation: spin 1s linear infinite;
}

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

.loading-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--cream);
  animation: loadingPulse 1.5s ease-in-out infinite;
}
@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.loading-sub {
  font-size: 13px;
  color: rgba(245, 240, 235, 0.45);
  letter-spacing: 1px;
}

/* Progress bar */
.loading-progress {
  width: 180px;
  height: 3px;
  background: rgba(245, 240, 235, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.loading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--amber));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .categories__grid { grid-template-columns: repeat(8, 1fr); }
  .trending__scroll { gap: 16px; }
  .drama-card { width: 160px; }
}
