:root {
    color-scheme: dark;
    --bg: #070b16;
    --bg-soft: #0b1120;
    --panel: rgba(17, 22, 38, 0.88);
    --panel-2: rgba(20, 26, 44, 0.92);
    --panel-3: rgba(11, 15, 27, 0.96);
    --border: rgba(145, 163, 255, 0.12);
    --border-strong: rgba(116, 231, 255, 0.28);
    --text: #f4f6ff;
    --muted: #96a2c6;
    --muted-2: #67708f;
    --cyan: #77e8ff;
    --blue: #61a7ff;
    --pink: #ff4b9a;
    --violet: #b97aff;
    --success: #66f0c5;
    --warning: #ffb86b;
    --danger: #ff6b9f;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --ease: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(97, 167, 255, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 75, 154, 0.12), transparent 24%),
        linear-gradient(180deg, #05070f 0%, #090d18 38%, #0b1120 100%);
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.hidden {
    display: none !important;
}

.scene-glow,
.scene-grid {
    pointer-events: none;
    position: fixed;
    inset: 0;
}

.scene-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
    opacity: 0.32;
}

.scene-glow {
    filter: blur(80px);
    opacity: 0.6;
}

.glow-cyan {
    inset: auto auto -140px -100px;
    width: 360px;
    height: 360px;
    background: rgba(87, 216, 255, 0.16);
    border-radius: 999px;
}

.glow-magenta {
    inset: -120px -140px auto auto;
    width: 360px;
    height: 360px;
    background: rgba(255, 75, 154, 0.14);
    border-radius: 999px;
}

.shell-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        linear-gradient(160deg, rgba(14, 18, 32, 0.94), rgba(12, 15, 27, 0.96));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 20px;
    border-right: 1px solid var(--border);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.brand-dot {
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.brand-dot:nth-child(1) {
    height: 10px;
}

.brand-dot:nth-child(2) {
    height: 16px;
}

.brand-dot:nth-child(3) {
    height: 22px;
}

.brand-kicker,
.eyebrow {
    margin: 0 0 6px;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.brand-block h1,
.topbar-copy h2,
.section-title-row h3,
.panel-head h4,
.modal-card h2,
.hero-copy h4 {
    margin: 0;
}

.brand-block h1 {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}

.sidebar-nav,
.profile-actions-column {
    display: grid;
    gap: 8px;
}

.nav-link,
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text);
    border-color: rgba(119, 232, 255, 0.16);
    background: linear-gradient(90deg, rgba(119, 232, 255, 0.12), rgba(185, 122, 255, 0.1));
}

.sidebar-status {
    display: grid;
    gap: 12px;
}

.status-tile {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.status-tile span,
.metric-card span,
.profile-stat span,
.profile-block span,
.panel-label-row span,
.timeline-labels span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-tile strong,
.metric-card strong,
.profile-stat strong,
.profile-block strong {
    display: block;
    margin-top: 6px;
}

.go-live-button,
.primary-button,
.secondary-button,
.accent-button,
.ghost-button,
.danger-button,
.icon-pill {
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    padding: 0 18px;
    color: var(--text);
    transition: transform var(--ease), filter var(--ease), background var(--ease), border-color var(--ease);
}

.go-live-button,
.primary-button,
.accent-button {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    color: #10121b;
    font-weight: 800;
}

.secondary-button,
.icon-pill {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.guest-signup-button {
    background: linear-gradient(90deg, rgba(119, 232, 255, 0.9), rgba(185, 122, 255, 0.9));
    color: #0f1320;
    font-weight: 800;
}

.ghost-button {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.danger-button {
    background: linear-gradient(90deg, rgba(255, 75, 154, 0.95), rgba(255, 107, 159, 0.88));
    font-weight: 700;
}

.ghost-button.danger {
    border-color: rgba(255, 107, 159, 0.18);
    color: #ff9dbd;
}

.go-live-button:hover,
.primary-button:hover,
.secondary-button:hover,
.accent-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.sidebar-footer {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.main-shell {
    min-width: 0;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 6px 4px 24px;
}

.topbar-copy h2 {
    font-size: clamp(1.8rem, 2vw + 1.2rem, 3rem);
    letter-spacing: -0.05em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-search-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    min-width: min(420px, 42vw);
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.top-search-shell input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.98rem;
}

.top-search-shell input::placeholder {
    color: var(--muted);
}

.top-search-shell input:focus {
    outline: none;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.04);
}

.status-dot.live {
    background: var(--success);
    box-shadow: 0 0 0 7px rgba(102, 240, 197, 0.12);
}

.page-stack {
    display: grid;
    gap: 28px;
    padding-bottom: 100px;
}

.page-section {
    min-width: 0;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title-row h3 {
    font-size: clamp(1.7rem, 1vw + 1.4rem, 2.6rem);
    letter-spacing: -0.05em;
}

.headline-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.metric-card {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 18px;
}

.metric-card strong {
    margin-top: 6px;
    font-size: 1.05rem;
}

.metric-card.subtle {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        linear-gradient(160deg, rgba(17, 22, 38, 0.88), rgba(13, 17, 29, 0.94));
}

.broadcast-grid {
    display: grid;
    gap: 20px;
}

.player-stack,
.side-monitor {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.hero-player {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-xl);
}

.hero-art-panel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
    background:
        radial-gradient(circle at top center, rgba(255, 75, 154, 0.22), transparent 44%),
        linear-gradient(180deg, rgba(15, 18, 30, 0.94), rgba(8, 11, 21, 0.98));
}

.hero-art-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-visualizer {
    position: absolute;
    inset: auto 18px 18px 18px;
    height: 44%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity var(--ease), transform 900ms ease;
}

.audio-visualizer span {
    flex: 1 1 0;
    height: 30%;
    min-height: 32px;
    border-radius: 999px 999px 0 0;
    background:
        linear-gradient(180deg, rgba(119, 232, 255, 0.9), rgba(255, 75, 154, 0.7) 58%, rgba(185, 122, 255, 0.55));
    filter: blur(8px);
    transform-origin: bottom center;
    animation: idlePulse 4.6s ease-in-out infinite;
}

.audio-visualizer.live span {
    animation: streamBars 1100ms ease-in-out infinite;
}

.audio-visualizer.live span:nth-child(2n) {
    animation-duration: 920ms;
}

.audio-visualizer.live span:nth-child(3n) {
    animation-duration: 1320ms;
}

.live-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 11, 20, 0.78);
    border: 1px solid rgba(255, 75, 154, 0.2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.hero-copy h4 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.hero-subline {
    margin: 0;
    color: var(--cyan);
    font-size: 1.15rem;
    font-weight: 600;
}

.hero-meta {
    margin: 0;
    color: var(--muted);
}

.timeline-panel {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.timeline-labels strong {
    font-size: 0.96rem;
}

.timeline-track {
    position: relative;
    display: flex;
    align-items: center;
    height: 14px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.timeline-track::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-fill {
    display: block;
    position: relative;
    z-index: 1;
    width: 0%;
    height: 100%;
    min-width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4a8dff, #2f6fff);
    box-shadow:
        0 0 10px rgba(74, 141, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: width 900ms linear;
}

.player-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.transport-button {
    min-width: 150px;
}

.panel-card,
.request-console,
.profile-preview,
.admin-section,
.admin-view-card {
    border-radius: var(--radius-xl);
}

.panel-card {
    padding: 22px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-body,
.queue-panel,
.admin-list,
.playlist-list,
.settings-list {
    min-width: 0;
}

.queue-panel,
.results-list,
.admin-list,
.playlist-list,
.settings-list {
    display: grid;
    gap: 12px;
}

.queue-panel {
    max-height: 640px;
    overflow-y: auto;
    padding-right: 6px;
}

.requests-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}

.app-shell.guest-mode .requests-grid {
    grid-template-columns: 1fr;
}

.request-console,
.profile-preview,
.admin-section {
    padding: 22px;
}

.request-console {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    min-height: 760px;
    max-height: 760px;
    overflow: hidden;
}

.search-form-panel,
.toolbar-form,
.token-row {
    display: flex;
    gap: 12px;
}

.search-form-panel {
    margin-bottom: 14px;
}

.admin-controls-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(139, 220, 255, 0.12);
    background: rgba(8, 16, 30, 0.76);
}

.bulk-toolbar-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.bulk-toolbar-copy strong {
    color: var(--text);
}

.bulk-toolbar-copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.bulk-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-checkbox {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.bulk-checkbox input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.bulk-checkbox span {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(139, 220, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.bulk-checkbox span::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 6px;
    width: 11px;
    height: 6px;
    border-left: 2px solid #08111f;
    border-bottom: 2px solid #08111f;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform var(--ease);
}

.bulk-checkbox input:checked + span {
    background: linear-gradient(135deg, rgba(119, 232, 255, 0.98), rgba(185, 122, 255, 0.92));
    border-color: rgba(119, 232, 255, 0.55);
}

.bulk-checkbox input:checked + span::after {
    transform: rotate(-45deg) scale(1);
}

.users-controls-grid {
    grid-template-columns: minmax(0, 1fr) 120px;
}

.playlist-builder-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr) auto;
}

.playlist-tools-grid {
    grid-template-columns: minmax(160px, 0.8fr) auto auto minmax(220px, 1fr);
}

.search-shell {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 14px 16px;
    outline: 0;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.search-shell input {
    padding-left: 44px;
    padding-right: 48px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(119, 232, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

select {
    appearance: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(17, 22, 38, 0.92);
    color: var(--text);
}

select option {
    background: #111624;
    color: var(--text);
}

.clear-search-button {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
}

.search-results-shell {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.search-modal-card .results-list {
    min-height: 420px;
    max-height: 56vh;
}

.panel-label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.panel-label-muted {
    color: var(--muted-2);
}

.results-list {
    max-height: 520px;
    overflow-y: auto;
    padding-top: 2px;
    padding-right: 6px;
}

.search-result,
.queue-item,
.playlist-item,
.playlist-song-item,
.admin-card,
.settings-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.playlist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.mode-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(119, 232, 255, 0.08);
    border: 1px solid rgba(119, 232, 255, 0.16);
    color: var(--cyan);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.active-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(102, 240, 197, 0.12);
    border: 1px solid rgba(102, 240, 197, 0.22);
    color: var(--success);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.playlist-songs-list {
    display: grid;
    gap: 12px;
    min-height: 180px;
    margin-top: 16px;
}

.loading-card {
    align-items: stretch;
}

.loading-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(119, 232, 255, 0.1), rgba(255, 255, 255, 0.05));
    background-size: 240% 100%;
    animation: shimmer 1.2s linear infinite;
    flex: 0 0 72px;
}

.loading-copy {
    flex: 1 1 auto;
    display: grid;
    align-content: center;
    gap: 10px;
}

.loading-line {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(185, 122, 255, 0.12), rgba(255, 255, 255, 0.05));
    background-size: 240% 100%;
    animation: shimmer 1.2s linear infinite;
}

.loading-line-lg {
    width: 68%;
}

.loading-line-sm {
    width: 42%;
}

.result-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.mini-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.86rem;
}

.like-button {
    min-width: 42px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 1.15rem;
    line-height: 1;
    color: #f5f7ff;
}

.like-button.liked {
    background: linear-gradient(135deg, rgba(255, 75, 154, 0.22), rgba(185, 122, 255, 0.2));
    border-color: rgba(255, 75, 154, 0.34);
    color: #ff7db2;
    box-shadow: 0 0 0 1px rgba(255, 75, 154, 0.08), 0 10px 24px rgba(255, 75, 154, 0.12);
}

.player-controls .like-button,
.player-controls #like-current-btn {
    min-width: 132px;
    font-size: 0.96rem;
}

.blocked-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 107, 159, 0.12);
    border: 1px solid rgba(255, 107, 159, 0.2);
    color: #ff8bbb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.search-result img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
}

.result-copy,
.queue-copy,
.playlist-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.queue-thumb,
.next-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.next-coming-card {
    position: relative;
    align-items: center;
}

.next-coming-card .queue-actions {
    margin-left: auto;
    align-self: center;
}

.download-indicator {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    margin-left: 2px;
}

.download-indicator-ring,
.download-indicator-core {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.download-indicator-ring {
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.download-indicator-core {
    inset: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.download-indicator.downloading .download-indicator-ring {
    border-top-color: rgba(119, 232, 255, 0.9);
    border-right-color: rgba(185, 122, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    animation: spinRing 1s linear infinite;
}

.download-indicator.downloading .download-indicator-core {
    color: var(--cyan);
    box-shadow: 0 0 24px rgba(119, 232, 255, 0.14);
}

.download-indicator.ready .download-indicator-ring {
    border-color: rgba(102, 240, 197, 0.44);
    box-shadow:
        0 0 18px rgba(102, 240, 197, 0.22),
        inset 0 0 0 1px rgba(102, 240, 197, 0.08);
}

.download-indicator.ready .download-indicator-core {
    color: #08150f;
    background: linear-gradient(180deg, rgba(102, 240, 197, 0.96), rgba(56, 214, 151, 0.92));
    box-shadow: 0 0 20px rgba(102, 240, 197, 0.22);
}

.download-status-text {
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

.download-status-text.downloading {
    color: var(--cyan);
}

.download-status-text.ready {
    color: var(--success);
}

.result-copy strong,
.queue-copy strong,
.playlist-copy strong,
.admin-card strong,
.settings-item strong {
    display: block;
    margin-bottom: 4px;
}

.result-copy p,
.queue-copy p,
.playlist-copy p,
.admin-card p,
.settings-item p,
.inline-note,
.form-message,
.empty-state p,
.sidebar-footer p {
    margin: 0;
    color: var(--muted);
}

.song-duration-meta {
    color: rgba(119, 232, 255, 0.78) !important;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.queue-actions,
.admin-card-actions,
.promotion-actions,
.profile-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.role-editor {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

#logout-btn {
    width: auto;
    justify-self: start;
    min-width: 160px;
}

.profile-preview {
    display: grid;
    gap: 16px;
}

.profile-snapshot-grid,
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-stat,
.profile-block {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-stat strong,
.profile-block strong {
    margin-top: 8px;
    font-size: 0.98rem;
    word-break: break-word;
}

.full-width-button {
    width: 100%;
}

.admin-section {
    display: grid;
    gap: 18px;
}

.admin-header-row {
    margin-bottom: 0;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.admin-tab,
.auth-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    white-space: nowrap;
}

.admin-tab.active,
.auth-tab.active {
    background: linear-gradient(90deg, rgba(119, 232, 255, 0.16), rgba(185, 122, 255, 0.18));
    color: var(--text);
    border-color: rgba(119, 232, 255, 0.2);
}

.admin-content,
.admin-view {
    min-width: 0;
}

.admin-view-card {
    padding: 20px;
}

.admin-list,
.playlist-list,
.settings-list {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 6px;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pagination-bar.hidden {
    display: none;
}

.pagination-info {
    color: var(--muted);
    text-align: center;
    flex: 1 1 auto;
}

.settings-item {
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.settings-copy {
    flex: 1 1 260px;
    min-width: 0;
}

.settings-control {
    flex: 0 1 280px;
    min-width: 220px;
    display: grid;
    gap: 10px;
}

.settings-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

.settings-meta strong {
    color: var(--text);
    font-size: 0.92rem;
}

.settings-range {
    width: 100%;
    accent-color: #8bdcff;
    cursor: pointer;
}

.settings-select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(139, 220, 255, 0.18);
    background: rgba(10, 15, 28, 0.88);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.settings-select:focus,
.settings-range:focus {
    outline: none;
    border-color: rgba(139, 220, 255, 0.38);
}

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    justify-content: space-between;
    min-width: 150px;
    width: 100%;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 58px;
    height: 32px;
}

.toggle-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--ease), border-color var(--ease);
}

.toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    transition: transform var(--ease);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(90deg, rgba(119, 232, 255, 0.9), rgba(185, 122, 255, 0.9));
    border-color: rgba(119, 232, 255, 0.28);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(26px);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.span-two {
    grid-column: span 2;
}

.promotion-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.datetime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 5, 11, 0.72);
    backdrop-filter: blur(18px);
    z-index: 20;
}

.modal-card {
    width: min(100%, 1080px);
    max-height: min(92vh, 980px);
    overflow-y: auto;
    border-radius: 30px;
    padding: 24px;
}

.compact-modal-card {
    width: min(100%, 560px);
    display: grid;
    gap: 16px;
}

.search-modal-card {
    width: min(100%, 980px);
    display: grid;
    gap: 16px;
}

.auth-card {
    width: min(100%, 520px);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.auth-form,
.stack-small {
    display: grid;
    gap: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -40% 0;
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 18px;
}

.profile-primary,
.profile-secondary {
    display: grid;
    gap: 16px;
}

.profile-form-block {
    display: grid;
    gap: 10px;
}

.profile-form-block label {
    color: var(--muted);
    font-size: 0.88rem;
}

.api-block .token-row input {
    min-width: 0;
}

.form-message {
    min-height: 20px;
    font-size: 0.92rem;
}

.form-message.error {
    color: #ff99b9;
}

.share-button {
    border-color: rgba(119, 232, 255, 0.22);
    color: var(--cyan);
}

.song-share-modal-card {
    width: min(100%, 620px);
}

.song-share-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.song-share-artwork {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.song-share-copy {
    min-width: 0;
}

.song-share-copy strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
}

.song-share-copy p,
.song-share-playlists span,
.song-share-playlists li span {
    color: var(--muted);
}

.share-link-row {
    display: flex;
    gap: 10px;
}

.share-link-row input {
    min-width: 0;
    flex: 1 1 auto;
}

.song-share-playlists {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.song-share-playlists ul {
    list-style: none;
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.song-share-playlists li {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.song-share-playlists li strong {
    color: var(--text);
}

.song-share-playlists li em {
    color: var(--success);
    font-style: normal;
    font-weight: 800;
}

.notification-stack {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: grid;
    gap: 10px;
    width: min(92vw, 420px);
    pointer-events: none;
}

.ios-toast {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
        linear-gradient(180deg, rgba(13, 17, 29, 0.96), rgba(13, 18, 30, 0.92));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: islandInTop 220ms ease, islandOutTop 280ms ease 4.5s forwards;
}

.ios-toast::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--violet));
    box-shadow: 0 0 18px rgba(119, 232, 255, 0.4);
}

.ios-toast.error::before {
    background: linear-gradient(180deg, #ff7ca8, #ff537f);
    box-shadow: 0 0 18px rgba(255, 83, 127, 0.34);
}

.ios-toast.error {
    animation: islandInTop 220ms ease, alertShake 320ms ease 220ms 2, islandOutTop 280ms ease 4.5s forwards;
}

.ios-toast-content strong {
    display: block;
    font-size: 0.92rem;
}

.ios-toast-content p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.empty-state {
    display: grid;
    place-items: center;
    padding: 28px 16px;
    text-align: center;
    min-height: 120px;
}

.mobile-nav {
    display: none;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(119, 232, 255, 0.6), rgba(185, 122, 255, 0.56));
    border-radius: 999px;
}

@media (max-width: 1280px) {
    .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .hero-player {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    }

    .broadcast-grid,
    .requests-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-shell {
        padding: 18px 16px 92px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 18px;
    }

    .topbar-actions {
        width: 100%;
    }

    .top-search-shell {
        width: 100%;
        min-width: 0;
        order: -1;
    }

    .hero-player,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .playlist-builder-form,
    .playlist-tools-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid,
    .profile-snapshot-grid,
    .profile-info-grid,
    .datetime-grid {
        grid-template-columns: 1fr;
    }

    .span-two {
        grid-column: auto;
    }

    .mobile-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 22px;
        z-index: 12;
    }

    .mobile-nav-link {
        flex-direction: column;
        justify-content: center;
        min-height: 58px;
        padding: 4px 6px;
        font-size: 0.72rem;
        gap: 4px;
        border-radius: 18px;
        text-align: center;
    }

    .mobile-nav-label {
        display: none;
    }
}

@media (max-width: 720px) {
    .section-title-row,
    .panel-head,
    .search-form-panel,
    .toolbar-form,
    .token-row,
    .share-link-row,
    .profile-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .headline-metrics,
    .admin-metrics {
        width: 100%;
    }

    .users-controls-grid,
    .admin-controls-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        flex: 1 1 100%;
        min-width: 0;
    }

    .hero-player,
    .panel-card,
    .request-console,
    .profile-preview,
    .admin-section,
    .admin-view-card,
    .modal-card {
        padding: 18px;
    }

    .hero-art-panel {
        min-height: 240px;
    }

    .hero-copy h4 {
        font-size: 2.2rem;
    }

    .results-list {
        min-height: 420px;
        max-height: 420px;
    }

    .search-result,
    .queue-item,
    .playlist-item,
    .playlist-song-item,
    .admin-card,
    .settings-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-control,
    .action-badge {
        min-width: 0;
        width: 100%;
    }

    .bulk-toolbar-actions {
        width: 100%;
    }

    .bulk-toolbar-actions > * {
        flex: 1 1 calc(50% - 6px);
    }

    .search-result img {
        width: 100%;
        height: 180px;
    }

    .queue-thumb,
    .next-thumb {
        width: 100%;
        height: 180px;
        flex-basis: auto;
    }

    .queue-actions,
    .admin-card-actions,
    .role-editor,
    .result-actions,
    .playlist-actions {
        width: 100%;
        margin-left: 0;
    }

    .queue-actions > *,
    .admin-card-actions > *,
    .role-editor > *,
    .result-actions > *,
    .playlist-actions > * {
        flex: 1 1 calc(50% - 6px);
    }

    .queue-actions > .like-button,
    .result-actions > .like-button,
    .playlist-actions > .like-button {
        flex: 0 0 48px;
        min-width: 48px;
    }
}

@media (max-width: 480px) {
    .main-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .status-chip {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .hero-copy h4,
    .section-title-row h3,
    .topbar-copy h2 {
        letter-spacing: -0.04em;
    }

    .hero-copy h4 {
        font-size: 1.9rem;
    }

    .results-list {
        min-height: 360px;
        max-height: 360px;
    }

    .mobile-nav-link {
        font-size: 0.78rem;
    }

}

.mobile-nav-icon {
    font-size: 1.1rem;
    line-height: 1;
}

@keyframes islandInTop {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes islandOutTop {
    to {
        opacity: 0;
        transform: translateY(-26px) scale(0.98);
    }
}

@keyframes alertShake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

@keyframes idlePulse {
    0%, 100% {
        transform: scaleY(0.82);
        opacity: 0.58;
    }

    50% {
        transform: scaleY(1.08);
        opacity: 0.8;
    }
}

@keyframes streamBars {
    0%, 100% {
        transform: scaleY(0.42);
        opacity: 0.6;
    }

    35% {
        transform: scaleY(1.16);
        opacity: 0.94;
    }

    68% {
        transform: scaleY(0.62);
        opacity: 0.74;
    }
}

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
