/**
 * Program24 — layout responsive (header, footer, cinema, picker)
 * Complementează styles.css legacy; nu modifică paginile admin.
 */

*, *::before, *::after {
    box-sizing: border-box;
}

.p24-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #333333;
}

/* —— Bara parteneri (fost ring link) —— */
.p24-partner-bar {
    background-color: #4268A8;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
}

.p24-partner-bar__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
}

.p24-partner-bar a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.p24-partner-bar a:hover {
    text-decoration: underline;
}

.p24-partner-bar__sep {
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}

/* —— Header principal —— */
.p24-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #333333;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.p24-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

/* Mobil: actiuni dreapta (ascunse pe desktop) */
.p24-header__actions {
    display: none;
}

.p24-header__brand {
    flex: 0 0 auto;
}

.p24-header__admin--mobile {
    display: none;
}

.p24-header__brand img {
    display: block;
    max-width: 150px;
    height: auto;
}

.p24-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
}

.p24-nav-tab {
    display: inline-block;
    padding: 8px 16px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #236498;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #8FC7E4;
    background: #EBF7FC;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.p24-nav-tab:hover {
    background: #CBE6F5;
    color: #2B81AE;
}

.p24-nav-tab--active {
    background: #2B81AE;
    border-color: #2B81AE;
    color: #fff;
}

.p24-nav-tab--active:hover {
    background: #236498;
    color: #fff;
}

.p24-header__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.p24-header__admin a {
    font-size: 11px;
    color: #CBE6F5;
    margin-left: 8px;
}

.p24-search-panel {
    display: block;
}

/* Butoane icon mobil */
.p24-header__menu-toggle,
.p24-header__search-toggle {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    border-radius: 4px;
    line-height: 0;
}

.p24-header__menu-toggle:hover,
.p24-header__search-toggle:hover,
.p24-header__menu-toggle:focus,
.p24-header__search-toggle:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.p24-hamburger {
    display: inline-block;
    width: 22px;
    height: 16px;
    position: relative;
    vertical-align: middle;
}

.p24-hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.p24-hamburger span:nth-child(1) { top: 0; }
.p24-hamburger span:nth-child(2) { top: 7px; }
.p24-hamburger span:nth-child(3) { top: 14px; }

.p24-header.is-nav-open .p24-hamburger span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}
.p24-header.is-nav-open .p24-hamburger span:nth-child(2) {
    opacity: 0;
}
.p24-header.is-nav-open .p24-hamburger span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.p24-icon-search {
    display: block;
    margin: 0 auto;
}

/* Căutare — input si buton pe acelasi rand */
.p24-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

.p24-search__input {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid #8FC7E4;
    border-radius: 4px;
    width: 160px;
    max-width: 180px;
    flex: 0 1 auto;
    min-width: 0;
}

.p24-search__submit {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 12px;
    background: #2B81AE;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
}

.p24-search__submit:hover {
    background: #236498;
}

/* Skyscraper — doar desktop larg */
.p24-ad-rail {
    display: none;
}

