/*
Theme Name: Underground & Groovy
Description: Dark elegant theme for Deep House & Organic House radio - No ads, pure vibes
Version: 1.0
Author: Underground & Groovy
*/

/* Google Font for A/B test on section titles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');

/* Webfont: UG-Display (placed in assets/fonts/) */
@font-face {
  font-family: 'UG-Display';
  src: url('assets/fonts/police.woff2') format('woff2'),
       url('assets/fonts/police.woff') format('woff'),
       url('police.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Utility class to apply the display font on demand */
.ug-display-title {
  font-family: 'UG-Display', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 400;
}

/* Apply UG-Display automatically to hero and section titles */
h1.hero-title,
.hero h1,
.section-title {
  font-family: 'UG-Display', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em; /* slightly less to fit long headings */
  font-weight: 400;
}

/* Support the Underground */
.donation-section {
    position: relative;
    /* Subtle dark background to occlude global clouds behind this section */
    background: rgba(8, 10, 12, 0.88);
}

@media (max-width: 680px) {
  .donation-section { background: rgba(8,10,12,0.9); }
}

/* Reset complet */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    list-style: none;
}

/* Force each partner to occupy exactly one column */
.partners-grid > * {
    grid-column: span 1;
}

.partners-section {
    position: relative;
    padding: 40px 0 60px; /* tighter top space to reduce gap after donation */
    background: transparent;
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* exactly 2 columns */
    grid-auto-flow: row dense;     /* fill rows strictly top-to-bottom */
    grid-auto-columns: 1fr;        /* any auto column stays 1fr */
    gap: 24px;
    position: relative;
    background:
      radial-gradient(120% 120% at 10% 10%, rgba(20, 35, 55, 0.04), transparent 55%),
      radial-gradient(120% 120% at 90% 90%, rgba(35, 20, 55, 0.028), transparent 55%),
      linear-gradient(180deg, rgba(16,16,24,0.12), rgba(10,10,16,0.12));
    border: 1px solid rgba(255, 214, 10, 0.16);
    border-radius: 18px;
    padding: 16px;
    box-shadow:
      0 10px 24px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Override decorative corners: use inner gold border frame */
.partners-section .partners-grid::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  pointer-events: none;
  background: none;
  border: 1px solid rgba(255, 214, 10, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 10px rgba(255, 214, 10, 0.22),
    0 0 0 1px rgba(255, 214, 10, 0.10);
}

/* Keep 2 columns even on small screens */
@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Final hard override: ensure partners grid is always 2 columns */
.partners-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  grid-auto-flow: row dense !important;
}

/* Strong override to counter gallery.css: force strict 2 x N layout */
.partners-section .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Remove any default border coming from gallery.css inside partners section */
.partners-section .partner-item {
    border: 0 !important;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0; /* avoid overflow creating phantom columns */
    padding: 10px;
    min-height: 200px; /* larger to host bigger logos */
    background: transparent;
    overflow: hidden; /* clip any accidental overflow */
}

.partner-logo {
    width: 250px;          /* width-based sizing as requested */
    height: auto;          /* keep aspect ratio */
    max-width: 100%;       /* prevent overflow in narrow cells */
    object-fit: contain;
    margin-bottom: 10px;
    filter: brightness(0.9) drop-shadow(0 2px 8px rgba(0,0,0,0.35));
    transition: filter 0.3s ease;
    position: relative; 
    display: inline-block;
}

.partner-name { display: none; }

/* Override any small defaults (e.g., gallery.css) ONLY for partners section */
.partners-section .partner-logo {
    width: 250px !important;   /* ensure same sizing inside partners section */
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Responsive sizing for partner logos and items */
@media (max-width: 480px) {
  .partners-section .partner-logo { width: 220px !important; height: auto !important; }
  .partner-item { min-height: 170px; padding: 8px; }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .partners-section .partner-logo { width: 250px !important; height: auto !important; }
  .partner-item { min-height: 200px; padding: 10px; }
}

@media (min-width: 1025px) {
  .partners-section .partner-logo { width: 300px !important; height: auto !important; }
  .partner-item { min-height: 260px; }
}

/* Dune-like palette */
:root {
    --ug-bg-900: #0a0a0f;
    --ug-bg-800: #11111a;
    --ug-line: rgba(100, 181, 246, 0.14); /* blue line */
    --ug-gold: #d4af37; /* gold accent */
    --ug-gold-soft: rgba(212, 175, 55, 0.22);
    --ug-gold-glow: rgba(212, 175, 55, 0.35);
    --ug-section-bg: linear-gradient(to bottom, rgba(15, 20, 30, 0.9), rgba(10, 15, 20, 0.9));
    --section-gap: 44px;
    --title-gap: 24px;
    --title-top-gap: 24px;        /* distance entre le titre et le conteneur au-dessus (par défaut) */
    --title-top-gap-hero: 16px;   /* exception: dans la hero (après "DEEP VIBES, NO ADS") */
}

@media (max-width: 768px) {
  :root { --section-gap: 28px; --title-gap: 18px; --title-top-gap: 18px; --title-top-gap-hero: 12px; }
}

/* Global site background: single unified background */
html, body {
    background: var(--ug-section-bg);
    min-height: 100%;
}

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Cinematic per-image effects */
.cinematic-section {
    position: relative;
    overflow: hidden;
}

.cinematic-container {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px; /* small side padding */
}

.cinematic-image {
    position: relative;
    width: 100%;
    max-width: 1160px; /* cap width */
    margin: 0 auto;    /* center */
    height: 55vh;
    max-height: 700px;
    overflow: hidden;
    --cin-duration: 8s; /* overriden by JS */
}

.cinematic-image .cinematic-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateZ(0);
    transition: opacity 800ms ease, transform 800ms ease;
    will-change: opacity, transform;
}

/* Slight horizontal bleed to hide side borders inside the container */
.cinematic-image .cinematic-frame {
    left: -2%;
    right: auto;
    width: 104%;
}

.cinematic-image .cinematic-frame.active {
    opacity: 1;
}

/* Soft halo/glow on cinematic images */
.cinematic-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 140px rgba(0, 0, 0, 0.55),
        inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.cinematic-image .cinematic-frame.active {
    /* extra subtle glow that respects container clipping */
    filter: saturate(105%);
}

/* Effect: Ken Burns */
.cinematic-image .cinematic-frame.effect-kenburns.active {
    animation: cinematicKenburns var(--cin-duration) ease-in-out infinite;
}

/* Effect: Zoom */
.cinematic-image .cinematic-frame.effect-zoom.active {
    animation: cinematicZoom var(--cin-duration) ease-in-out infinite;
}

@keyframes cinematicZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Effect: Fade (handled by opacity, optional subtle pulse) */
.cinematic-image .cinematic-frame.effect-fade.active {
    animation: cinematicFadePulse calc(var(--cin-duration) * 1.5) ease-in-out infinite;
}

@keyframes cinematicFadePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* Effect: Slide (gentle drift) */
.cinematic-image .cinematic-frame.effect-slide.active {
    animation: cinematicSlide var(--cin-duration) linear infinite alternate;
}

@keyframes cinematicSlide {
    0% { transform: translateX(-1.5%); }
    100% { transform: translateX(1.5%); }
}

/* Reset des éléments HTML5 */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Reset des éléments de formulaire */
button, input, select, textarea {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 100%;
    vertical-align: baseline;
}

/* Reset des liens */
a {
    color: inherit;
    text-decoration: none;
}

a:active,
a:hover {
    outline: 0;
}

/* Reset des images */
img {
    border: 0;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Reset des tableaux */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset des bordures sur les images dans les liens */
img {
    border-style: none;
}

/* Reset des éléments de formulaire */
button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    appearance: button;
    font: inherit;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: 
        radial-gradient(ellipse at top, rgba(15, 15, 23, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(25, 35, 45, 0.8) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #151520 50%, #1a1a25 100%);
    color: #e8e8e8;
    line-height: 1.7;
    min-height: 100vh;
    font-weight: 300;
    letter-spacing: 0.3px;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-attachment: fixed;
}

/* Animation de fond ultra-moderne */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(64, 181, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(239, 83, 80, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(144, 202, 249, 0.02) 0%, transparent 50%);
    animation: morphBackground 20s ease-in-out infinite;
}

@keyframes morphBackground {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(64, 181, 246, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(239, 83, 80, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(144, 202, 249, 0.02) 0%, transparent 50%);
    }
    33% {
        background: 
            radial-gradient(circle at 70% 30%, rgba(64, 181, 246, 0.04) 0%, transparent 60%),
            radial-gradient(circle at 30% 70%, rgba(239, 83, 80, 0.03) 0%, transparent 60%),
            radial-gradient(circle at 60% 10%, rgba(144, 202, 249, 0.03) 0%, transparent 60%);
    }
    66% {
        background: 
            radial-gradient(circle at 10% 20%, rgba(64, 181, 246, 0.02) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(239, 83, 80, 0.04) 0%, transparent 50%),
            radial-gradient(circle at 20% 90%, rgba(144, 202, 249, 0.03) 0%, transparent 50%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    /* Frosted glass: transparent, blurred */
    background: rgba(5, 5, 15, 0.28) !important; /* subtle dark with alpha */
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important; /* Safari */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none !important;
    box-shadow: none !important;
    margin: 0;
}

@media (max-width: 480px) {
  header { padding: 8px 0; }
}

/* Keep sticky header below WordPress admin bar when logged in */
@media (min-width: 783px) {
  .admin-bar header { top: 32px; }
}
@media (max-width: 782px) {
  .admin-bar header { top: 46px; }
}

.header-content {
    display: flex;      
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 12px;
}

/* Primary navigation */
.main-nav { display: none; }
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: #534d4d;
    opacity: 1;
    padding: 8px 10px;
    position: relative;
    transition: color .2s ease, opacity .2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    /* Fallback for browsers without modern color() support */
    color: #D3C70C;
    /* Requested color */
    color: color(srgb 0.8279 0.7754 0.0459);
    opacity: 1;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    opacity: 0.8;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform: scaleX(1);
}

/* Hamburger button on the right */
.burger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 36px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--ug-gold-soft);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    margin-left: auto; /* push to the right end inside header-content */
    z-index: 200; /* ensure always clickable above header bg */
}
.burger-btn:hover { background: rgba(0,0,0,0.35); }
.burger-btn:active { transform: scale(0.98); }
.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #e5e7eb;
}

/* Off-canvas drawer */
.mobile-drawer {
    position: fixed;
    top: var(--drawer-top, 64px);
    right: 0;
    width: 260px; /* compact width to sit under burger */
    max-width: 86vw;
    height: auto; /* dropdown style under burger */
    max-height: calc(100vh - var(--drawer-top, 64px) - 20px);
    background: rgba(0,0,0,0.8); /* 80% black opacity per request */
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 120;
    padding: 0 10px 12px; /* no top padding so menu touches the button */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Fallbacks when backdrop-filter is unsupported */
@supports not (backdrop-filter: blur(1px)) {
  header {
    background: rgba(5, 5, 15, 0.85) !important;
  }
  .mobile-drawer {
    background: rgba(0, 0, 0, 0.9);
  }
  .audio-player {
    background: linear-gradient(180deg, rgba(20,20,28,0.95), rgba(10,10,16,0.95));
  }
}

.drawer-nav { display: flex; justify-content: center; }
.drawer-nav .drawer-list { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 0; }
.drawer-nav .drawer-list > li:first-child a { padding-top: 6px; }
.drawer-nav a {
    color: #ffffff;
    font-size: 16px;
    padding: 6px 4px; /* tighter vertical spacing */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start; /* align text start so dots line up */
    gap: 8px;
    text-align: left;
    width: 100%;
}
.drawer-nav a:hover {
    /* Fallback color for older engines */
    color: #D3C70C;
    /* Requested CSS Color 4 */
    color: color(srgb 0.8279 0.7754 0.0459);
}

/* Small dot/button on the left of each item */
.drawer-nav a::before {
    content: "";
    display: inline-block;
    width: 8px; /* fixed width keeps all dots aligned */
    height: 8px;
    border-radius: 50%;
    background: #D3C70C; /* fallback */
    background: color(srgb 0.8279 0.7754 0.0459);
    box-shadow: 0 0 6px rgba(211, 199, 12, 0.45);
    opacity: 0.9;
    transform: translateY(1px);
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.drawer-nav a:hover::before,
.drawer-nav a:focus::before {
    opacity: 1;
    transform: translateY(1px) scale(1.1);
    box-shadow: 0 0 8px rgba(211, 199, 12, 0.6);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0.6) 18px, rgba(0,0,0,0.6) 100%);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    top: var(--drawer-top, 64px);
}

/* Open state */
.drawer-open .mobile-drawer { transform: translateX(0); }
.drawer-open .drawer-overlay { display: block !important; }
body.drawer-open { overflow: hidden; }

/* Hidden attributes handled by [hidden] but ensure overlay hidden by default */
.drawer-overlay[hidden] { display: none; }
.mobile-drawer[hidden] { display: block; } /* keep layout for transform; JS toggles body class */

/* Admin bar compensation if needed */
@media (min-width: 783px) {
  .admin-bar .mobile-drawer { top: 32px; height: calc(100vh - 32px); }
}
@media (max-width: 782px) {
  .admin-bar .mobile-drawer { top: 46px; height: calc(100vh - 46px); }
}

/* Explicit override per user request: ensure drawer starts below header under admin bar */
.admin-bar .mobile-drawer {
  top: 64px !important;
  height: calc(100vh - 32px) !important;
}
.admin-bar .drawer-overlay {
  top: 64px !important;
}

/* Anchor offset so sections are not hidden behind sticky header */
.hero,
.content-section,
.recent-tracks,
.donation-section,
.partners-section {
    scroll-margin-top: 96px; /* header height */
}

@media (max-width: 480px) {
  .hero,
  .content-section,
  .recent-tracks,
  .donation-section,
  .partners-section { scroll-margin-top: 88px; }
}

/* Increase offset when admin bar is present */
@media (min-width: 783px) {
  .admin-bar .hero,
  .admin-bar .content-section,
  .admin-bar .recent-tracks,
  .admin-bar .donation-section,
  .admin-bar .partners-section { scroll-margin-top: 128px; }
}
@media (max-width: 782px) {
  .admin-bar .hero,
  .admin-bar .content-section,
  .admin-bar .recent-tracks,
  .admin-bar .donation-section,
  .admin-bar .partners-section { scroll-margin-top: 142px; }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;
}

/* Site logo effects: shimmer on hover + subtle continuous glow */
.logo-container .custom-logo-link { position: relative; display: inline-block; }
.logo-container .custom-logo-link img {
  animation: none; /* disable continuous glow animation */
  transition: filter .25s ease;
  will-change: filter;
  filter: brightness(1.02) drop-shadow(0 0 16px rgba(100, 181, 246, 0.28));
}
.logo-container .custom-logo-link:hover img { transform: none; }

.logo-container .custom-logo-link::after {
  content: none; /* remove shimmer overlay */
}

.logo-container .custom-logo-link:hover::after { opacity: 0; transform: none; }

.logo-img {
    width: 360px;
    height: 35px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.3));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 25px rgba(100, 181, 246, 0.5));
    transform: scale(1.02);
}

