/* Basic styles for the Ariyo AI application */

/* General Reset */
* {
    box-sizing: border-box;
}

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

html,
body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
}

/* General Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--surface-contrast);
    background-color: #000;
    margin: 0;
    padding: 0;
    position: relative;
    text-shadow: 1px 1px 2px #000;
}

body[data-theme="light"] {
    color: #0f172a;
    background-color: #eef1f6;
    text-shadow: none;
}

/* Light theme surface tuning */
body[data-theme="light"] .sidebar {
    background: rgba(244, 246, 252, 0.95);
    border: 1px solid var(--surface-border);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .sidebar button {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(111, 69, 255, 0.26);
    border: 1px solid rgba(111, 69, 255, 0.35);
}

body[data-theme="light"] .sidebar button:hover {
    box-shadow: 0px 6px 14px rgba(111, 69, 255, 0.32);
}

body[data-theme="light"] .content {
    background: rgba(244, 246, 252, 0.96);
    border: 1px solid var(--surface-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .in-app-guide {
    background: rgba(245, 247, 253, 0.94);
    border-color: var(--surface-border);
    color: #0f172a;
}

body[data-theme="light"] .edge-panel-hint {
    background: rgba(111, 69, 255, 0.12);
    color: #312e81;
    border-left-color: var(--theme-color);
}

:root {
    --modal-block-padding: clamp(1rem, 4vh, 2.5rem);
    --modal-inline-padding: clamp(1rem, 6vw, 3rem);
    --sidebar-width: 250px;
    --edge-panel-top-offset: 24px;
    --edge-panel-bottom-guard: 18rem;
    --edge-panel-max-height: 70vh;
    --glass-blur: 0px;
    --header-height: 96px;
}

.news-banner { 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--theme-color);
    color: #fff;
    text-align: center;
    padding: 0.3rem clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.8rem, 2vw, 1rem);
    z-index: 10000;
    white-space: nowrap;
    overflow: hidden;
}

/* Edge panel app loading feedback */
.chatbot-container .panel-status-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(6, 16, 34, 0.85);
    color: #fff;
    padding: 1.5rem;
    border-radius: inherit;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 101;
    backdrop-filter: saturate(140%) blur(calc(var(--glass-blur) + 4px));
    pointer-events: auto;
}

.chatbot-container .panel-status-overlay.visible {
    display: flex;
}

.chatbot-container .panel-status-overlay .panel-status-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--theme-color);
    animation: panel-status-spin 1s linear infinite;
}

.chatbot-container .panel-status-overlay.loading .panel-status-actions {
    display: none;
}

.chatbot-container .panel-status-overlay.error .panel-status-spinner {
    display: none;
}

.chatbot-container .panel-status-overlay .panel-status-actions {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.chatbot-container .panel-status-overlay.error .panel-status-actions {
    display: flex;
}

.chatbot-container .panel-status-overlay .panel-status-link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

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

.news-banner::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 2px;
    animation: blink 0.8s steps(1, end) infinite;
}

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

.countdown {
    text-align: center;
    margin: 0.5rem 0;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Variants for countdown color schemes */
.countdown.red-on-black {
    color: #ff0000;
    background-color: #000;
}

.countdown.black-on-red {
    color: #000;
    background-color: #ff0000;
}

/* Header Styles */
.header {
    padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    font-family: 'Roboto Slab', 'Montserrat', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    color: var(--surface-contrast);
    -webkit-text-stroke: 0;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 2vw, 1rem);
    flex: 1;
    min-width: min(360px, 100%);
}

/* Container and Sidebar */
.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
    width: 100%;
}

.badge-spotlight {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    padding: clamp(0.9rem, 2vw, 1.4rem);
    margin: 0 auto;
    width: min(1100px, 100%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: saturate(140%) blur(var(--glass-blur));
    color: inherit;
}

.badge-spotlight__image {
    width: clamp(110px, 18vw, 150px);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.badge-spotlight__copy {
    display: grid;
    gap: 0.2rem;
}

.badge-spotlight__eyebrow {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.8;
}

.badge-spotlight__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.05rem, 2.8vw, 1.45rem);
}

.badge-spotlight__description {
    margin: 0;
    max-width: 56ch;
    line-height: 1.5;
    opacity: 0.9;
}

body[data-theme="light"] .badge-spotlight {
    background: linear-gradient(135deg, rgba(142, 91, 255, 0.08), rgba(142, 91, 255, 0.03));
    border-color: rgba(142, 91, 255, 0.25);
}

@media (max-width: 640px) {
    .badge-spotlight {
        flex-direction: column;
        text-align: center;
    }

    .badge-spotlight__copy {
        justify-items: center;
    }
}

.header-logo {
    height: 64px;
    width: auto;
    flex: 0 0 auto;
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.header-title {
    text-align: left;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--honor-badge-bg);
    color: var(--honor-badge-text);
    border: 1px solid var(--honor-badge-border);
    box-shadow: 0 10px 30px var(--honor-badge-shadow);
    width: fit-content;
    text-decoration: none;
}