/* Shell continut: aceeasi latime ca .p24-header__inner (1000px) */
.p24-layout-with-rail {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.p24-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Copii directi = latime plina a shell-ului */
.p24-page > * {
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

/* Formulare + tabele legacy (810px): latime plina shell, ca headerul / bara zile */
.p24-page > form {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0;
    padding: 0;
}

.p24-page > table,
.p24-page form table[width="810"],
.p24-page form table[width='810'],
.p24-page table[width="810"],
.p24-page table[width='810'],
.p24-page table[width="500"],
.p24-page table[width='500'] {
    width: 100% !important;
    max-width: 1000px;
    margin: 0;
}

/* Cautare TV: randuri rezultat pe latimea shell-ului */
.p24-page .search_result1 table,
.p24-page .search_result2 table,
.p24-page .search_result_today table {
    width: 100%;
}

.p24-page .search_result1 table td[width="375"],
.p24-page .search_result2 table td[width="375"],
.p24-page .search_result_today table td[width="375"] {
    width: auto;
}

.p24-page .searchstation,
.p24-page .bgcolor13 {
    width: 100%;
    box-sizing: border-box;
}

/* —— Pagina program cinema (div) —— */
.p24-cinema-page {
    width: 100%;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.p24-cinema-page__head,
.p24-tv-page__head {
    margin-bottom: 12px;
}

.p24-cinema-page .titlu1,
.p24-tv-page .titlu1 {
    margin: 0;
    padding: 10px;
    border: 0;
}

.p24-cinema-page__forms {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.p24-cinema-page__program {
    width: 100%;
}

/* Saptamana: card film */
.p24-cinema-week-card {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 4px;
}

.p24-cinema-week-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.p24-cinema-week-card__badge {
    flex: 0 0 auto;
    min-width: 20px;
    padding: 2px 6px;
    text-align: center;
}

.p24-cinema-week-card__badge .textcolor5 {
    font-size: 10px;
}

.p24-cinema-week-card__title {
    flex: 1 1 200px;
    min-width: 0;
    line-height: 1.4;
}

.p24-cinema-week-card__title .link2 {
    font-weight: bold;
}

.p24-cinema-week-card__orig {
    color: #6C6C6C;
}

.p24-cinema-week-card__sep {
    color: #999;
    margin: 0 4px;
}

.p24-cinema-week-card__cinema-block {
    margin-top: 6px;
    padding-left: 28px;
}

.p24-cinema-week-card__cinema-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.p24-cinema-week-card__cinema-name a.link3 {
    color: #6C6C6C !important;
    font-weight: bold;
}

.p24-cinema-week-card__reserv {
    font-size: 10px;
    margin-left: 4px;
}

.p24-cinema-week-card__interval {
    margin: 2px 0;
    line-height: 1.5;
}

/* Zi: bloc ora */
.p24-cinema-hour-block {
    width: 100%;
    margin-bottom: 12px;
}

.p24-cinema-hour-block__label {
    background: #E0E0E0;
    padding: 6px 10px;
    font-weight: bold;
    color: #333;
    border-radius: 4px 4px 0 0;
}

.p24-cinema-hour-block__list {
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

/* Zi: rand film */
.p24-cinema-day-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    background: #F0F0F0;
}

.p24-cinema-day-row--alt {
    background: #FEFEFE;
}

.p24-cinema-day-row:last-child {
    border-bottom: none;
}

.p24-cinema-day-row--alt {
    background: #FEFEFE;
}

.p24-cinema-day-row--one-cinema .p24-cinema-day-row__shows {
    flex: 1 1 100%;
}

.p24-cinema-day-row__badge {
    display: inline-block;
    min-width: 14px;
    line-height: 14px;
    text-align: center;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

.p24-cinema-day-row__title {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.p24-cinema-day-row__shows {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.p24-cinema-day-row__venue {
    padding: 4px 0;
    text-align: right;
    line-height: 1.4;
}

.p24-cinema-day-row__venue + .p24-cinema-day-row__venue {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.p24-cinema-day-row__cinema {
    font-weight: bold;
}

.p24-cinema-day-row__cinema a.link3 {
    color: #6C6C6C !important;
    font-weight: bold;
}

.p24-cinema-day-row__reserv {
    font-size: 10px;
    margin-top: 2px;
}

.p24-cinema-day-row__times-line {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.8;
}

.p24-cinema-day-row__time {
    display: inline-block;
    background: #BCE14A;
    color: #fff;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.2;
    margin: 2px 0 2px 4px;
}

.p24-cinema-day-row__time:first-child {
    margin-left: 0;
}

/* —— Pagina program TV (div) —— */
.p24-tv-page {
    width: 100%;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.p24-tv-page__forms {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.p24-tv-filters-form {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.p24-tv-page__program {
    width: 100%;
}

.p24-tv-notice {
    padding: 10px 14px;
    text-align: center;
    margin: 8px 0;
    border-radius: 4px;
}

.p24-tv-domain-links {
    padding: 10px 14px;
    margin: 8px 0;
    background-color: #4BA4D3;
    line-height: 1.5;
    box-sizing: border-box;
}

.p24-tv-domain-links__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
}

.p24-tv-domain-links__summary::-webkit-details-marker {
    display: none;
}

.p24-tv-domain-links__summary-text {
    flex: 1 1 auto;
    min-width: 0;
}

.p24-tv-domain-links__chevron {
    flex: 0 0 auto;
    display: block;
    width: 0;
    height: 0;
    margin-top: 2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    transition: transform 0.15s ease;
}

.p24-tv-domain-links[open] .p24-tv-domain-links__chevron {
    transform: rotate(180deg);
}

.p24-tv-domain-links__stations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.p24-tv-domain-links:not([open]) .p24-tv-domain-links__stations {
    display: none;
}

.p24-tv-domain-links__btn,
.p24-tv-domain-links__btn:visited {
    display: inline-block;
    padding: 6px 12px;
    background: #8FC7E4;
    color: #fff !important;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    line-height: 1.3;
    white-space: nowrap;
}

.p24-tv-domain-links__btn:hover,
.p24-tv-domain-links__btn:focus {
    background: #CBE6F5;
    color: #236498 !important;
    text-decoration: none;
}

.p24-tv-favorites {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 6px;
    padding: 10px 14px;
    margin: 8px 0 12px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.p24-tv-favorites__label {
    flex: 0 0 auto;
    font-size: 11px;
}

.p24-tv-favorites__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.p24-tv-favorites__slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
}

.p24-tv-favorites__slot--empty {
    background: #E8E8E8;
}

.p24-tv-favorites__slot--saved {
    background: #CBE6F5;
}

.p24-tv-favorites__slot a.link4 {
    color: #006699;
}

.p24-tv-message {
    padding: 8px 0;
    margin: 8px 0;
}

.p24-tv-display-switch {
    padding: 10px 14px;
    margin: 8px 0 12px;
    text-align: right;
    font-size: 11px;
    box-sizing: border-box;
}

.p24-tv-interval {
    margin: 16px 0 10px;
    padding: 10px 14px;
    text-align: center;
    background-color: #4BA4D3;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

.p24-tv-interval .p24-tv-interval__title {
    display: block;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0.02em;
}

.p24-tv-show-card {
    display: grid;
    grid-template-columns: 14px 38px 22px minmax(0, 1fr) auto;
    column-gap: 6px;
    row-gap: 4px;
    align-items: start;
    width: 100%;
    padding: 8px 10px;
    margin: 2px 0;
    box-sizing: border-box;
    border-radius: 2px;
    background: #F3F3F3;
}

.p24-tv-show-card--alt {
    background: #FFFFFF;
}

.p24-tv-show-card--location {
    background: #DAEDF8;
}

/* Copiii din __main participa la grid-ul cardului */
.p24-tv-show-card__main {
    display: contents;
}

.p24-tv-show-card__remind {
    grid-column: 1;
    grid-row: 1;
    line-height: 1;
}

.p24-tv-show-card__remind img {
    display: block;
    max-width: 14px;
    height: auto;
}

.p24-tv-show-card__inot {
    display: none;
}

.p24-tv-show-card__hour {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
}

.p24-tv-show-card__icon {
    grid-column: 3;
    grid-row: 1;
    text-align: center;
    min-height: 1px;
}

.p24-tv-show-card__icon img {
    display: block;
    max-width: 22px;
    height: auto;
    margin: 0 auto;
}

.p24-tv-show-card__body {
    grid-column: 4;
    grid-row: 1;
    min-width: 0;
    line-height: 1.45;
}

.p24-tv-show-card__body img {
    max-width: 100%;
    height: auto;
}

.p24-tv-show-card__title-line {
    display: inline;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.p24-tv-show-card__admin {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-bottom: 4px;
    font-size: 10px;
}

/* Descriere aliniata cu coloana titlului (grid col 4), indiferent de icon */
.p24-tv-show-card__details {
    grid-column: 4 / -1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: justify;
    color: #6C6C6C;
    font-size: 11px;
    line-height: 1.45;
}

.p24-tv-show-card__cna {
    grid-column: 5;
    grid-row: 1;
    text-align: right;
    min-width: 0;
}

.p24-tv-show-card__cna img {
    display: block;
    max-width: 36px;
    height: auto;
    margin-left: auto;
}

.p24-page-head-extra {
    margin-top: 8px;
    text-align: right;
}

.p24-page-head-extra a {
    font-weight: bold;
}

@media (max-width: 640px) {
    .p24-tv-show-card {
        grid-template-columns: 14px 34px 20px minmax(0, 1fr) auto;
        column-gap: 4px;
    }

    .p24-tv-show-card__hour {
        font-size: 11px;
    }

    .p24-tv-show-card__icon img {
        max-width: 20px;
    }

    .p24-tv-show-card__cna img {
        max-width: 28px;
    }

    .p24-cinema-week-card__cinema-block {
        padding-left: 0;
    }

    .p24-cinema-day-row {
        flex-direction: column;
        align-items: stretch;
    }

    .p24-cinema-day-row__title {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .p24-cinema-day-row__shows {
        text-align: left;
    }

    .p24-cinema-day-row__venue {
        text-align: left;
    }
}

.p24-section-bar {
    width: 100%;
}

.p24-section-bar__row {
    width: 100%;
    box-sizing: border-box;
}

/* Skyscraper in afara coloanei de 1000px (nu ingusteaza continutul) */
@media (min-width: 1260px) {
    .p24-ad-rail {
        display: block;
        position: absolute;
        left: 100%;
        top: 0;
        width: 160px;
        margin-left: 16px;
        z-index: 1;
    }
}

@media (max-width: 1259px) {
    .p24-ad-rail {
        display: none;
    }
}

/* Mobil: logo stanga | cautare + hamburger dreapta */
@media (max-width: 640px) {
    .p24-header__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        align-items: center;
        gap: 0;
        padding: 8px 10px 0;
    }

    .p24-header__brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        text-align: left;
    }

    .p24-header__brand img {
        max-width: 105px;
        margin: 0;
    }

    /* Dreapta: intai cautare, apoi hamburger */
    .p24-header__actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .p24-header__menu-toggle,
    .p24-header__search-toggle {
        display: block;
    }

    .p24-header__nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 4px 0 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 6px;
    }

    .p24-header.is-nav-open .p24-header__nav {
        display: flex;
    }

    /* Meniu: text simplu */
    .p24-header__nav .p24-nav-tab {
        display: block;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: normal;
        color: #fff;
        text-decoration: none;
        background: none;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        text-align: left;
    }

    .p24-header__nav .p24-nav-tab:hover {
        color: #CBE6F5;
        background: rgba(255, 255, 255, 0.08);
    }

    .p24-header__nav .p24-nav-tab--active,
    .p24-header__nav .p24-nav-tab--active:hover {
        font-weight: bold;
        color: #8FC7E4;
        background: none;
    }

    .p24-header__admin--desktop {
        display: none !important;
    }

    .p24-header__admin--mobile {
        display: block;
        padding: 10px 16px 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 13px;
    }

    .p24-header__admin--mobile a {
        color: #CBE6F5;
        text-decoration: none;
        margin-right: 14px;
    }

    .p24-header__tools {
        grid-column: 1 / -1;
        grid-row: 3;
        margin: 0;
        width: 100%;
        padding: 0 0 10px;
    }

    .p24-search-panel {
        display: none;
        width: 100%;
        padding: 8px 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .p24-header.is-search-open .p24-search-panel {
        display: block;
    }

    .p24-search {
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: 100%;
        padding: 0;
    }

    .p24-search__input {
        width: 140px;
        max-width: calc(100% - 76px);
        flex: 0 1 auto;
    }

    .p24-search__submit {
        flex: 0 0 auto;
    }

    .p24-partner-bar__inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .p24-partner-bar__sep {
        flex-shrink: 0;
    }
}

@media (min-width: 641px) {
    .p24-header__actions {
        display: none !important;
    }

    .p24-header__nav {
        display: flex !important;
    }

    .p24-search-panel {
        display: block !important;
    }

    .p24-header__admin--mobile {
        display: none !important;
    }
}

/* —— Footer —— */
.p24-footer {
    margin-top: auto;
    background: #333333;
}

.p24-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.p24-footer__legal {
    padding: 12px 16px;
    background-color: #333333;
    font-size: 11px;
    color: #CBE6F5;
    text-align: center;
}

.p24-footer__meta {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
    background-color: #333333;
    text-align: center;
}

.p24-footer__meta img {
    max-width: 100%;
    height: auto;
}

/* —— Bară secțiune (TV / Cinema) —— */
.p24-section-bar {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    margin-bottom: 0;
}

.p24-section-bar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 10px 14px;
}

.p24-section-bar__days {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.p24-section-bar__label {
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Navigare zile */
.p24-day-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.p24-day-nav__sep {
    color: #fff;
    font-weight: bold;
    padding: 0 4px;
}

.p24-day-nav__item {
    display: inline-block;
    min-width: 2rem;
    padding: 4px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    line-height: 1.2;
    transition: background 0.12s, color 0.12s;
}

.p24-day-nav__item--week {
    min-width: auto;
    padding: 4px 12px;
}

/* TV — albastru */
.p24-section-bar--tv {
    background-color: #4BA4D3;
}

.p24-section-bar--tv .p24-day-nav__item {
    background: #8FC7E4;
    color: #fff;
}

.p24-section-bar--tv .p24-day-nav__item:hover {
    background: #67B1DA;
    color: #fff;
}

.p24-section-bar--tv .p24-day-nav__item--active,
.p24-section-bar--tv .p24-day-nav__item--active:hover {
    background: #2B81AE;
    color: #fff;
}

.p24-section-bar--tv .p24-day-nav__item--disabled {
    background: #2B81AE;
    color: #fff;
    cursor: default;
}

/* Cinema — verde */
.p24-section-bar--cinema {
    background-color: #9CC521;
}

.p24-section-bar--cinema .p24-day-nav__item {
    background: #BCE14A;
    color: #fff;
}

.p24-section-bar--cinema .p24-day-nav__item:hover {
    background: #ADCD2E;
    color: #fff;
}

.p24-section-bar--cinema .p24-day-nav__item--active,
.p24-section-bar--cinema .p24-day-nav__item--active:hover {
    background: #7D9E1B;
    color: #fff;
}

.p24-section-bar--cinema .p24-day-nav__item--disabled {
    background: #7D9E1B;
    color: #fff;
}

/* Breadcrumb + favorite */
.p24-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 8px 14px;
    background-color: #CCCCCC;
    font-size: 11px;
    color: #6C6C6C;
    margin-bottom: 0;
}

.p24-breadcrumb a {
    color: #6C6C6C;
    font-weight: bold;
    text-decoration: none;
}

.p24-breadcrumb a:hover {
    color: #2B81AE;
    text-decoration: underline;
}

.p24-breadcrumb__path {
    flex: 1 1 auto;
    min-width: 0;
}

.p24-breadcrumb__extras {
    flex: 0 1 auto;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 8px;
}

.p24-breadcrumb__sep {
    color: #999;
}

/* Banner reclamă */
.p24-banner {
    background: #fff;
    padding: 8px 0;
    margin-bottom: 8px;
}

.p24-banner__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
}

.p24-banner__inner ins,
.p24-banner__inner iframe,
.p24-banner__inner img {
    max-width: 100%;
}

/* —— Homepage: lista posturi TV —— */
.p24-home-tv {
    background: #fff;
    padding: 16px 16px 24px;
    margin-bottom: 8px;
}

.p24-home-tv__title {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #2B81AE;
    margin: 0 0 8px;
    padding: 0;
}

.p24-home-tv__intro {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    color: #6C6C6C;
    margin: 0 0 20px;
    padding: 0;
}

.p24-home-tv__category {
    margin-bottom: 20px;
    padding: 0;
}

.p24-home-tv__category-name {
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #236498;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #4BA4D3;
}

.p24-home-tv__category-name a {
    color: #236498;
    text-decoration: none;
}

.p24-home-tv__category-name a:hover {
    color: #2B81AE;
    text-decoration: underline;
}

.p24-home-tv__stations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 4px 16px;
}

.p24-home-tv__station {
    margin: 0;
    padding: 0;
}

.p24-home-tv__station a {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    color: #006699;
    text-decoration: none;
    line-height: 1.5;
}

.p24-home-tv__station a:hover {
    color: #2B81AE;
    text-decoration: underline;
}

.p24-home-tv__empty {
    font-size: 11px;
    color: #6C6C6C;
    padding: 0;
}

@media (max-width: 640px) {
    .p24-home-tv__stations {
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
    }
}

@media (max-width: 640px) {
    .p24-section-bar__row {
        flex-direction: column;
        align-items: stretch;
    }

    .p24-day-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .p24-day-nav__item {
        flex-shrink: 0;
    }

    .p24-breadcrumb {
        flex-direction: column;
        align-items: flex-start;
    }

    .p24-breadcrumb__extras {
        text-align: left;
        justify-content: flex-start;
    }
}

/* —— Filtre + modal selector reutilizabil —— */
/* Picker-e in titlu (cinema + TV) */
.p24-title-pickers,
.p24-cinema-title-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 8px;
    align-items: stretch;
}

.p24-title-pickers .p24-picker-trigger,
.p24-cinema-title-pickers .p24-picker-trigger {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 320px;
}

.p24-filters--tv {
    margin: 0;
    padding: 0;
}

.p24-picker--headless {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.p24-filters--cinema {
    margin: 0;
    padding: 0;
}

.p24-filters {
    margin: 10px 0 14px;
    padding: 0;
}

.p24-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: stretch;
}

.p24-filters__row--secondary {
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.p24-filters__row--tv {
    align-items: center;
}

.p24-filters__extra {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

.p24-picker {
    flex: 1 1 140px;
    min-width: 0;
}

.p24-picker__source {
    display: none !important;
}

.p24-picker-trigger {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    text-align: left;
    box-sizing: border-box;
    min-height: 44px;
}

.p24-picker-trigger:hover,
.p24-picker-trigger:focus {
    border-color: #8FC7E4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 164, 211, 0.2);
}

.p24-picker-trigger__label {
    font-size: 10px;
    font-weight: bold;
    color: #6C6C6C;
    margin-bottom: 4px;
}

.p24-picker-trigger__value {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    word-break: break-word;
}

.p24-picker-trigger--cinema:hover,
.p24-picker-trigger--cinema:focus {
    border-color: #9CC521;
    box-shadow: 0 0 0 2px rgba(156, 197, 33, 0.25);
}

.p24-picker-trigger--cinema .p24-picker-trigger__label {
    color: #7D9E1B;
}

.p24-picker-trigger--tv:hover,
.p24-picker-trigger--tv:focus {
    border-color: #4BA4D3;
    box-shadow: 0 0 0 2px rgba(75, 164, 211, 0.25);
}

.p24-picker-trigger--tv .p24-picker-trigger__label {
    color: #2B81AE;
}

body.p24-picker-open {
    overflow: hidden;
}

.p24-picker-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    overflow: auto;
    padding: 16px;
    box-sizing: border-box;
}

.p24-picker-modal {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    font-family: Verdana, Arial, sans-serif;
}

.p24-picker-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #E8E8E8;
    color: #333;
}

.p24-picker-modal--cinema .p24-picker-modal__header {
    background: #9CC521;
    color: #fff;
}

.p24-picker-modal--tv .p24-picker-modal__header {
    background: #4BA4D3;
    color: #fff;
}

.p24-picker-modal__title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.p24-picker-modal__close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0 4px;
}

.p24-picker-modal__search {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.p24-picker-modal__search--compact {
    padding: 8px 10px;
}

.p24-picker-modal__search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p24-picker-modal__search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.p24-picker-modal__search--compact .p24-picker-modal__search-input {
    padding: 5px 8px;
    font-size: 11px;
}

.p24-picker-modal__filter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #4BA4D3;
    cursor: pointer;
    line-height: 0;
}

.p24-picker-modal__filter-btn:hover,
.p24-picker-modal__filter-btn:focus {
    border-color: #4BA4D3;
    background: #EBF7FC;
    outline: none;
}

.p24-picker-modal__filter-btn--active {
    background: #4BA4D3;
    border-color: #2B81AE;
    color: #fff;
}

.p24-picker-modal__filter-btn--open {
    background: #2B81AE;
    border-color: #2B81AE;
    color: #fff;
}

.p24-picker-modal--tv .p24-picker-modal__filter-btn--active,
.p24-picker-modal--tv .p24-picker-modal__filter-btn--open {
    box-shadow: 0 0 0 2px rgba(75, 164, 211, 0.35);
}

.p24-picker-modal__option--category {
    font-weight: bold;
}

.p24-picker-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.p24-picker-modal__option {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    text-align: left;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
}

.p24-picker-modal__option:hover {
    background: #f5f5f5;
}

.p24-picker-modal--cinema .p24-picker-modal__option--active,
.p24-picker-modal--cinema .p24-picker-modal__option--active:hover {
    background: #EDF4D0;
    font-weight: bold;
}

.p24-picker-modal--tv .p24-picker-modal__option--active,
.p24-picker-modal--tv .p24-picker-modal__option--active:hover {
    background: #EBF7FC;
    font-weight: bold;
}

@media (max-width: 640px) {
    .p24-filters__row--secondary {
        flex-direction: column;
        align-items: stretch;
    }

    .p24-filters__extra {
        margin-left: 0;
        width: 100%;
        text-align: right;
        padding-top: 4px;
    }

    .p24-picker {
        flex: 1 1 100%;
    }

    .p24-picker-modal {
        margin: 16px auto;
        max-width: none;
    }
}
