/**
 * ShadyStarface — Master Dark Glassmorphic Design System
 * Aesthetic: Deep obsidian black, vibrant red & cyan accents, Anton display headings & Inter body
 */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Anton', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --bg-primary: #050508;
  --bg-surface: #0E0E14;
  --bg-surface-2: #14141E;
  --bg-glass: rgba(16, 16, 24, 0.72);
  --bg-glass-card: rgba(22, 22, 32, 0.65);
  --bg-glass-elevated: rgba(28, 28, 42, 0.85);

  --color-red: #E50914;
  --color-red-hover: #F40612;
  --color-red-glow: rgba(229, 9, 20, 0.45);
  --color-cyan: #00D2FF;
  --color-cyan-glow: rgba(0, 210, 255, 0.35);
  --color-cobalt: #0066FF;
  --color-orange: #FF8800;
  --color-gold: #D4AF37;
  --color-gold-glow: rgba(212, 175, 55, 0.4);

  --text-primary: #FFFFFF;
  --text-secondary: #A6A6B8;
  --text-muted: #6C6C82;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.16);
  --border-red: rgba(229, 9, 20, 0.35);
  --border-cyan: rgba(0, 210, 255, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.75);
  --shadow-red: 0 8px 30px rgba(229, 9, 20, 0.35);
  --shadow-cyan: 0 8px 30px rgba(0, 210, 255, 0.25);

  --player-height: 84px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(229, 9, 20, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  padding-bottom: var(--player-height);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Safety net: media embedded without an explicit responsive class never
   forces the page wider than its container (root cause of most mobile
   horizontal-scroll bugs — see @media rules at the bottom for the real
   per-component fixes; this is the default every element inherits). */
img, svg {
  max-width: 100%;
  height: auto;
}
video, iframe {
  max-width: 100%;
}

/* Typography */
h1, h2, h3, .heading-anton {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.15rem; font-weight: 700; }

.brand-xx {
  color: var(--color-red);
}
.brand-aftermath {
  color: #FFFFFF;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--color-cyan);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-red {
  background: var(--color-red);
  color: #FFF;
  box-shadow: var(--shadow-red);
}
.btn-red:hover {
  background: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(229, 9, 20, 0.5);
}

.btn-outline-red {
  background: rgba(229, 9, 20, 0.08);
  border-color: var(--color-red);
  color: #FFF;
}
.btn-outline-red:hover {
  background: var(--color-red);
  color: #FFF;
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}
.btn-outline-cyan:hover {
  background: var(--color-cyan);
  color: #000;
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.btn-surface {
  background: var(--bg-surface-2);
  border-color: var(--border-glass);
  color: #FFF;
}
.btn-surface:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass-bright);
}

/* Glass Card */
.card, .glass-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--border-glass-bright);
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo-red {
  color: var(--color-red);
}

.logo-badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--color-red);
  color: #FFF;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* Brand mark (official logo image) — one square, transparent-background
   asset reused everywhere; each context just sets a different height so
   the aspect ratio is never distorted (width follows automatically). */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-img-mobile {
  height: 34px;
}
.logo-img-footer {
  height: 64px;
}
.logo-img-admin {
  height: 32px;
}
.logo-img-modal {
  height: 48px;
  margin: 0 auto 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover {
  color: #FFF;
}

.nav-link.active {
  color: #FFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-red);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(22, 22, 34, 0.75);
  border: 1px solid var(--border-glass);
  color: #FFF;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-bright);
}

.mobile-menu-btn:active,
.mobile-menu-btn.active {
  background: rgba(229, 9, 20, 0.16);
  border-color: var(--color-red);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.35);
}

/* Animated Hamburger & App-Grid Icon */
.mobile-menu-icon {
  width: 20px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.mobile-menu-icon .icon-bar {
  width: 20px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.mobile-menu-btn.active .mobile-menu-icon .icon-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--color-red);
}

.mobile-menu-btn.active .mobile-menu-icon .icon-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .mobile-menu-icon .icon-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--color-red);
}

/* Mobile Dropdown Menu */
.mobile-nav {
  display: flex;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 72px);
  background: rgba(8, 8, 14, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass-bright);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  padding: 1.25rem 1.25rem 2rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.mobile-nav-grid .mobile-grid-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  min-height: 44px;
}

.mobile-nav-grid .mobile-grid-item:hover,
.mobile-nav-grid .mobile-grid-item:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-bright);
  color: #FFF;
}

.mobile-nav-grid .mobile-grid-item.active {
  background: rgba(229, 9, 20, 0.14);
  border-color: var(--color-red);
  color: #FFF;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.25);
}

.mobile-nav-grid .mobile-grid-item .item-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-glass);
  margin-top: 0.25rem;
}

