/* ==========================================================================
   TECHNO.EDMAZING.XYZ - CYBERPUNK TECHNO SOUNDSYSTEM STYLES (MOBILE-FIRST)
   ========================================================================== */

:root {
    --bg-base: #07080b;
    --bg-surface: #0e1118;
    --bg-card: rgba(18, 22, 32, 0.85);
    --bg-card-hover: rgba(24, 30, 44, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.35);

    --neon-cyan: #00f0ff;
    --neon-magenta: #e024ff;
    --neon-green: #10ffa0;
    --neon-purple: #8b3dff;

    --text-primary: #f0f4fc;
    --text-secondary: #909bb2;
    --text-muted: #5e6880;

    --font-heading: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
}

.glow-cyan {
    width: min(500px, 90vw);
    height: min(500px, 90vw);
    background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
    top: -100px;
    left: -100px;
}

.glow-magenta {
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: radial-gradient(circle, var(--neon-magenta), transparent 70%);
    bottom: -80px;
    right: -80px;
}

/* Page Container */
.site-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1050px;
    margin: 0 auto;
    padding: 16px 14px 60px;
}

@media (min-width: 768px) {
    .site-wrapper {
        padding: 28px 24px 80px;
    }
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.brand-name span {
    color: var(--neon-cyan);
}

.badges-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 2.5vw, 0.72rem);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.badge-hq {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.08);
}

.badge-tech {
    color: var(--neon-magenta);
    border-color: rgba(224, 36, 255, 0.3);
    background: rgba(224, 36, 255, 0.08);
}

.badge-live i {
    color: var(--neon-green);
    font-size: 0.55rem;
}

/* Hero Section */
.hero-section {
    padding: clamp(24px, 5vw, 44px) 0 clamp(16px, 3vw, 24px);
    text-align: center;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.68rem, 2.4vw, 0.8rem);
    letter-spacing: clamp(1.5px, 0.5vw, 3px);
    color: var(--neon-cyan);
    margin-bottom: 6px;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 7vw, 3.6rem);
    font-weight: 900;
    letter-spacing: clamp(2px, 0.8vw, 4px);
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 80%, var(--neon-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

/* Audio Player Station */
.player-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: clamp(16px, 4vw, 24px);
    margin: 12px 0 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
}

/* Visualizer Display */
.visualizer-container {
    width: 100%;
    height: clamp(95px, 20vw, 140px);
    background: #090b10;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

#visualizerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.visualizer-overlay {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    gap: 8px;
}

.track-badge-overlay {
    font-family: var(--font-mono);
    font-size: clamp(0.62rem, 2vw, 0.72rem);
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    white-space: nowrap;
}

.audio-state-pill {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    color: var(--neon-green);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(16, 255, 160, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Track Meta */
.track-meta {
    margin-bottom: 16px;
}

.track-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 4px;
    word-break: break-word;
}

.track-artist {
    font-size: clamp(0.8rem, 2.5vw, 0.88rem);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Custom Scrubber / Progress Bar (Touch Friendly) */
.scrubber-wrapper {
    margin-bottom: 20px;
}

.scrubber-touch-area {
    position: relative;
    width: 100%;
    padding: 12px 0; /* generous touch padding */
    cursor: pointer;
    touch-action: none;
    outline: none;
}

.scrubber-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    pointer-events: none;
    transition: height 0.15s ease;
}

.scrubber-touch-area:hover .scrubber-bar,
.scrubber-touch-area:active .scrubber-bar {
    height: 10px;
}

.scrubber-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    pointer-events: none;
}

.scrubber-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.scrubber-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    pointer-events: none;
    transition: transform 0.1s ease;
}

.scrubber-touch-area:hover .scrubber-thumb,
.scrubber-touch-area:active .scrubber-thumb {
    transform: translate(-50%, -50%) scale(1.25);
}

.scrubber-timestamps {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 2.5vw, 0.8rem);
    color: var(--text-muted);
}

/* Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 3.5vw, 24px);
    margin-bottom: 18px;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.5vw, 14px);
}

.btn-ctrl {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    min-width: 44px;
    min-height: 44px;
    width: clamp(42px, 10vw, 48px);
    height: clamp(42px, 10vw, 48px);
    border-radius: 12px;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.btn-ctrl:active {
    transform: scale(0.92);
}

@media (hover: hover) {
    .btn-ctrl:hover {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
}

.btn-sub {
    font-size: 0.62rem;
    font-family: var(--font-mono);
    position: absolute;
    bottom: 3px;
    right: 4px;
    color: var(--neon-cyan);
}

.btn-play-master {
    min-width: 60px;
    min-height: 60px;
    width: clamp(60px, 15vw, 72px);
    height: clamp(60px, 15vw, 72px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    border: none;
    color: #050608;
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), 0 0 50px rgba(224, 36, 255, 0.2);
    transition: var(--transition);
}

.btn-play-master:active {
    transform: scale(0.94);
}

@media (hover: hover) {
    .btn-play-master:hover {
        transform: scale(1.08);
        box-shadow: 0 0 35px rgba(0, 240, 255, 0.6), 0 0 70px rgba(224, 36, 255, 0.35);
    }
}

/* Sub-controls (Volume & Extra) */
.player-subbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.btn-icon-sm {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    min-width: 36px;
    min-height: 36px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon-sm:hover {
    color: var(--neon-cyan);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: clamp(70px, 18vw, 110px);
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
}

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

.volume-value {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 32px;
}

.extra-controls {
    display: flex;
    gap: 8px;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 2vw, 0.76rem);
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chip-btn:active {
    transform: scale(0.94);
}

.chip-btn:hover, .chip-btn.active {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.08);
}

/* Tracklist Section */
.tracklist-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--neon-cyan);
}

.section-subtitle {
    font-size: clamp(0.78rem, 2.5vw, 0.88rem);
    color: var(--text-secondary);
    margin-top: 4px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.track-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(16px, 3.5vw, 22px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.track-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.track-card.active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.18), inset 0 0 0 1px rgba(0, 240, 255, 0.2);
}

.track-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.track-card-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-number {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
}

.track-card.active .track-number {
    color: var(--neon-cyan);
    opacity: 0.8;
}

.card-play-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-play-btn:hover, .track-card.active .card-play-btn {
    background: var(--neon-cyan);
    color: #050608;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 14px var(--neon-cyan);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 2vw, 0.7rem);
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 3vw, 1.18rem);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 4px;
    word-break: break-word;
}

.card-desc {
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.card-meta-pills span {
    font-family: var(--font-mono);
    font-size: clamp(0.66rem, 2vw, 0.72rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-meta-pills .pill-highlight {
    color: var(--neon-green);
    border-color: rgba(16, 255, 160, 0.25);
    background: rgba(16, 255, 160, 0.06);
}

.track-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.btn-action-primary {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-action-primary:active {
    transform: scale(0.97);
}

.btn-action-primary:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Footer */
.site-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.footer-note {
    font-size: clamp(0.72rem, 2.2vw, 0.8rem);
    color: var(--text-muted);
}
