/* ==========================================================================
   HotAudio - Erotic Voice Hypnosis & Intimate Audio
   Design System & Styling
   ========================================================================== */

/* Self-hosted fonts: no third-party requests from this site. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/outfit-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/outfit-300-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/outfit-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/outfit-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/outfit-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/outfit-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/outfit-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/outfit-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/outfit-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/outfit-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/playfair-display-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/playfair-display-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/playfair-display-600-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/playfair-display-600-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/playfair-display-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/playfair-display-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg-deep: #08040a;
  --bg-surface: #120917;
  --bg-card: rgba(23, 11, 31, 0.72);
  --bg-card-hover: rgba(33, 16, 44, 0.88);
  --bg-glass: rgba(18, 9, 23, 0.75);
  --border-subtle: rgba(255, 42, 109, 0.16);
  --border-focus: rgba(255, 42, 109, 0.6);
  --border-glow: rgba(157, 78, 221, 0.4);

  --accent-crimson: #ff2a6d;
  --accent-crimson-glow: rgba(255, 42, 109, 0.5);
  --accent-violet: #9d4edd;
  --accent-violet-glow: rgba(157, 78, 221, 0.45);
  --accent-gold: #ffd166;
  --accent-gradient: linear-gradient(135deg, #ff2a6d 0%, #b5179e 50%, #7209b7 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ff4d85 0%, #c72cae 50%, #8514cc 100%);

  --text-primary: #ffffff;
  --text-secondary: #dfd4e6;
  --text-muted: #9f8ea8;
  --text-crimson: #ff6b95;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px rgba(255, 42, 109, 0.15);
  --shadow-glow: 0 0 30px rgba(255, 42, 109, 0.4);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  scroll-behavior: smooth;
  /* Keep in-page anchors (#awakening, #sanctum, …) clear of the sticky header,
     which is 108–122px tall depending on breakpoint. */
  scroll-padding-top: 134px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(157, 78, 221, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 85% 60%, rgba(255, 42, 109, 0.16) 0%, transparent 50%),
              radial-gradient(circle at 50% 100%, rgba(114, 9, 183, 0.18) 0%, transparent 60%),
              var(--bg-deep);
}

/* The bottom padding that reserves space for the fixed player bar is applied
   further down, only on pages that actually contain a #player-dock. */

/* Background Atmosphere Glows */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-circle-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 109, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  animation: pulseAura 12s infinite alternate ease-in-out;
}

.ambient-circle-2 {
  position: absolute;
  top: 40%;
  left: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.18) 0%, transparent 70%);
  filter: blur(80px);
  animation: pulseAura 16s infinite alternate-reverse ease-in-out;
}

@keyframes pulseAura {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.2) translate(30px, 40px); opacity: 0.9; }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 4, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Without wrapping, brand + nav + auth actions added up to more than the
     viewport and forced horizontal scrolling on the whole page. */
  flex-wrap: wrap;
  gap: 10px 16px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-crimson-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: baseline;
}

.brand-title span {
  color: var(--accent-crimson);
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-crimson);
  background: rgba(255, 42, 109, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  border: 1px solid rgba(255, 42, 109, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-crimson);
}

.nav-link.active {
  color: #fff;
  font-weight: 600;
}

.nav-link.external {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link.external:hover {
  color: var(--text-secondary);
}

.nav-auth-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* User State Header */
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 42, 109, 0.08);
  border: 1px solid rgba(255, 42, 109, 0.22);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.user-name {
  font-weight: 600;
  color: #fff;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-signout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s ease;
}

.btn-signout:hover {
  color: var(--accent-crimson);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 42, 109, 0.35);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 26px rgba(255, 42, 109, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 42, 109, 0.4);
  color: #fff;
}

.btn-deeper {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.2), rgba(157, 78, 221, 0.25));
  border: 1px solid rgba(255, 42, 109, 0.45);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.2);
}

.btn-deeper:hover {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.35), rgba(157, 78, 221, 0.4));
  border-color: var(--accent-crimson);
  box-shadow: 0 0 28px rgba(255, 42, 109, 0.4);
}

