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

:root {
  --bg-main: #06070b;
  --bg-surface: #0c0e15;
  --bg-card: #0f111a;
  --bg-card-hover: #151824;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(225, 29, 72, 0.45);
  --primary: #e11d48;
  --primary-hover: #f43f5e;
  --primary-glow: rgba(225, 29, 72, 0.35);
  --amber-accent: #ffa31a;
  --amber-glow: rgba(255, 163, 26, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225, 29, 72, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 163, 26, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 30% at 0% 50%, rgba(139, 92, 246, 0.05), transparent 60%);
  background-attachment: fixed;
  color: #f1f5f9;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* OLED Smooth Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #06070b;
}
::-webkit-scrollbar-thumb {
  background: #232633;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #383c4f;
}

/* Glassmorphism Navigation */
.nav-glass {
  background: rgba(6, 7, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* Cinema Hero Banner */
#heroSection {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #08090f;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.85),
    0 0 40px -10px rgba(225, 29, 72, 0.2);
}

#heroSection::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

#heroSection::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 163, 26, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

/* Video Card Enhancements — Cinema OLED */
.video-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: var(--bg-card-hover);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 
    0 16px 36px -10px rgba(0, 0, 0, 0.8),
    0 0 25px -5px rgba(225, 29, 72, 0.28);
}

.video-thumb-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #0d0f17;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
  filter: brightness(0.95);
}

.video-card:hover .video-thumb-wrapper img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Thumbnail Vignette Overlay */
.video-thumb-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

/* Play Button Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 8, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 5;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-pulse-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.65);
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-card:hover .play-pulse-btn {
  transform: scale(1.08);
}

/* Tag Pills — Frosted Glass */
.tag-pill {
  position: relative;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(18, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.tag-pill:hover {
  background: rgba(28, 31, 45, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.tag-pill.active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-color: rgba(244, 63, 94, 0.6);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
  transform: translateY(-1px);
}

/* Shimmer Loading animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #10121b 25%, #1b1e2e 50%, #10121b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

/* Modal Player Container */
.player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000000;
  overflow: hidden;
}

.player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cinema Glowing Badges */
.badge-hd {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.badge-hd span.dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Neon Glow Utilities */
.glow-primary {
  box-shadow: 0 0 25px -4px rgba(225, 29, 72, 0.5);
}

.glow-amber {
  box-shadow: 0 0 25px -4px rgba(255, 163, 26, 0.5);
}
