:root {
    --primary: #db0000;
    --primary-hover: #ff1a1a;
    --primary-dark: #7a0000;
    --primary-soft: rgba(219, 0, 0, 0.1);
    --bg-main: #ffffff;
    --bg-surface: #f6f7f9;
    --bg-dark: #0c0c0e;
    --bg-card-dark: #161618;
    --text-main: #121214;
    --text-muted: #525660;
    --text-on-dark: #f5f5f7;
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --target-size: 24px;
}

@media (pointer: coarse) {
    :root {
        --target-size: 44px;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
    scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
}

[hidden] {
    display: none !important;
}

a {
    text-decoration: none;
    color: inherit;
    overflow-wrap: anywhere;
    transition: color 0.25s ease, transform 0.25s ease;
}

:where(button, input:not([type="checkbox"], [type="radio"]), [role="button"], nav a) {
    min-block-size: var(--target-size);
    min-inline-size: var(--target-size);
}

:where(nav a) {
    display: inline-flex;
    align-items: center;
}

:where(a:any-link, button, input):focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Visually Hidden Utility */
.visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10000;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
}

.container {
    inline-size: min(92%, 1180px);
    margin-inline: auto;
}

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

/* =========================================
   Navbar (Transparent & Non-Sticky)
========================================= */
.navbar {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    padding-block-start: max(1.15rem, env(safe-area-inset-top, 0px));
    padding-block-end: 1.15rem;
    background: transparent;
    border: none;
}

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

.logo-img {
    height: 38px;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: #ffffff;
}

.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
    .mobile-toggle {
        display: none;
    }
}

/* =========================================
   Mobile Drawer
========================================= */
.mobile-drawer[hidden] {
    display: none;
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease forwards;
}

.drawer-panel {
    position: relative;
    z-index: 1;
    inline-size: min(86vw, 340px);
    block-size: 100dvh;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border-inline-start: 1px solid var(--border-dark);
    padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideInRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block-end: 1.25rem;
    border-block-end: 1px solid var(--border-dark);
}

.drawer-logo {
    height: 34px;
    width: auto;
}

.close-drawer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 12px;
    padding: 0.45rem;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-block: 1.5rem auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.drawer-link:hover, .drawer-link:active {
    background: rgba(219, 0, 0, 0.18);
    border-color: rgba(219, 0, 0, 0.45);
    color: #ffffff;
}

.drawer-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drawer-footer {
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--border-dark);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.drawer-footer p {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

/* =========================================
   Hero & Studio Radio Player
========================================= */
.hero {
    position: relative;
    min-block-size: 100dvh;
    padding-block-start: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-block-end: 3.5rem;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 15%, #b80000 0%, #5c0000 52%, #180000 100%);
    color: #ffffff;
    overflow: clip;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.glow-1 {
    width: 380px;
    height: 380px;
    background: #ff1e1e;
    top: -80px;
    right: -80px;
}

.glow-2 {
    width: 320px;
    height: 320px;
    background: #990000;
    bottom: -60px;
    left: -60px;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: center;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 3.5rem;
    }
}

/* On mobile, show the player deck right at the top or keep natural flow with compact hero text */
.hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 960px) {
    .hero-copy {
        text-align: left;
        align-items: flex-start;
    }
}

.station-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-block-end: 1.15rem;
}

.pulse-ring {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3b3b;
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.8);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.85); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.hero-copy h1 {
    font-size: clamp(2.15rem, 1.3rem + 3.5vw, 4.1rem);
    margin-block-end: 0.9rem;
    color: #ffffff;
}

.title-accent {
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 6px;
}

.hero-subtitle {
    font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.86);
    max-inline-size: 52ch;
    margin-block-end: 1.75rem;
}

.hero-quick-stats {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(0.5rem, 2.2vw, 1.25rem);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.7rem clamp(0.75rem, 3vw, 1.35rem);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-inline-size: 100%;
}