/* Layout Containers */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid rgba(255, 42, 109, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-crimson);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.hero-eyebrow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-crimson);
  box-shadow: 0 0 10px var(--accent-crimson);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  line-height: 1.08;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: 1.22rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Media Display */
.hero-media-wrapper {
  position: relative;
}

.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 42, 109, 0.3);
  border: 1px solid rgba(255, 42, 109, 0.3);
  aspect-ratio: 16 / 10;
  background: #110816;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.8s ease;
}

.hero-media-card:hover .hero-media-img {
  transform: scale(1.03);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 4, 10, 0.1) 0%, rgba(8, 4, 10, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.hero-media-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(12, 6, 16, 0.8);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 42, 109, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-media-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-crimson);
}

.hero-media-playbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-media-trackinfo h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.hero-media-trackinfo p {
  font-size: 0.86rem;
  color: var(--text-crimson);
}

.hero-quick-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px var(--accent-crimson-glow);
  transition: transform 0.2s ease;
}

.hero-quick-play:hover {
  transform: scale(1.1);
}

.hero-quick-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-crimson);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 8px;
}

/* Track Cards Grid */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

/* Track Card Component */
.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  position: relative;
}

.track-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 42, 109, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 42, 109, 0.2);
}

.track-card.playing {
  border-color: var(--accent-crimson);
  box-shadow: 0 0 30px rgba(255, 42, 109, 0.35);
}

.track-artwork-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #15091c;
}

.track-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.track-card:hover .track-artwork {
  transform: scale(1.05);
}

.track-artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 4, 10, 0.1) 0%, rgba(8, 4, 10, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.track-card:hover .track-artwork-overlay {
  opacity: 1;
}

.track-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--accent-crimson-glow);
  transform: scale(0.92);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.track-card:hover .track-play-btn {
  transform: scale(1.05);
  box-shadow: 0 0 32px var(--accent-crimson-glow);
}

.track-play-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.track-badge-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 6, 16, 0.85);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-crimson);
  border: 1px solid rgba(255, 42, 109, 0.25);
}

.track-badge-duration {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.85);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.track-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.track-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.track-subtitle {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--accent-crimson);
  margin-bottom: 12px;
}

.track-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.track-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.track-status-pill {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-status-pill.free {
  color: #4ade80;
}

.track-status-pill.locked {
  color: #f43f5e;
}

.track-status-pill.unlocked {
  color: #a78bfa;
}

/* Locked Card Special Presentation */
.track-card.locked-card {
  border-color: rgba(157, 78, 221, 0.25);
}

.track-card.locked-card .track-artwork {
  filter: saturate(0.85) contrast(1.1);
}

.locked-overlay-shield {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(22, 9, 32, 0.9);
  border: 1px solid rgba(255, 42, 109, 0.4);
  color: #ff6b95;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 14px rgba(255, 42, 109, 0.3);
}

.locked-overlay-shield svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Inner Sanctum Special Section */
.sanctum-section {
  background: radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.12) 0%, rgba(8, 4, 10, 0.6) 100%),
              rgba(14, 7, 20, 0.85);
  border-top: 1px solid rgba(157, 78, 221, 0.25);
  border-bottom: 1px solid rgba(157, 78, 221, 0.25);
  padding: 70px 0 80px;
  margin: 40px 0;
  position: relative;
}

.sanctum-banner {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.12) 0%, rgba(157, 78, 221, 0.15) 100%);
  border: 1px solid rgba(255, 42, 109, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 0 35px rgba(255, 42, 109, 0.15);
}

.sanctum-banner-text h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.sanctum-banner-text p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 600px;
}

/* Voice Experience Guide / Sensory FAQ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 42, 109, 0.12);
  border: 1px solid rgba(255, 42, 109, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-crimson);
}

.guide-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.guide-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.guide-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Persistent Bottom Audio Player Bar */
.player-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 6, 15, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 42, 109, 0.25);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 42, 109, 0.15);
  z-index: 1000;
  padding: 12px 24px;
  transition: transform 0.3s ease;
}

