/* Globálne štýly a moderný reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    font-size: 16px;
}

main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 2.5em;
    color: #e10600;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.3);
    padding-bottom: 15px;
}

/* --- Sekcia preteku s vylepšenými štýlmi a hover efektom --- */
.race-info-section {
    background-color: #2b2b2b;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.race-info-section h2 {
    font-size: 2em;
    color: #e10600;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(225, 6, 0, 0.3);
    padding-bottom: 10px;
    width: 100%;
}

.race-info-section h3 {
    color: #e10600;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #444;
    padding-bottom: 8px;
    width: 100%;
}

.race-detail {
    font-size: 1.1em;
    margin-bottom: 10px;
    width: 100%;
}

.race-map-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 100px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    max-width: 2000%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden; /* Dôležité pre zväčšenie obrázku */
}

.race-map-container img {
    width: 400px; /* Zväčšenie mapy na celú šírku kontajnera */
    height: auto;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.4s ease-in-out; /* Plynulá animácia zväčšenia */
}

.race-map-container:hover img {
    transform: scale(1.1); /* Zväčšenie mapy pri nabehnutí myšou */
}

.race-map-container .info-message {
    margin-bottom: 0;
}

/* Oddeľovač */
.section-divider {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #e10600, rgba(0, 0, 0, 0));
    margin: 50px 0;
}

/* --- Streamy: Kompaktné a jednotné štýly --- */
.stream-links {
    margin: 20px 0;
    padding: 20px;
    background-color: #2b2b2b;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.stream-links h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    text-align: center;
}

.primary-streamers-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stream-card {
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.stream-card.main-streamer {
    border-left: 4px solid #ff4500;
}

.stream-card.commentator-streamer {
    border-left: 4px solid #00aaff;
}

.stream-icon {
    font-size: 1.8rem;
    color: #fff;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.main-streamer .stream-icon { color: #ff4500; }
.commentator-streamer .stream-icon { color: #00aaff; }

.stream-info {
    display: flex;
    flex-direction: column;
}

.stream-info strong {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.streamer-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    line-height: 1.2;
}

.streamer-name:hover {
    color: #fff;
    text-decoration: underline;
}

.other-streamers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.other-streamers strong {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 10px;
    display: block;
}

.other-streamers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.smaller-streamer {
    background-color: #333;
    padding: 7px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.smaller-streamer:hover {
    background-color: #444;
}

.smaller-streamer a {
    color: #eee;
    text-decoration: none;
}

.smaller-streamer a:hover {
    text-decoration: underline;
}

/* --- Nové štýly pre modernú tabuľku jazdcov --- */
.driver-standings {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    margin-bottom: 50px;
    background-color: #1e1e1e;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow: hidden;
    font-size: 16px;
}

.driver-standings thead th {
    background-color: #121212;
    color: #aaaaaa;
    padding: 20px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 2px;
    border-bottom: 3px solid #e10600;
}

.driver-standings tbody tr {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.driver-standings tbody tr:hover {
    background-color: #2a2a2a;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.3);
    z-index: 10;
    position: relative;
}

.driver-standings tbody tr:nth-child(even) {
    background-color: #252525;
}

.driver-standings td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #333;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.driver-standings tr:last-child td {
    border-bottom: none;
}

.driver-standings td:first-child {
    font-weight: bold;
    color: #fff;
    width: 80px;
    text-align: center;
    font-size: 1.4em;
}

.driver-standings .driver-name-cell {
    display: flex;
    align-items: center;
    gap: 20px;
}

.driver-photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e10600;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.driver-photo-thumb:hover {
    transform: scale(3); /* Výrazné zväčšenie fotky */
    border-color: #00bcd4;
    cursor: pointer;
}

.name-wrapper {
    display: flex;
    flex-direction: column;
}

.driver-main-name {
    font-weight: bold;
    font-size: 1.2em;
    color: #ffffff;
}

.driver-nickname {
    font-size: 1em;
    color: #aaaaaa;
    font-style: italic;
    margin-top: 2px;
}

.driver-standings .table-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.2s ease;
}

.driver-standings .table-link:hover {
    color: #e10600;
}

.driver-standings td:nth-child(4),
.driver-standings td:nth-child(5),
.driver-standings td:nth-child(6) {
    text-align: center;
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bold;
    width: 120px;
}

.driver-standings td:nth-child(4) strong {
    font-size: 1.3em;
    color: #00bcd4;
}

.driver-standings tbody tr.highlighted-row {
    background-color: #4d4d2e;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.driver-standings tbody tr.highlighted-row:hover {
    background-color: #6b6b47;
}

/* --- Správy --- */
.info-message, .error-message, .success-message {
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    font-weight: bold;
    max-width: 600px;
}

.info-message {
    background-color: #2a2a2a;
    color: #00bcd4;
    border: 1px solid #00bcd4;
}

.error-message {
    background-color: #4a1c1c;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

.success-message {
    background-color: #1c4a1c;
    color: #4dff4d;
    border: 1px solid #4dff4d;
}