.studio-badge__icon {
    width: 38px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.studio-badge__text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .header {
        text-align: center;
    }
    .header-brand {
        justify-content: center;
    }
    .header-title {
        text-align: center;
    }
    .studio-badge {
        align-self: center;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

.sidebar {
    width: 100%;
    max-width: min(1100px, 100%);
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 1rem;
    gap: 0.75rem;
    border-radius: 18px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 30;
    align-self: center;
    backdrop-filter: saturate(140%) blur(var(--glass-blur));
    -webkit-overflow-scrolling: touch;
}

.sidebar .search-panel {
    flex: 1 1 320px;
    max-width: min(480px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.search-field {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: clamp(0.9rem, 2vw, 1rem);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: rgba(255, 127, 197, 0.75);
    box-shadow: 0 0 0 2px rgba(255, 127, 197, 0.3);
}

body[data-theme='light'] .search-input,
[data-theme='light'] .search-input {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(16, 16, 20, 0.96);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    z-index: 60;
    backdrop-filter: blur(18px);
}

.search-results[hidden] {
    display: none;
}

.search-results-section {
    padding: 0.25rem 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease;
}

.search-result:hover,
.search-result[data-active='true'] {
    background: rgba(255, 255, 255, 0.12);
}

.search-result-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    letter-spacing: 0.04em;
}

body[data-theme='light'] .search-results,
[data-theme='light'] .search-results {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
}

body[data-theme='light'] .search-results-section,
[data-theme='light'] .search-results-section,
body[data-theme='light'] .search-result-subtitle,
[data-theme='light'] .search-result-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme='light'] .search-result,
[data-theme='light'] .search-result {
    color: #111;
}

body[data-theme='light'] .search-result:hover,
body[data-theme='light'] .search-result[data-active='true'],
[data-theme='light'] .search-result:hover,
[data-theme='light'] .search-result[data-active='true'] {
    background: rgba(0, 0, 0, 0.08);
}

body[data-theme='light'] .search-result-badge,
[data-theme='light'] .search-result-badge {
    background: rgba(0, 0, 0, 0.12);
    color: #111;
}

.sidebar button {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    flex: 1 1 clamp(160px, 24%, 220px);
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    white-space: nowrap;
}

.sidebar button:hover {
    transform: scale(1.08);
    animation: gradient-glow 1.5s infinite alternate;
}

@media (min-width: 1024px) {
    :root {
        --sidebar-width: clamp(240px, 20vw, 300px);
    }
    .container {
        flex-direction: row;
        align-items: flex-start;
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
    .sidebar {
        flex: 0 0 clamp(240px, 20vw, 300px);
        max-width: clamp(240px, 20vw, 300px);
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        border-radius: 20px;
        padding: 1.1rem 1rem;
        position: sticky;
        top: calc(env(safe-area-inset-top) + 88px);
        max-height: calc(var(--app-height, 100vh) - env(safe-area-inset-top) - 96px);
        overflow-y: auto;
        scrollbar-width: thin;
        align-self: flex-start;
    }
    .sidebar .search-panel {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }
    .sidebar button {
        flex: 0 0 auto;
        width: 100%;
        min-width: unset;
        min-height: 44px;
        padding: 0.6rem 0.85rem;
        font-size: 0.95rem;
        border-radius: 16px;
    }
    .sidebar button i {
        font-size: 1rem;
    }
    .content {
        flex: 1 1 auto;
        max-width: none;
        padding-bottom: 1.5rem;
    }
    .turntable-wrapper {
        --turntable-size: clamp(155px, 20vw, 220px);
    }
}

/* Main Content */
.content {
    flex: 1;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    padding-bottom: 1.5rem;
}

/* Music Player */
.music-player {
    background: transparent;
    padding: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    border-radius: 22px;
    box-shadow: 0px 22px 48px rgba(0,0,0,0.6);
    position: relative;
    bottom: auto;
    width: min(100%, calc(100vw - clamp(2rem, 8vw, 4rem)));
    max-width: min(820px, calc(100vw - var(--sidebar-width) - clamp(2rem, 8vw, 4rem)));
    overflow: visible;
    max-height: none;
    left: auto;
    transform: none;
    margin: clamp(2rem, 6vh, 3rem) auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 1.1rem);
    color: #fff;
    text-shadow: none;
}

.player-body {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    gap: clamp(1rem, 3.5vw, 1.8rem);
}

.player-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    position: relative;
    min-height: calc(var(--turntable-size) + 3.5rem);
}

.player-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    flex: 1 1 auto;
    width: 100%;
}

.player-meta-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.35rem 0.75rem;
    text-align: left;
}

.player-meta-grid p {
    margin: 0;
}

.player-utility {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    width: 100%;
}

.player-utility button {
    min-width: 48px;
    min-height: 48px;
    padding: 0.6rem 0.85rem;
    touch-action: manipulation;
}

@media (pointer: coarse) {
    .player-utility button {
        min-width: 56px;
        min-height: 56px;
        padding: 0.75rem 1rem;
    }
}

.player-utility .retry-button {
    flex: 1 1 clamp(120px, 32%, 180px);
}

.retry-button {
    display: none !important;
}

.seek-bar {
    width: 100%;
    margin: 0.2rem 0 0.1rem;
}

