/* ============================================================
   TRENDYSONGZ HOMEPAGE
   home.css

   RESPONSIBILITY:
   - Homepage
   - Latest music
   - Music cards
   - Homepage sections

   DO NOT STYLE:
   - Header
   - Navigation
   - Main page layout
   - Sidebar
   - Footer
============================================================ */


/* ============================================================
   HOMEPAGE
============================================================ */

.ts-home {
    width: 100%;

    margin: 0;
    padding: 0 0 60px;
}


/* ============================================================
   HOMEPAGE SECTION
============================================================ */

.ts-section {
    width: 100%;

    margin-top: 42px;
}


/* ============================================================
   SECTION HEADING
============================================================ */

.ts-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
    padding-bottom: 14px;

    border-bottom: 1px solid #e8e8e8;
}


.ts-section-kicker {
    display: block;

    margin-bottom: 5px;

    color: #999999;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.ts-section-heading h2 {
    margin: 0;

    color: #111111;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.2;
}


.ts-section-heading p {
    margin: 5px 0 0;

    color: #888888;

    font-size: 13px;
}


/* ============================================================
   MUSIC GRID
============================================================ */

.ts-music-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px 18px;
}


/* ============================================================
   MUSIC CARD
============================================================ */

.ts-music-card {
    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    padding: 8px;

    color: #111111;

    text-decoration: none;

    background: #ffffff;

    border: 1px solid transparent;
    border-radius: 8px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.ts-music-card:hover {
    background: #fafafa;

    border-color: #eeeeee;
}


/* ============================================================
   MUSIC COVER
============================================================ */

.ts-music-cover {
    position: relative;

    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    overflow: hidden;

    background: #eeeeee;

    border-radius: 6px;
}


.ts-music-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.25s ease;
}


.ts-music-card:hover .ts-music-cover img {
    transform: scale(1.04);
}


/* ============================================================
   PLAY OVERLAY
============================================================ */

.ts-music-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.28);

    opacity: 0;

    transition: opacity 0.2s ease;
}


.ts-music-card:hover .ts-music-overlay {
    opacity: 1;
}


/* ============================================================
   PLAY BUTTON
============================================================ */

.ts-play-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #ffffff;

    color: #111111;

    font-size: 11px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   MUSIC INFORMATION
============================================================ */

.ts-music-info {
    flex: 1;

    min-width: 0;

    padding: 0 0 0 12px;
}


/* ============================================================
   ARTIST
============================================================ */

.ts-music-info h3 {
    display: block;

    margin: 0;

    color: #111111;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    font-weight: 800;

    line-height: 1.25;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ============================================================
   SONG TITLE
============================================================ */

.ts-music-info > p {
    display: block;

    margin: 4px 0 0;

    color: #555555;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ============================================================
   FEATURING ARTIST
============================================================ */

.ts-featuring {
    display: inline;

    margin-left: 3px;

    color: #888888;

    font-size: inherit;

    font-weight: 500;
}


/* ============================================================
   MUSIC META
============================================================ */

.ts-music-meta {
    display: flex;

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

    margin-top: 7px;

    color: #999999;

    font-size: 10px;
}


.ts-music-meta i {
    margin-right: 4px;
}


/* ============================================================
   VIEW ALL
============================================================ */

.ts-section-button {
    margin-top: 28px;

    text-align: center;
}


.ts-section-button a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 11px 20px;

    border: 1px solid #dddddd;

    border-radius: 25px;

    color: #333333;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.ts-section-button a:hover {
    background: #111111;

    border-color: #111111;

    color: #ffffff;
}


/* ============================================================
   TEMPORARY HOMEPAGE SECTIONS
============================================================ */

.ts-placeholder-section {
    margin-top: 55px;

    padding: 25px;

    background: #f8f8f8;

    border-radius: 8px;
}


.ts-placeholder-section h2 {
    margin-top: 0;

    color: #111111;

    font-size: 20px;
}


.old-content-item {
    padding: 12px 0;

    border-bottom: 1px solid #e5e5e5;
}


.old-content-item:last-child {
    border-bottom: none;
}


.old-content-item a {
    color: #333333;

    text-decoration: none;

    font-size: 14px;
}


.old-content-item a:hover {
    color: #111111;
}


/* ============================================================
   TABLET
============================================================ */

@media screen and (max-width: 991px) {

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

        gap: 10px 14px;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media screen and (max-width: 767px) {

    .ts-home {
        padding-bottom: 45px;
    }


    .ts-section {
        margin-top: 35px;
    }


    .ts-section-heading {
        align-items: center;

        margin-bottom: 18px;
    }


    .ts-section-heading h2 {
        font-size: 21px;
    }


    .ts-section-heading p {
        font-size: 12px;
    }


    .ts-music-grid {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    .ts-music-card {
        padding: 7px;
    }


    .ts-music-cover {
        flex: 0 0 62px;

        width: 62px;
        height: 62px;

        border-radius: 5px;
    }


    .ts-music-info {
        padding-left: 10px;
    }


    .ts-music-info h3 {
        font-size: 13px;

        line-height: 1.2;
    }


    .ts-music-info > p {
        margin-top: 3px;

        font-size: 11px;

        line-height: 1.25;
    }


    .ts-music-meta {
        margin-top: 5px;

        font-size: 9px;
    }


    .ts-play-button {
        width: 28px;
        height: 28px;

        font-size: 9px;
    }


    .ts-placeholder-section {
        margin-top: 35px;

        padding: 18px;
    }


    .ts-placeholder-section h2 {
        font-size: 18px;
    }
}


/* ============================================================
   VERY SMALL PHONES
============================================================ */

@media screen and (max-width: 380px) {

    .ts-home {
        padding-left: 0;
        padding-right: 0;
    }


    .ts-music-cover {
        flex: 0 0 56px;

        width: 56px;
        height: 56px;
    }


    .ts-music-info {
        padding-left: 9px;
    }


    .ts-music-info h3 {
        font-size: 12px;
    }


    .ts-music-info > p {
        font-size: 10px;
    }


    .ts-music-meta {
        font-size: 8px;
    }
}