/* ==========================================================================
   TAUKEMAS – Brand Anthem & Luxury Audio Player Styles
   ========================================================================== */

/* ---------- Floating Luxury Audio Player ---------- */
.floating-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Autoplay Unmute Prompt */
.autoplay-unmute-prompt {
    display: none;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbeaa0 0%, #d4af37 45%, #9a7414 100%);
    color: #0a0907;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.55);
    margin-bottom: 10px;
    cursor: pointer;
    animation: promptBounce 1.8s ease-in-out infinite alternate;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.autoplay-unmute-prompt:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.75);
}

.autoplay-unmute-prompt.is-visible {
    display: inline-flex;
}

@keyframes promptBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

/* Minimized Pill State */
.player-mini-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(22, 18, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.25);
    border-radius: 999px;
    padding: 8px 18px 8px 10px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.player-mini-trigger:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 175, 55, 0.4);
}

.mini-disc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffeaa7 15%, #d4af37 50%, #5e4605 90%);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mini-disc::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0a0907;
    border: 2px solid #d4af37;
}

.floating-player.is-playing .mini-disc {
    animation: spinDisc 6s linear infinite;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mini-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mini-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 600;
}

.mini-title {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    margin-left: 6px;
}

.mini-waves span {
    width: 3px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.floating-player.is-playing .mini-waves span:nth-child(1) { animation: waveBounce 0.9s ease-in-out infinite alternate; }
.floating-player.is-playing .mini-waves span:nth-child(2) { animation: waveBounce 0.6s ease-in-out infinite alternate 0.2s; }
.floating-player.is-playing .mini-waves span:nth-child(3) { animation: waveBounce 1.1s ease-in-out infinite alternate 0.4s; }
.floating-player.is-playing .mini-waves span:nth-child(4) { animation: waveBounce 0.7s ease-in-out infinite alternate 0.1s; }

@keyframes waveBounce {
    0% { height: 4px; }
    100% { height: 16px; }
}

/* Expanded Player Card */
.player-panel {
    display: none;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: rgba(18, 14, 9, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.2);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.floating-player.is-expanded .player-mini-trigger {
    display: none;
}

.floating-player.is-expanded .player-panel {
    display: block;
    animation: playerPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes playerPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 10px;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-icon-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.panel-icon-btn:hover {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.1);
}

.panel-track-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.panel-album-art {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2a1f0d, #140e06);
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.panel-album-art::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
}

.panel-meta h4 {
    margin: 0 0 2px;
    font-size: 0.98rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-meta p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
}

/* Language selector tabs */
.player-lang-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(10, 9, 7, 0.6);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 14px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.lang-tab {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.lang-tab:hover {
    color: var(--text);
}

.lang-tab.active {
    background: var(--gold-grad);
    color: #0a0907;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* Scrubber Timeline */
.timeline-wrap {
    margin-bottom: 12px;
}

.timeline-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    position: relative;
    cursor: pointer;
    outline: none;
}

.timeline-fill {
    height: 100%;
    background: var(--gold-grad);
    border-radius: 99px;
    width: 0%;
    position: relative;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.timeline-fill::after {
    content: "";
    position: absolute;
    right: -5px;
    top: -3.5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.timeline-bar:hover .timeline-fill::after {
    opacity: 1;
}

.timeline-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Main Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    color: var(--gold-light);
    transform: scale(1.08);
}

.play-pause-btn {
    width: 44px;
    height: 44px;
    background: var(--gold-grad);
    color: #0a0907;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.45);
    transition: all 0.2s;
}

.play-pause-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.65);
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
}

/* Lyrics Modal / Drawer */
.lyrics-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(10, 9, 7, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lyrics-modal.is-open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lyrics-dialog {
    background: #14100b;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 22px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.lyrics-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.lyrics-dialog-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--gold-light);
}

.lyrics-dialog-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
}

.lyrics-verse {
    margin-bottom: 22px;
}

.lyrics-verse-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.lyrics-verse.chorus {
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--gold);
    padding: 12px 16px;
    border-radius: 0 12px 12px 0;
}

.lyrics-dialog-foot {
    padding: 16px 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---------- Brand Anthem Section on Homepage ---------- */
.anthem-section {
    background: radial-gradient(ellipse 90% 60% at 50% 20%, rgba(212, 175, 55, 0.12), transparent), var(--bg-2);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.anthem-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .anthem-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.anthem-card-player {
    background: rgba(22, 18, 12, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.15);
    position: relative;
    isolation: isolate;
}

.anthem-station-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffeaa7 15%, #d4af37 55%, #5e4605 90%);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.anthem-station-disc::after {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0a0907;
    border: 3px solid #d4af37;
}

.anthem-meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.anthem-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Dedicated Page Styles */
.anthem-hero {
    padding: 140px 0 60px;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 175, 55, 0.2), transparent), var(--bg);
    text-align: center;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.track-box {
    background: rgba(22, 18, 12, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.track-box:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

.track-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.track-flag {
    font-size: 1.6rem;
}

.track-lang {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.track-box h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.track-box p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.lyrics-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

@media (max-width: 860px) {
    .lyrics-compare-grid {
        grid-template-columns: 1fr;
    }
}

.lyrics-column {
    background: rgba(22, 18, 12, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 24px;
}

.lyrics-column h3 {
    color: var(--gold);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.chord-sheet {
    background: #0d0a07;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
    overflow-x: auto;
}

.chord-sheet .ch {
    color: var(--gold-light);
    font-weight: bold;
}