.about-us-active {
    position: relative;
    z-index: 1001;
}

.music-player h3 {
    margin: 0.3rem 0;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.waveform-visual {
    --viz-size: clamp(240px, 36vw, 360px);
    --ring-thickness: clamp(10px, 3vw, 14px);
    --inner-padding: 8px;
    --art-size: calc(var(--viz-size) - (2 * (var(--ring-thickness) + var(--inner-padding))));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
    width: var(--viz-size);
    height: var(--viz-size);
    box-sizing: border-box;
    margin: 0 auto;
    border-radius: 26px;
    background: rgba(11, 11, 11, 0.72);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.waveform-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.waveform-visual.beat {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 168, 90, 0.35);
}

.visualizer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
    max-width: 260px;
}

.visualizer-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(6, 10, 22, 0.75);
    border: 1px solid rgba(122, 247, 255, 0.2);
    backdrop-filter: blur(12px);
    margin: 0.35rem auto 0;
    max-width: 320px;
}

.visualizer-selector__button {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: none;
    color: #d9f7ff;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.visualizer-selector__button--active {
    background: linear-gradient(120deg, rgba(69, 243, 255, 0.9), rgba(176, 87, 255, 0.85));
    color: #05050d;
    box-shadow: 0 0 18px rgba(122, 247, 255, 0.6);
}

.visualizer-mode-status {
    margin: 0.1rem 0 0;
}

.visualizer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.visualizer-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.visualizer-toggle__control {
    display: inline-flex;
    align-items: center;
}

.visualizer-toggle__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.visualizer-toggle__track {
    width: 44px;
    height: 22px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.visualizer-toggle__thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.visualizer-toggle__input:checked + .visualizer-toggle__track {
    background: rgba(142, 91, 255, 0.65);
}

.visualizer-toggle__input:checked + .visualizer-toggle__track .visualizer-toggle__thumb {
    transform: translateX(22px);
}

.visualizer-toggle__input:focus-visible + .visualizer-toggle__track {
    outline: 2px solid rgba(142, 91, 255, 0.9);
    outline-offset: 2px;
}

.visualizer-status {
    margin: 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    min-height: 1rem;
}

.visualizer-status.is-static {
    color: rgba(255, 210, 150, 0.95);
}

.music-player[data-visualizer-mode='neon-bars'] .waveform-visual {
    background: radial-gradient(circle at top, rgba(69, 243, 255, 0.2), rgba(11, 11, 11, 0.8));
    border-color: rgba(69, 243, 255, 0.35);
}

.music-player[data-visualizer-mode='particle-field'] .waveform-visual {
    background: radial-gradient(circle at 30% 30%, rgba(176, 87, 255, 0.25), rgba(11, 11, 11, 0.85));
    border-color: rgba(176, 87, 255, 0.35);
}

.music-player[data-visualizer-mode='wireframe-lattice'] .waveform-visual {
    background: radial-gradient(circle at 70% 20%, rgba(255, 185, 94, 0.22), rgba(11, 11, 11, 0.88));
    border-color: rgba(255, 185, 94, 0.4);
}

.music-player[data-visualizer-mode='waveform-tunnel'] .waveform-visual {
    background: radial-gradient(circle at 50% 70%, rgba(142, 91, 255, 0.28), rgba(11, 11, 11, 0.82));
    border-color: rgba(142, 91, 255, 0.4);
}

.music-player[data-visualizer-mode='holographic-rings'] .waveform-visual {
    background: radial-gradient(circle at 60% 30%, rgba(69, 243, 255, 0.2), rgba(176, 87, 255, 0.2), rgba(11, 11, 11, 0.78));
    border-color: rgba(122, 247, 255, 0.35);
}

@media (max-width: 720px) {
    .waveform-visual {
        --viz-size: min(72vw, 320px);
        --inner-padding: 10px;
    }
}

@keyframes waveformPulse {
    0%,
    100% {
        transform: scaleY(0.2);
    }
    50% {
        transform: scaleY(0.9);
    }
}

.turntable-wrapper {
    --turntable-size: clamp(150px, 26vw, 210px);
    position: relative;
    width: var(--turntable-size);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.turntable {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 20%, #3f3f3f, #090909 70%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    perspective: 900px;
    -webkit-perspective: 900px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.turntable::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.turntable-disc {
    --album-size: 100%;
    position: relative;
    width: 86%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3b3b3b 0%, #0f0f0f 60%, #030303 100%);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.75), 0 10px 25px rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
    transform-origin: center center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    z-index: 1;
    -webkit-animation: spinDisc 20s linear infinite;
    animation: spinDisc 20s linear infinite;
    animation-play-state: paused;
}

.turntable-sheen,
.turntable-grooves,
.album-cover,
.album-groove-overlay,
.turntable-label {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.turntable-sheen {
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 45%);
    mix-blend-mode: screen;
    opacity: 0.35;
    z-index: 6;
}

.turntable-grooves {
    inset: 14%;
    background: repeating-radial-gradient(circle at center,
        rgba(255, 255, 255, 0.07) 0px,
        rgba(255, 255, 255, 0.07) 1px,
        rgba(0, 0, 0, 0) 1px,
        rgba(0, 0, 0, 0) 4px);
    mix-blend-mode: overlay;
    opacity: 0.45;
    z-index: 2;
}

.album-cover {
    width: var(--album-size);
    height: var(--album-size);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    border: none;
    z-index: 3;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    transform: translate(-50%, -50%) translateZ(0);
    -webkit-transform: translate(-50%, -50%) translateZ(0);
}

.album-groove-overlay {
    position: absolute;
    width: var(--album-size);
    height: var(--album-size);
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 62%),
        repeating-radial-gradient(circle at center,
            rgba(16, 16, 16, 0.4) 0px,
            rgba(16, 16, 16, 0.4) 1.5px,
            rgba(240, 240, 240, 0.12) 1.5px,
            rgba(240, 240, 240, 0.12) 3.2px);
    mix-blend-mode: soft-light;
    opacity: 0.9;
    filter: saturate(0.9) contrast(1.05);
    z-index: 4;
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.55),
        inset 0 0 4px rgba(255, 255, 255, 0.15);
    will-change: transform;
    transform: translate(-50%, -50%) translateZ(0);
    -webkit-transform: translate(-50%, -50%) translateZ(0);
}

.turntable-label {
    width: 14%;
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #f5f5f5 0%, #d0d0d0 60%, #7f7f7f 100%);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
    z-index: 5;
}

.turntable-disc.is-spinning {
    animation-play-state: running;
}

.album-cover,
.album-groove-overlay {
    -webkit-animation: spinCentered 20s linear infinite;
    animation: spinCentered 20s linear infinite;
    transform-origin: center;
    animation-play-state: paused;
}

.album-cover.is-spinning,
.album-groove-overlay.is-spinning {
    animation-play-state: running;
}

@keyframes spinDisc {
    0% {
        transform: rotate(0deg) translateZ(0);
    }
    100% {
        transform: rotate(359.9deg) translateZ(0);
    }
}

@-webkit-keyframes spinDisc {
    0% {
        -webkit-transform: rotate(0deg) translateZ(0);
                transform: rotate(0deg) translateZ(0);
    }
    100% {
        -webkit-transform: rotate(359.9deg) translateZ(0);
                transform: rotate(359.9deg) translateZ(0);
    }
}

@keyframes spinCentered {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateZ(0);
    }
    100% {
        transform: translate(-50%, -50%) rotate(359.9deg) translateZ(0);
    }
}