.stat-chip {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

.stat-val {
    font-size: clamp(0.92rem, 3.2vw, 1.15rem);
    font-weight: 900;
    color: #ffffff;
}

.stat-lbl {
    font-size: clamp(0.62rem, 2vw, 0.72rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
}

.stat-divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

/* =========================================
   Hero Brand Logo Showcase (White Card)
========================================= */
.hero-brand-showcase {
    inline-size: 100%;
    max-inline-size: 460px;
    margin-inline: auto;
}

.showcase-card {
    position: relative;
    padding: 0.65rem;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.showcase-surface {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 28px;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 12px 30px rgba(0, 0, 0, 0.15);
}

.showcase-logo {
    max-inline-size: 310px;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 1700 / 677;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-card[data-state="playing"] .showcase-logo {
    transform: scale(1.04);
}

.showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(219, 0, 0, 0.7);
    animation: livePulse 1.8s infinite;
}

/* Explicit CSS state visibility for player icons */
.mini-play-btn .icon-pause,
.mini-play-btn .icon-loading,
#mute-btn .vol-icon-muted {
    display: none;
}

.mini-play-btn[data-state="playing"] .icon-play {
    display: none;
}

.mini-play-btn[data-state="playing"] .icon-pause {
    display: block;
}

.mini-play-btn[data-state="loading"] .icon-play,
.mini-play-btn[data-state="loading"] .icon-pause {
    display: none;
}

.mini-play-btn[data-state="loading"] .icon-loading {
    display: block;
    animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

#mute-btn[data-muted="true"] .vol-icon-on {
    display: none;
}

#mute-btn[data-muted="true"] .vol-icon-muted {
    display: block;
}

/* =========================================
   Sections General
========================================= */
.section {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section-header {
    text-align: center;
    max-inline-size: 640px;
    margin-inline: auto;
    margin-block-end: 2.75rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-block-end: 0.85rem;
}

.section-header h2 {
    font-size: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);
    color: var(--text-main);
    margin-block-end: 0.75rem;
}

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

/* =========================================
   Platform Action Banners (Instagram & TuneIn)
========================================= */
.platforms-section {
    padding-block: 3.5rem;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}

.platform-banner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    overflow: clip;
}

.platform-banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

.instagram-card {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tunein-card {
    background: linear-gradient(135deg, #00b8c6 0%, #007d8a 100%);
}

.platform-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.platform-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.88;
    margin-block-end: 0.35rem;
}

.platform-content h3 {
    font-size: 1.45rem;
    margin-block-end: 0.45rem;
}

.platform-content p {
    font-size: 0.95rem;
    opacity: 0.92;
}

.platform-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
    background: #ffffff;
    color: #c21d5b;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease;
}

.tunein-cta {
    color: #007d8a;
}

.platform-banner:hover .platform-cta {
    transform: translateX(4px);
}

/* =========================================
   Station Experience Bento Grid
========================================= */
.experience-section {
    background: var(--bg-surface);
    border-block: 1px solid var(--border-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: 1.35fr 1fr 1fr;
    }
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(219, 0, 0, 0.28);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.07);
}

.bento-featured {
    background: linear-gradient(145deg, #161618 0%, #230606 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

.bento-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff4b4b 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(219, 0, 0, 0.25);
}

.bento-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-block-end: 0.45rem;
}

.bento-featured .bento-badge {
    color: #ff6b6b;
}

.bento-body h3 {
    font-size: 1.35rem;
    margin-block-end: 0.55rem;
}

.bento-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-featured .bento-body p {
    color: rgba(255, 255, 255, 0.78);
}

/* =========================================
   Sponsors Row (Grayscale to Color on Hover)
========================================= */
.sponsors-bar {
    padding-block: 2.75rem;
    background: #ffffff;
    border-block-end: 1px solid var(--border-light);
}

.sponsors-label {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    opacity: 0.75;
    margin-block-end: 1.5rem;
}

.sponsors-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.sponsor-logo {
    max-block-size: 58px;
    inline-size: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sponsor-item:hover .sponsor-logo,
.sponsor-item:active .sponsor-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

@media (max-width: 600px) {
    .sponsors-row {
        flex-wrap: nowrap;
        justify-content: space-evenly;
        gap: 1.25rem;
    }
    .sponsor-item {
        padding: 0.25rem 0.4rem;
    }
    .sponsor-logo {
        max-block-size: 56px;
    }
    .sponsor-item:nth-child(n+3) {
        display: none;
    }
}

/* =========================================
   Contact Section (Black Cards Preserved)
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.contact-card {
    padding: 2.35rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: var(--radius-lg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(219, 0, 0, 0.5);
    box-shadow: 0 18px 36px rgba(219, 0, 0, 0.16);
    color: #ffffff;
}

.contact-icon {
    width: 62px;
    height: 62px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block-end: 1.25rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(219, 0, 0, 0.32);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-block-end: 0.3rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-block-end: 0.4rem;
    color: var(--primary);
}

.contact-card p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #eaeaea;
}

/* =========================================
   Footer
========================================= */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-block-start: 3.25rem;
    padding-block-end: calc(7.25rem + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid var(--border-dark);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 38px;
    width: auto;
    margin-inline: auto;
    margin-block-end: 0.6rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--primary-hover);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.52);
}

