﻿:root {
    --bg1: #060913;
    --bg2: #0b1020;
    --stroke: rgba(255,255,255,.12);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.68);
    --muted2: rgba(255,255,255,.56);
    --accent1: #7c5cff;
    --accent2: #2ee59d;
    --accent3: #55a7ff;
    --shadow: 0 16px 50px rgba(0,0,0,.45);
    --shadow2: 0 26px 80px rgba(0,0,0,.55);
    --focus: 0 0 0 6px rgba(124,92,255,.22);
    --radius: 20px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* {
    box-sizing: border-box;
}

/* ===== GLOBAL SCROLLBAR RESET (FIXES WHITE LINE) ===== */

/* 1. Target the scrollbar itself */
::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

/* 2. Target the 'Track' (Forces it to stay dark) */
::-webkit-scrollbar-track {
    background: #060913 !important;
}

/* 3. Target the 'Thumb' */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 3px solid #060913; /* Use theme color instead of transparent to hide gutter */
    background-clip: content-box;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.25);
        background-clip: content-box;
    }

/* 4. Support for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) #060913;
}

/* ===== 2. UPDATED STRUCTURAL CSS ===== */
html {
    background-color: #060913; /* Critical: Fills the white line area with your theme color */
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 10% 10%, rgba(124,92,255,.18), transparent 55%), radial-gradient(1000px 600px at 90% 20%, rgba(85,167,255,.14), transparent 55%), radial-gradient(900px 500px at 50% 80%, rgba(46,229,157,.10), transparent 60%), linear-gradient(180deg, var(--bg1), var(--bg2));
    background-attachment: fixed;
    overflow-y: auto;
    overflow-x: hidden;
}

    body.lyrics-lock {
        overflow: hidden !important;
        height: 100% !important;
        touch-action: none;
    }

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
}

.muted {
    color: var(--muted);
}

.dot-sep {
    opacity: .65;
    margin: 0 8px;
}

/* ===== Background (Optimized) ===== */
.bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
}

.orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(50px);
    opacity: .55;
    animation: floaty 10s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    left: -160px;
    top: -140px;
    background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.75), rgba(124,92,255,0) 65%);
}

.orb-2 {
    right: -180px;
    top: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(85,167,255,.65), rgba(85,167,255,0) 65%);
    animation-delay: -3s;
}

.grid {
    position: absolute;
    inset: -2px;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(500px 300px at 50% 20%, #000 35%, transparent 75%);
}

@keyframes floaty {
    0%,100% {
        transform: translate3d(0,0,0)
    }

    50% {
        transform: translate3d(0,18px,0)
    }
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(1100px,92vw);
    padding: 22px 0 28px;
    margin: 0 auto;
}

/* structural reset */
.hero-content, .result-left, .ip-nowtext, .panel, .panels, .card, .hero, .results-card, .search-box, .appbar, .brand-text {
    min-width: 0;
}

.title, .subtitle, .ip-track, .result-title, .result-meta {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Appbar */
.appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon container */
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 12px rgba(255,255,255,.05);
}

/* Icon image */
.brand-logo-icon {
    width: 100px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(99,102,241,.45));
}

/* Text */
.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.brand-sub {
    font-size: .75rem;
    opacity: .75;
    letter-spacing: .4px;
}

/* Top actions */
.app-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

@media (max-width: 520px) {
    .app-actions {
        gap: 0;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(0,0,0,.18);
        border-radius: 14px;
        padding: 4px;
    }

        .app-actions .btn {
            border-radius: 12px;
            border-color: transparent;
            background: transparent;
            box-shadow: none;
            padding: 9px 10px;
            min-width: 0;
            white-space: nowrap;
        }

            .app-actions .btn + .btn {
                border-left: 1px solid rgba(255,255,255,.10);
            }

            .app-actions .btn:hover {
                transform: none;
                background: rgba(255,255,255,.08);
            }
}

/* Views */
.view {
    display: none;
    margin-top: 14px;
}

.view-active {
    display: block;
}

/* Buttons */
.btn {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.09);
        border-color: rgba(255,255,255,.22);
    }

    .btn:active {
        transform: translateY(0) scale(.99);
    }

    .btn:focus {
        outline: none;
        box-shadow: var(--focus);
    }

    .btn.small {
        padding: 9px 10px;
        border-radius: 12px;
        font-size: 13px;
    }

    .btn.ghost {
        background: rgba(0,0,0,.18);
    }

    .btn.primary {
        border-color: rgba(124,92,255,.55);
        background: linear-gradient(135deg, rgba(124,92,255,.88), rgba(85,167,255,.72));
        box-shadow: 0 14px 34px rgba(124,92,255,.22);
    }

        .btn.primary:hover {
            box-shadow: 0 20px 44px rgba(124,92,255,.30);
        }

    .btn[disabled] {
        opacity: .5;
        cursor: not-allowed;
        transform: none !important;
    }