@-webkit-keyframes spinCentered {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0deg) translateZ(0);
                transform: translate(-50%, -50%) rotate(0deg) translateZ(0);
    }
    100% {
        -webkit-transform: translate(-50%, -50%) rotate(359.9deg) translateZ(0);
                transform: translate(-50%, -50%) rotate(359.9deg) translateZ(0);
    }
}

.turntable-grooves {
    -webkit-animation: grooveDrift 1.8s ease-in-out infinite;
    animation: grooveDrift 1.8s ease-in-out infinite;
    transform-origin: center;
    animation-play-state: paused;
}

.turntable-grooves.is-spinning {
    animation-play-state: running;
}

.turntable-sheen {
    -webkit-animation: sheenSweep 2.6s ease-in-out infinite;
    animation: sheenSweep 2.6s ease-in-out infinite;
    transform-origin: center;
    animation-play-state: paused;
}

.turntable-sheen.is-spinning {
    animation-play-state: running;
}

@keyframes grooveDrift {
    0%,
    100% {
        transform: scale(1) translateZ(0);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.012) translateZ(0);
        opacity: 0.6;
    }
}

@-webkit-keyframes grooveDrift {
    0%,
    100% {
        -webkit-transform: scale(1) translateZ(0);
                transform: scale(1) translateZ(0);
        opacity: 0.45;
    }
    50% {
        -webkit-transform: scale(1.012) translateZ(0);
                transform: scale(1.012) translateZ(0);
        opacity: 0.6;
    }
}

@keyframes sheenSweep {
    0%,
    100% {
        transform: rotate(0deg) translateZ(0);
        opacity: 0.35;
    }
    45% {
        transform: rotate(6deg) translateZ(0);
        opacity: 0.55;
    }
    75% {
        transform: rotate(-4deg) translateZ(0);
        opacity: 0.4;
    }
}

@-webkit-keyframes sheenSweep {
    0%,
    100% {
        -webkit-transform: rotate(0deg) translateZ(0);
                transform: rotate(0deg) translateZ(0);
        opacity: 0.35;
    }
    45% {
        -webkit-transform: rotate(6deg) translateZ(0);
                transform: rotate(6deg) translateZ(0);
        opacity: 0.55;
    }
    75% {
        -webkit-transform: rotate(-4deg) translateZ(0);
                transform: rotate(-4deg) translateZ(0);
        opacity: 0.4;
    }
}