/* =========================================
   Unified Sticky Bottom Player Dock (Mobile & PC)
========================================= */
.mini-dock {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 1100;
    padding: 0.65rem max(0.85rem, env(safe-area-inset-right, 0px)) max(0.7rem, env(safe-area-inset-bottom, 0px)) max(0.85rem, env(safe-area-inset-left, 0px));
    background: rgba(14, 14, 16, 0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-block-start: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mini-dock[data-playing="true"] {
    border-color: rgba(219, 0, 0, 0.45);
    box-shadow: 0 -12px 42px rgba(219, 0, 0, 0.22), 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
    .mini-dock {
        inset-inline: 50%;
        inset-block-end: 1.15rem;
        transform: translateX(-50%);
        inline-size: min(92%, 1040px);
        border-radius: 26px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0.85rem 1.35rem;
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    }
    .mini-dock[data-playing="true"] {
        border-color: rgba(219, 0, 0, 0.55);
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 32px rgba(219, 0, 0, 0.25);
    }
}

.mini-dock-inner {
    max-inline-size: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.mini-dock-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-inline-size: 0;
    flex: 1;
}

.mini-dock-art {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #ffffff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

@media (min-width: 900px) {
    .mini-dock-art {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }
}

.mini-dock-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mini-live-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #101012;
}

.mini-dock[data-playing="true"] .mini-live-dot {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.mini-dock-text {
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
    line-height: 1.25;
}

.mini-dock-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-end: 0.1rem;
}

.mini-dock-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ff4d4d;
    text-transform: uppercase;
}

.mini-dock-freq {
    display: none;
    font-size: 0.66rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .mini-dock-freq {
        display: inline-block;
    }
}

.mini-dock-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis;
}

@media (min-width: 900px) {
    .mini-dock-title {
        font-size: 1.08rem;
    }
}

.mini-dock-subtitle {
    display: none;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis;
}

@media (min-width: 720px) {
    .mini-dock-subtitle {
        display: block;
    }
}

.mini-dock-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

@media (min-width: 900px) {
    .mini-dock-actions {
        gap: 1rem;
    }
}

/* Equalizer Pill */
.mini-eq-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

.mini-eq-label {
    display: none;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
}

@media (min-width: 600px) {
    .mini-eq-label {
        display: inline-block;
    }
}

.mini-dock[data-playing="true"] .mini-eq-pill {
    background: rgba(219, 0, 0, 0.15);
    border-color: rgba(219, 0, 0, 0.4);
}

.mini-dock[data-playing="true"] .mini-eq-label {
    color: #ff6b6b;
}

.mini-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.mini-eq span {
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    transition: height 0.2s ease;
}

.mini-dock[data-playing="true"] .mini-eq span {
    background: var(--primary);
    animation: miniEqBounce 0.8s ease-in-out infinite;
}

.mini-dock[data-playing="true"] .mini-eq span:nth-child(2) {
    animation-delay: 0.2s;
}
.mini-dock[data-playing="true"] .mini-eq span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes miniEqBounce {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

/* Desktop Volume Controls inside Dock */
.dock-volume-group {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.75rem 0.3rem 0.4rem;
    border-radius: 999px;
}

@media (min-width: 820px) {
    .dock-volume-group {
        display: inline-flex;
    }
}

.dock-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.dock-volume-group .dock-icon-btn {
    border: none;
    background: transparent;
    width: 34px;
    height: 34px;
}

.dock-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dock-icon-btn:active {
    transform: scale(0.93);
}

.dock-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    inline-size: 86px;
    block-size: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
}

.dock-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(219, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.dock-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
}

.dock-volume-pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    min-inline-size: 32px;
    text-align: right;
}

.mini-play-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #b30000 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(219, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 900px) {
    .mini-play-btn {
        width: 54px;
        height: 54px;
    }
}

.mini-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(219, 0, 0, 0.6);
}

.mini-play-btn:active {
    transform: scale(0.93);
}

.mini-play-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(219, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
}

.mini-dock[data-playing="true"] .mini-play-ring {
    opacity: 1;
    animation: dockRingPulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes dockRingPulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.24); opacity: 0; }
}

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