.player-dock.hidden {
  transform: translateY(100%);
}

.player-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  align-items: center;
  gap: 24px;
}

/* Player Left: Current Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.player-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 42, 109, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.player-text {
  min-width: 0;
}

.player-track-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-artist {
  font-size: 0.8rem;
  color: var(--accent-crimson);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Player Center: Controls & Scrubber */
.player-controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-btn-secondary {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.1s ease;
}

.player-btn-secondary:hover {
  color: #fff;
  transform: scale(1.1);
}

.player-btn-secondary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.player-btn-primary {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px var(--accent-crimson-glow);
  transition: all 0.2s ease;
}

.player-btn-primary:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--accent-crimson-glow);
}

.player-btn-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Progress Scrubber */
.player-scrubber-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-time {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  width: 44px;
  text-align: center;
}

.player-progress-bar {
  flex: 1;
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: visible;
}

.player-progress-filled {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--accent-crimson);
}

.player-progress-thumb {
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 14px var(--accent-crimson);
}

/* Player Right: Audio Extras */
.player-controls-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.speed-badge-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-badge-btn:hover {
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--accent-crimson);
  color: #fff;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.volume-btn:hover {
  color: #fff;
}

.volume-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-crimson);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-crimson);
}

/* Auth Modal (Register / Login) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 7, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 42, 109, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 42, 109, 0.25);
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .auth-modal {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab-btn {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 42, 109, 0.3);
}

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

.auth-link-btn {
  background: none;
  border: none;
  padding: 4px 0 0;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
  transition: color 0.2s ease;
}

.noscript-banner {
  position: relative;
  z-index: 10000;
  margin: 0;
  padding: 14px 20px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.noscript-banner a {
  color: #fff;
  text-decoration: underline;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  color: var(--text-crimson);
}

.footer-legal {
  max-width: 780px;
  margin: 18px auto 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.footer-legal a {
  color: var(--text-crimson);
  text-decoration: underline;
}

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

.form-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-crimson);
  box-shadow: 0 0 12px rgba(255, 42, 109, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  display: none;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-size: 1rem;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 95px;
  right: 24px;
  background: rgba(23, 11, 31, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-crimson);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-crimson-glow);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast-notice.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Site Footer */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 70px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Wrap instead of pushing the page 3px wider than a 320px phone viewport. */
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
  /* Comfortable tap target (was 23px tall — under the 24px WCAG 2.5.8 floor). */
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 2px;
}

.footer-link:hover {
  color: var(--accent-crimson);
}

/* ==========================================================================
   Admin Section - Listener Analytics & User Tracking
   ========================================================================== */
.admin-nav-btn {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.25), rgba(255, 209, 102, 0.3));
  border: 1px solid rgba(255, 209, 102, 0.5);
  color: #ffd166;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.2);
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.4), rgba(255, 209, 102, 0.5));
  border-color: #ffd166;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.4);
  transform: translateY(-1px);
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-panel {
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 42, 109, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 42, 109, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-overlay.active .admin-panel {
  transform: translateY(0);
}

.admin-panel-header {
  padding: 24px 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 9, 23, 0.85);
}

.admin-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.admin-title-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.admin-title-text h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.admin-title-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.admin-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-panel-body {
  padding: 24px 30px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Overview Stat Cards */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  flex-shrink: 0;
}

.admin-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.admin-metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0.7;
}

.admin-metric-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.admin-metric-val {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.admin-metric-sub {
  font-size: 0.8rem;
  color: var(--accent-crimson);
}

/* Real-Time Pulse Indicator & Active Card */
.live-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

#admin-card-active.is-active {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.12);
}

#admin-card-active.is-active::after {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  opacity: 1;
}

#admin-card-active.is-active .admin-metric-val {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