.slogan {
    display: none !important; /* ensure hidden if legacy markup appears */
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #c5c5c5;
    opacity: 0.8;
    text-transform: uppercase;
    margin-left: 2px;
    margin-bottom: 3px;
}

.radio-desc {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #a0a0a0;
    opacity: 0.7;
    margin-left: 2px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 50px;
    margin: 0;
    background: transparent; /* inherit global site background */
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 100;
    margin-bottom: 30px;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 30%, #90caf9 60%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(144, 202, 249, 0.4);
    position: relative;
}

/* Removed the decorative line above the main heading */

.hero p {
    font-size: 1.4rem;
    font-weight: 300;
    color: #c5c5c5;
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Narrow hero welcome text container */
.welcome-content {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

/* Smaller text inside welcome content than default hero paragraphs */
.hero .welcome-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (max-width: 560px) {
  .welcome-content { max-width: 92%; margin-bottom: 32px; }
  .hero .welcome-content p { font-size: 1rem; line-height: 1.65; }
}

/* Hero Highlights (badges under hero text) */
.hero-highlights {
  max-width: 960px;
  width: 100%;
  margin: 20px auto 0;
  padding: 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start; /* ensure all cards start at the same top line */
}

.hero-highlights .highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(20,20,28,0.75), rgba(10,10,16,0.75));
  border: 1px solid var(--ug-gold-soft);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
  /* Let height grow naturally with content */
}

