/* ==========================================================================
   Amplify Streaming Player — v4.0
   Bootstrap 5.3 base; dark theme; per-station CSS custom properties
   ========================================================================== */

/* ── Custom properties (defaults; overridden per station via PHP) ─────────── */
:root {
    --station-primary:  #0a183d;
    --station-accent:   #1a6cff;
    --station-bg-image: url('/img/player-bg.jpg');

    --text-primary:     #ffffff;
    --text-muted:       rgba(255, 255, 255, 0.60);
    --card-bg:          rgba(255, 255, 255, 0.07);
    --card-border:      rgba(255, 255, 255, 0.12);
    --card-shadow:      0 24px 64px rgba(0, 0, 0, 0.45);

    --radius-card:      20px;
    --radius-btn:       50%;
    --transition-std:   0.25s ease;

    --play-btn-size:    72px;
    --play-btn-size-sm: 48px;
}

/* ── Base reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background-color: var(--station-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    /* Space for persistent bottom player bar */
    padding-bottom: 72px;
}

/* Global blurred/dimmed background — visible on inner pages; sits behind player-hero on home */
.site-bg {
    position: fixed;
    inset: 0;
    background-image: var(--station-bg-image);
    background-size: cover;
    background-position: center top;
    filter: blur(6px) brightness(0.35);
    transform: scale(1.05); /* prevent blur edges */
    z-index: 0;
}

/* Ensure page content sits above the fixed site-bg layer */
#pageContent,
.persistent-player,
.site-footer {
    position: relative;
    z-index: 1;
}

a { color: inherit; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: background var(--transition-std), box-shadow var(--transition-std);
}

.site-nav.nav-scrolled {
    background: rgba(10, 24, 61, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.nav-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .02em;
    padding: .4rem .75rem;
    border-radius: 8px;
    transition: color var(--transition-std), background var(--transition-std);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Station dropdown */
.station-dropdown {
    background: rgba(10, 24, 61, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: .5rem;
    min-width: 220px;
}

.station-dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .88rem;
    font-weight: 500;
    transition: background var(--transition-std);
}

.station-dropdown-item:hover { background: rgba(255,255,255,0.08); }

.dropdown-station-logo {
    height: 28px;
    width: 28px;
    object-fit: contain;
    border-radius: 4px;
}

/* Offcanvas */
.site-offcanvas {
    background: rgba(10, 24, 61, 0.97);
    border-left: 1px solid var(--card-border);
}

.nav-section-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 .75rem;
}

.offcanvas-station-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem .75rem;
    border-radius: 8px;
    transition: background var(--transition-std);
}

.offcanvas-station-link:hover { background: rgba(255,255,255,0.08); }

.offcanvas-station-logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
    border-radius: 4px;
}

/* ── Player Hero ──────────────────────────────────────────────────────────── */
.player-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    overflow: hidden;
}

/* Background layer */
.player-hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--station-bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.35);
    transform: scale(1.05); /* prevent blur edges */
    z-index: 0;
}

.player-hero .container { position: relative; z-index: 1; }

/* ── Player Card ──────────────────────────────────────────────────────────── */
.player-card {
    position: relative;          /* anchors the logo overlay */
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 2rem 2.5rem;
    box-shadow: var(--card-shadow);
    max-width: 760px;
    margin: 0 auto;
}

/* Station logo — top-right corner of the player card */
.player-card-logo {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    z-index: 2;
}

.player-card-logo img {
    height: 56px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.92;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* ── Rotating info panel ──────────────────────────────────────────────────── */
.info-rotator {
    display: grid;           /* all panels share the same grid cell */
    margin-bottom: .75rem;
}

/* Stack every panel in cell 1/1 — container height = tallest panel */
.info-panel {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
}

.info-panel.active {
    visibility: visible;
    opacity: 1;
    animation: panelIn .35s ease both;
}

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

.panel-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 .3rem;
}

.panel-artist {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-artist-secondary {
    font-size: .82rem;
    color: var(--text-muted);
    margin: .15rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-time {
    font-size: .78rem;
    color: var(--station-accent);
    margin: .2rem 0 0;
    font-weight: 500;
}

/* ── Song feedback ────────────────────────────────────────────────────────── */
.feedback-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .6rem;
}

.feedback-prompt {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: .1rem;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.feedback-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: scale(1.1);
}

.feedback-btn--chosen {
    background: var(--station-accent);
    border-color: var(--station-accent);
    color: #fff;
}

.feedback-btn--unchosen {
    opacity: 0.3;
}

.feedback-btn:disabled {
    cursor: default;
}

/* ── Panel navigation dots ────────────────────────────────────────────────── */
.panel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.1rem;
}