/* Tabs */
.admin-nav-tabs {
  display: flex;
  /* Wrap instead of scrolling horizontally: the scrollbar was hidden, so any
     tab that did not fit was unreachable by mouse, and the tab labels were
     clipped at every viewport width. Wrapping keeps all five visible, and
     dropping overflow also restores the automatic minimum height that the
     90vh flex column was using to crush the strip. */
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  flex-shrink: 0;
}

.admin-tab {
  flex-shrink: 0;
  /* Never let a single label be wider than the strip: at very narrow widths the
     button shrinks and its text wraps instead of pushing the row sideways. */
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
  background: rgba(255, 42, 109, 0.15);
  border-color: rgba(255, 42, 109, 0.4);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 42, 109, 0.2);
}

/* Controls row (search, refresh) */
.admin-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.admin-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.admin-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 38px;
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.admin-search-input:focus {
  border-color: var(--accent-crimson);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 14px rgba(255, 42, 109, 0.2);
}

.admin-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  fill: var(--text-muted);
}

.admin-refresh-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.admin-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Data Table */
/* Data Table & Scrollable Views */
.admin-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  overflow-y: auto;
  max-height: 520px;
  position: relative;
  -webkit-overflow-scrolling: touch;
  /* Scroll containers lose their automatic minimum size, so this would
     otherwise collapse to a few pixels on short viewports. */
  flex-shrink: 0;
}

.admin-table-wrapper::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.admin-table-wrapper::-webkit-scrollbar-track {
  background: rgba(14, 6, 18, 0.7);
  border-radius: 4px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 109, 0.35);
  border-radius: 4px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 42, 109, 0.65);
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #15081d;
  padding: 13px 18px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Pagination Bar */
.admin-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(18, 8, 24, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.admin-pagination-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-pagination-info strong {
  color: #fff;
  font-weight: 600;
}

.admin-per-page-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-per-page-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.admin-per-page-select:focus,
.admin-per-page-select:hover {
  border-color: var(--accent-crimson);
}

.admin-per-page-select option {
  background: #1a0b22;
  color: #fff;
}

.admin-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-page-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-page-btn:hover:not(:disabled) {
  background: rgba(255, 42, 109, 0.15);
  border-color: rgba(255, 42, 109, 0.4);
  color: #fff;
}

.admin-page-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 42, 109, 0.4);
}

.admin-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-page-ellipsis {
  color: var(--text-muted);
  padding: 0 4px;
  font-size: 0.85rem;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 42, 109, 0.04);
}

.admin-user-cell {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-weight: 600;
  color: #fff;
}

.admin-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
}