/* WHY cards: enforce single outer border only (no inner frames) */
.hero-highlights .highlight::before,
.hero-highlights .highlight::after {
  content: none !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.hero-highlights .highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.5), inset 0 0 0 1px var(--ug-gold-glow);
  background: linear-gradient(180deg, rgba(22,22,30,0.8), rgba(12,12,18,0.8));
}

/* Icon pill */
.hero-highlights .highlight .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ug-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  font-size: 22px;
  line-height: 1;
}

/* Refined text layout inside highlight */
.hero-highlights .highlight .text {
  max-width: 36ch; /* comfortable reading measure */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-wrap: balance;
}

.hero-highlights .highlight .text strong {
  color: #eaeaea;
  font-weight: 650;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  display: block;        /* normalize line-box behavior */
  margin-top: 0;         /* remove any inconsistent top spacing */
  margin-bottom: 6px;    /* consistent gap before the first paragraph */
}

/* Paragraphs inside highlight text */
.hero-highlights .highlight .text p {
  margin: 2px 0;
  color: #c5c5c5;
  line-height: 1.55;
  font-size: 0.88rem;
  letter-spacing: 0.15px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  hyphens: auto;
}

/* subtle separators between lines */
.hero-highlights .highlight .text p + p {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 6px;
}

/* Slightly reduce text size on small screens */
@media (max-width: 560px) {
  .hero-highlights .highlight .text { max-width: 32ch; }
  .hero-highlights .highlight .text p { font-size: 0.82rem; line-height: 1.5; }
}

@media (max-width: 900px) {
  .hero-highlights { grid-template-columns: repeat(2, 1fr); padding: 0 10px; gap: 12px; }
}

@media (max-width: 560px) {
  .hero-highlights { grid-template-columns: 1fr; gap: 10px; }
  .hero-highlights .highlight { padding: 14px; }
  .hero-highlights .highlight .icon { width: 38px; height: 38px; font-size: 20px; }
}

/* Audio Player */
.audio-player {
    background: linear-gradient(180deg, rgba(20,20,28,0.85), rgba(10,10,16,0.85));
    border-radius: 14px;
    padding: 36px;
    margin: 30px auto;
    max-width: 1200px;
    backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid var(--ug-gold-soft);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
    width: calc(100% - 40px);
}