/* User Menu & Dropdown */
.user-menu-wrapper {
  position: relative;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.user-pill:hover {
  border-color: var(--border-glass-bright);
}

.user-avatar {
  width: 24px;
  height: 24px;
  background: var(--color-red);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-badge {
  background: var(--color-cyan);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 1010;
}

.user-dropdown.show {
  display: block;
}

.dropdown-header {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 0.4rem;
}
.dropdown-header strong {
  display: block;
  font-size: 0.9rem;
  color: #FFF;
}
.dropdown-header small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFF;
}
.dropdown-item.admin-item {
  color: var(--color-cyan);
}
.dropdown-item.logout-item {
  color: #FF5555;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 0.5rem;
}

.hero-motto {
  font-size: 1.2rem;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.hero-bio {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--color-red);
  box-shadow: var(--shadow-red);
  aspect-ratio: 1 / 1;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0,0,0,0.4) 60%, transparent);
}

/* Hero Slider (dynamic, admin-managed slides) */
.hero-slider-viewport {
  position: relative;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  width: 100%;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.hero-slider-arrow:hover {
  background: rgba(229, 9, 20, 0.25);
  border-color: var(--color-red);
}

.hero-slider-prev {
  left: 0.5rem;
}

.hero-slider-next {
  right: 0.5rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-slider-dot.active {
  background: var(--color-red);
  transform: scale(1.3);
}

/* Release Banner */
.release-banner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  align-items: center;
}

.release-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-red);
  box-shadow: var(--shadow-red);
}

.streaming-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.streaming-badge {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.streaming-badge:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

/* Tracklist Styles */
.tracklist-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tracklist-item {
  display: grid;
  grid-template-columns: 60px 1fr 140px 80px 50px;
  align-items: center;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tracklist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass-bright);
  transform: translateX(4px);
}

.tracklist-item.active-track {
  background: rgba(229, 9, 20, 0.12);
  border-color: var(--color-red);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

.track-col-num {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.track-index-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  width: 24px;
}

.track-play-btn {
  background: var(--color-red);
  border: none;
  color: #FFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.track-play-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.track-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
}

.track-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.track-prod {
  color: var(--color-orange);
}

.track-genre-badge {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid var(--border-cyan);
  color: var(--color-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.track-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.track-dl-icon-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.track-dl-icon-btn:hover {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
}

/* Home Track Preview */
.home-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.25rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-track-item:hover, .home-track-item.active-track {
  border-color: var(--color-red);
  background: rgba(229, 9, 20, 0.08);
}
.home-track-start {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.home-track-idx {
  font-family: var(--font-heading);
  color: var(--text-muted);
  font-size: 1.1rem;
}
.home-track-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
}
.home-track-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.home-track-end {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.home-track-dur {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.home-track-dl {
  color: var(--text-secondary);
}

/* Persistent Bottom Music Player */
.fixed-bottom-player,
.bottom-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 84px;
  background: rgba(8, 8, 14, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr 240px;
  align-items: center;
  gap: 1.5rem;
}

/* Left: Track Details */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.player-album-art,
.player-cover-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass-bright);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  background: #111;
}

.player-album-art img,
#player-cover-art,
.player-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-meta-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.player-badge,
.player-track-num-badge {
  background: var(--color-red);
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.player-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.player-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Middle: Controls & Progress */
.player-controls-center,
.player-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.player-btn-row,
.player-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.player-ctrl-btn,
.player-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s ease;
  user-select: none;
}

.player-ctrl-btn:hover,
.player-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-cyan);
  transform: scale(1.1);
}

.player-play-main,
.player-btn-primary {
  width: 42px;
  height: 42px;
  background: var(--color-red);
  color: #FFFFFF;
  font-size: 1.15rem;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-play-main:hover,
.player-btn-primary:hover {
  background: var(--color-red-hover);
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.75);
  transform: scale(1.12);
}

.player-play-main.playing {
  background: var(--color-red);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.75);
  animation: pulse-red-glow 2s infinite ease-in-out;
}

@keyframes pulse-red-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(229, 9, 20, 0.5); }
  50% { box-shadow: 0 0 28px rgba(229, 9, 20, 0.9); }
}

/* Progress Scrubber */
.player-progress-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.time-label,
.player-time-display {
  font-size: 0.75rem;
  font-family: monospace, var(--font-body);
  color: var(--text-muted);
  font-weight: 600;
  min-width: 38px;
  text-align: center;
}

.player-slider-wrap,
.player-progress-bar-wrap {
  position: relative;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.player-progress-bar-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
  transition: height 0.15s ease;
}

