/* =====================
   Home Pane Header
   (sits inside .pane-header — sibling of .pane-content)
   ===================== */

#homePaneHeader {
    width: 100%;
    border-bottom: 2px solid #888;
    background-color: #171717;
    padding: 0;
    text-align: left;
}

.home-greeting-bar {
    padding: 18px 25px;
}

/*
.home-greeting {
    color: #f4f4f4;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
*/

.home-greeting-bar {
    background-image: url('/Images/jamtab-hero-banner-sway.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    border-radius: 12px;
    /*margin-bottom: 1.5rem;*/
    box-shadow: 0 4px 20px rgba(13, 131, 221, 0.15);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.home-greeting {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /*https://fonts.googleapis.com*/
}

/*
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*/


/* =====================
   Home Page Inner Wrapper
   (the actual rail content inside .pane-content)
   ===================== */

.homepageContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}


/* =====================
   Each Rail
   ===================== */

.rail {
    margin-bottom: 40px;
    width: 100%;
}

.rail-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.rail-title {
    color: #f4f4f4;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.rail-see-all {
    color: #bbb;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .rail-see-all:hover {
        color: #0d83dd;
    }

.rail-track {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #0165b0 #121212;
}

    .rail-track::-webkit-scrollbar {
        height: 6px;
    }

    .rail-track::-webkit-scrollbar-track {
        background: #121212;
        border-radius: 10px;
    }

    .rail-track::-webkit-scrollbar-thumb {
        background: #0165b0;
        border-radius: 10px;
    }

        .rail-track::-webkit-scrollbar-thumb:hover {
            background: #0d83dd;
        }



/* =====================
   Song card (the unit on each rail)
   ===================== */

.rail-card {
    background-color: #121212;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

    .rail-card:hover {
        background-color: #1f1f1f;
        text-decoration: none;
        color: #fff;
        transform: translateY(-2px);
    }

    .rail-card:visited {
        color: #fff;
        text-decoration: none;
    }

.rail-card-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    object-fit: cover;
    background-color: #0a0a0a;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

    /* Video cards use 16:9 thumbs */
    .rail-card-art.video {
        aspect-ratio: 16 / 9;
    }

.rail-card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rail-card-sub {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rail-card-meta {
    font-size: 11px;
    color: #888;
    margin: 6px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .rail-card-meta .fa {
        font-size: 10px;
    }



/* =====================
   Continue Playing — Featured Card
   ===================== */

.continue-rail .rail-card {
    flex: 0 0 100%;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: linear-gradient(135deg, #0a3556 0%, #121212 100%);
}

.continue-rail .rail-card-art {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    margin-bottom: 0;
}

    .continue-rail .rail-card-art.video {
        flex: 0 0 178px;
        width: 178px;
        height: 100px;
        aspect-ratio: 16 / 9;
    }

.continue-rail .rail-card-text {
    flex: 1 1 auto;
    min-width: 0;
}

.continue-rail .rail-card-eyebrow {
    font-size: 11px;
    color: #0d83dd;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.continue-rail .rail-card-title {
    font-size: 18px;
}

.continue-rail .play-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0165b0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.continue-rail .rail-card:hover .play-icon {
    background-color: #0d83dd;
    transform: scale(1.08);
}


/* =====================
   Empty State
   ===================== */

.rail-empty {
    color: #666;
    font-size: 13px;
    font-style: italic;
    padding: 8px 0 4px 4px;
}


/* =====================
   Responsive — must come AFTER desktop rules
   ===================== */

@media (max-width: 768px) {

    .home-greeting-bar {
        padding: 14px 12px;
    }

    .home-greeting {
        font-size: 20px;
    }

    .rail-title {
        font-size: 17px;
    }

    /* Tighten outer padding so two cards have room to fit */
    .homepageContainer {
        padding: 12px;
    }

    .rail-track {
        gap: 10px;
    }

    /* Continue Playing stays full-width */
    .continue-rail .rail-card {
        flex: 0 0 100%;
        width: 100%;
        padding: 12px;
        gap: 12px;
    }

    .continue-rail .rail-card-art {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

        .continue-rail .rail-card-art.video {
            flex: 0 0 124px;
            width: 124px;
            height: 70px;
        }

    .continue-rail .rail-card-title {
        font-size: 15px;
    }

    .continue-rail .play-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