.audio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--ug-gold-glow) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.player-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stream-btn {
    background: linear-gradient(180deg, rgba(10,10,16,0.6), rgba(10,10,16,0.2));
    color: #e8e8e8;
    border: 1px solid var(--ug-gold-soft);
    padding: 16px 34px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 24px rgba(0,0,0,0.45);
}

.stream-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s;
}

.stream-btn:hover::before {
    left: 100%;
}

.stream-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.55), inset 0 0 0 1px var(--ug-gold-glow);
}

.stream-btn.hq {
    border-color: rgba(100, 181, 246, 0.55);
    color: #ffe6b3;
}

.stream-btn.hq:hover {
    box-shadow: 
        0 15px 35px rgba(239, 83, 80, 0.4),
        0 5px 15px rgba(239, 83, 80, 0.2);
}

/* Section URLs des streams */
.stream-urls-section {
    padding: 36px 0;
    margin: 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Decorative frame corners for major cards */
.audio-player::after,
.donation-card::after,
.partners-grid::after,
.tracks-list::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, var(--ug-gold-soft), transparent 20%) top left / 120px 1px no-repeat,
      linear-gradient(180deg, var(--ug-gold-soft), transparent 20%) top left / 1px 120px no-repeat,
      linear-gradient(270deg, var(--ug-gold-soft), transparent 20%) top right / 120px 1px no-repeat,
      linear-gradient(180deg, var(--ug-gold-soft), transparent 20%) top right / 1px 120px no-repeat,
      linear-gradient(90deg, var(--ug-gold-soft), transparent 20%) bottom left / 120px 1px no-repeat,
      linear-gradient(0deg, var(--ug-gold-soft), transparent 20%) bottom left / 1px 120px no-repeat,
      linear-gradient(270deg, var(--ug-gold-soft), transparent 20%) bottom right / 120px 1px no-repeat,
      linear-gradient(0deg, var(--ug-gold-soft), transparent 20%) bottom right / 1px 120px no-repeat;
    opacity: 0.7;
}

.stream-urls-section .urls-title {
    color: #90caf9;
    font-size: 2.8rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #90caf9 0%, #64b5f6 50%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.stream-url-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stream-url-item:hover {
    background: rgba(100, 181, 246, 0.1);
}

.copy-btn {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #1e88e5 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(66, 165, 245, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s;
}

.copy-btn:hover::before {
    left: 100%;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 50%, #1565c0 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(66, 165, 245, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.url-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.url-name {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.url-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 10px;
    color: #b0b0b0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.url-input:hover,
.url-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(100, 181, 246, 0.5);
    color: #e0e0e0;
    outline: none;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background: transparent;
}

.section-title {
    font-size: 2.8rem;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; /* A/B test: Montserrat Light */
    font-weight: 300;
    text-align: center;
    margin-bottom: var(--title-gap);
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #90caf9 0%, #64b5f6 50%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-top: var(--title-top-gap);
}

.hero .section-title { margin-top: var(--title-top-gap-hero); }

/* Responsive: tighter vertical rhythm on mobile/tablet */
@media (max-width: 900px) {
  .partners-section,
  .stream-urls-section,
  .content-section,
  .recent-tracks,
  .donation-section { padding: 44px 0; }
  .hero { padding: 50px 0 40px; }
}

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 320px));
    gap: 24px;
    justify-content: center; /* center the 2 columns grid */
    justify-items: center;
}

.feature-card {
    background: linear-gradient(180deg, rgba(20,20,28,0.75), rgba(10,10,16,0.75));
    border-radius: 12px;
    border: 1px solid var(--ug-gold-soft);
    padding: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1; /* make perfect squares */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* center content inside square */
    text-align: center;
}

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--ug-gold-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Recent Tracks Section */
.recent-tracks {
    /* tighter vertical padding; spacing between sections handled by margin via --section-gap */
    padding: 16px 0 0; /* bottom = 0 to remove extra gap under the list */
    margin: 0;
    background: transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-top: var(--section-gap);
}

.recent-tracks .section-title { margin-bottom: var(--title-gap); }

.recent-tracks .tracks-list { margin-bottom: 0; }

/* Narrow container for compact list */
.recent-tracks > .container {
    max-width: 1100px; /* widen so the section title has same visual presence as others */
    margin: 0 auto;
    padding: 0 12px; /* no vertical padding to keep section spacing consistent */
}

.recent-tracks .tracks-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 700px; /* keep the list compact */
    margin: 0 auto;   /* center the compact list under the wide title */
    background: linear-gradient(180deg, rgba(20,20,28,0.75), rgba(10,10,16,0.75));
    border: 1px solid var(--ug-gold-soft);
    border-radius: 12px;
    overflow: hidden;
}

.recent-tracks .track-card {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    position: relative;
    overflow: visible;
}

.recent-tracks .track-card:hover { box-shadow: none; }

/* subtle separators between rows inside the unified list */
.recent-tracks .track-card + .track-card { border-top: 1px solid rgba(255,255,255,0.06); }

.recent-tracks .track-left { display: flex; align-items: center; gap: 10px; }

.recent-tracks .track-rank {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(127, 209, 185, 0.12);
    color: #7fd1b9; font-weight: 700;
}

.recent-tracks .track-art { width: 34px; height: 34px; border-radius: 8px; overflow: visible; background: rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; position: relative; }

.recent-tracks .track-art-img { width: 34px; height: 34px; object-fit: cover; display: block; border-radius: 8px; transition: transform .18s ease, box-shadow .18s ease; transform-origin: center; }

/* Hover enlarge the cover slightly without shifting layout */
.recent-tracks .track-art:hover .track-art-img {
    transform: scale(1.6);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
    z-index: 2;
}