.fire {
  font-size: 8px;
  filter: blur(0.5px);
  -webkit-filter: blur(0.5px);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.particle {
  animation: rise 2s ease-in-out infinite;
  background: #ff4000;
  border-radius: 50%;
  box-shadow: 0 0 1.25em #ff8000, 0 0 3.75em #ff8000, 0 0 6.25em #ff8000;
  height: 1.25em;
  left: 50%;
  margin: -1.25em;
  position: absolute;
  width: 1.25em;
}

.particle::after {
  animation: burn 2.5s ease-out infinite;
  background: #ff4000;
  border-radius: 50%;
  box-shadow: 0 0 1.25em #ff8000, 0 0 3.75em #ff8000, 0 0 6.25em #ff8000;
  content: "";
  display: block;
  height: 1.25em;
  left: 50%;
  margin: -1.25em;
  position: absolute;
  transform: rotate(180deg) translate(0, 1.25em);
  width: 1.25em;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-12.5em) scale(0);
  }
}

@keyframes burn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.5);
  }
}

.spin {
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359.9deg); }
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(359.9deg); transform: rotate(359.9deg); }
}

@keyframes gradient-glow {
    0% {
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        box-shadow: 0 0 5px var(--gradient-start);
    }
    50% {
        background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
        box-shadow: 0 0 15px var(--gradient-end);
    }
    100% {
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        box-shadow: 0 0 5px var(--gradient-start);
    }
}

.loading-spinner {
    display: none;
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--theme-color);
    border-radius: 50%;
    -webkit-animation: spin 1.05s ease-in-out infinite;
    animation: spin 1.05s ease-in-out infinite;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04), transparent 60%);
}

.loading-spinner::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: buffering-ripple 1.7s ease-out infinite;
}

.buffering-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 8;
    padding: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    background: radial-gradient(circle at 50% 30%, rgba(142, 91, 255, 0.08), rgba(7, 10, 24, 0.65));
}

.buffering-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.buffering-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    background: rgba(7, 10, 24, 0.6);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px) saturate(1.1);
}

.buffering-message {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #e7f0ff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.buffering-ripple {
    position: absolute;
    width: clamp(160px, 32vw, 220px);
    height: clamp(160px, 32vw, 220px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: buffering-ripple 2.05s ease-out infinite;
    filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.3));
}

.buffering-ripple.delayed {
    animation-delay: 0.6s;
}

@keyframes buffering-ripple {
    0% {
        transform: scale(0.72);
        opacity: 0.42;
    }
    70% {
        opacity: 0.16;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.music-controls.icons-only {
    margin-top: 0.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.3rem, 2vw, 0.6rem);
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.music-controls.icons-only button {
    background: transparent;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    padding: 0.1rem;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
    min-width: 48px;
    min-height: 48px;
    touch-action: manipulation;
    pointer-events: auto;
}

.music-controls.icons-only button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.seek-bar:focus-visible,
#volumeControl:focus-visible,
#seekBar:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

#djModeToggle.active {
    background: var(--theme-color);
    color: #000;
    box-shadow: 0 0 10px var(--theme-color);
}

#djModeToggle {
    /* Style to match other player controls */
    background: transparent;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    padding: 0.1rem;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
    min-width: 48px;
    min-height: 48px;
    touch-action: manipulation;
    pointer-events: auto;
}

#djModeToggle.active {
    background: var(--theme-color);
    color: #000;
    box-shadow: 0 0 10px var(--theme-color);
}

.music-controls.icons-only button:hover {
    animation: gradient-glow 1.5s infinite alternate;
    transform: none;
}

.music-controls.icons-only .shuffle-button {
    font-size: 1rem;
}

.music-controls.icons-only .shuffle-button .shuffle-indicator {
    font-weight: bold;
    color: var(--theme-color);
    text-shadow: -1px -1px 0 #fff,
                 1px -1px 0 #fff,
                 -1px 1px 0 #fff,
                 1px 1px 0 #fff;
}

/* Futuristic play button styling */
.music-controls.icons-only .play-button {
    position: relative;
    background: radial-gradient(circle, var(--theme-color) 0%, #000 70%);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--theme-color), 0 0 20px var(--theme-color) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulseGlow 2s infinite alternate;
}

.music-controls.icons-only .play-button .play-spinner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.music-controls.icons-only .play-button.loading .play-spinner {
    opacity: 1;
}

.music-controls.icons-only .play-button::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
}

.music-controls.icons-only .play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--theme-color), 0 0 40px var(--theme-color) inset;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px var(--theme-color), 0 0 20px var(--theme-color) inset;
    }
    to {
        box-shadow: 0 0 20px var(--theme-color), 0 0 40px var(--theme-color) inset;
    }
}

.now-playing {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    min-width: 0;
}

.now-playing-thumb {
    width: clamp(36px, 7vw, 56px);
    height: clamp(36px, 7vw, 56px);
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.25);
}

.now-playing-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.now-playing-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

@media (max-width: 900px) {
    .now-playing {
        justify-content: center;
    }

    .now-playing-text {
        align-items: center;
        text-align: center;
    }
}