.status-badge.verified {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-badge.unverified {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-badge.guest {
  background: rgba(157, 78, 221, 0.12);
  color: #c084fc;
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.duration-pill {
  font-weight: 600;
  color: #ffd166;
  font-variant-numeric: tabular-nums;
}

.btn-inspect-user {
  background: rgba(255, 42, 109, 0.12);
  border: 1px solid rgba(255, 42, 109, 0.3);
  color: var(--accent-crimson);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-inspect-user:hover {
  background: var(--accent-crimson);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-crimson-glow);
}

.admin-user-actions {
  white-space: nowrap;
}

.btn-delete-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-full);
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.btn-delete-user:hover {
  border-color: #f43f5e;
  background: #f43f5e;
  color: #fff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

.btn-delete-user svg {
  fill: currentColor;
}

/* User Inspector Detail Modal */
.user-drilldown-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.user-drilldown-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.user-drilldown-card {
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  background: #130a18;
  border: 1px solid rgba(255, 42, 109, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 30px rgba(255,42,109,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drilldown-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drilldown-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* IP Tracking & Intelligence Elements */
.ip-link-badge {
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid rgba(255, 42, 109, 0.25);
  color: #ff6594;
  font-family: monospace;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ip-link-badge:hover {
  background: var(--accent-crimson);
  color: #fff;
  border-color: var(--accent-crimson);
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.4);
}

.ip-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ip-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.ip-info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-crimson);
  opacity: 0.8;
}

.ip-info-box-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ip-info-box-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.ip-info-box-meta {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.ip-info-box-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.raw-ua-wrapper {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.raw-ua-wrapper:hover {
  white-space: normal;
  word-break: break-all;
  color: #ddd;
}

/* 18+ Age Verification Modal */
.age-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 11, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  /* Centring a taller-than-viewport card clips both ends and makes the top
     unreachable, so align to the start and let the auto margins centre it. */
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.age-modal-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(150deg, #180a20 0%, #0d0412 100%);
  border: 1px solid rgba(255, 42, 109, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 42, 109, 0.25);
  padding: 38px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: auto;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

.age-modal-overlay.active .age-modal-card {
  transform: translateY(0) scale(1);
}

.age-badge-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--accent-crimson);
  background: rgba(255, 42, 109, 0.14);
  box-shadow: 0 0 25px rgba(255, 42, 109, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 auto 20px;
}

.age-modal-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.age-modal-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-crimson);
  margin-bottom: 16px;
}

.age-modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.age-modal-affirm {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 26px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.age-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-confirm-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 25px var(--accent-crimson-glow);
}

.age-exit-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.age-exit-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Header Search Button & Dropdown Drawer */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 42, 109, 0.28);
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-search-btn:hover {
  background: rgba(255, 42, 109, 0.16);
  border-color: var(--accent-crimson);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 42, 109, 0.35);
}

.nav-search-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px var(--accent-crimson-glow);
}

.nav-search-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.header-search-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  /* Opaque: at 96% the hero headline showed through the results list and made
     them hard to read. An opaque panel also drops the per-frame blur cost. */
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255, 42, 109, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.88), 0 0 40px rgba(255, 42, 109, 0.15);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 95;
}

.header-search-drawer.active {
  max-height: 520px;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

.search-drawer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 24px 28px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 42, 109, 0.4);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.15);
  transition: all 0.25s ease;
}

.search-input-box:focus-within {
  border-color: var(--accent-crimson);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(255, 42, 109, 0.35);
}

.search-box-icon {
  stroke: var(--accent-crimson);
  flex-shrink: 0;
}

.search-box-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
}

.search-box-input::placeholder {
  color: var(--text-muted);
}

.search-box-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-box-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.search-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-tags-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.search-tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tag-chip:hover {
  background: rgba(255, 42, 109, 0.15);
  border-color: rgba(255, 42, 109, 0.4);
  color: #fff;
}

.search-results-panel {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.search-status-bar {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.22s ease;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(255, 42, 109, 0.08);
  border-color: rgba(255, 42, 109, 0.3);
  transform: translateX(4px);
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 42, 109, 0.25);
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.search-result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-badge {
  background: rgba(255, 42, 109, 0.14);
  color: var(--accent-crimson);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.search-result-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-crimson-glow);
}

.search-empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Admin Search Queries Badges */
.query-pill {
  display: inline-block;
  background: rgba(255, 42, 109, 0.12);
  border: 1px solid rgba(255, 42, 109, 0.3);
  color: #fff;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.86rem;
}

.results-count-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.results-count-badge.has-results {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.results-count-badge.zero-results {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Media Card Author Enhancements */
.hero-media-card {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-media-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-crimson);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 42, 109, 0.45);
}

.hero-author-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(14, 6, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 42, 109, 0.4);
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.25);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
  z-index: 2;
}

.hero-media-card:hover .hero-author-pill {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 0 20px var(--accent-crimson-glow);
  transform: scale(1.04);
}

.hero-author-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-crimson);
  box-shadow: 0 0 8px var(--accent-crimson);
}

.hero-media-card:hover .hero-author-dot {
  background: #fff;
}

.hero-author-sublabel {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-crimson);
  margin-bottom: 2px;
}

/* Dedicated Voice Artist Profile Page */
.author-page-section {
  padding: 30px 0 80px;
  animation: fadeInAuthor 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInAuthor {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.author-back-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.author-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.author-back-btn:hover {
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--accent-crimson);
  color: #fff;
  transform: translateX(-4px);
}

.author-crumb-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-crimson);
  background: rgba(255, 42, 109, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 42, 109, 0.25);
}