.recent-tracks .track-art-placeholder { color:#a9ffef; font-weight:700; font-size: .95rem; }

.recent-tracks .track-center { overflow: hidden; }

.recent-tracks .track-artist { font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: .95rem; }

.recent-tracks .track-title { opacity: 0.85; font-size: 0.9rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

.recent-tracks .track-right { font-variant-numeric: tabular-nums; opacity: 0.85; justify-self: end; font-size: .95rem; }

@media (max-width: 540px) {
  .recent-tracks .tracks-list { grid-template-columns: 1fr; }
  .recent-tracks .track-card { grid-template-columns: auto 1fr; padding: 10px; }
  .recent-tracks .track-art, .recent-tracks .track-art-img { width: 32px; height: 32px; }
  /* Hide timer/right column on mobile */
  .recent-tracks .track-right { display: none; }
  /* Reduce text sizes for better fit */
  .recent-tracks .track-artist { font-size: 0.88rem; }
  .recent-tracks .track-title { font-size: 0.82rem; }
}

/* Donation Section */
.donation-section {
    padding: 60px 0 40px; /* tighter bottom space to reduce gap before partners */
    margin: 0;
    background: transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-top: var(--section-gap);
}

/* Ensure extra-tight junction specifically when Donation is followed by Partners */
.donation-section + .partners-section { padding-top: 36px; }

@media (max-width: 900px) {
  .donation-section { padding-bottom: 32px; }
  .donation-section + .partners-section { padding-top: 30px; }
}

.donation-section > .container {
    position: relative;
    max-width: 1100px;
    padding: 0; /* keep containers free of vertical padding */
    margin: 0 auto;
}

/* Card containing the donation text and buttons (title sits outside) */
.donation-section .donation-card {
    margin-top: 10px;
    padding: 42px 36px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(20,20,28,0.8), rgba(10,10,16,0.8));
    border: 1px solid var(--ug-gold-soft);
    padding: 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    text-align: center;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.donation-section .section-title { text-align: center; margin-bottom: var(--title-gap); }

.donation-section .donation-text {
    grid-area: text;
    color: #d9fffa;
    max-width: 760px;
    margin: 0 auto;
    opacity: 0.9;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 30px;
}

.donation-card .donation-buttons {
    grid-area: cta;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-content: flex-start;
}

/* Styled donation anchors used in index.php (e.g. PayPal, Coffee) */
.donation-button {
    background: linear-gradient(180deg, rgba(10,10,16,0.6), rgba(10,10,16,0.2));
    color: #f7f3e5;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 213, 79, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.donation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.5), inset 0 0 0 1px var(--ug-gold-glow);
}

/* First button as primary CTA */
.donation-buttons .donation-button:first-child {
    background: linear-gradient(180deg, rgba(10,10,16,0.6), rgba(10,10,16,0.2));
    border-color: var(--ug-gold-soft);
    box-shadow: 0 12px 22px rgba(0,0,0,0.5), inset 0 -2px 0 rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 213, 79, 0.45);
}
.donation-buttons .donation-button:first-child:hover { filter: none; }

/* Accents by type */
.donation-button.paypal { border-color: rgba(255, 213, 79, 0.45); }
.donation-button.coffee { border-color: rgba(255, 213, 79, 0.45); }
.donation-button.heart { border-color: rgba(244, 143, 177, 0.45); }
.donation-button.dollar { border-color: rgba(129, 199, 132, 0.45); }
.donation-button.euro { border-color: rgba(144, 202, 249, 0.45); }

.donate-btn {
    background: linear-gradient(45deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .donation-section .donation-card {
    grid-template-columns: 1fr;
    grid-template-areas: 'text' 'cta';
    padding: 30px 22px;
  }
  .donation-section .section-title { text-align: center; }
  .donation-card .donation-buttons { justify-content: center; }
}

@media (max-width: 640px) {
  .donation-buttons { gap: 12px; }
  .donate-btn { width: 100%; justify-content: center; }
}

/* Footer */
footer {
    background: linear-gradient(to bottom, rgba(5, 10, 15, 0.95), rgba(0, 0, 0, 0.98));
    color: #aaa;
    padding: 60px 0 30px;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(100, 181, 246, 0.1);
}

.footer-content {
    color: #888;
}

/* Now Playing */
.now-playing {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.now-playing h3 {
    color: #4ecdc4;
    margin-bottom: 10px;
}

.track-info {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .player-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .stream-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Particules flottantes ultra-modernes */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* above clouds and body::before */
    overflow: hidden;
}

/* Subtle animated clouds background (very low visibility) */
.clouds-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* above body::before background, below particles */
    overflow: hidden;
}

.clouds-bg .cloud {
    position: absolute;
    opacity: 0.065; /* slightly more visible */
    filter: blur(1px) saturate(90%);
    will-change: transform, opacity;
    transform: translateZ(0);
    user-select: none;
}

/* Individual cloud placements (sizes reduced ~50%) */
.clouds-bg .cloud-1 { top: 12%; left: -30vw; width: clamp(140px, 16vw, 260px); animation: cloudXRight 72s linear infinite, cloudFloat 12s ease-in-out infinite; }
.clouds-bg .cloud-2 { top: 48%; left: 105vw;  width: clamp(120px, 14vw, 230px); animation: cloudXLeft 84s linear infinite,  cloudFloat 13s ease-in-out infinite; }
.clouds-bg .cloud-3 { top: 78%; left: -30vw; width: clamp(110px, 13vw, 210px); animation: cloudXRight 96s linear infinite, cloudFloat 14s ease-in-out infinite; }
/* Extra clouds for richer backdrop and opposite motion */
.clouds-bg .cloud-4 { top: 22%; left: 105vw;  width: clamp(130px, 15vw, 240px); animation: cloudXLeft 76s linear infinite,  cloudFloat 12.5s ease-in-out infinite; }
.clouds-bg .cloud-5 { top: 58%; left: -30vw; width: clamp(150px, 18vw, 280px); animation: cloudXRight 88s linear infinite, cloudFloat 15s ease-in-out infinite; }
.clouds-bg .cloud-6 { top: 34%; left: 105vw;  width: clamp(100px, 12vw, 200px); animation: cloudXLeft 102s linear infinite, cloudFloat 11.5s ease-in-out infinite; }

/* Vignette to softly fade edges so clouds never appear harsh at borders */
.clouds-bg .clouds-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 55%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
}

@keyframes cloudXRight {
    0%   { left: -30vw; }
    100% { left: 110vw; }
}
@keyframes cloudXLeft {
    0%   { left: 110vw; }
    100% { left: -30vw; }
}
@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (max-width: 680px) {
    .clouds-bg .cloud { opacity: 0.045; }
}

@media (prefers-reduced-motion: reduce) {
    /* Keep motion but make it very gentle instead of disabling it */
    .clouds-bg .cloud { animation-duration: 120s, 22s !important; }
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatDown 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(64, 181, 246, 0.6) 0%, transparent 70%);
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(144, 202, 249, 0.4) 0%, transparent 70%);
    animation-delay: 2s;
    animation-duration: 16s;
}

