/**
 * Karaoke + Fullscreen Spiritual Mode styles
 */

.yq-fs-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: stretch;
    justify-content: center;
    background: rgba(8, 6, 4, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    opacity: 0;
    transition: opacity 0.28s ease;
    overflow: hidden;
}

.yq-fs-overlay.is-open {
    opacity: 1;
}

.yq-fs-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background 0.8s ease;
    z-index: 0;
}

.yq-fs-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.15s, transform 0.15s;
}

.yq-fs-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.yq-fs-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 18px;
    padding: 60px 32px 36px;
    max-width: 720px;
    width: 100%;
    align-self: center;
    text-align: center;
    color: #fff;
}

/* ───── Cover ───── */
.yq-fs-cover-wrap {
    display: flex;
    justify-content: center;
}

.yq-fs-cover {
    width: 220px;
    height: 220px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.25);
    background: linear-gradient(135deg, #2a2018, #15110d);
    position: relative;
}

.yq-fs-cover-art {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(212, 175, 55, 0.08);
    transition: transform 0.6s ease;
}

.yq-fs-overlay.is-playing .yq-fs-cover-art {
    transform: scale(1.04);
}

.yq-fs-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

/* ───── Title ───── */
.yq-fs-info {
    text-align: center;
}

.yq-fs-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.yq-fs-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ───── Lyrics ───── */
.yq-fs-lyrics-wrap {
    overflow: hidden;
    position: relative;
    margin: 8px 0;
    min-height: 200px;
}

.yq-fs-lyrics {
    height: 100%;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
    padding: 40px 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.yq-fs-lyrics::-webkit-scrollbar { width: 4px; }
.yq-fs-lyrics::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 2px; }

.yq-fs-lines {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yq-fs-line {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 16px;
    border-radius: 6px;
}

.yq-fs-line.is-past {
    color: rgba(255, 255, 255, 0.55);
}

.yq-fs-line.is-active {
    color: #ffd966;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
}

.yq-fs-line:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

/* ───── Shimmer (no lyrics) ───── */
.yq-fs-shimmer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 30px;
}

.yq-fs-shimmer-bar {
    width: 75%;
    max-width: 420px;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg,
        rgba(212, 175, 55, 0.06) 0%,
        rgba(212, 175, 55, 0.18) 50%,
        rgba(212, 175, 55, 0.06) 100%);
    background-size: 200% 100%;
    animation: yqShimmer 2.4s ease-in-out infinite;
}

.yq-fs-shimmer-bar:nth-child(2) { width: 90%; animation-delay: 0.3s; }
.yq-fs-shimmer-bar:nth-child(3) { width: 60%; animation-delay: 0.6s; }

@keyframes yqShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.yq-fs-no-lyrics {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    max-width: 340px;
    text-align: center;
}

.yq-fs-orn {
    font-family: 'Amiri', 'Scheherazade', serif;
    font-size: 56px;
    color: rgba(212, 175, 55, 0.55);
    margin-top: 28px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    animation: yqOrnPulse 4s ease-in-out infinite;
}

@keyframes yqOrnPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* ───── Progress ───── */
.yq-fs-progress {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.yq-fs-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.yq-fs-bar::before {
    content: '';
    position: absolute;
    inset: -10px 0;
}

.yq-fs-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #ffd966);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* ───── Controls ───── */
.yq-fs-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 4px;
}

.yq-fs-btn {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.yq-fs-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.08);
}

.yq-fs-btn .material-icons-round {
    font-size: 32px;
}

.yq-fs-play {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #d4af37, #b8941d);
    color: #1a1612;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.yq-fs-play .material-icons-round {
    font-size: 38px;
}

.yq-fs-play:hover {
    background: linear-gradient(135deg, #ffd966, #d4af37);
    color: #0a0805;
}

/* ───── Mobile ───── */
@media (max-width: 640px) {
    .yq-fs-content {
        padding: 56px 16px 24px;
        gap: 14px;
    }
    .yq-fs-cover { width: 180px; height: 180px; border-radius: 22px; }
    .yq-fs-title { font-size: 20px; }
    .yq-fs-line { font-size: 16px; }
    .yq-fs-line.is-active { font-size: 19px; }
    .yq-fs-lyrics { max-height: 220px; }
    .yq-fs-orn { font-size: 44px; }
    .yq-fs-controls { gap: 16px; }
}

@media (max-height: 700px) {
    .yq-fs-cover { width: 160px; height: 160px; }
    .yq-fs-lyrics { max-height: 180px; }
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
    .yq-fs-overlay, .yq-fs-cover-art, .yq-fs-line {
        transition: none;
    }
    .yq-fs-shimmer-bar, .yq-fs-orn {
        animation: none;
    }
}

/* ───── Mini-cover indicates clickable for fullscreen ───── */
.yq-mini-cover {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.yq-mini-cover:hover {
    transform: scale(1.05);
}
