/*
 * Popular Today / This Week
 */

.home-actual-popularity {
    position: relative;
}

.home-popularity-heading {
    align-items: flex-end;
}

.home-popularity-live {
    color: #969fa9;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.home-popularity-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-popularity-tabs::-webkit-scrollbar {
    display: none;
}

.home-popularity-tab {
    appearance: none;
    border: 1px solid #242b33;
    border-radius: 999px;
    background: #0f1318;
    color: #969fa9;
    padding: 9px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}

.home-popularity-tab:hover {
    border-color: #343d47;
    background: #151a20;
    color: #f2f3f5;
}

.home-popularity-tab.active {
    border-color: #e3262e;
    background: #e3262e;
    color: #fff;
}

.home-popularity-panel {
    display: none;
}

.home-popularity-panel.active {
    display: block;
}

.home-actual-popularity .poster-card-badge {
    min-width: 34px;
    text-align: center;
    background: #e3262e;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 720px) {
    .home-popularity-heading {
        align-items: flex-start;
    }

    .home-popularity-live {
        display: none;
    }
}


/* ---------------------------------------------------------
   Popularity heading alignment fix
   The shared .home-section-kicker is the thin red vertical bar,
   so popularity subtitle text must use its own class.
--------------------------------------------------------- */

.home-popularity-heading {
    align-items: center;
}

.home-popularity-heading > .home-popularity-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-popularity-heading .home-section-kicker {
    flex: 0 0 3px;
    width: 3px;
    height: 36px;
}

.home-popularity-title-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.home-popularity-title-copy h2 {
    margin: 0;
    white-space: nowrap;
}

.home-popularity-subtitle {
    display: block;
    color: #969fa9;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.home-popularity-live {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .home-popularity-heading {
        align-items: flex-start;
    }

    .home-popularity-title-copy h2,
    .home-popularity-subtitle {
        white-space: normal;
    }

    .home-popularity-live {
        display: none;
    }
}