.particle:nth-child(3) {
    left: 30%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.3) 0%, transparent 70%);
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    left: 40%;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(64, 181, 246, 0.5) 0%, transparent 70%);
    animation-delay: 6s;
    animation-duration: 18s;
}

.particle:nth-child(5) {
    left: 50%;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(144, 202, 249, 0.3) 0%, transparent 70%);
    animation-delay: 8s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 60%;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.4) 0%, transparent 70%);
    animation-delay: 10s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(64, 181, 246, 0.3) 0%, transparent 70%);
    animation-delay: 1s;
    animation-duration: 15s;
}

.particle:nth-child(8) {
    left: 80%;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(144, 202, 249, 0.5) 0%, transparent 70%);
    animation-delay: 3s;
    animation-duration: 19s;
}

.particle:nth-child(9) {
    left: 90%;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.2) 0%, transparent 70%);
    animation-delay: 5s;
    animation-duration: 11s;
}

.particle:nth-child(10) {
    left: 15%;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(64, 181, 246, 0.4) 0%, transparent 70%);
    animation-delay: 7s;
    animation-duration: 16s;
}

@keyframes floatUp {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0px) rotate(0deg);
    }
    5% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(var(--x, 100px)) rotate(360deg);
    }
}

/* New: floatDown moves particles from top to bottom (requested direction) */
@keyframes floatDown {
    0% {
        top: -10px;
        opacity: 0;
        transform: translateX(0px) rotate(0deg);
    }
    5% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: translateX(var(--x, 100px)) rotate(360deg);
    }
}

/* Effet de grille subtile */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(64, 181, 246, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 181, 246, 0.01) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* Player Audio Fixe en bas */
.fixed-audio-player {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: rgba(5, 5, 15, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 9999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--ug-gold-soft);
    display: block !important;
    visibility: visible !important;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Remove background/border on track text inside the fixed player */
.fixed-audio-player .now-playing {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline;
}

.play-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(10,10,16,0.6), rgba(10,10,16,0.2));
    border: 1px solid #777; /* idle */
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.5);
}

/* Play button states */
.play-btn.is-idle {
    border-color: #777;
    box-shadow: none;
}

.play-btn.is-connecting {
    border-color: #ff4d4f; /* red */
    animation: ug-border-blink 1s ease-in-out infinite;
}

.play-btn.is-playing {
    border-color: #27ae60; /* green */
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.35);
    animation: none;
}

.play-btn.is-error {
    border-color: #ff7875; /* soft red */
    animation: ug-border-blink 1.2s ease-in-out infinite;
}

@keyframes ug-border-blink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.25);
    }
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.now-playing {
    font-size: 13px;
    font-weight: 400;
    color: #e8e8e8;
}

.stream-quality {
    font-size: 11px;
    color: #64b5f6;
    font-weight: 300;
}

.player-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 300px;
}

/* VU Meter */
.vu-meter {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    opacity: 0.0;
    transition: opacity .25s ease;
}
.vu-meter.is-active { opacity: 1; }
.vu-meter .bar {
    width: 6px;
    height: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #64b5f6, #27ae60);
    box-shadow: 0 0 6px rgba(100,181,246,.35);
    animation: none;
    transition: height 120ms ease;
    transform-origin: bottom;
}
.vu-meter .bar:nth-child(1)  { animation-delay: 0s; }
.vu-meter .bar:nth-child(2)  { animation-delay: .08s; }
.vu-meter .bar:nth-child(3)  { animation-delay: .16s; }
.vu-meter .bar:nth-child(4)  { animation-delay: .24s; }
.vu-meter .bar:nth-child(5)  { animation-delay: .32s; }
.vu-meter .bar:nth-child(6)  { animation-delay: .40s; }
.vu-meter .bar:nth-child(7)  { animation-delay: .48s; }
.vu-meter .bar:nth-child(8)  { animation-delay: .56s; }
.vu-meter .bar:nth-child(9)  { animation-delay: .64s; }
.vu-meter .bar:nth-child(10) { animation-delay: .72s; }

@keyframes vuPulse {
    0%, 100% { height: 4px;   filter: brightness(0.9); }
    50%      { height: 18px;  filter: brightness(1.15); }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-icon {
    font-size: 16px;
    opacity: 0.9;
}

.volume-slider {
    width: 90px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #64b5f6;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(100, 181, 246, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #64b5f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(100, 181, 246, 0.3);
}

.player-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quality-btn {
    padding: 6px 10px;
    border: 1px solid var(--ug-gold-soft);
    background: linear-gradient(180deg, rgba(10,10,16,0.6), rgba(10,10,16,0.2));
    color: #e8e8e8;
    font-size: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
}

.quality-btn.active {
    border-color: var(--ug-gold-glow);
    box-shadow: 0 0 0 1px var(--ug-gold-glow) inset;
    color: #ffe6b3;
}

/* Section cinématique */
.cinematic-section {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: visible;
    margin: 40px 0; /* espace autour */
    padding: 0 20px; /* respiration latérale */
}

.cinematic-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 690px; /* limite la largeur */
    margin: 0 auto; /* centre le bloc */
    border-radius: 16px;
    overflow: hidden; /* masque l'image arrondie */
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    perspective: 1000px; /* pour effets flip 3D */
    background-color: #000000;
}

.cinematic-overlay-top,
.cinematic-overlay-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 64px; /* letterbox bars */
    z-index: 10;
    pointer-events: none;
}

.cinematic-overlay-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0) 100%);
}

.cinematic-overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0) 100%);
}

.cinematic-image {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    --cin-duration: 12s; /* valeur par défaut plus longue, surcharge possible en inline/JS */
}

.cinematic-image .cinematic-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.8s ease-in-out;
}

.cinematic-image .cinematic-frame.active {
    opacity: 1;
}

/* Variantes de transition choisies en admin */

.cinematic-image.transition-slide .cinematic-frame {
    transform: translateX(20px);
}
.cinematic-image.transition-slide .cinematic-frame.active {
    transform: translateX(0);
}

.cinematic-image.transition-zoom .cinematic-frame {
    animation: none;
}
.cinematic-image.transition-zoom .cinematic-frame.active {
    animation: cinematicZoom var(--cin-duration) ease-in-out infinite;
}

/* Effet Ken Burns */
.cinematic-image.transition-kenburns .cinematic-frame {
    animation: none;
}
.cinematic-image.transition-kenburns .cinematic-frame.active {
    animation: cinematicKenburns var(--cin-duration) ease-in-out infinite;
}