.track-info {
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: bold; /* Improve legibility */
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.track-artist-inline {
    margin: 0;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.track-duration {
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    margin: 0;
    color: #fff;
}

.track-details {
    margin: 0;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    font-weight: bold; /* Improve legibility */
    color: #fff;
}

.music-player h3 {
    color: #fff;
}

body[data-theme="light"] .track-info,
body[data-theme="light"] .track-duration,
body[data-theme="light"] .track-details,
body[data-theme="light"] .music-player h3 {
    color: #0f172a;
    text-shadow: none;
}

.content-transition-banner {
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    text-align: center;
    font-size: clamp(0.85rem, 2.4vw, 1rem);
    margin-bottom: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body[data-theme="light"] .content-transition-banner {
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.content-loading {
    background: rgba(18, 183, 106, 0.18);
    color: #d9fbe7;
}

body[data-theme="light"] .content-loading {
    background: rgba(34, 197, 94, 0.16);
    color: #065f46;
}

.content-error-banner {
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
}

body[data-theme="light"] .content-error-banner {
    background: rgba(248, 113, 113, 0.9);
    color: #7f1d1d;
}

.dropdown {
    width: 100%;
    background: rgba(34,34,34,0.8);
    color: white;
    padding: 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 1rem;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

body[data-theme="light"] .dropdown {
    background: #fff;
    color: #0f172a;
    border: 1px solid var(--surface-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    box-sizing: border-box;
    padding: var(--modal-block-padding) var(--modal-inline-padding);
    align-items: stretch;
    justify-content: center;
}


.modal-content {
    background-color: #222;
    margin: 0;
    padding: 1.5rem;
    border: 1px solid #888;
    width: min(100%, 520px);
    height: calc(var(--app-height, 100vh) - 2 * var(--modal-block-padding));
    max-height: calc(var(--app-height, 100vh) - 2 * var(--modal-block-padding));
    overflow-y: auto;
    border-radius: 10px;
    color: #fff;
    position: relative; /* Needed for sticky elements inside */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.latest-tracks-banner {
    border: 1px solid var(--theme-color);
    background: rgba(14, 165, 233, 0.12);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
    gap: 0.75rem;
}

.latest-tracks-banner:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.latest-tracks-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.latest-tracks-badge {
    background: var(--theme-color);
    color: #000;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: clamp(0.6rem, 2vw, 0.72rem);
    letter-spacing: 0.08em;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    text-transform: uppercase;
    white-space: nowrap;
}

.latest-tracks-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.latest-tracks-title {
    margin: 0;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-color);
}

.latest-tracks-copy {
    margin: 0;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: #e0f4ff;
}

.latest-tracks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.latest-track-button {
    background: var(--theme-color);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.latest-track-button:hover,
.latest-track-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
    outline: none;
}

.latest-track-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .modal {
        padding: var(--modal-block-padding) clamp(0.75rem, 5vw, 1.5rem);
    }
    .modal-content {
        width: 100%;
        height: calc(var(--app-height, 100vh) - 2 * var(--modal-block-padding));
        max-height: calc(var(--app-height, 100vh) - 2 * var(--modal-block-padding));
    }
}


.close {
    align-self: flex-end;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    position: sticky;
    top: 0.35rem;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.close:hover,
.close:focus {
    color: #0f172a;
    background: #fff;
    border-color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

body[data-theme="light"] .close {
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    text-shadow: none;
}

body[data-theme="light"] .close:hover,
body[data-theme="light"] .close:focus {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

body[data-theme="light"] .close:focus-visible {
    outline-color: rgba(15, 23, 42, 0.85);
}

/* Region headers in radio station modal */
.radio-region-header {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin: 1rem 0 0.5rem;
    color: var(--theme-color);
}

.track-list a,
.album-list a,
.radio-list a {
    display: block;
    padding: 0.8rem;
    color: white;
    text-decoration: none;
    background-color: #333;
    margin-bottom: 0.3rem;
    border-radius: 5px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Use flex layout with smaller thumbnails for album list */
.album-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.album-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.album-info {
    display: flex;
    flex-direction: column;
}

.album-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-color);
    color: #000;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    font-weight: 700;
    margin-left: 0.4rem;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.45);
}

.album-info p {
    margin: 0;
}

.album-info .album-duration {
    margin-top: 0.2rem;
}

/* Edge panel refinements */
.edge-panel[data-position='collapsed'] {
    opacity: 0.95;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
    background: linear-gradient(160deg, rgba(8, 31, 22, 0.92), rgba(3, 15, 10, 0.88));
}

.edge-panel-content {
    opacity: 0;
    filter: blur(3px);
    pointer-events: none;
    transition: opacity 0.28s ease-in-out, filter 0.28s ease-in-out;
}

.edge-panel.visible:not([data-position='peek']) .edge-panel-content {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

.edge-panel[data-position='peek'] .edge-panel-content,
.edge-panel[data-position='collapsed'] .edge-panel-content {
    opacity: 0;
    filter: blur(3px);
    pointer-events: none;
}

.album-duration {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #ccc;
}

.track-list a:hover,
.album-list a:hover,
.radio-list a:hover {
    background-color: var(--theme-color);
    animation: gradient-glow 1.5s infinite alternate;
}

.radio-debug-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.radio-debug-panel h4 {
    margin: 0 0 0.5rem;
    color: var(--theme-color);
}

.radio-debug-panel .radio-debug-note {
    margin: 0 0 0.75rem;
    color: #b9b9b9;
}

.radio-debug-panel .radio-debug-table {
    max-height: 280px;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.radio-debug-panel table {
    width: 100%;
    border-collapse: collapse;
}

.radio-debug-panel th,
.radio-debug-panel td {
    text-align: left;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-debug-panel td.debug-url {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-list .track-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    color: white;
    background-color: #333;
    margin-bottom: 0.6rem;
    border-radius: 12px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.track-list .track-item:hover {
    background-color: var(--theme-color);
    animation: gradient-glow 1.5s infinite alternate;
}

.track-list .track-item button {
    margin-left: 0.5rem;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.track-list .track-item button:hover {
    background: var(--theme-color);
    color: #000;
}

.track-artwork {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.track-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.track-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.track-title {
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.track-duration {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.78rem;
    color: #d0d0d0;
}

.track-subtitle {
    font-size: 0.85rem;
    color: #c0c0c0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-description {
    margin: 0;
    color: #e6e6e6;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0.25rem 0 0.75rem;
}

.track-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    background: var(--theme-color);
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.track-meta-link:hover,
.track-meta-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.track-meta-button {
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.track-meta-button:hover,
.track-meta-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.track-meta-button:disabled {
    cursor: wait;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.track-meta-note {
    color: #d1d5db;
    font-size: 0.95rem;
    margin: 0;
}

.track-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.35rem;
    color: #e5e7eb;
}

.track-placeholder-empty {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.9rem;
    background: rgba(15, 23, 42, 0.22);
}

/* Responsive Design */
@media (max-width: 900px) {
    :root {
        --sidebar-width: 0px;
        --edge-panel-top-offset: 16px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        border-radius: 0;
        padding: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 15rem; /* Add margin to the bottom of the sidebar */
        z-index: 1001;
    }
    .container {
        flex-direction: column;
    }
    .content {
        padding-bottom: 1.5rem;
    }
    .music-player {
        z-index: 1000; /* Ensure the music player is on top */
        width: min(100%, calc(100vw - 1.5rem));
        max-width: min(100%, calc(100vw - 1.5rem));
        margin: clamp(1.75rem, 6vh, 2.75rem) auto;
        padding: clamp(0.85rem, 4vw, 1.2rem);
    }
    .player-body {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .player-main {
        align-items: center;
    }
    .player-meta-grid {
        text-align: center;
    }
    .player-utility {
        justify-content: center;
    }
    .music-controls.icons-only {
        justify-content: center;
    }
    .turntable-wrapper {
        --turntable-size: clamp(125px, 45vw, 180px);
    }
}

@media (max-width: 480px) {
    .sidebar button {
        padding: 0.5rem;
        min-width: auto;
        font-size: 0.8rem;
        width: 45%;
    }
    .music-player {
        padding: clamp(0.75rem, 5vw, 1rem);
        border-radius: 18px;
        max-width: min(100%, calc(100vw - 1rem));
        margin: clamp(1.5rem, 7vh, 2.25rem) auto;
    }
    .music-controls.icons-only {
        justify-content: center;
        gap: 0.4rem;
    }
    .turntable-wrapper {
        --turntable-size: clamp(105px, 56vw, 150px);
    }
    .modal-content {
        width: 90%;
    }
}

/* Layers used for rotating background images */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

/* Light mode overrides */
body[data-theme="light"] .header {
    color: #0f172a;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

body[data-theme="light"] .sidebar,
body[data-theme="light"] .content,
body[data-theme="light"] .modal .modal-content,
body[data-theme="light"] .chatbot-container,
body[data-theme="light"] .music-player {
    background: var(--surface-bg);
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

body[data-theme="light"] .sidebar button,
body[data-theme="light"] .retry-button,
body[data-theme="light"] .install-btn {
    color: #0f172a;
}

body[data-theme="light"] .edge-panel {
    background: var(--surface-bg);
    color: #0f172a;
    border: 1px solid var(--surface-border);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.22);
}

body[data-theme="light"] .edge-panel-item {
    background: rgba(245, 247, 253, 0.92);
    color: #0f172a;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .edge-panel-handle {
    background: linear-gradient(180deg, rgba(111, 69, 255, 0.8), rgba(255, 127, 197, 0.6));
}

body[data-theme="light"] .edge-panel-privacy,
body[data-theme="light"] .edge-panel-privacy a {
    color: #0f172a;
}

.badge-button {
  --badge-bg: linear-gradient(135deg, #8E5BFF 0%, #6bdcff 100%);
  --badge-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  color: #0c0c17;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--badge-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.badge-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.badge-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35) inset, 0 8px 18px rgba(0, 0, 0, 0.25);
}

.badge-button:focus-visible {
  outline: 2px solid #c1f4e3;
  outline-offset: 3px;
}

.badge-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.badge-button__icon {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
}

.badge-button__label {
  letter-spacing: 0.01em;
}

.notification-toast {
  position: fixed;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 1rem);
  transform: translate(-50%, calc(100% + 1rem));
  background: rgba(15, 11, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  width: min(560px, calc(100% - 2rem));
  padding: 1.1rem 1.2rem 1rem 1.2rem;
  backdrop-filter: blur(16px);
  color: #fff;
  z-index: 1200;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.notification-toast.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.notification-toast__content {
  display: grid;
  gap: 0.35rem;
}

.notification-toast__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0;
}

.notification-toast__title {
  font-weight: 800;
  margin: 0;
  font-size: 1.05rem;
}

.notification-toast__copy {
  margin: 0;
  opacity: 0.9;
  line-height: 1.45;
}

.notification-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.notification-toast__primary {
  background: var(--badge-bg);
}

.notification-toast__secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.notification-toast__secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.notification-toast__secondary:focus-visible {
  outline: 2px solid #c1f4e3;
  outline-offset: 3px;
}

.notification-toast__close {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.notification-toast__close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.notification-toast__close:focus-visible {
  outline: 2px solid #c1f4e3;
  outline-offset: 3px;
}

.app-update-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(22, 24, 30, 0.95);
  color: #f5f7ff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-update-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-update-banner__copy {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.app-update-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-update-banner__dismiss {
  border: none;
  background: transparent;
  color: #cbd0ff;
  font-size: 0.85rem;
  cursor: pointer;
}

.app-update-banner__dismiss:hover,
.app-update-banner__dismiss:focus-visible {
  color: #ffffff;
  outline: none;
}

@media (max-width: 640px) {
  .app-update-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}


/* Naija Vibes News */
.news-panel {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 24, 0.9);
    backdrop-filter: blur(12px) saturate(140%);
    z-index: 12000;
    padding: calc(1.5rem + env(safe-area-inset-top)) clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 3rem);
    overflow-y: auto;
    color: #fff;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-panel.news-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.news-panel header {
    background: linear-gradient(135deg, rgba(16, 22, 44, 0.9), rgba(10, 32, 28, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    border-radius: 18px;
    padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 3vw, 1.35rem);
}

.news-panel .modal-title {
    margin-top: 0;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: #fdfdff;
}

.news-panel .modal-tagline {
    color: #f8fbff;
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    line-height: 1.6;
    max-width: 72ch;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.36);
}

.news-layout {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.news-hero {
    display: grid;
    grid-template-columns: 1fr;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(0.9rem, 2vw, 1.25rem);
}

.news-card {
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.75), rgba(12, 38, 32, 0.65));
    border: 1px solid rgba(142, 91, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 280px;
    position: relative;
}

.news-hero-card {
    grid-column: 1 / -1;
    min-height: 360px;
    box-shadow: 0 28px 48px rgba(142, 91, 255, 0.25);
}

.news-image-wrap {
    position: relative;
    overflow: hidden;
    max-height: 260px;
}

.news-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.15);
    transition: transform 0.4s ease;
}

.news-card:hover .news-image-wrap img {
    transform: scale(1.04);
}

.news-card-body {
    padding: clamp(0.85rem, 2vw, 1.1rem);
    display: grid;
    gap: 0.35rem;
}

.news-card h3 {
    margin: 0;
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    color: #f2e9ff;
}

.news-meta {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.news-summary {
    margin: 0.15rem 0 0.25rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 96, 125, 0.2);
    border: 1px solid rgba(255, 96, 125, 0.5);
    color: #ffb7c3;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-notification-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d4f;
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.6);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 1.2s ease;
}

.nav-notification-dot.visible {
    opacity: 1;
    transform: scale(1);
    animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); }
}

.news-nav-button {
    position: relative;
}

.news-edge-button {
    position: relative;
}

.news-panel .popup-close {
    position: sticky;
    top: calc(env(safe-area-inset-top) + 10px);
}

@media (max-width: 640px) {
    .news-panel {
        padding: calc(1.25rem + env(safe-area-inset-top)) 0.85rem 2rem;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.track-provenance {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.provenance-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(142, 91, 255, 0.2);
    border: 1px solid rgba(142, 91, 255, 0.6);
    color: #f5edff;
}

.track-reason-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

.track-reason-label {
    flex: 1;
}

.playback-status-banner {
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 40px;
}

.status-retry-button {
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: var(--theme-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.share-options-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: auto;
}

.share-options-content {
    width: min(420px, 92vw);
    background: #111827;
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    display: grid;
    gap: 1rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: auto;
}

.share-options-actions {
    display: grid;
    gap: 0.65rem;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resume-toast {
    position: fixed;
    bottom: clamp(1rem, 4vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.75rem;
    width: min(520px, 92vw);
    z-index: 1004;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.resume-toast__content {
    display: grid;
    gap: 0.35rem;
}

.resume-toast__title {
    margin: 0;
    font-weight: 600;
}

.resume-toast__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.resume-toast__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.badge-button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.storyliner-panel {
    margin-top: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.85rem;
    background: rgba(15, 23, 42, 0.12);
}

.storyliner-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: rgba(142, 91, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.storyliner-cards {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.6rem;
}

.storyliner-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}

.storyliner-card h4 {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.storyliner-card p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
    .spin,
    .loading-spinner,
    .nav-notification-dot.visible,
    .turntable-disc,
    .turntable-grooves,
    .turntable-sheen,
    .album-cover,
    .album-groove-overlay {
        animation: none !important;
    }
    .edge-panel-content {
        transition: none !important;
    }
}
