@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* =========================================
   VARIABLES & BASE RESET
========================================= */

:root {
    --bg-main: #000000;
    --bg-card: #080808;
    --border-line: #1f1f1f;
    --text-main: #ffffff;
    --text-muted: #777777;
    --font-engine: "Fira Code", monospace;
    --font-artist: "Playfair Display", serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-engine);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

main {
    width: 100%;
    padding-bottom: 90px;
}

/* =========================================
   OPENING / LOCK SCREEN
========================================= */

.opening {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-main);
    display: grid;
    place-items: center;
    text-align: center;
    transition: opacity .6s ease;
}

.opening.hide {
    opacity: 0;
    pointer-events: none;
}

.opening h1 {
    font-family: var(--font-artist);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 400;
    margin: 15px 0;
}

.opening button {
    background: var(--text-main);
    border: none;
    color: var(--bg-main);
    padding: 14px 36px;
    margin-top: 30px;
    font-family: var(--font-engine);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
}

/* =========================================
   HERO SCREEN
========================================= */

.hero-screen {
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-line);
}

.cover {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-line);
    padding: 8px;
    margin-bottom: 30px;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
}

.copy h3 {
    font-family: var(--font-artist);
    font-size: 32px;
    font-weight: 400;
    margin: 12px 0;
}

/* =========================================
   FULLSCREEN TRACK SECTIONS
========================================= */

.tracks-viewport {
    width: 100%;
}

.track-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 40px 24px 110px;
    border-bottom: 1px solid var(--border-line);
    overflow: hidden;
}

.track-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
}

.track-bg picture {
    width: 100%;
    height: 100%;
    display: block;
}

.track-bg picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(55%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.track-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.9) 100%);
}

.track-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.track-badge {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.track-badge span {
    font-size: 10px;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    color: var(--text-muted);
}

.now-playing-tag {
    display: none;
}

.track-section.active .now-playing-tag {
    display: inline-block !important;
    color: var(--text-main) !important;
    border-color: var(--text-main) !important;
    font-weight: bold;
}

.track-section.active .now-playing-tag.is-paused {
    color: var(--text-muted) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    font-weight: normal;
}

.track-header {
    margin-bottom: 8px;
}

.track-content h2 {
    font-family: var(--font-artist);
    font-size: 42px;
    font-weight: 400;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.track-content p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 0 20px 0;
}

.play-trigger {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 200px;
    height: 44px;
    font-size: 12px;
    font-family: var(--font-engine);
    letter-spacing: 1.5px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}

.play-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.track-section.active .track-bg picture img {
    filter: grayscale(0%) brightness(75%);
}

.track-section.playing .play-trigger {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* =========================================
   TOGGLE & CONTAINER LIRIK
========================================= */

.lyrics-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-engine);
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    margin: 16px auto 0 auto;
    padding: 4px 8px;
    display: block;
    transition: color 0.2s ease;
}

.lyrics-toggle:hover {
    color: var(--text-main);
}

.lyrics-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.lyrics-box.open {
    max-height: 160px;
    overflow-y: auto;
    opacity: 1;
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.lyrics-box p {
    font-family: var(--font-engine);
    font-size: 11px;
    line-height: 1.8;
    color: #dddddd;
    margin: 0;
    white-space: pre-wrap;
    text-align: center;
}

/* =========================================
   TRANSPARENT LEAVE A MESSAGE
========================================= */

.comments-section {
    width: 100%;
    padding: 80px 24px 120px 24px;
    border-top: 1px solid var(--border-line);
    background: transparent;
}

.comments-container {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.comments-container h3 {
    font-family: var(--font-artist);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 24px 0;
    color: var(--text-main);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    font-family: var(--font-engine);
    font-size: 12px;
    line-height: 1.6;
    outline: none;
    border-radius: 8px;
    resize: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.comment-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.comment-form button {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 28px;
    font-family: var(--font-engine);
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 20px; /* MEMBULAT (PILL STYLE) */
    transition: all 0.3s ease;
    margin: 0 auto;
    display: inline-block;
}

.comment-form button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   STACKED BOTTOM PLAYER
========================================= */

.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-line);
    padding: 10px 16px;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.bottom-player.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.player-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.mini-record {
    width: 20px;
    height: 20px;
    background: repeating-radial-gradient(circle, #000 0, #000 2px, #181818 3px, #000 4px);
    border: 1px solid var(--border-line);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.mini-record div {
    width: 6px;
    height: 6px;
    background: #fff;
    font-size: 0;
}

.mini-record.playing {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.meta-text {
    flex: 1;
}

.meta-text h4 {
    margin: 0;
    font-family: var(--font-artist);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-main);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    color: var(--text-muted);
    flex: 1;
}

.bar span {
    font-size: 9px;
    font-family: var(--font-engine);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--text-main);
    background: #222;
    height: 3px;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 6px;
    height: 6px;
    background: var(--text-main);
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

nav button {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 4px 8px;
    cursor: pointer;
    font-family: var(--font-engine);
    font-size: 12px;
}

nav #play {
    background: var(--text-main);
    color: #000;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 2px;
}

@media (max-width: 760px) {
    .track-content h2 {
        font-size: 30px;
    }

    .play-trigger {
        max-width: 160px;
        height: 38px;
        font-size: 10px;
    }

    .meta-text h4 {
        font-size: 13px;
    }

    .bar span {
        display: none;
    }
}