/* Effet Parallax (léger mouvement vertical) */
.cinematic-image.transition-parallax .cinematic-frame {
    animation: none;
}
.cinematic-image.transition-parallax .cinematic-frame.active {
    animation: cinematicParallax var(--cin-duration) ease-in-out infinite;
}

/* Effets Flip / Flip 3D */
.cinematic-image.transition-flip .cinematic-frame,
.cinematic-image.transition-flip3d .cinematic-frame {
    backface-visibility: hidden;
    transform: rotateY(90deg);
}
.cinematic-image.transition-flip .cinematic-frame.active,
.cinematic-image.transition-flip3d .cinematic-frame.active {
    transform: rotateY(0deg);
    /* Ajout d'un léger zoom pendant l'état actif */
    animation: cinematicFlipZoom var(--cin-duration) ease-in-out infinite;
}
.cinematic-image.transition-flip3d .cinematic-frame {
    transform-origin: center;
}

/* Keyframes complémentaires */
@keyframes cinematicKenburns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.06) translate(1%, 1%); }
    100% { transform: scale(1) translate(0, 0); }
}

@keyframes cinematicFlipZoom {
  0%   { transform: rotateY(0deg) scale(1); }
  50%  { transform: rotateY(0deg) scale(1.08); }
  100% { transform: rotateY(0deg) scale(1); }
}

@keyframes cinematicParallax {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* Keyframes complémentaires */
@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.zoom-effect {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    animation: cinematicZoom 20s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive cinématique */
@media (max-width: 768px) {
    .cinematic-section {
        height: 40vh;
    }
    
    .cinematic-overlay-top,
    .cinematic-overlay-bottom {
        height: 60px;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .player-center { display: none; }
    .player-right {
        flex-direction: row;
        gap: 6px;
    }
    .volume-slider {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .player-container {
        padding: 0 15px;
    }
    
    .player-center {
        max-width: 150px;
    }
    
    .volume-slider {
        width: 80px;
    }
    
    .player-info .now-playing {
        font-size: 12px;
    }
    
    .quality-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Streams Section (dedicated block above Recently Played) */
.streams-section {
  padding: 64px 0;
  background: transparent;
  margin-top: -40px;
}

.streams-section .section-title {
  font-size: 2.5rem;
  margin: 0 0 20px;
  background: linear-gradient(92deg, #2de2e6, #14b3ff 45%, #9ad5ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
  margin-top: var(--title-top-gap);
  text-align: center;
}

.streams-card {
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(20, 35, 55, 0.04), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(35, 20, 55, 0.028), transparent 55%),
    linear-gradient(180deg, rgba(16,16,24,0.164), rgba(10,10,16,0.164));
  border: 1px solid rgba(255, 214, 10, 0.18);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(255,255,255,0.02);
  padding: 24px 24px 22px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1; /* ensure the card stays above decorative elements */
}

/* Outer subtle border with soft glow */
.streams-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: none;             /* removed per request */
  box-shadow: none;         /* removed per request */
}

/* Inner fine border inset */
.streams-card::after {
  content: '';
  position: absolute;
  inset: 10px;                              /* inner gap */
  border-radius: 12px;                       /* rounded inner */
  pointer-events: none;
  border: 1px solid rgba(255, 214, 10, 0.55); /* gold accent */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 10px rgba(255, 214, 10, 0.22),       /* soft gold glow */
    0 0 0 1px rgba(255, 214, 10, 0.10);
}

/* Grid that wraps the url items, falls back to single column on small screens */
.streams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .streams-grid { grid-template-columns: 1fr 1fr; }
}

/* Recently Played: gold inner border around the tracks list */
.recent-tracks .tracks-list {
  position: relative;
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(20, 35, 55, 0.04), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(35, 20, 55, 0.028), transparent 55%),
    linear-gradient(180deg, rgba(16,16,24,0.12), rgba(10,10,16,0.12));
  border: 1px solid rgba(255, 214, 10, 0.16);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(255,255,255,0.02);
}

.recent-tracks .tracks-list::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 214, 10, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 10px rgba(255, 214, 10, 0.22),
    0 0 0 1px rgba(255, 214, 10, 0.10);
}

@media (min-width: 1100px) {
  .streams-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Support the Underground: donation card with inner gold border */
.donation-card {
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-top: 16px;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(20, 35, 55, 0.04), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(35, 20, 55, 0.028), transparent 55%),
    linear-gradient(180deg, rgba(16,16,24,0.12), rgba(10,10,16,0.12));
  border: 1px solid rgba(255, 214, 10, 0.16);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(255,255,255,0.02);
}

.donation-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 214, 10, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 10px rgba(255, 214, 10, 0.22),
    0 0 0 1px rgba(255, 214, 10, 0.10);
}

/* Reuse existing item look but tighten spacing for the card */
.streams-card .stream-url-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.streams-card .stream-url-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.07);
}

