/* ==========================================================================
   UDream Music Stream - Custom stylesheet
   Synthwave / Deep Space Glassmorphic Theme
   Locked Viewport (No Scroll) - 3-Column Layout
   ========================================================================== */

:root {
    --bg-color: #070d0a;
    --panel-bg: rgba(13, 23, 17, 0.75);
    --panel-border: rgba(16, 185, 129, 0.22);
    --primary-color: #10b981; /* Polissya Emerald */
    --primary-glow: rgba(16, 185, 129, 0.45);
    --accent-amber: #f59e0b; /* Vintage Tube Amber */
    --accent-red: #ef4444; /* Heart / On Air Red */
    --accent-cyan: #06b6d4; /* Radio Signal Cyan */
    --accent-emerald-light: #34d399;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-inter);
    overflow: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-magenta);
    bottom: -150px;
    right: -100px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.container {
    height: 100vh;
    max-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 15px;
}

/* Glass panel base */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(15, 12, 33, 0.4);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-magenta), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.4));
    animation: pulseGlow 3s infinite alternate;
}

.logo-text h1 {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text h1 span {
    color: var(--accent-magenta);
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.system-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.api-status {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: blink 1.5s infinite;
}

/* Layout - 3-Column structure */
.main-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr 1.1fr;
    gap: 15px;
    flex-grow: 1;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

/* Columns Base Styling */
.history-section, .player-section, .sidebar-section {
    height: 100%;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    gap: 15px;
}

/* History Column specific */
.history-section .card-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* Player Column */
.player-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

/* Visualizer (Full Bleed with pulsing center overlay) */
.visualizer-container {
    position: relative;
    flex-grow: 1;
    height: 0;
    min-height: 180px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 4, 12, 0.3);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

#visualizer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.visualizer-overlay {
    z-index: 2;
    pointer-events: none;
}

.radio-active-icon {
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.35);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    animation: floatRadio 3s ease-in-out infinite alternate;
}

/* Metadata */
.song-meta {
    text-align: center;
    flex-shrink: 0;
}

.meta-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.tag-lang {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.tag-genre {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.song-title {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.song-style {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Audio Player */
.audio-controls-wrap {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 15px;
    border-radius: 16px;
    flex-shrink: 0;
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.time-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    width: 32px;
}

#time-current {
    text-align: right;
}

.progress-bar-wrap {
    flex-grow: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-magenta));
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    border-radius: 3px;
    width: 0;
    transition: width 0.1s linear;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 120px;
}

.volume-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 4px var(--accent-cyan);
    cursor: pointer;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-magenta));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Sidebar Column Cards */
.sidebar-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Suggestions: shorter row */
.sidebar-card:nth-child(1) {
    flex: 0.8;
}

/* Chat card: taller row */
.chat-card {
    flex: 1.2;
}

.card-title {
    font-family: var(--font-outfit);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    flex-shrink: 0;
}

.card-title i {
    color: var(--accent-magenta);
}

.card-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Forms (Suggestions & Chat) */
.suggestion-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.suggestion-form input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    color: white;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.suggestion-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.2);
}

.btn-submit {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 0 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.btn-submit:hover {
    background: var(--primary-color);
    color: white;
}

/* Suggestions List */
.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    padding-right: 3px;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    height: fit-content;
}

.btn-vote {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: var(--accent-magenta);
    border-radius: 6px;
    padding: 1px 5px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: background-color 0.2s;
}

.btn-vote:hover {
    background: var(--accent-magenta);
    color: white;
}

/* Chat Messages Layout */
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    font-size: 0.8rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.chat-msg-time {
    color: var(--text-muted);
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-msg-user {
    color: var(--accent-cyan);
    font-weight: 700;
    flex-shrink: 0;
}

.chat-msg-text {
    color: var(--text-main);
    word-break: break-word;
}

/* Chat Input Form */
.chat-form {
    flex-shrink: 0;
}

.chat-form-row {
    display: flex;
    gap: 6px;
}

#chat-username {
    width: 75px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    color: white;
    font-size: 0.8rem;
    outline: none;
}

#chat-input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    color: white;
    font-size: 0.8rem;
    outline: none;
}

#chat-username:focus, #chat-input:focus {
    border-color: var(--primary-color);
}

/* History List Column (Left) */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    padding-right: 5px;
}

.list-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.item-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.item-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.item-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
}

