/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f9;
    color: #111111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation styles */
nav {
    background-color: #111111;
    padding: 15px 0;
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 10px;
}

/* Container for content pages */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-grow: 1; /* Makes container fill available space */
}


/* --- HOMEPAGE SPECIFIC STYLES --- */
body.homepage {
    background-color: #FFFFFF;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.homepage .container {
    background-color: transparent;
    box-shadow: none;
    padding: 20px;
    max-width: 800px;
}

body.homepage h1 {
    font-size: 3.5rem;
}

body.homepage .info-text {
    max-width: 600px;
    margin-bottom: 40px;
}

body.homepage .button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

body.homepage .btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: #111111;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

body.homepage .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- GENERAL TYPOGRAPHY & ELEMENTS --- */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111111;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- JURY PAGE SPECIFIC STYLES --- */
.juror-section { margin-bottom: 30px; }
.juror {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
}
.guest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    list-style: none;
}
.guest-list li {
    background-color: #111111;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
}

blockquote {
    margin: 40px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 4px solid #111111;
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    text-align: right;
}

/* --- TABLE STYLES --- */
.table-wrapper { overflow-x: auto; margin-top: 20px; }
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
thead { background-color: #111111; color: #FFFFFF; }
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
tbody tr:hover { background-color: #f8f8f8; }
tbody tr:last-child td { border-bottom: none; }

/* --- FOOTER --- */
footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888888;
}

footer a { color: #888888; text-decoration: none; }
footer a:hover { color: #111111; }


/* --- STYLE DLA STATYSTYK --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.stat-card {
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}
.stat-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #555;
    display: flex;
    align-items: center;
}
.stat-card h3 .icon { margin-right: 10px; }
.stat-card .main-name {
    font-size: 2.2em;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 5px;
}
.stat-card .sub-text { color: #666; margin-bottom: 15px; font-size: 0.9em; }
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-bar {
    height: 100%;
    background-color: #c0392b;
    border-radius: 5px;
}
.stat-breakdown { list-style: none; padding: 0; font-size: 0.9em; }
.stat-breakdown li { 
    margin-bottom: 8px; 
    color: #333; 
    display: flex;
    justify-content: space-between;
}
.stat-breakdown strong { color: #000; }

.direction-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-top: 30px;
    text-align: center;
}
.direction-stats .arrow, .direction-stats .count { font-size: 2rem; font-weight: 700; color: #333;}
.direction-stats .label { font-size: 0.9rem; color: #666; }

.curiosities-section {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}
.curiosities-section h2 {
    color: #fff;
    border-bottom-color: #46627f;
    margin-top: 0;
    text-align: left;
}
.curiosities-section ul { list-style: none; padding-left: 0; }
.curiosities-section li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.5;
}
.curiosities-section li .icon { margin-right: 15px; font-size: 1.5em; }

/* General Button Link for stats etc. */
.button-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin: 40px auto 0 auto;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.button-link:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.placeholder { color: #888; font-style: italic; font-size: 0.9em; }
.highlight { background-color: #fdf2e9; font-weight: bold; }

.summary-section {
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 30px;
    border: 1px solid #e0e0e0;
}
.summary-section h2 { margin-top: 0; text-align: left; }
.summary-section ul { list-style: none; padding-left: 0; }
.summary-section li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-section li:last-child { border-bottom: none; }
.summary-section .label { color: #555; }
.summary-section .value { font-weight: 600; color: #c0392b; }


/* --- ACCORDION & VIDEO STYLES (from odcinki.html) --- */
.playlist-link { text-align: center; margin-bottom: 40px; }
.playlist-link a { color: #111111; font-weight: 600; text-decoration: underline; }
.playlist-link a:hover { text-decoration: none; }
.season { margin-bottom: 40px; }
.episodes-accordion { display: flex; flex-direction: column; gap: 10px; }
details { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
    list-style: none;
    position: relative;
}
summary::-webkit-details-marker { display: none; }
summary:hover { background-color: #f0f0f0; }
summary::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}
details[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.episode-content {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
}
.episode-content p { margin-bottom: 15px; line-height: 1.6; color: #555; }
.video-placeholder {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border-radius: 8px;
    min-height: 200px;
    overflow: hidden;
}
.play-button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: rgba(0,0,0,0.6);
    border: 2px solid #fff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.play-button:hover { background-color: #111; transform: scale(1.05); }
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.coming-soon { font-style: italic; color: #888; }


/* --- SPLASH SCREEN ANIMATION --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}
#splash-screen.hidden { opacity: 0; pointer-events: none; }
.splash-content { position: relative; display: flex; justify-content: center; align-items: center; }
.splash-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #FFFFFF;
    font-size: clamp(2.5rem, 10vw, 5rem);
    letter-spacing: 3px;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: fadeIn 1s ease-out forwards;
}
.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 15px solid #B30000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0); 
    animation: expand-circle 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.circle-1 { width: 95vmin; height: 95vmin; animation-delay: 0.1s; }
.circle-2 { width: 85vmin; height: 85vmin; animation-delay: 0.15s; }
.circle-3 { width: 75vmin; height: 75vmin; animation-delay: 0.2s; }
.circle-4 { width: 65vmin; height: 65vmin; animation-delay: 0.25s; }
.circle-5 { width: 55vmin; height: 55vmin; animation-delay: 0.3s; }
.circle-6 { width: 45vmin; height: 45vmin; animation-delay: 0.35s; }
.circle-7 { width: 35vmin; height: 35vmin; animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes expand-circle {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    body.homepage h1 { font-size: 2.5rem; }
    h2 { font-size: 1.5rem; }
    .info-text { font-size: 1rem; }
    body.homepage .btn { padding: 15px 30px; }
    nav a { font-size: 0.9rem; padding: 6px 12px; }
    .direction-stats { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
    .circle { border-width: 8px; }
}