.btn-ic {
    margin-right: 4px;
    margin-left: 4px;
}

@media (min-width: 768px) {
    .mobile-only-fs.fs-3 {
        font-size: inherit !important;
    }
}

.icon-btn {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    padding: 9px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

    .icon-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.09);
        border-color: rgba(255,255,255,.22);
    }

    .icon-btn:active {
        transform: translateY(0) scale(.99);
    }

    .icon-btn:focus {
        outline: none;
        box-shadow: var(--focus);
    }

/* Chips */
.chip {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.84);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

    .chip:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.22);
    }

    .chip.is-active {
        border-color: rgba(46,229,157,.55);
        background: rgba(46,229,157,.14);
    }

/* Search Box */
.search-hero {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.search-hero-text {
    padding: 14px 14px 0;
}

.search-title {
    margin: 0;
    font-size: clamp(24px,3.6vw,36px);
    letter-spacing: -.8px;
}

.search-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.search-box {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    box-shadow: var(--shadow);
    padding: 14px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.20);
}

.search-ic {
    opacity: .85;
    font-weight: 900;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: rgba(255,255,255,.92);
    font-size: 14px;
}

    .search-input::placeholder {
        color: rgba(255,255,255,.45);
    }

.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.search-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
}

/* Results */
.results-card {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.results-head {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
}

.results-title {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.2px;
}

.results-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.results-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.16);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

    .result-item:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.22);
        background: rgba(0,0,0,.22);
    }

.result-left {
    min-width: 0;
}

.result-title {
    font-weight: 900;
    letter-spacing: -.2px;
}

.result-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.result-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.badge {
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(124,92,255,.14);
}

.chev {
    opacity: .7;
    font-size: 18px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 14px;
}

.empty {
    padding: 28px 14px 30px;
    text-align: center;
}

.empty-ic {
    font-size: 34px;
}

.empty-title {
    margin-top: 10px;
    font-weight: 900;
}

.empty-sub {
    margin-top: 6px;
    color: var(--muted);
}

/* Details */
.back-row {
    margin: 10px 0 12px;
}

.hero {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: stretch;
}

.hero-left {
    padding: 14px 0 14px 14px;
}

.hero-content {
    padding: 14px 14px 16px;
    min-width: 0;
}

.cover-art {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.14);
    background: radial-gradient(700px 180px at 10% 20%, rgba(124,92,255,.45), transparent 55%), radial-gradient(700px 180px at 90% 30%, rgba(85,167,255,.35), transparent 55%), linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.22));
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.cover-art-square {
    width: 100%;
    aspect-ratio: 1/1;
    min-height: 210px;
}

.cover-shine {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), transparent 35%);
    transform: rotate(10deg);
    animation: shine 5s ease-in-out infinite;
    opacity: .6;
}

@keyframes shine {
    0%,100% {
        transform: translateX(-10px) rotate(10deg);
    }

    50% {
        transform: translateX(12px) rotate(10deg);
    }
}

.cover-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.30);
    font-weight: 900;
    font-size: 12px;
}

    .cover-badge .dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: var(--accent2);
        box-shadow: 0 0 0 6px rgba(46,229,157,.12);
    }

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}

.sep {
    opacity: .6;
}

.title {
    margin: 10px 0 0;
    font-size: clamp(22px, 3.2vw, 32px);
    letter-spacing: -.8px;
    line-height: 1.15;
}

.subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.meta-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.stat {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.16);
    border-radius: 18px;
    padding: 10px 12px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--muted2);
    font-weight: 800;
}

.stat-value {
    margin-top: 4px;
    font-weight: 900;
}

.actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .actions.is-hidden {
        display: none;
    }

.notice {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.86);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}

    .notice.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Card + Tabs */
.card {
    margin-top: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.tabs {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
}

.tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.88);
    font-weight: 900;
    cursor: pointer;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    min-width: 0;
}

    .tab.is-active {
        border-color: rgba(124,92,255,.55);
        background: rgba(124,92,255,.14);
    }