.btn-download {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.btn-download:hover {
    background: var(--accent-cyan);
    color: black;
    font-weight: 500;
}

.empty-state {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0;
    font-style: italic;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 5px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Keyframes */
@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 3px rgba(236, 72, 153, 0.3));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes floatRadio {
    from {
        transform: translateY(0) scale(1);
        color: rgba(139, 92, 246, 0.35);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    to {
        transform: translateY(-8px) scale(1.05);
        color: rgba(6, 182, 212, 0.45);
        filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
    }
}

/* Responsiveness - Stack layout on mobile */
@media (max-width: 1024px) {
    html, body {
        overflow-y: auto; /* Enable scroll on smaller tablets / mobile */
        height: auto;
    }
    .container {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 10px;
    }
    .main-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        gap: 15px;
    }
    .history-section, .player-section, .sidebar-section {
        height: auto;
        overflow: visible;
    }
    .player-section {
        order: 1; /* Player is first on mobile */
    }
    .sidebar-section {
        order: 2; /* suggestions & chat second */
    }
    .history-section {
        order: 3; /* history last on mobile */
    }
    .visualizer-container {
        height: 220px;
    }
    .chat-messages, .history-list, .suggestions-list {
        max-height: 200px;
    }
}

@media (max-width: 640px) {
    .main-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .player-section {
        padding: 15px 10px;
    }
    .controls-row {
        flex-direction: column;
        gap: 10px;
    }
    .volume-container {
        width: 100%;
    }
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   Полісся FM by UDream - Enhanced Game Radio UI Components
   ========================================================================== */

/* Station Frequency Badge in Header */
.stat-badge.radio-freq {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
    font-family: var(--font-outfit);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-badge.radio-freq i {
    color: var(--accent-amber);
    animation: radioBlink 2.5s infinite ease-in-out;
}

@keyframes radioBlink {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px var(--accent-amber)); }
    50% { opacity: 0.65; filter: none; }
}

/* Left Panel Tabs Header */
.panel-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-outfit);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
}

.panel-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.panel-tab-btn.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.panel-tab-btn i {
    font-size: 0.85rem;
}

/* Liked List & Cards in Golden Collection */
.liked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 480px;
    padding-right: 4px;
}

.liked-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.liked-card:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.liked-card-info {
    flex: 1;
    min-width: 0;
}

.liked-card-title {
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.liked-card-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.liked-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card-action {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-card-action:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Song Meta Actions Row (Like & Skip Buttons) */
.meta-tags-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action-vote {
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

/* Like Button */
.btn-like-vote:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: translateY(-1px);
}

.btn-like-vote.active {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #f87171;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.btn-like-vote.active i {
    color: #ef4444;
    animation: heartPulse 0.4s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Skip Button */
.btn-skip-vote:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    transform: translateY(-1px);
}

/* Special Tags */
.tag-fallback {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-liked {
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Visualizer Container Glowing Polish */
.visualizer-container {
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

.visualizer-container:hover {
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 960px) {
    .meta-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .meta-tags-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* --- Polissya FM UI Enhancements & Fixes --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 9px;
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
}

.panel-tab-btn {
    white-space: nowrap !important;
    padding: 6px 8px !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
}

.player-section {
    overflow-y: auto !important;
    padding: 16px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
}

.player-container {
    min-height: 100%;
    justify-content: space-between;
    gap: 12px;
}

.visualizer-container {
    min-height: 140px !important;
}

/* Suggestion dropdown & input styling */
.suggestion-form select,
#suggest-genre-select {
    flex-grow: 1;
    background: rgba(14, 23, 19, 0.9) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-radius: 8px !important;
    color: #f1f5f9 !important;
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
    outline: none !important;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-form select:focus,
#suggest-genre-select:focus {
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.35) !important;
}

.suggestion-form select option {
    background: #0e1713;
    color: #f1f5f9;
}

/* Chat login form styling */
.chat-login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-inputs-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.login-inputs-row input[type="text"],
.login-inputs-row input[type="password"],
#chat-reg-username,
#chat-reg-password {
    flex: 1;
    min-width: 0;
    background: rgba(14, 23, 19, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #f1f5f9 !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    outline: none !important;
    transition: all 0.2s;
}

.login-inputs-row input:focus,
#chat-reg-username:focus,
#chat-reg-password:focus {
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
}

.login-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.color-picker-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.color-picker-wrap input[type="color"],
#chat-reg-color,
#chat-change-color {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    background: rgba(14, 23, 19, 0.8);
    cursor: pointer;
    padding: 1px;
}

.color-picker-wrap input[type="color"]::-webkit-color-swatch-wrapper,
#chat-reg-color::-webkit-color-swatch-wrapper,
#chat-change-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrap input[type="color"]::-webkit-color-swatch,
#chat-reg-color::-webkit-color-swatch,
#chat-change-color::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.btn-chat-login {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 18px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.2s !important;
}

.btn-chat-login:hover {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45) !important;
}