.author-profile-card {
  display: flex;
  align-items: center;
  gap: 36px;
  background: linear-gradient(135deg, rgba(22, 9, 28, 0.85) 0%, rgba(12, 4, 16, 0.95) 100%);
  border: 1px solid rgba(255, 42, 109, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(255, 42, 109, 0.18);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.author-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

.author-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.author-profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-crimson);
  box-shadow: 0 0 35px rgba(255, 42, 109, 0.45);
}

.author-verified-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-crimson-glow);
  border: 2px solid #0d0412;
}

.author-profile-details {
  flex: 1;
  min-width: 0;
}

.author-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-crimson);
  margin-bottom: 6px;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.author-bio {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 20px;
}

.author-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.author-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #fff;
  font-weight: 500;
}

.author-meta-pill.highlight {
  background: rgba(255, 42, 109, 0.12);
  border-color: rgba(255, 42, 109, 0.35);
  color: #ffd166;
}

.author-recordings-header {
  margin-bottom: 26px;
}

.author-others-section {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.author-others-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
}

.authors-browse-grid, .authors-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.author-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 109, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 42, 109, 0.25);
}

.author-card:hover::before {
  background: var(--accent-gradient);
}

.author-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-crimson);
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.35);
  transition: transform 0.3s ease;
}

.author-card:hover .author-card-avatar {
  transform: scale(1.08);
}

.author-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.author-card-role {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-crimson);
  margin-bottom: 10px;
}

.author-card-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
  flex-grow: 1;
}

.author-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.author-card-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-crimson);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.author-card:hover .author-card-action {
  transform: translateX(4px);
  color: #fff;
}

/* Track Card Author attribution */
.track-author-line {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.track-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-crimson);
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 42, 109, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 42, 109, 0.2);
}

.track-author-link:hover {
  background: rgba(255, 42, 109, 0.2);
  color: #fff;
  border-color: var(--accent-crimson);
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.35);
}

.track-author-avatar-tiny {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-crimson);
}

/* ---------------------------------------------------------------------------
   Reserve space for the fixed player bar, but only on pages that include one
   (/about has no dock, so it must not inherit a 110–172px dead gap).
   --------------------------------------------------------------------------- */
body:has(#player-dock) {
  padding-bottom: 110px;
}

/* Nothing playing: the dock is translated off-screen, so reclaim the space. */
body:has(#player-dock.hidden) {
  padding-bottom: 32px;
}