.tab-indicator {
    position: absolute;
    left: 12px;
    top: 12px;
    height: calc(100% - 24px);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(85,167,255,.16));
    border: 1px solid rgba(124,92,255,.38);
    transition: transform .25s cubic-bezier(.2,.9,.2,1), width .25s cubic-bezier(.2,.9,.2,1);
    z-index: 0;
}

.panels {
    padding: 14px;
}

.panel {
    display: none;
}

    .panel.is-active {
        display: block;
    }

.panel-title {
    margin: 0;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: -.3px;
}

.panel-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.info {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.16);
    padding: 12px;
}

.info-label {
    font-size: 11px;
    color: var(--muted2);
    font-weight: 800;
}

.info-value {
    margin-top: 6px;
    font-weight: 900;
}

.divider {
    margin: 14px 0;
    height: 1px;
    background: rgba(255,255,255,.10);
}

.story-title {
    margin: 0;
    font-size: 14px;
}

.story-text {
    margin: 8px 0 0;
    color: rgba(255,255,255,.84);
    line-height: 1.75;
}

/* Lyrics (Small view) */
.lyrics-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.font-controls {
    display: flex;
    gap: 8px;
}

.lyrics {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    padding: 16px;
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255,255,255,.88);
}

#lyricsBox {
    max-height: min(72vh, 820px);
    min-height: 520px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Video */
.video-shell {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.16);
    overflow: hidden;
}

.video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

    .video-aspect iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.video-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.14);
}

/* Site Footer */
.site-footer {
    margin-top: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: rgba(124,92,255,.20);
    border: 1px solid rgba(255,255,255,.14);
}

/* Icon image */
.footer-logo-icon {
    width: 180%;
    height: 19
    
    0%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0,0,0,.6));
}

.footer-name {
    font-weight: 900;
}

.footer-madeby {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.footer-strong {
    color: rgba(255,255,255,.92);
}

.footer-copy {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link {
    font-weight: 900;
    font-size: 12px;
    color: rgba(255,255,255,.82);
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.14);
}

/* Inline Player */
.inline-player {
    position: relative;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.20));
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    overflow: hidden;
}

.ip-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
}

.ip-now {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding-right: 56px;
}

.ip-nowtext {
    min-width: 0;
    max-width: 100%;
}

.ip-label {
    font-size: 11px;
    color: var(--muted2);
    font-weight: 800;
}

.ip-track {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ip-close {
    position: absolute;
    right: 10px;
    top: 10px;
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.ip-controls {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pbtn {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.92);
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .pbtn.primary {
        border-color: rgba(124,92,255,.55);
        background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(85,167,255,.70));
    }

    .pbtn.big {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        display: grid;
        place-items: center;
    }

    .pbtn.ghost {
        background: rgba(0,0,0,.14);
    }

.ip-seek {
    padding: 0 12px 12px;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.ptime {
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.seek {
    width: 100%;
    min-width: 0;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    outline: none;
}

    .seek::-webkit-slider-thumb {
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 999px;
        background: rgba(255,255,255,.92);
        border: 3px solid rgba(124,92,255,.55);
        cursor: pointer;
    }

.ip-bottom {
    padding: 0 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ip-bottom-left, .ip-bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.pchip {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.86);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
}

    .pchip.is-on {
        border-color: rgba(46,229,157,.55);
        background: rgba(46,229,157,.14);
    }

.vol-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.14);
    max-width: 100%;
}

.vol-mini-bar {
    width: 110px;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    outline: none;
}

    .vol-mini-bar::-webkit-slider-thumb {
        appearance: none;
        width: 14px;
        height: 14px;
        border-radius: 999px;
        background: rgba(255,255,255,.92);
        border: 3px solid rgba(46,229,157,.55);
        cursor: pointer;
    }

.speed {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    color: rgba(255,255,255,.92);
    padding: 10px 10px;
    border-radius: 14px;
    font-weight: 900;
    outline: none;
}

.ip-wave {
    width: 40px;
    height: 24px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.14);
}

    .ip-wave span {
        width: 4px;
        height: 6px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(124,92,255,.95), rgba(46,229,157,.85), rgba(85,167,255,.9));
        opacity: .9;
        transform-origin: bottom;
    }

.inline-player.is-playing .ip-wave span {
    animation: wave .9s ease-in-out infinite;
}

    .inline-player.is-playing .ip-wave span:nth-child(2) {
        animation-delay: .10s;
    }

    .inline-player.is-playing .ip-wave span:nth-child(3) {
        animation-delay: .20s;
    }

    .inline-player.is-playing .ip-wave span:nth-child(4) {
        animation-delay: .30s;
    }

    .inline-player.is-playing .ip-wave span:nth-child(5) {
        animation-delay: .40s;
    }