.panel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease, width .2s ease;
    flex-shrink: 0;
}

.panel-dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

.panel-dot.active {
    background: #ffffff;
    width: 20px;                 /* pill shape on active dot */
    border-radius: 4px;
}

/* Artwork */
.player-artwork-wrap {
    flex: 0 0 auto;
    width: 220px;
}

.player-artwork {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    background: rgba(255,255,255,0.05);
    transition: opacity 0.18s ease;
}

.player-artwork.artwork-changing {
    opacity: 0.3;
}

/* Body */
.player-body {
    flex: 1;
    min-width: 0;
}

.player-station-info {
    margin-bottom: 1.25rem;
}

/* LIVE badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ff4d4d;
    margin-bottom: .5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4d;
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.75); }
}

.player-station-name {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 .25rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-station-slogan {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* Track info */
.player-track {
    margin-bottom: 1.5rem;
}

.now-playing-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 .25rem;
}

.track-artist {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    min-height: 1.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--transition-std);
}

/* ── Player Controls ──────────────────────────────────────────────────────── */
.player-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Play/Pause button */
.btn-play {
    position: relative;
    width: var(--play-btn-size);
    height: var(--play-btn-size);
    border-radius: var(--radius-btn);
    background: var(--station-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 4px 20px rgba(26,108,255,.4);
}

.btn-play:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(26,108,255,.55);
}

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

.btn-play svg {
    width: 28px;
    height: 28px;
    position: absolute;
    transition: opacity .15s ease, transform .15s ease;
}

/* State-driven icon visibility */
.btn-play[data-state="paused"]  .icon-play,
.btn-play[data-state="stopped"] .icon-play,
.btn-play[data-state="error"]   .icon-play    { opacity: 1; }

.btn-play[data-state="playing"] .icon-play,
.btn-play[data-state="loading"] .icon-play    { opacity: 0; transform: scale(.6); }

.btn-play[data-state="playing"] .icon-pause   { opacity: 1; }
.btn-play[data-state="paused"]  .icon-pause,
.btn-play[data-state="stopped"] .icon-pause,
.btn-play[data-state="error"]   .icon-pause,
.btn-play[data-state="loading"] .icon-pause   { opacity: 0; }

.btn-play .icon-loading { opacity: 0; }
.btn-play[data-state="loading"] .icon-loading {
    opacity: 1;
    animation: spin 0.9s linear infinite;
}

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

/* Volume */
.volume-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: .25rem;
    transition: color var(--transition-std);
    flex-shrink: 0;
}

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

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform .1s ease;
}

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

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}

/* Smart Speaker inline */
.smart-speaker-msg {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--text-muted);
}

/* ── Feature Panels (Recently Played / Coming Up) ─────────────────────────── */
.feature-section {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    padding: 3rem 0 4rem;
}

.panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    height: 100%;
}

