* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fc;
    color: #171923;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}


/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eceef3;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo,
.footer-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.logo span,
.footer-logo span {
    color: #ff3d71;
}

.main-nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a:hover {
    color: #ff3d71;
}

.search-box {
    margin-left: auto;
    display: flex;
    background: #f2f3f7;
    border-radius: 30px;
    overflow: hidden;
}

.search-box input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 16px;
}

.search-box button {
    border: 0;
    padding: 0 18px;
    background: #ff3d71;
    color: white;
    font-weight: 700;
}


/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 20%, #ffd9e5, transparent 35%),
        linear-gradient(135deg, #fff, #f5f6fb);
    padding: 70px 0;
}

.hero-content {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 650px;
}

.eyebrow,
.section-label {
    color: #ff3d71;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.8px;
}

.hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -3px;
}

.hero p {
    max-width: 600px;
    color: #626778;
    font-size: 17px;
    line-height: 1.7;
}

.hero-button {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 22px;
    border-radius: 30px;
    background: #ff3d71;
    color: #fff;
    font-weight: 800;
}

.hero-art {
    width: 260px;
    height: 260px;
    display: grid;
    place-items: center;
}

.hero-disc {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 80px;
    color: white;
    background:
        radial-gradient(circle, #171923 0 12%, transparent 13%),
        repeating-radial-gradient(
            circle,
            #171923 0 2px,
            #30323b 3px 5px
        );
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
}


/* SECTIONS */

.section {
    padding: 55px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: 28px;
}

.section-heading > a {
    color: #ff3d71;
    font-weight: 700;
}


/* LAYOUT */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* SONG CARD */

.song-card {
    background: #fff;
    border: 1px solid #eceef3;
    border-radius: 14px;
    overflow: hidden;
    transition: .2s ease;
}

.song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(30,35,50,.10);
}

.song-image-wrap {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    background: #eee;
    overflow: hidden;
}

.song-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-image {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 50px;
}

.play-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ff3d71;
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(5px);
    transition: .2s;
}

.song-card:hover .play-icon {
    opacity: 1;
    transform: translateY(0);
}

.song-info {
    padding: 14px;
}

.song-info h3 {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.4;
}

.song-info h3 a:hover {
    color: #ff3d71;
}

.song-info time {
    color: #888d9c;
    font-size: 12px;
}


/* SIDEBAR */

.sidebar-box {
    background: #fff;
    border: 1px solid #eceef3;
    border-radius: 14px;
    padding: 18px;
}

.sidebar-title h2 {
    margin: 0 0 15px;
    font-size: 20px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.popular-item:last-child {
    border-bottom: 0;
}

.popular-item img,
.popular-placeholder {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 9px;
    object-fit: cover;
}

.popular-placeholder {
    background: #f1f2f6;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.popular-item strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.popular-item small {
    color: #8b90a0;
    display: block;
    margin-top: 5px;
}


/* GENRES */

.genres-section {
    background: #fff;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.genre-card {
    padding: 20px;
    border-radius: 13px;
    background: #f7f8fc;
    border: 1px solid #eceef3;
}

.genre-card:hover {
    background: #fff0f4;
    border-color: #ffb7ca;
}

.genre-card strong {
    display: block;
}

.genre-card span {
    display: block;
    margin-top: 6px;
    color: #8b90a0;
    font-size: 12px;
}


/* FOOTER */

.site-footer {
    background: #171923;
    color: #fff;
    padding-top: 50px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    color: #a8acb9;
    max-width: 400px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #c6c9d2;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #30323b;
    text-align: center;
    color: #8f93a0;
    font-size: 13px;
}


/* MOBILE */

@media (max-width: 1000px) {

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 700px) {

    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 14px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .search-box {
        margin-left: auto;
    }

    .search-box input {
        width: 130px;
    }

    .hero {
        padding: 45px 0;
    }

    .hero-content {
        min-height: auto;
    }

    .hero-art {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .footer-inner {
        flex-direction: column;
    }
}