.player-slider-wrap:hover .player-progress-bar-bg {
  height: 7px;
}

.player-progress-bar-fill,
.player-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-red), var(--color-cyan));
  box-shadow: 0 0 8px var(--color-red);
  border-radius: 4px;
  transition: width 0.05s linear;
}

.player-seek-input,
.player-seek-slider {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

/* Right Actions & Volume */
.player-actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-mute-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-mute-btn:hover {
  color: #FFF;
  transform: scale(1.15);
}

.player-volume-input,
.player-vol-slider {
  width: 85px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  accent-color: var(--color-red);
  outline: none;
}

.player-volume-input::-webkit-slider-thumb,
.player-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 8px var(--color-red);
  cursor: pointer;
}

.player-volume-input::-moz-range-thumb,
.player-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-red);
  border: none;
  cursor: pointer;
}

.player-action-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFF;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}
.player-action-btn:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* Gallery Grid */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #FFF;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-card);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-cyan);
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.gallery-cat-badge {
  align-self: flex-start;
  background: var(--color-red);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
}

.gallery-card-title {
  color: #FFF;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.gallery-card-caption {
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-zoom-prompt {
  font-size: 0.72rem;
  color: var(--color-cyan);
  font-weight: 700;
  margin-top: 0.3rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.video-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}
.video-card:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}

.video-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.video-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.video-play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-red);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-red);
  transition: transform 0.2s ease;
}
.video-card:hover .video-play-circle {
  transform: scale(1.15);
}

.video-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-glass);
  color: var(--color-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.video-info {
  padding: 1.25rem;
}

.video-title {
  color: #FFF;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.video-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Forms & Engagement */
.engagement-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: #FFF;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-control:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}

textarea.form-input, textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Modals & Backdrop */
.modal-backdrop, .lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active, .lightbox-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn, .lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover, .lightbox-close-btn:hover {
  color: #FFF;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-modal-title {
  color: #FFF;
  margin-top: 0.4rem;
  font-size: 1.6rem;
}

.auth-modal-sub {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-surface-2);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  background: var(--color-red);
  color: #FFF;
}

.auth-form-view {
  display: none;
}
.auth-form-view.active {
  display: block;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.alert-error {
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--color-red);
  color: #FF8888;
}
.alert-success {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--color-cyan);
  color: #A0F0FF;
}

.auth-switch-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}
.auth-switch-prompt a {
  color: var(--color-cyan);
  font-weight: 700;
}

/* Lightbox Dialog */
.lightbox-dialog {
  max-width: 900px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass-bright);
  overflow: hidden;
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.lightbox-meta {
  padding: 1.5rem;
}

/* Video Modal Dialog */
.video-modal-dialog {
  width: 100%;
  max-width: 960px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-red);
  overflow: hidden;
  position: relative;
}

.video-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.video-iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Lightbox / Video Modal Wrapper (photo lightbox & video player overlay) */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass-bright);
  overflow: hidden;
}

.lightbox-media-wrap {
  display: flex;
  flex-direction: column;
}

.lightbox-media-wrap img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.lightbox-caption-box {
  padding: 1.5rem;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #FFF;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}
.lightbox-nav-btn:hover {
  background: var(--color-red);
}
.lightbox-prev-btn {
  left: 1rem;
}
.lightbox-next-btn {
  right: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass-bright);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: #FFF;
  font-size: 0.9rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
  max-width: 420px;
}

.toast-item.toast-success {
  border-color: #00E676;
}
.toast-item.toast-error {
  border-color: var(--color-red);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Multi-Image Upload Previews (admin gallery/event forms) */
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.upload-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.4);
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview-item .upload-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #FFF;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-preview-item .upload-preview-remove:hover {
  background: var(--color-red);
}

.upload-preview-item .upload-preview-status {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 0.25rem;
}
.upload-preview-item .upload-preview-status.status-error {
  color: #FF8888;
}
.upload-preview-item .upload-preview-status.status-done {
  background: rgba(0, 0, 0, 0.35);
  color: #7CFFB2;
}

/* Event Gallery Images (public event card + admin event form) */
.event-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.event-gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  position: relative;
}
.event-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.event-gallery-thumb:hover img {
  transform: scale(1.08);
}
.event-gallery-thumb.event-gallery-more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #FFF;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--player-height));
}

.admin-sidebar {
  width: 100%;
  background: #08080C;
  border-right: 1px solid var(--border-glass);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0.3rem;
  transition: all 0.2s ease;
}
.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFF;
}
.admin-nav-item.active {
  background: var(--color-red);
  color: #FFF;
  font-weight: 700;
}

.admin-main {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
}