.streams-card .url-info { flex: 1; min-width: 0; }
.streams-card .url-name { display: block; font-size: 13px; opacity: 0.85; margin-bottom: 6px; color: #cde7ff; }

.streams-card .url-input {
  display: none; /* hide URL field from view */
}

.streams-card .copy-btn {
  flex: 0 0 auto;
  height: 40px;
  width: 44px;
  border-radius: 10px;
  border: none;
  color: #cfe8ff;
  background: #1b2330; /* neutral dark, no blue gradient */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  position: relative; /* for tooltip */
  box-shadow: none; /* remove effects */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.streams-card .copy-btn:hover { transform: translateY(-1px); background-color: #222c3b; }
.streams-card .copy-btn:active { transform: translateY(0); }
.streams-card .copy-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Green tooltip for copy button */
.streams-card .copy-btn[data-tooltip]:hover::after,
.streams-card .copy-btn[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #07150b;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  pointer-events: none;
  z-index: 5;
}

.streams-card .copy-btn[data-tooltip]:hover::before,
.streams-card .copy-btn[data-tooltip]:focus-visible::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 50%;
  transform: translateX(50%);
  border: 6px solid transparent;
  border-top-color: #16a34a; /* small arrow */
}

.streams-card .copy-btn:focus,
.streams-card .copy-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Soft separation above Recently Played (default) */
.recent-tracks { margin-top: 20px; }

.streams-section .container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 48px; /* per request: more space under the card */
}

/* Decorative separator under Streams container */
.streams-section .container::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -24px; /* more breathing room between card and separator */
  width: 280px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(12px 12px at 0% 50%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(12px 12px at 100% 50%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(90deg, rgba(157,231,255,0.25) 0%, rgba(100,181,246,0.55) 50%, rgba(127,209,185,0.35) 100%);
  box-shadow: 0 0 24px rgba(100,181,246,0.35), 0 0 8px rgba(127,209,185,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}

@media (max-width: 560px) {
  .streams-section .container::after { width: 200px; height: 8px; bottom: -20px; }
}

/* Inline group of copy buttons */
.streams-section .streams-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 14px;
}

/* Stream copy buttons (256/320/HLS) */
.streams-section .stream-copy-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 650;
  letter-spacing: 0.2px;
  color: #e7f4ff;
  background: linear-gradient(180deg, rgba(20,26,36,0.95), rgba(12,16,24,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 28px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.streams-section .stream-copy-btn::before {
  content: '';
  display: inline-block;
  margin-right: 8px;
}

.streams-section .stream-copy-btn:nth-of-type(1)::before { content: '🔉'; }
.streams-section .stream-copy-btn:nth-of-type(2)::before { content: '🔥'; }
.streams-section .stream-copy-btn:nth-of-type(3)::before { content: '📡'; }

.streams-section .stream-copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(24,30,40,0.98), rgba(16,22,32,0.98));
}

.streams-section .stream-copy-btn:active { transform: translateY(0); }
.streams-section .stream-copy-btn:focus-visible { outline: 2px solid rgba(148,210,255,0.45); outline-offset: 2px; }
.streams-section .stream-copy-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(20%); }

/* Green accent for HLS label optionally */
.streams-section .stream-copy-btn:nth-of-type(3) { border-color: rgba(255,214,10,0.35); color: #fff6bf; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 28px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,214,10,0.08); }
.streams-section .stream-copy-btn:nth-of-type(3):hover { border-color: rgba(255,214,10,0.55); }

/* Subtitle note under the buttons */
.streams-section .streams-note {
  text-align: center;
  opacity: .92;
  color: #d7deea;
  max-width: 820px;
  margin: 22px auto 0; /* more space from buttons */
  line-height: 1.6;
  font-size: 0.98rem;
}

@media (max-width: 560px) {
  .streams-section .streams-note { font-size: 0.82rem; line-height: 1.5; }
}

/* Spacing from separator to Recently Played (tight, override defaults) */
.streams-section { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.recent-tracks { margin-top: 0 !important; padding-top: 0 !important; }
.streams-section + .recent-tracks { margin-top: 60px !important; }
.recent-tracks .container { padding-top: 0 !important; margin-top: 0 !important; }
.recent-tracks .section-title { margin-top: 0 !important; }

@media (max-width: 560px) {
  .streams-section + .recent-tracks { margin-top: 0 !important; }
  .streams-section + .recent-tracks .section-title { margin-top: 0; }
}

/* Floating copy confirmation bubble */
.ug-copy-bubble {
  position: absolute;
  top: 0; /* set by JS */
  left: 0; /* set by JS */
  transform: translate(-50%, -12px);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #06240f;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 9999;
}

.ug-copy-bubble.is-visible { opacity: 1; transform: translate(-50%, -26px); }

@media (prefers-reduced-motion: reduce) {
  .ug-copy-bubble { transition: none; }
}

/* Highlight HLS with a yellow border */

.streams-card .stream-url-item.hls:hover {
  background: rgba(255, 214, 10, 0.10);
}

.hero .home-slider-section { margin-top: var(--section-gap); }
.hero #why.why-block { margin-top: var(--section-gap); }
.hero .first-slider-section { margin-top: var(--section-gap); }
.hero .recent-tracks { margin-top: var(--section-gap); }

.recent-tracks { margin-top: var(--section-gap); }
.donation-section { margin-top: var(--section-gap); }
.third-slider-section { margin-top: var(--section-gap); }
.partners-section { margin-top: var(--section-gap); }

/* Optional: tighter spacing for subtitles under h2 */
.section-subtitle { margin-top: 6px; font-size: .95rem; opacity: .88; color: var(--ug-gold-soft); }

.recent-tracks { margin-top: var(--section-gap); }
.donation-section { margin-top: var(--section-gap); }
.third-slider-section { margin-top: var(--section-gap); }
.partners-section { margin-top: var(--section-gap); }

  /* Optional: tighter spacing for subtitles under h2 */
  .section-subtitle { margin-top: 6px; font-size: .95rem; opacity: .88; color: var(--ug-gold-soft); }

  .first-slider-section + .recent-tracks { margin-top: 20px; }

  @media (max-width: 560px) {
    .first-slider-section + .recent-tracks { margin-top: 14px; }
  }
  
  /* Match spacing above Support the Underground to be compact like Recently Played */
  .home-slider-section + .donation-section { margin-top: 30px; }
  @media (max-width: 560px) {
    .home-slider-section + .donation-section { margin-top: 14px; }
  }
  
  /* Match spacing above Partners when following the third slider */
  .third-slider-section + .partners-section { margin-top: 20px; }
  @media (max-width: 560px) {
    .third-slider-section + .partners-section { margin-top: 14px; }
  }

/* Decorative separators (cloudy glow + sonic vibe) above sliders */
.first-slider-section::before,
.home-slider-section::before,
.third-slider-section::before {
  content: '';
  display: block;
  width: 240px;
  height: 6px;
  margin: 0 auto 50px; /* reduce by 20px to pull slider up */
  border-radius: 999px;
  background:
    radial-gradient(12px 12px at 0% 50%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(12px 12px at 100% 50%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(90deg, rgba(157,231,255,0.25) 0%, rgba(100,181,246,0.55) 50%, rgba(127,209,185,0.35) 100%);
  box-shadow: 0 0 24px rgba(100,181,246,0.35), 0 0 8px rgba(127,209,185,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
}

/* remove after-haze to avoid overlap with slider content */
.first-slider-section::after,
.home-slider-section::after,
.third-slider-section::after { display: none; }

@media (max-width: 560px) {
  .first-slider-section::before,
  .home-slider-section::before,
  .third-slider-section::before { width: 180px; margin-bottom: 50px; }
  .first-slider-section::after,
  .home-slider-section::after,
  .third-slider-section::after { display: none; }
}