@keyframes wave {
    0%,100% {
        height: 6px;
        opacity: .7
    }

    50% {
        height: 20px;
        opacity: 1
    }
}

/* Lyrics Overlay (Fullscreen) */
.lyrics-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(0,0,0,.70);
    backdrop-filter: blur(12px);
    overscroll-behavior: none;
}

    .lyrics-overlay.is-open {
        display: block;
    }

.lyrics-overlay-card {
    width: 100vw;
    height: 100dvh;
    height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.30));
    display: flex;
    flex-direction: column;
}

.lyrics-overlay-top {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(10px + var(--safe-top)) calc(16px + var(--safe-right)) 10px calc(16px + var(--safe-left));
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.28);
    min-width: 0;
}

.lyrics-overlay-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}

.lyrics-overlay-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(124,92,255,.18);
    flex: 0 0 auto;
}

.lyrics-overlay-song {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
}

.lyrics-overlay-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.lyrics-overlay-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left));
    overflow: hidden;
}

.lyrics-paper {
    height: 100%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: radial-gradient(900px 340px at 10% 0%, rgba(124,92,255,.12), transparent 55%), radial-gradient(900px 340px at 90% 0%, rgba(85,167,255,.10), transparent 55%), rgba(0,0,0,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lyrics-full {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    line-height: 1.9;
}

@media (max-width: 520px) {
    .lyrics-overlay-top {
        gap: 8px;
        padding: calc(10px + var(--safe-top)) calc(12px + var(--safe-right)) 10px calc(12px + var(--safe-left));
        flex-wrap: nowrap;
    }

    .lyrics-overlay-song {
        max-width: 60vw;
    }

    .lyrics-overlay-actions {
        gap: 6px;
    }

        .lyrics-overlay-actions .btn {
            padding: 8px 8px;
            border-radius: 12px;
            font-size: 12px;
            line-height: 1;
        }

            .lyrics-overlay-actions .btn .btn-ic {
                margin-right: 0;
            }

            .lyrics-overlay-actions .btn .lbl {
                display: none;
            }

    .lyrics-paper {
        max-width: none;
        border-radius: 16px;
    }
}

/* Responsive Details */
@media (max-width: 980px) {
    .hero-split {
        grid-template-columns: 220px 1fr;
    }

    .meta-row {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-left {
        display: none;
    }

    .hero-content {
        padding: 14px;
    }

    .tabs {
        gap: 8px;
    }

    .tab {
        padding: 10px 8px;
        font-size: 13px;
    }

    #lyricsBox {
        min-height: 420px;
    }
}

@media (max-width: 520px) {
    .ip-seek {
        grid-template-columns: 46px 1fr 46px;
        gap: 8px;
    }

    .ip-controls {
        justify-content: space-between;
    }

    .ip-bottom {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .ip-bottom-left {
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .ip-bottom-right {
        flex: 0 0 auto;
    }

    .vol-mini {
        padding: 5px 6px;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
    }

        .vol-mini .vol-btn {
            padding: 6px 8px;
            font-size: 12px;
        }

    .vol-mini-bar {
        width: 90px;
        max-width: 100%;
    }

    .speed {
        padding: 8px 8px;
        border-radius: 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 1 calc(33.33% - 6px);
    }

    .tab-indicator {
        display: none;
    }
}

.code-clear {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.85);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

    .code-clear:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Share Modal */
.share-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(10px);
}

.share-card {
    width: min(720px, 96vw);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.28));
    box-shadow: 0 26px 90px rgba(0,0,0,.65);
    overflow: hidden;
}

.share-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.20);
}

.share-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(124,92,255,.18);
}

.share-song {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
}

.share-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.share-body {
    padding: 14px;
}

.share-preview {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    padding: 12px;
}

.share-preview-label {
    font-size: 11px;
    color: rgba(255,255,255,.56);
    font-weight: 800;
}

.share-preview-text {
    margin-top: 8px;
    white-space: pre-wrap;
    line-height: 1.7;
    color: rgba(255,255,255,.90);
}

.share-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

@media (max-width: 520px) {
    .share-actions {
        grid-template-columns: 1fr;
    }

    .share-song {
        max-width: 46vw;
    }
}

/* YouTube Host */
.yt-audio-host {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
