/* --- event list --- */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.no-events-msg {
    padding: 30px;
    background: #fdf5f5;
    border: 1px solid #f5c6c6;
    color: rgb(210, 8, 8);
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
}

/* --- each event --- */
.event-item {
    border: 1px solid #b3b3b3;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
}

.event-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Opened */
.event-item[open] {
    border-color: #bbb;
}

/* Even header */
.event-header {
    background-color: #d9d9d9;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #b3b3b3;
    list-style: none;
}

/* event info */
.event-info {
    font-size: 16px;
    color: #000;
}

.event-time {
    margin-right: 5px;
}

.event-title {
    font-weight: bold;
    margin-left: 5px;
}

.event-links-header {
    background-color: #cc0000; 
    color: #ffffff;
    font-weight: bold;
    display: flex;
    padding: 8px 15px;
}

/* columns size setting */
.event-links-header span:first-child,
.event-link-row .link-number {
    flex: 0 0 60%;
    font-size: 15px;
}

/* rows with links */
.event-link-row {
    display: flex;
    padding: 8px 15px;
    color: #333;
    align-items: center;
}

/* Colour zebra */
.event-links-container > div:nth-child(even) {
    background-color: #f7e1e1;
}

.event-links-container > div:nth-child(odd) {
    background-color: #ffffff;
}

/* Watch link */
.watch-btn {
    color: #5a7391;
    text-decoration: underline;
    font-weight: bold;
    font-size: 15px;
    background-color: transparent !important;
    padding: 0;
    display: inline-block;
}

/* Hover effect setting */
.watch-btn:hover {
    color: #cc0000 !important; /* Změní text na červenou */
    background-color: transparent !important; /* Striktně zakáže barvení pozadí při najetí */
    text-decoration: none !important; /* Hezký detail: při najetí myší zmizí podtržení */
}

/* Responsivity */
@media (max-width: 600px) {
    .event-info {
        gap: 10px;
    }
    .event-time {
        font-size: 13px;
    }
    .event-title {
        width: 100%; 
        margin-top: 5px;
    }
}

/* --- general layout --- */
.category-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.category-main {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    /* prevents content overflowing on smaller displays */
    min-width: 0; 
}

.category-sidebar {
    flex-shrink: 0;
    width: 160px;
}

/* --- typography and texts --- */
.category-title {
    color: rgb(210, 8, 8);
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-size: 24px;
    text-transform: uppercase;
}

.category-text-content {
    margin-top: 30px;
    line-height: 1.8;
    color: #444;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* --- banners desktop --- */
.banner-top, .banner-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
}

.banner-top { margin: 20px 0 30px; padding: 0 20px; }
.banner-bottom { margin-top: 30px; }

.banner-placeholder {
    background-color: #f1f1f1;
    border: 1px dashed #ccc;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Text sizing for desktop */
.banner-top-ad { width: 728px; height: 90px; }
.banner-top-ad::after { content: "Banner 728x90"; }

.banner-bottom-ad { width: 468px; height: 60px; }
.banner-bottom-ad::after { content: "Banner 468x60"; }

.banner-side-ad { width: 160px; height: 600px; }
.banner-side-ad::after { content: "Banner 160x600"; }

/* --- Responsivity (devices below 900px) --- */
@media (max-width: 900px) {
    .category-wrapper {
        flex-direction: column;
    }
    
    .category-main {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* side panel hidden */
    .category-sidebar {
        display: none; 
    }

    /* adjusting topbanner to responsive 468x60 */
    .banner-top-ad {
        width: 100%; 
        max-width: 468px; /* banner shirnks if display < 468px */
        height: 60px;
    }
    .banner-top-ad::after {
        content: "Banner 468x60";
    }

    /* bottom banner adjustment to 300x250 */
    .banner-bottom-ad {
        width: 100%; 
        max-width: 300px;
        height: 250px;
    }
    .banner-bottom-ad::after {
        content: "Banner 300x250";
    }
}

.video-player-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centers player */
    margin-bottom: 20px;
}

.video-player-container iframe {
    border: none;
    /* no !important tags */
}

footer, .site-footer {
    width: 100%;
    background-color: #f1f1f1; /* Example background */
}

/* 2. Force the main content area to grow and push the footer down */
.main-content-wrapper {
    flex-grow: 1; 
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 100% of viewport height */
    margin: 0;
}