@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Raleway:wght@300;500;700&display=swap");

:root {
    --bg: #050716;
    --glass: rgba(12, 13, 30, 0.9);
    --accent-gold: #ffd36b;
    --accent-pink: #ff4b7a;
    --accent-green: #06d6a0;
    --text-main: #fff9e5;
    --text-soft: rgba(255, 247, 220, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
    background:
            radial-gradient(circle at 15% 0, #ffecd2 0, transparent 55%),
            radial-gradient(circle at 85% 100%, #2b5876 0, #050716 60%),
            var(--bg);
    color: var(--text-main);
}

.shell {
    position: relative;
    width: min(960px, 100%);
    margin-inline: auto;
    padding: 2rem 2.25rem;
    border-radius: 24px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    body {
        padding: 1rem;
    }
    .shell {
        padding: 1.5rem 1.25rem;
    }
}

.top-bar {
    position: absolute;
    top: 1rem;
    left: 1.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

@media (max-width: 520px) {
    .top-bar {
        position: static;
        margin-bottom: 0.75rem;
    }
}

.label-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.label-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-green);
}

.label-pill strong {
    color: var(--accent-gold);
    font-weight: 700;
}

.cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
    flex-direction: column;
}

@media (max-width: 900px) {
    .cover-wrap {
        order: 2;
        padding-top: 0.5rem;
    }
}

.cover-frame {
    padding: 6px;
    border-radius: 20px;
    background: conic-gradient(
            from 210deg,
            #ffd700,
            #ff4b2b,
            #dd2476,
            #ffd700
    );
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.cover {
    display: block;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    object-fit: cover;
}

.badge {
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-green);
    color: #04100b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #0b412f;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .content {
        order: 1;
    }
}

.pretitle {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-soft);
}

h1 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 1.1;
}

.highlight {
    display: inline-block;
    padding: 0 0.25em;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.25), rgba(255, 0, 102, 0.2));
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-soft);
    max-width: 28rem;
}

.subtitle span {
    color: var(--accent-gold);
    font-weight: 600;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.meta-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
}

.meta-pill strong {
    color: var(--accent-gold);
    font-weight: 700;
}

.cta-row {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.btn-play {
    border: none;
    cursor: pointer;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    font-family: inherit;
    background-image: linear-gradient(135deg, #ff512f, #dd2476, #ffd200);
    color: #140b05;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-play:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.85);
    filter: brightness(1.05);
}

.btn-play:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

.btn-play.playing {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 18px rgba(0, 255, 160, 0.7);
}

.btn-play:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

.btn-play .icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(20, 11, 5, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.btn-play .icon::before {
    content: "";
    margin-left: 1px;
    border-style: solid;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent #2a0c04;
    display: block;
}

.btn-play.playing .icon::before {
    border-width: 0;
    width: 10px;
    height: 10px;
    background: #2a0c04;
    border-radius: 2px;
}

.note {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.note strong {
    color: var(--accent-gold);
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-soft);
    opacity: 0.4;
}

.now-playing[data-active="true"] {
    opacity: 1;
}

.np-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent-green);
}

.tracklist {
    margin-top: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.78rem;
    color: var(--text-soft);
}

.tracklist-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.3rem;
}

.tracklist ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 0.7rem;
}

@media (max-width: 520px) {
    .tracklist ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tracklist li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tracklist li strong {
    color: var(--accent-gold);
    margin-right: 0.1rem;
}

/* przyciski w liście utworów */
.track-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.track-btn:hover {
    color: var(--accent-gold);
}

/* --- PROFESJONALNY ODTWARZACZ --- */

.player-pro {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.player-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-soft);
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(4, 5, 15, 0.8);
    color: var(--text-main);
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
}

.player-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.player-btn.playing {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 1px rgba(6, 214, 160, 0.6);
}

.player-btn-icon {
    font-size: 0.9rem;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    color: var(--text-soft);
}

.player-progress-time {
    width: 2.8rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.player-progress-bar {
    flex: 1;
    position: relative;
}

.player-pro input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-pink));
    outline: none;
    cursor: pointer;
}

.player-pro input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #11111b;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
    margin-top: -5px;
}

.player-pro input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #11111b;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.player-pro input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-pink));
}

.player-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-soft);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
    max-width: 220px;
}

.player-volume input[type="range"] {
    flex: 1;
}

.player-mute-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.96rem;
    transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.player-mute-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.player-mute-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.player-mute-btn.muted {
    border-color: var(--accent-pink);
}

.player-extra {
    opacity: 0.8;
    text-align: right;
}

@media (max-width: 680px) {
    .player-bottom {
        align-items: flex-start;
    }
    .player-extra {
        text-align: left;
    }
}

footer {
    margin-top: 1.2rem;
    text-align: right;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 680px) {
    footer {
        text-align: center;
    }
}

a {
    color: inherit;
}