/* =========================================================
 *  DR. AVALANCE - STYLESHEET
 *  Tipografía Cinética + Glitch + Audio Visualizer + Nebulosa
 *  ========================================================= */

:root {
    --bg-dark: #0a0a0c;
    --bg-panel: #141419;
    --bg-player: #0f0f13;
    --accent: #00f3ff;
    --accent-hover: #00c3cc;
    --accent-alpha: rgba(0, 243, 255, 0.12);
    --accent-dim: rgba(0, 243, 255, 0.05);

    --text-main: #e8e8f0;
    --text-muted: #a0a0b0;
    --text-heading: #ffffff;

    --border: #2a2a35;
    --border-hover: #3a3a50;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 243, 255, 0.25);

    --container-max: 1200px;
    --container-narrow: 800px;
    --radius: 8px;
    --radius-sm: 4px;

    --transition-fast: 150ms ease;
    --transition-base: 300ms cubic-bezier(0.25, 0.8, 0.25, 1);

    --font-main: 'Space Grotesk', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Share Tech Mono', 'SF Mono', Monaco, monospace;
}

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

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 120px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    font-weight: bold;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-heading);
    font-weight: 700;
}

.section-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    text-align: center;
    font-family: var(--font-main);
}

.btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-secondary {
    border-color: var(--text-heading);
    color: var(--text-heading);
}