/* ===========================================================================
   Responsive overrides — everything from here down runs AFTER every base rule
   in this file, so a declaration here wins any equal-specificity tie and no
   override can be silently shadowed. Keep it that way:

     - put new responsive rules BELOW this banner, never above it;
     - never add base rules after this banner (append them above it instead) —
       a base rule down here would re-shadow the overrides above it.

   `tests/test_css_cascade.py` fails the build if that invariant is broken.
   =========================================================================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Reclaim the header width the nav needs before it starts overflowing. */
  .brand-badge {
    display: none;
  }
  .hero-title {
    font-size: 3rem;
  }
  .player-grid {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  /* Explicit rows: without them auto-placement pushes the speed badge into a
     third row below the scrubber, making the dock ~50px taller than needed. */
  .player-track-info {
    grid-column: 1;
    grid-row: 1;
  }
  .player-controls-right {
    grid-column: 2;
    grid-row: 1;
  }
  .player-controls-center {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 120px;
  }
  .hero-section {
    padding: 34px 0 44px;
  }
  .hero-content {
    gap: 18px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.6;
  }
  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 5px 12px;
    letter-spacing: 0.05em;
  }
  .header-inner {
    padding: 12px 14px;
  }
  .brand-title {
    font-size: 1.3rem;
  }
  .nav-auth-actions {
    gap: 8px;
  }
  .nav-auth-actions .btn {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  /* Icon-only search button: the label was the widest piece of the header. */
  .nav-search-text {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .tracks-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .player-dock {
    padding: 10px 16px;
  }
  .volume-container {
    display: none;
  }
}

@media (max-width: 860px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-modal-overlay,
  .user-drilldown-modal,
  .ip-drilldown-modal {
    padding: 8px 6px;
  }

  .admin-panel,
  .user-drilldown-card,
  .ip-drilldown-card {
    max-height: 94vh;
    border-radius: var(--radius-md);
  }

  .admin-panel-header,
  .drilldown-header {
    padding: 14px 16px;
  }

  .admin-title-text h2 {
    font-size: 1.25rem;
  }

  .admin-title-text p {
    font-size: 0.76rem;
  }

  .admin-panel-body,
  .drilldown-body {
    padding: 14px 12px;
    gap: 16px;
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .admin-metric-card {
    padding: 12px 14px;
    gap: 4px;
  }

  .admin-metric-label {
    font-size: 0.68rem;
  }

  .admin-metric-val {
    font-size: 1.45rem;
  }

  .admin-metric-sub {
    font-size: 0.72rem;
  }

  .admin-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .admin-search-wrapper {
    max-width: 100%;
  }

  .admin-refresh-btn {
    justify-content: center;
    width: 100%;
    padding: 9px 14px;
  }

  .admin-pagination-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .admin-pagination-left {
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .admin-pagination-controls {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .ip-intelligence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .author-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }
  .author-meta-badges {
    justify-content: center;
  }
  .author-name {
    font-size: 1.7rem;
  }
  .hero-author-pill {
    top: auto;
    bottom: 70px;
    right: 14px;
    font-size: 0.72rem;
  }
}




/* ---------------------------------------------------------------------------
   Age gate compaction (kept last on purpose: the base .age-modal-* rules are
   declared above these breakpoints, so earlier overrides would lose the cascade)
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .age-modal-card {
    padding: 24px 20px 22px;
  }
  .age-badge-icon {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
    margin-bottom: 14px;
  }
  .age-modal-title {
    font-size: 1.55rem;
  }
  .age-modal-subtitle {
    font-size: 0.88rem;
    margin-bottom: 12px;
  }
  .age-modal-desc {
    font-size: 0.85rem;
  }
  .age-modal-affirm {
    font-size: 0.76rem;
    padding: 8px 12px;
    margin-bottom: 18px;
  }
  .age-confirm-btn {
    padding: 13px 18px;
  }
}

@media (max-height: 700px) {
  .age-modal-card {
    padding: 22px 22px 20px;
  }
  .age-badge-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .age-modal-title {
    font-size: 1.5rem;
  }
  .age-modal-desc,
  .age-modal-subtitle {
    margin-bottom: 10px;
  }
  .age-modal-affirm {
    margin-bottom: 16px;
  }
}

/* Search results on phones: give the title room by dropping the category pill
   and collapsing the Listen button to its icon (it keeps its aria-label). */
@media (max-width: 640px) {
  .search-drawer-inner {
    padding: 16px 14px 20px;
  }
  .search-result-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .search-result-left {
    gap: 10px;
  }
  .search-result-title {
    font-size: 0.9rem;
  }
  .search-result-badge {
    display: none;
  }
  .search-result-action {
    padding: 8px 10px;
  }
  .search-result-action span {
    display: none;
  }
  .search-tag-chip {
    font-size: 0.74rem;
    padding: 3px 10px;
  }
  .search-box-input {
    font-size: 1rem;
  }
}

@media (max-width: 980px) {
  /* The dock stacks to two rows here and is ~153px tall. */
  body:has(#player-dock:not(.hidden)) {
    padding-bottom: 172px;
  }
}

/* Icon-only search button on phones: give it a squarer, taller tap target now
   that the "Search" label is hidden. Must live here — the base .nav-search-btn
   rule is declared further up than the first ≤640 block, so an override placed
   there would lose the cascade. */
@media (max-width: 640px) {
  .nav-search-btn {
    padding: 9px 11px;
  }
}
