@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    --bg: #050505;
    --surface: #0a0a0a;
    --surface-2: #101010;
    --border: #1d1d1d;
    --border-light: #2a2a2a;
    --text: #f3f3f3;
    --muted: #8a8a8a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}


/* HEADER */

.site-header {
    width: min(1500px, 92%);
    margin: auto;
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .18em;
}

.site-header nav {
    display: flex;
    gap: 30px;
}

.site-header nav a {
    color: var(--muted);
    font-size: .9rem;
    transition: .2s;
}

.site-header nav a:hover {
    color: white;
}


/* HERO */

.hero {
    width: min(1500px, 92%);
    margin: auto;

    min-height: 78vh;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.hero-inner {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, .4fr);

    gap: 80px;
    align-items: end;
}

.hero h1 {
    font-family: "Instrument Serif", serif;
    font-size: clamp(5rem, 11vw, 11rem);
    font-weight: 400;
    line-height: .75;
    letter-spacing: -.055em;
}

.hero h1 span {
    color: #777;
    font-style: italic;
}

.hero-copy > p {
    max-width: 610px;
    margin-top: 42px;

    color: #999;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-button {
    display: inline-block;
    margin-top: 35px;

    padding: 14px 19px;
    border: 1px solid #2d2d2d;
    border-radius: 999px;

    font-size: .9rem;

    transition: .2s;
}

.hero-button:hover {
    background: white;
    color: black;
}

.hero-side {
    padding-bottom: 10px;
}

.hero-side span {
    color: #555;
    font-size: .67rem;
    letter-spacing: .2em;
}

.hero-side p {
    margin-top: 12px;
    color: #888;
    line-height: 1.6;
}


/* SECTIONS */

.content-section {
    width: min(1500px, 92%);
    margin: auto;
    padding: 120px 0;

    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;
    margin-bottom: 50px;
}

.kicker {
    display: block;

    color: #555;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .19em;

    margin-bottom: 12px;
}

.section-title h2 {
    font-size: clamp(2.6rem, 5vw, 5rem);
    letter-spacing: -.055em;
    line-height: .95;
}

.section-title > p {
    max-width: 330px;

    color: #777;
    text-align: right;
    line-height: 1.65;
}


/* CURRENT WATCHING */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 25px;
}

.featured-card {
    position: relative;

    min-height: 520px;

    border: 1px solid var(--border);
    border-radius: 24px;

    overflow: hidden;
    background: #111;
}

.featured-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;

    object-fit: cover;

    filter: brightness(.7);
    transition: .4s;
}

.featured-card:hover img {
    transform: scale(1.025);
    filter: brightness(.8);
}

.featured-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.95),
            rgba(0,0,0,.15) 60%,
            transparent
        );
}

.featured-overlay {
    position: absolute;
    z-index: 2;

    left: 35px;
    right: 35px;
    bottom: 32px;
}

.status-pill {
    display: inline-block;

    padding: 7px 10px;
    margin-bottom: 13px;

    border-radius: 999px;

    background: white;
    color: black;

    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.featured-overlay h3 {
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -.045em;
}

.featured-meta {
    display: flex;
    gap: 12px;

    margin-top: 13px;

    color: #aaa;
    font-size: .9rem;
}


/* POSTER GRIDS */

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));

    gap: 38px 22px;
}

.poster-card {
    min-width: 0;
}

.poster-wrap {
    position: relative;

    aspect-ratio: 2 / 3;

    border-radius: 16px;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
}

.poster-wrap img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.poster-card:hover img {
    transform: scale(1.035);
}

.rating-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;

    min-width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 999px;

    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);

    font-weight: 700;
    font-size: .82rem;
}

.poster-card h3 {
    margin-top: 15px;

    font-size: 1.02rem;
    font-weight: 600;
}

.poster-card > p {
    margin-top: 5px;

    color: #666;
    font-size: .85rem;
}


/* MUSIC */

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));

    gap: 26px;
}

.music-card {
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #090909;

    transition: .25s;
}

.music-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
}

.music-card img {
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 12px;
}

.music-card h3 {
    margin-top: 15px;

    font-size: 1rem;
}

.music-card p {
    margin-top: 4px;

    color: #777;
    font-size: .85rem;
}

.music-card span {
    display: inline-block;

    margin-top: 10px;

    color: #aaa;
    font-size: .75rem;
}


/* EMPTY */

.empty-state {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px;

    border: 1px dashed #222;
    border-radius: 20px;

    background: #070707;
}

.empty-state h3 {
    font-size: 1.6rem;
}

.empty-state p {
    margin-top: 8px;

    color: #666;
}


/* FOOTER */

footer {
    width: min(1500px, 92%);
    margin: auto;

    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #555;
    font-size: .8rem;
}


/* MOBILE */

@media (max-width: 800px) {

    .site-header nav {
        display: none;
    }

    .hero {
        min-height: 72vh;
        padding: 50px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero h1 {
        font-size: clamp(4.3rem, 20vw, 7rem);
    }

    .hero-side {
        display: none;
    }

    .content-section {
        padding: 85px 0;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title > p {
        text-align: left;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card,
    .featured-card img {
        min-height: 440px;
    }

    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 15px;
    }

    .music-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {

    .poster-grid,
    .music-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-overlay {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }
}

/* CURRENTLY LISTENING */

.listening-card {
    min-height: 250px;
    padding: 42px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.08), transparent 30%),
        linear-gradient(135deg, #111, #080808);
}

.listening-card.hidden {
    display: none;
}

.listening-status {
    display: inline-block;

    padding: 7px 11px;
    margin-bottom: 18px;

    border-radius: 999px;

    background: #fff;
    color: #050505;

    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.listening-card h3 {
    font-size: clamp(2rem, 5vw, 4.6rem);
    letter-spacing: -.05em;
}

.listening-card p {
    margin-top: 10px;

    color: #888;
    font-size: 1.05rem;
}

.listening-source {
    color: #555;
    font-size: .78rem;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .listening-card {
        min-height: 220px;
        padding: 28px;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* NOW PLAYING COMPACT */

.now-playing-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    align-items: center;

    max-width: 760px;
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: #090909;
}

.now-playing-card.hidden {
    display: none;
}

.now-playing-artwork {
    width: 150px;
    height: 150px;

    object-fit: cover;
    border-radius: 14px;

    background: #111;
}

.now-playing-info {
    min-width: 0;
}

.playing-row {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 12px;

    color: #777;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.playing-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;

    height: 18px;
}

.playing-bars span {
    width: 3px;
    height: 8px;

    background: #fff;
    border-radius: 2px;

    animation: musicBar .8s infinite ease-in-out alternate;
}

.playing-bars span:nth-child(2) {
    animation-delay: .15s;
}

.playing-bars span:nth-child(3) {
    animation-delay: .3s;
}

.playing-bars span:nth-child(4) {
    animation-delay: .45s;
}

.playing-bars.paused span {
    animation-play-state: paused;
    height: 5px;
}

@keyframes musicBar {
    from { height: 5px; }
    to { height: 18px; }
}

.now-playing-card h3 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -.045em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-card p {
    margin-top: 7px;

    color: #888;
    font-size: 1rem;
}

.now-playing-source {
    display: inline-block;
    margin-top: 18px;

    color: #555;
    font-size: .72rem;
}

@media (max-width: 600px) {

    .now-playing-card {
        grid-template-columns: 95px 1fr;
        gap: 18px;
    }

    .now-playing-artwork {
        width: 95px;
        height: 95px;
    }

    .now-playing-card h3 {
        font-size: 1.45rem;
    }
}