.btn-secondary:hover {
    background: var(--text-heading);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

@supports not (backdrop-filter: blur(12px)) {
    .site-header {
        background: rgba(10, 10, 12, 0.98);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    color: var(--text-heading);
}

.logo span { color: var(--accent); }

.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 4px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link:focus,
.nav-link[aria-current="page"] {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link[aria-current="page"]::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.page-section {
    display: none;
    padding: 40px 0;
    animation: fadeIn 0.4s ease;
}

.page-section.active-section {
    display: block;
}

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

/* ------------------- HERO TIPOGRAFICO CINETICO ------------------- */
.hero-kinetic {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    padding: clamp(60px, 6vh, 100px) 20px 60px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-code-stream {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.15;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    user-select: none;
    line-height: 1.4;
    max-width: 220px;
    overflow: hidden;
}

.code-left {
    left: 2vw;
    text-align: left;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.code-right {
    right: 2vw;
    text-align: right;
    mask-image: linear-gradient(to left, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, black 20%, black 80%, transparent);
}

.code-line {
    display: block;
    white-space: nowrap;
    animation: codeFlicker 4s infinite;
    transition: opacity 0.1s;
}

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 0.7s; }
.code-line:nth-child(3) { animation-delay: 1.4s; }
.code-line:nth-child(4) { animation-delay: 2.1s; }
.code-line:nth-child(5) { animation-delay: 2.8s; }
.code-line:nth-child(6) { animation-delay: 3.5s; }

@keyframes codeFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
    52% { opacity: 0.1; }
    54% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-pretitle {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    opacity: 0.8;
    animation: pretitleGlow 3s ease-in-out infinite alternate;
}

@keyframes pretitleGlow {
    from { text-shadow: 0 0 5px rgba(0, 243, 255, 0.2); }
    to { text-shadow: 0 0 15px rgba(0, 243, 255, 0.5); }
}

.hero-title-kinetic {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 10px;
    cursor: default;
}

.kinetic-word {
    display: block;
    white-space: nowrap;
}

.kinetic-word:first-child {
    font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.1em;
}

.kinetic-word:last-child {
    font-size: clamp(3.5rem, 12vw, 10rem);
    letter-spacing: 0.05em;
}

.kinetic-letter {
    display: inline-block;
    position: relative;
    animation: kineticWave 3s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.05s linear, color 0.1s, text-shadow 0.1s;
}

.kinetic-word:first-child .kinetic-letter:nth-child(1) { animation-delay: 0.0s; }
.kinetic-word:first-child .kinetic-letter:nth-child(2) { animation-delay: 0.1s; }
.kinetic-word:first-child .kinetic-letter:nth-child(3) { animation-delay: 0.2s; }

.kinetic-word:last-child .kinetic-letter:nth-child(1) { animation-delay: 0.0s; }
.kinetic-word:last-child .kinetic-letter:nth-child(2) { animation-delay: 0.08s; }
.kinetic-word:last-child .kinetic-letter:nth-child(3) { animation-delay: 0.16s; }
.kinetic-word:last-child .kinetic-letter:nth-child(4) { animation-delay: 0.24s; }
.kinetic-word:last-child .kinetic-letter:nth-child(5) { animation-delay: 0.32s; }
.kinetic-word:last-child .kinetic-letter:nth-child(6) { animation-delay: 0.40s; }
.kinetic-word:last-child .kinetic-letter:nth-child(7) { animation-delay: 0.48s; }
.kinetic-word:last-child .kinetic-letter:nth-child(8) { animation-delay: 0.56s; }

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

.kinetic-letter.glitch-beat {
    animation: glitchBeat 0.12s steps(2) forwards;
    color: #fff;
}

@keyframes glitchBeat {
    0% { transform: translate(0); filter: none; }
    25% { transform: translate(-3px, 1px); filter: hue-rotate(90deg); }
    50% { transform: translate(3px, -2px); text-shadow: 3px 0 #ff00ff, -3px 0 #00ffff; }
    75% { transform: translate(-1px, 2px); filter: hue-rotate(-90deg); }
    100% { transform: translate(0); text-shadow: none; filter: none; }
}

.expand-visualizer-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--accent);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px 0 5px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.expand-visualizer-btn:hover,
.expand-visualizer-btn:focus-visible {
    border-color: var(--accent);
    background: rgba(0, 243, 255, 0.1);
}

.hero-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 50px;
    margin: 12px auto 8px;
    max-width: 280px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-visualizer.active {
    opacity: 1;
}

.viz-bar {
    width: 4px;
    min-height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.05s linear, background 0.1s, box-shadow 0.1s;
    box-shadow: 0 0 6px rgba(0, 243, 255, 0.4);
    will-change: height;
}

.hero-glitch-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.glitch-line {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 1px;
    animation: glitchExpand 3s ease-in-out infinite;
    transition: transform 0.1s, opacity 0.1s;
}

.glitch-line:nth-child(1) { width: 120px; animation-delay: 0s; }
.glitch-line:nth-child(2) { width: 80px; animation-delay: 0.3s; opacity: 0.6; }
.glitch-line:nth-child(3) { width: 40px; animation-delay: 0.6s; opacity: 0.3; }

@keyframes glitchExpand {
    0%, 100% { transform: scaleX(1); opacity: 0.4; }
    50% { transform: scaleX(1.2); opacity: 0.8; }
}

.hero-kinetic.beat-flash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: beatFlash 0.15s ease-out;
}

@keyframes beatFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-subtitle-kinetic {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ------------------- MODAL VISUALIZADOR ------------------- */
.visualizer-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.visualizer-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.visualizer-modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

#modal-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    animation: slowColorCycle 12s linear infinite;
}

@keyframes slowColorCycle {
    0%   { color: #00f3ff; border-color: #00f3ff; }
    25%  { color: #ff66aa; border-color: #ff66aa; }
    50%  { color: #aabbff; border-color: #aabbff; }
    75%  { color: #ffaa00; border-color: #ffaa00; }
    100% { color: #00f3ff; border-color: #00f3ff; }
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.1);
}

.modal-viz-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 40%;
    width: 90%;
    margin: 0 auto 10vh;
    position: relative;
    z-index: 5;
}

.modal-viz-bars .viz-bar {
    width: 10px;
    min-height: 4px;
    border-radius: 4px;
}

.modal-no-audio {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    z-index: 2;
    transition: opacity 0.5s;
    pointer-events: none;
}

.modal-no-audio.hidden {
    opacity: 0;
}

/* ------------------- GRIDS & CARDS ------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.card:hover .card-img {
    opacity: 1;
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity var(--transition-base);
    cursor: pointer;
}

.card:hover .play-overlay { opacity: 1; }

.play-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.play-overlay:hover .play-icon { transform: scale(1.1); }

.card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-heading);
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* Estilo para tarjeta de track en reproducción */
.track-card.playing {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* ------------------- ALBUM LAYOUT ------------------- */
.album-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--bg-panel);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.album-layout + .album-layout {
    margin-top: 60px;
}

.album-art {
    flex: 0 0 280px;
    max-width: 100%;
}

.album-cover-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.album-info {
    flex: 1;
    min-width: 280px;
}

.album-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-heading);
    letter-spacing: 1px;
}

.album-artist {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.album-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.tracklist {
    margin-top: 20px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
    border-top: 1px solid var(--border);
}

.tracklist::-webkit-scrollbar { width: 6px; }
.tracklist::-webkit-scrollbar-track { background: transparent; }
.tracklist::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.tracklist::-webkit-scrollbar-thumb:hover { background: #666; }

.track-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    border-radius: var(--radius-sm);
}

.track-item:hover,
.track-item:focus-visible {
    color: var(--accent);
    background: var(--accent-alpha);
}

.track-item:last-child { border-bottom: none; }

.track-num {
    color: var(--text-muted);
    width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.track-name {
    flex-grow: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.track-item.playing {
    color: var(--accent);
    background: rgba(0, 243, 255, 0.08);
    border-left: 3px solid var(--accent);
}

.track-item.playing .track-num { color: var(--accent); }

.track-item.playing .track-num::before {
    content: '▶';
    display: block;
    animation: pulse 1.2s infinite;
    font-size: 0.75rem;
}

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

.album-actions { margin-top: 28px; }

/* ------------------- VIDEOS ------------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 24px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition-base);
}

.video-wrapper:hover { border-color: var(--border-hover); }

.video-wrapper iframe,
.video-wrapper .video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a24, #0f0f13);
    cursor: pointer;
}

.video-placeholder::after {
    content: '▶';
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.9);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-fast);
}

.video-placeholder:hover::after { transform: scale(1.1); }

.video-placeholder.loaded { display: none; }

/* ------------------- STORE LINKS ------------------- */
.store-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-links.compact { margin-top: auto; }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-panel);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.store-btn:hover,
.store-btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.store-btn-large {
    padding: 14px 24px;
    font-size: 0.9rem;
}

.store-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.store-card {
    padding: 40px;
    text-align: center;
}

.store-heading {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.store-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------- SOUNDCLOUD WIDGET ------------------- */
.soundcloud-widget {
    margin-top: 48px;
    text-align: center;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iframe-wrapper {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-panel);
}

/* ------------------- STICKY PLAYER BAR ------------------- */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 19, 0.98);
    border-top: 1px solid var(--accent);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@supports not (backdrop-filter: blur(8px)) {
    .player-bar {
        background: rgba(15, 15, 19, 0.99);
    }
}

.player-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    min-width: 0;
}

.player-thumb {
    width: 48px;
    height: 48px;
    background: #333;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.player-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.player-title {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-heading);
}

.player-artist {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.control-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-heading);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 50%;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.ctrl-btn:hover,
.ctrl-btn:focus-visible {
    color: var(--accent);
    transform: scale(1.1);
}

.ctrl-btn.play-pause {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--text-heading);
    border-radius: 50%;
    font-size: 1rem;
}

.ctrl-btn.play-pause:hover,
.ctrl-btn.play-pause:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.mute-btn {
    font-size: 1rem;
    width: 36px;
    height: 36px;
}

.mute-btn[aria-pressed="true"] span {
    filter: grayscale(1);
    opacity: 0.6;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-display {
    font-family: var(--font-mono);
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    flex-grow: 1;
    height: 5px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: 3px;
    position: relative;
    transition: width 100ms linear;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.progress-bar:hover .progress-fill::after,
.progress-bar:focus-visible .progress-fill::after {
    opacity: 1;
}

.player-volume {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 90px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: background var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover { background: var(--accent); }

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

input[type="range"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 768px) {
    body { padding-bottom: 160px; }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-panel);
        padding: 16px 20px;
        border-bottom: 2px solid var(--accent);
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    .nav-list.active { display: flex; }
    .nav-list li { width: 100%; }

    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-link::after { display: none; }

    .hero-kinetic {
        padding: clamp(100px, 12vh, 140px) 20px 60px;
    }

    .player-container {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 16px;
    }

    .player-volume { justify-content: center; }
    .player-info { justify-content: center; }
    .player-title { text-align: center; }

    .album-layout {
        flex-direction: column;
        padding: 24px;
    }

    .album-art {
        flex: 1 1 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn { width: min(280px, 100%); }
    .video-grid { grid-template-columns: 1fr; }
    .store-card { padding: 24px 16px; }
    .store-links { justify-content: center; }
    .grid { grid-template-columns: 1fr; }

    .hero-code-stream { display: none; }
    .hero-visualizer { max-width: 200px; height: 40px; }

    .modal-viz-bars .viz-bar { width: 6px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.3rem; }
    .album-title { font-size: 1.4rem; }
    .tracklist { max-height: 320px; }

    .hero-title-kinetic .kinetic-word:first-child { font-size: 2rem; }
    .hero-title-kinetic .kinetic-word:last-child { font-size: 2.8rem; }
    .hero-visualizer { gap: 2px; }
    .viz-bar { width: 3px; }
}