/* Admin Tables */
.admin-table-wrap {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  color: #DDD;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-select {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  color: #FFF;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-pending { border-color: #FFAA00; color: #FFCC00; }
.badge-confirmed { border-color: #00E676; color: #00E676; }
.badge-cancelled { border-color: #E50914; color: #FF6666; }

/* Responsive Media Queries — tiered so the navbar collapses to the
   hamburger menu BEFORE the 9-item nav-links row runs out of room
   (it was overflowing/wrapping between ~1024-1280px with only a single
   768px breakpoint), then phones get their own finer-grained pass. */

/* Tablet / small-desktop tier */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Sign In now lives permanently in the top bar (order: Logo -> Sign In
     -> Book Artist -> Hamburger) instead of being hidden/duplicated in
     the mobile drawer — both controls are sized down here so the row
     never overflows next to the hamburger button. */
  .nav-cta > .auth-btn-slot .open-auth-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .nav-cta > .auth-btn-slot .user-pill {
    padding: 0.3rem 0.5rem;
  }
  .nav-cta > .auth-btn-slot .user-name,
  .nav-cta > .auth-btn-slot .admin-badge {
    display: none;
  }
  /* The account dropdown is anchored to the pill via `right:0` on desktop
     (where the pill sits at the far right); on mobile the pill instead
     sits near the left of the row, so anchoring from the right would open
     the menu off-screen to the left. Anchor from the left instead, and
     cap the width so it can never exceed the viewport. */
  .nav-cta > .auth-btn-slot .user-dropdown {
    left: 0;
    right: auto;
    max-width: calc(100vw - 2rem);
  }
  .nav-cta > .btn-red {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* Extra-small phones: shrink the mobile Sign In / Book Artist pills
   further so [logo] [Sign In] [Book Artist] [hamburger] never crowds,
   wraps, or overlaps. */
@media (max-width: 400px) {
  .nav-cta > .auth-btn-slot .open-auth-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
  .nav-cta > .btn-red {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }
  .nav-cta {
    gap: 0.4rem;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .release-banner {
    grid-template-columns: 1fr;
  }
  .tracklist-item {
    grid-template-columns: 50px 1fr 60px 40px;
  }
  .hide-mobile {
    display: none !important;
  }
  .player-container {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  .player-actions-right {
    display: none !important;
  }
  .player-controls-center {
    grid-column: 1 / -1;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }
  .admin-sidebar-nav {
    flex-direction: row;
    flex-shrink: 0;
  }
  .admin-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .admin-sidebar-section-label,
  .admin-sidebar-footer {
    display: none;
  }
  .admin-main {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.5rem 0;
  }
  .player-container {
    padding: 0.4rem 0.75rem;
  }
  .player-btn-row {
    gap: 0.85rem;
  }
  .player-play-main {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .player-ctrl-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .time-label {
    min-width: 32px;
    font-size: 0.7rem;
  }
  .hero {
    padding: 3rem 0 3.5rem;
  }
  /* On mobile the slide's text and image stack vertically, so a
     mid-height arrow would land awkwardly over the text — dots (and
     swipe) remain the manual controls at this size instead. */
  .hero-slider-arrow {
    display: none;
  }
  .hero-slider-dots {
    bottom: 0.5rem;
  }
  .modal-card {
    padding: 1.75rem 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  .lightbox-content,
  .lightbox-dialog,
  .video-modal-dialog {
    max-height: 88vh;
    overflow-y: auto;
    margin: 0;
  }
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .lightbox-prev-btn {
    left: 0.4rem;
  }
  .lightbox-next-btn {
    right: 0.4rem;
  }
  .admin-main {
    padding: 1.25rem;
  }
  /* Several admin filter/search inputs ship a fixed inline width (e.g.
     width:240px) sized for desktop toolbars — force them to wrap to full
     width on phones instead of overflowing or crowding the row. */
  #event-search-input,
  #event-category-filter,
  #event-status-filter,
  #booking-search-input,
  #booking-status-filter,
  #contact-search-input,
  #subs-search-input {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Small phone tier (iPhone SE / small Android widths and up) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .nav-container {
    height: 64px;
  }
  .logo {
    font-size: 1.3rem;
    gap: 0.4rem;
  }
  .logo-img {
    height: 32px;
  }
  .logo-badge {
    font-size: 0.6rem;
    padding: 1px 5px;
  }
  .mobile-nav {
    top: 64px;
    max-height: calc(100vh - 64px);
    padding: 1rem 1rem 1.5rem;
  }
  .modal-backdrop,
  .lightbox-backdrop {
    padding: 0.75rem;
  }
  .modal-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .auth-modal-title {
    font-size: 1.35rem;
  }
  .section-title {
    margin-bottom: 2.5rem;
  }
}
