/* ============================================================
   HOME — Style specyficzne dla strony głównej
   ============================================================ */

/* --- HERO ------------------------------------------------- */
.area {
    background-color: #ffffff !important;
}
.main-hero {
    
    overflow: hidden;
}

.main-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .main-hero {
        height: 100%;
    }
    .main-hero-img {
        position:absolute;
        height: 88%;
    }
}
/* Na SG główny hero nie powinien się powiększać na hover. */
.main-hero:hover .main-hero-img {
    transform: none !important;
}

.hero-side-img {
    width: 100%;
    height: 175px;
}

.hero-side-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-article-title {
    font-size: 1.1rem;
}

.hero-title-overlay {
    background-color: #d6002d !important;
}

.top-stories-heading {
    color: #1b3380;
    font-size: 26px;
    text-transform: uppercase;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 0;
    line-height: 1.15;
    margin-top: 30px;
}

.top-stories-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.top-stories-mobile-meta__category {
    display: block;
    font-size: 0.75rem;
    color: #585858;
   
    font-weight: 400;
}

/* --- ROZMOWY ---------------------------------------------- */
.rozmowy-thumb {
    width: 100px;
    height: 70px;
}

.rozmowy-thumb-lg {
    width: 160px;
    height: auto;
    min-width: 160px;
}

.rozmowy-thumb-lg img,
.rozmowy-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rozmowy-scroll {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #ffcc00 #333;
}

.rozmowy-scroll::-webkit-scrollbar {
    width: 5px;
}

.rozmowy-scroll::-webkit-scrollbar-track {
    background: #333;
}

.rozmowy-scroll::-webkit-scrollbar-thumb {
    background-color: #ffcc00;
    border-radius: 3px;
}

/* --- PODCASTS --------------------------------------------- */
.podcast-heading {
    font-size: 1.625rem;
    font-weight: 700;
}

.podcast-item {
    padding-top: 1.25rem;
    padding-bottom: 1rem;
    position: relative;
}

.podcast-item::before {
    content: '';
    display: block;
    height: 5px;
    background: #f4f4f4;
    width: calc(100% - 2rem);
    position: absolute;
    top: 0;
    left: 0;
}

.podcast-play-icon {
    width: 48px;
    height: 48px;
    margin-top: 2px;
    object-fit: contain;
}

.wiecej-btn-img {
    display: block;
}

.home-card-ratio-636x358 {
    --bs-aspect-ratio: calc(358 / 636 * 100%);
}

/* --- ZDROWIE --------------------------------------------- */
.zdrowie-hero-img {
    height: 425px;
    overflow: hidden;
}

.zdrowie-section-fullwidth {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(rgba(246, 246, 246, 1)));
    background-image: -moz-linear-gradient(top center, rgba(255, 255, 255, 0) 0, rgba(246, 246, 246, 1) 100%);
    background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0) 0, rgba(246, 246, 246, 1) 100%);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(246, 246, 246, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorStr=rgba(255,255,255,0.0),endColorStr=rgba(246,246,246,1.0));
    -ms-filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorStr=rgba(255,255,255,0.0),endColoStr=rgba(246,246,246,1.0));
}

.zdrowie-logo {
    width: auto;
    height: 36px;
    display: block;
}

.radio-rmf24-logo {
    width: 150px;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    .zdrowie-hero-title {
        font-size: 24px !important;
        line-height: 26px !important;
    }
}

.zdrowie-category-label {
    display: block;
    position: absolute;
    font-size: 15px;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    background: #128268;
    padding: 7px 10px;
    color: #fff;
    font-weight: 600;
}

/* Bootstrap .ratio ustawia width/height:100% na wszystkie dzieci.
   Etykieta musi zostać wyłączona z tej reguły. */
.ratio > .zdrowie-category-label {
    width: auto;
    height: auto;
    top: auto;
    left: auto;
}

/* --- SEKCJE STRONY GŁÓWNEJ ------------------------------- */
.category-heading {
    font-size: 1.4rem;
}

.category-links {
    border-top: 1px solid #dee2e6;
}

.category-links li {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
}

.category-links li a {
    font-size: 1.125rem;
    line-height: 1.4;
}

/* --- REGION DROPDOWN (strona główna) --------------------- */
.region-select-btn {
    color: #1b3380 !important;
    box-shadow: none !important;
}

#regionySection .select-selected {
    color: #1b3380;
    padding: 3px 30px 3px 10px;
    border: 0 solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    text-transform: lowercase;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    padding-right: 25px !important;
}

#regionySection .select-items .dropdown-item {
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    text-transform: uppercase;
    padding: 5px 10px;
}

#regionySection .select-selected:after {
    position: absolute;
    content: "";
    top: 8px;
    right: 7px;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-color: #1b3380 transparent transparent transparent;
    pointer-events: none;
}

.region-dropdown {
    min-width: 160px;
}

.region-dropdown .dropdown-item {
    color: #1b3380;
    font-size: 0.9rem;
}

.region-dropdown .dropdown-item:hover {
    background-color: #fc0;
    color: #1b3380;
}

.regiony-home-section {
    background-color: #f6f6f6;
    border: 0;
}

.region-card-badge {
    font-weight: 900;
    font-size: 12px;
    right: 10px;
    overflow: hidden;
    position: absolute;
    bottom: 10px;
    z-index: 2;
    background-color: #224a9b;
    padding: 5px 10px;
    color: #fff !important;
    text-transform: uppercase;
    display: inline-table;
}

/* --- DARK CARDS (Rozmowy) --------------------------------- */
.dark-card:hover h3,
.dark-card:hover h4 {
    color: var(--rmf-yellow) !important;
}

/* --- LIVE VIDEO SG ---------------------------------------- */

/* Sekcja: pełna szerokość, ciemne tło */
.home-live-video {
    background: #2f2f2f;
    width: 100%;
    padding: 28px 0;
    margin-bottom: 24px;
}

/* Domyślny układ: kolumnowy (mobile, tablet, mały desktop) */
.home-live-video__inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-live-video__player-wrap {
    position: relative;
    width: 100%;
    background: #111;
    overflow: hidden;
    flex-shrink: 0;
}

/* Aspect-ratio 16:9 */
.home-live-video__player-wrap::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

/* Kontener iframe generowany przez YT API */
#yt-live-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#yt-live-player iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Część tekstowa */
.home-live-video__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.home-live-video__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.home-live-video__title a {
    color: #fff;
    text-decoration: none;
}

.home-live-video__title a:hover {
    color: var(--rmf-yellow, #f5c400);
    text-decoration: underline;
}

.home-live-video__description {
    margin: 0;
    font-size: 1.4rem;
    color: #ccc;
    line-height: 1.55;
}

.home-live-video__sg {
    display: inline-block;
    background: #e73910;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 6px 10px;
    text-align: center;
}

/* Desktop: film 2/3, opis 1/3 obok siebie */
@media (min-width: 1200px) {
    .home-live-video__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 28px;
    }

    .home-live-video__player-wrap {
        flex: 0 0 66.666%;
        width: 66.666%;
    }

    .home-live-video__content {
        flex: 1 1 0;
        
    }

    .home-live-video__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .home-live-video {
        padding: 16px 0;
    }

    .home-live-video__title {
        font-size: 1.15rem;
    }

    .home-live-video__description {
        font-size: 0.9rem;
    }
}
