/* ===========================================
   VRL — The Virtual Record Label
   Futuristic music label · deep-space aesthetic
   =========================================== */

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

:root {
  /* Core palette */
  --bg: #050510;
  --bg-elev-1: #0a0a18;
  --bg-elev-2: #11112a;
  --surface: rgba(20, 20, 45, 0.55);
  --surface-strong: rgba(28, 28, 55, 0.85);
  --border: rgba(140, 140, 255, 0.12);
  --border-strong: rgba(140, 140, 255, 0.28);

  /* Accents */
  --cyan: #00f0ff;
  --magenta: #ff00d4;
  --violet: #8b5cff;
  --gold: #ffb86b;

  /* Text */
  --text: #ffffff;
  --text-2: #b8b8d4;
  --text-3: #6e6e8a;

  /* Typography */
  --font-display: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===========================================
   COSMIC BACKGROUND
   =========================================== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1200px 800px at 50% -10%, rgba(139, 92, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 1000px 600px at 10% 60%, rgba(0, 240, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 700px at 90% 90%, rgba(255, 0, 212, 0.10), transparent 60%),
    var(--bg);
}

.grid-floor {
  position: absolute;
  bottom: -50%;
  left: -10%;
  right: -10%;
  height: 100%;
  background:
    linear-gradient(transparent 60%, rgba(0, 240, 255, 0.4)),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(0, 240, 255, 0.2) 60px, rgba(0, 240, 255, 0.2) 61px),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(0, 240, 255, 0.2) 60px, rgba(0, 240, 255, 0.2) 61px);
  transform: perspective(800px) rotateX(72deg);
  transform-origin: center top;
  opacity: 0.18;
  mask-image: linear-gradient(transparent, black 50%, transparent);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: aurora-drift 20s ease-in-out infinite;
}
.aurora-1 {
  width: 600px; height: 600px;
  top: -10%; left: -10%;
  background: radial-gradient(circle, var(--violet), transparent 60%);
}
.aurora-2 {
  width: 500px; height: 500px;
  top: 40%; right: -10%;
  background: radial-gradient(circle, var(--cyan), transparent 60%);
  animation-delay: -7s;
}
.aurora-3 {
  width: 700px; height: 700px;
  bottom: -20%; left: 30%;
  background: radial-gradient(circle, var(--magenta), transparent 60%);
  animation-delay: -14s;
}
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===========================================
   NAV
   =========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(to bottom, rgba(5, 5, 16, 0.75), rgba(5, 5, 16, 0.35));
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 50%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.35));
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-3);
  font-weight: 500;
}
@media (max-width: 640px) {
  .logo-text { display: none; }
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ===========================================
   HERO
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
}

.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 36px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.live-text {
  color: var(--text-2);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 45%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 20px 36px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-3);
  margin-top: 8px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}
@media (max-width: 540px) {
  .stat-divider { display: none; }
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #050510;
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.5),
              0 10px 40px -10px rgba(0, 240, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.15),
              0 20px 60px -10px rgba(0, 240, 255, 0.8);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-strong);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 18px;
  font-size: 13px;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-3);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ===========================================
   SECTION HEADERS
   =========================================== */
.section-header {
  max-width: var(--maxw);
  margin: 0 auto 56px;
  padding: 0 var(--gutter);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-meta {
  font-size: 15px;
  color: var(--text-2);
  max-width: 540px;
}

/* ===========================================
   FEATURED LATEST DROP
   =========================================== */
.featured {
  padding: 80px 0 60px;
  position: relative;
}

.featured-player {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.featured-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-1);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.1),
    0 30px 80px -20px rgba(139, 92, 255, 0.4),
    0 50px 120px -30px rgba(0, 240, 255, 0.3);
}
.featured-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* For VERTICAL videos (shorts), cap the aspect ratio at 9:16 max */
.featured-frame.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 420px;
  margin: 0 auto;
}

/* ===========================================
   DROPS GRID
   =========================================== */
.drops {
  padding: 80px 0 100px;
}

.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(0);
  opacity: 0;
  animation: card-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.2),
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 60px -10px rgba(139, 92, 255, 0.4);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elev-1);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.card:hover .card-thumb img {
  transform: scale(1.08);
}

/* Placeholder shown while YouTube processes the thumbnail */
.card-thumb-processing {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0d0d2b 0%, #12122a 100%);
  color: rgba(0, 240, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-thumb-processing svg {
  width: 28px;
  height: 28px;
  opacity: 0.5;
}

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 16, 0.9) 0%, transparent 40%);
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.card:hover .play-overlay { opacity: 1; }

.play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .play-icon { transform: scale(1); }
.play-icon svg {
  width: 24px;
  height: 24px;
  fill: #050510;
  margin-left: 3px;
}

.card-info {
  padding: 18px 20px 20px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 2.7em;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}
.card-meta-divider { opacity: 0.5; }
.card-views { color: var(--cyan); }

/* Newest badge on first card */
.card.is-newest::before {
  content: 'NEW';
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #050510;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* ===========================================
   ABOUT
   =========================================== */
.about {
  padding: 100px var(--gutter);
  position: relative;
}

.about-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 56px;
}

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

.about-card {
  padding: 32px 28px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.about-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 32px;
  color: var(--cyan);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.about-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, rgba(5, 5, 16, 0.6));
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo-mark {
  font-size: 32px;
  margin-bottom: 12px;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cyan); }

.footer-stat {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-synced {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-3);
}
.footer-divider { color: var(--cyan); opacity: 0.5; }

/* ===========================================
   LIGHTBOX
   =========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev-1);
  box-shadow: 0 30px 80px -20px rgba(0, 240, 255, 0.4);
}
.lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.lightbox-meta h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lightbox-close:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  transform: rotate(90deg);
}

/* ===========================================
   UTILITIES & REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