.panel-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.panel-loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Recently Played items */
.recently-played-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.rp-item {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.rp-art-wrap { flex-shrink: 0; }

.rp-art {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.rp-info { min-width: 0; }

.rp-title {
    font-size: .875rem;
    font-weight: 600;
    margin: 0 0 .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-artist {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Coming Up */
.next-item {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.next-art {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.next-artist {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 .25rem;
}

.next-time {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Smart Speaker panel */
.smart-speaker-panel,
.thanks-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: .9rem;
}

/* ── Network Stations ─────────────────────────────────────────────────────── */
.network-section {
    padding: 3rem 0 5rem;
}

.section-heading {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.network-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.network-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    width: 140px;
    text-decoration: none;
    transition: background var(--transition-std), transform var(--transition-std);
}

.network-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.network-card-logo {
    max-height: 60px;
    max-width: 110px;
    object-fit: contain;
}

.network-card-name {
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--card-border);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

.footer-brand { flex: 1 1 200px; }

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .85;
    margin-bottom: .75rem;
    display: block;
}

.footer-social {
    display: flex;
    gap: .75rem;
    margin-bottom: .75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition-std), color var(--transition-std);
}

.social-link:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

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

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-std);
}

.footer-links a:hover { color: #fff; }

.footer-powered-by {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .55;
    transition: opacity var(--transition-std);
}

.footer-powered-by:hover { opacity: .85; }

.footer-version {
    font-size: .72rem;
    color: rgba(255,255,255,0.3);
    width: 100%;
    text-align: right;
}

/* ── Persistent Bottom Player Bar ─────────────────────────────────────────── */
.persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1025;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);

    background: rgba(8, 12, 28, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

/* Centred inner container — 3-column grid: play | track info | logo+volume */
.pp-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    max-width: 960px;
    padding: 0 1.25rem;
    gap: 1rem;
}

/* LEFT column — play button */
.pp-left {
    display: flex;
    align-items: center;
}

/* Artwork thumbnail */
.pp-artwork-wrap {
    position: relative;
    flex-shrink: 0;
}

.pp-artwork {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,0.05);
    transition: opacity .18s ease;
}

.pp-artwork.artwork-changing { opacity: .3; }

/* Small live indicator dot on artwork */
.pp-live-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff4d4d;
    border: 1.5px solid rgba(8, 12, 28, 0.96);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Track title + artist */
.pp-track {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pp-title {
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.pp-artist {
    font-size: .72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* CENTRE column — artwork + track info */
.pp-center {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

/* Play button size inside the bar */
.persistent-player .btn-play {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    box-shadow: 0 2px 14px rgba(26,108,255,.4);
}

.persistent-player .btn-play svg {
    width: 20px;
    height: 20px;
}

/* RIGHT column — volume + station logo */
.pp-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

/* Volume control group */
.pp-volume {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Narrow the volume slider in the bar */
.pp-slider { width: 80px; }

/* Station logo */
.pp-station-logo {
    display: flex;
    align-items: center;
    padding-left: .75rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.pp-logo {
    height: 36px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    opacity: 0.8;
}

/* ── Inner Pages (About, Contact, Privacy) ────────────────────────────────── */
#pageContent[data-page="about"],
#pageContent[data-page="contact"],
#pageContent[data-page="privacy"] {
    padding-top: 130px;
}

.inner-hero {
    padding: 2rem 0 3rem;
    text-align: center;
}

.inner-hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0 0 .5rem;
}

.inner-hero-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.inner-content {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 40%);
}

/* About */
.about-image {
    max-width: 100%;
    border: 1px solid var(--card-border);
}

.about-text {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,.85);
    margin-bottom: 1.1rem;
}

/* Contact */
.contact-form .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    margin-bottom: .35rem;
}

.contact-form .form-control,
.contact-form textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--card-border);
    color: #fff;
    border-radius: 10px;
    font-size: .9rem;
    transition: border-color var(--transition-std), background var(--transition-std);
}

.contact-form .form-control::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }

.contact-form .form-control:focus,
.contact-form textarea:focus {
    background: rgba(255,255,255,.09);
    border-color: var(--station-accent);
    box-shadow: 0 0 0 3px rgba(26,108,255,.2);
    color: #fff;
    outline: none;
}

.contact-address {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
}

.contact-address-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.contact-address address {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    font-style: normal;
    line-height: 1.8;
}

/* URL reveal toggle (about page) */
.url-reveal-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .1rem .45rem;
    margin-left: .4rem;
    vertical-align: middle;
    transition: border-color .2s, color .2s;
}

.url-reveal-btn:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.url-reveal-box {
    word-break: break-all;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .35rem;
    padding: .4rem .6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border: 1px solid var(--card-border);
}

/* Bootstrap primary button override */
.btn-primary {
    background: var(--station-accent);
    border-color: var(--station-accent);
    font-weight: 600;
    border-radius: 10px;
    padding: .65rem 1.5rem;
    transition: filter .15s ease, transform .1s ease;
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    background: var(--station-accent);
    border-color: var(--station-accent);
}

/* Privacy */
.privacy-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2rem 0 .5rem;
    color: rgba(255,255,255,.95);
}

.privacy-content p,
.privacy-content li {
    font-size: .92rem;
    line-height: 1.8;
    color: rgba(255,255,255,.75);
}

.privacy-content a { color: var(--station-accent); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .player-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem;
        padding-top: 3.5rem;     /* make room for the logo overlay */
        gap: 1.25rem;
    }

    .player-card-logo {
        top: .85rem;
        right: .9rem;
    }

    .player-card-logo img {
        height: 40px;
        max-width: 90px;
    }

    .player-artwork-wrap { width: 180px; }

    .player-station-name { font-size: 1.4rem; }

    .panel-dots { justify-content: center; }

    .info-rotator { text-align: center; }

    .feedback-bar { justify-content: center; }

    .network-card { width: 120px; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-version { text-align: left; }

    /* Persistent bar: hide volume on mobile, keep station logo */
    .pp-volume { display: none; }
    .pp-inner { gap: .75rem; padding: 0 1rem; }
}

@media (max-width: 479px) {
    .player-artwork-wrap { width: 150px; }
    .player-hero { padding-top: 5rem; padding-bottom: 2.5rem; }
    .inner-hero-title { font-size: 1.5rem; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .live-dot { animation: none; }
}
