* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body.dark-theme {
    background: #0b0e14;
    color: #f0e6d3;
}

body.dark-theme .login-card,
body.dark-theme header,
body.dark-theme .rating-section {
    background: rgba(20, 25, 35, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #ff7e0040;
    box-shadow: 0 8px 32px rgba(255, 100, 0, 0.2);
}

body.dark-theme table {
    background: #141a24;
}

body.dark-theme th {
    background: #2a1a0a;
    color: #ffaa44;
}

body.dark-theme tr:nth-child(even) {
    background: #1a202c;
}

body.dark-theme .btn-primary {
    background: linear-gradient(145deg, #ff5500, #cc4400);
    color: white;
}

body.light-theme {
    background: #fdf6ed;
    color: #2a1a0a;
}

body.light-theme .login-card,
body.light-theme header,
body.light-theme .rating-section {
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #ffaa44;
    box-shadow: 0 8px 32px rgba(255, 100, 0, 0.1);
}

body.light-theme table {
    background: #fffbf5;
}

body.light-theme th {
    background: #ffdbb5;
    color: #5a2a0a;
}

body.light-theme tr:nth-child(even) {
    background: #f5ede4;
}

body.light-theme .btn-primary {
    background: linear-gradient(145deg, #ff7e00, #e06600);
    color: white;
}

#sparks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.spark {
    position: absolute;
    border-radius: 50%;
    opacity: 0.9;
    animation: floatSpark linear infinite alternate;
    filter: blur(1px);
}

@keyframes floatSpark {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.9; }
    25% { transform: translate(60px, -80px) scale(1.6) rotate(90deg); opacity: 0.7; }
    50% { transform: translate(-40px, -160px) scale(0.9) rotate(180deg); opacity: 1; }
    75% { transform: translate(80px, -60px) scale(1.4) rotate(270deg); opacity: 0.8; }
    100% { transform: translate(-20px, -180px) scale(1.1) rotate(360deg); opacity: 0.9; }
}

#water-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(100, 200, 255, 0.5), rgba(0, 100, 255, 0.15));
    border: 2px solid rgba(100, 200, 255, 0.25);
    animation: riseBubble linear infinite;
}

@keyframes riseBubble {
    0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-120vh) scale(1.4) rotate(720deg); opacity: 0; }
}

#oil-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.oil-drop {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    background: radial-gradient(circle at 30% 30%, rgba(80, 50, 30, 0.7), rgba(20, 10, 5, 0.9));
    animation: dripOil linear infinite;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

@keyframes dripOil {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0.1; }
    50% { opacity: 0.6; }
    100% { transform: translateY(120vh) scale(1.5) rotate(360deg); opacity: 0; }
}

#sport-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sport-spark {
    position: absolute;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkleStar ease-in-out infinite alternate;
    opacity: 0.7;
}

@keyframes twinkleStar {
    0% { transform: scale(0.5) rotate(0deg); opacity: 0.2; }
    100% { transform: scale(1.8) rotate(360deg); opacity: 0.9; }
}

.container, .login-container, main {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.login-card {
    padding: 40px 45px;
    border-radius: 30px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ff7e00, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flame {
    -webkit-text-fill-color: initial;
    color: #ff5500;
}

.login-card h2 {
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 1px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

body.dark-theme .input-group input {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3a2a1a;
}

body.light-theme .input-group input {
    background: #f5ede4;
    border-color: #dccfc0;
}

.input-group input:focus {
    border-color: #ff7e00;
    box-shadow: 0 0 20px #ff7e0040;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 2px;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px #ff5500a0;
}

.footer-text {
    margin-top: 25px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.flash-error {
    background: #ff330030;
    border-left: 4px solid #ff3300;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #ff6644;
}

header {
    width: 100%;
    border-radius: 30px;
    padding: 15px 30px;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-group h1 {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff7e00, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flame-icon {
    font-size: 1.8rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-greeting {
    font-weight: 600;
    opacity: 0.9;
}

.theme-btn, .logout-btn {
    background: none;
    border: 2px solid #ff7e0060;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.theme-btn:hover, .logout-btn:hover {
    background: #ff7e00;
    color: #0b0e14;
    border-color: #ff7e00;
    box-shadow: 0 0 20px #ff7e0060;
}

.rating-section {
    padding: 30px;
    border-radius: 30px;
    width: 100%;
}

.rating-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 25px;
    font-style: italic;
}

.upload-area {
    background: rgba(255, 126, 0, 0.08);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px dashed #ff7e0060;
}

#uploadForm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#fileInput {
    display: none;
}

.file-label {
    padding: 12px 28px;
    background: #ff7e0030;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #ff7e0060;
    transition: 0.3s;
}

.file-label:hover {
    background: #ff7e0060;
}

#fileName {
    opacity: 0.7;
    font-size: 0.9rem;
}

.btn-upload {
    padding: 12px 35px;
    background: linear-gradient(145deg, #ff5500, #cc4400);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-upload:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #ff550080;
}

.flash-message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #ffaa0040;
    border-radius: 16px;
    color: #ffaa44;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
}

th, td {
    padding: 16px 20px;
    text-align: left;
}

th {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

td {
    font-size: 1rem;
}

.nickname {
    font-weight: 700;
    color: #ffaa44;
}

.points {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ff7e00;
}

.empty-msg {
    text-align: center;
    padding: 40px !important;
    opacity: 0.5;
}

.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    position: relative;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--tab-color, #ff5500);
    color: #fff;
    box-shadow: 0 0 30px var(--tab-color, #ff5500)40;
    border-color: var(--tab-color, #ff5500);
}

.tab-icon {
    font-size: 1.3rem;
}

.tab-name {
    font-size: 0.95rem;
}

.podium-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 25px 20px 30px;
    margin-bottom: 35px;
    border: 2px solid #ff7e0060;
    box-shadow: 0 0 40px rgba(255, 126, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.podium-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 126, 0, 0.03) 0%, transparent 70%);
    animation: glowPodium 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPodium {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
}

.podium-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #ff7e00, #ffcc00, #ff7e00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerTitle 3s ease-in-out infinite;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

@keyframes shimmerTitle {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px 15px;
    border-radius: 20px;
    min-width: 100px;
    transition: all 0.4s ease;
    position: relative;
}

.podium-item:hover {
    transform: translateY(-8px) scale(1.03);
}

.place-1 {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.05));
    border: 2px solid #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
    padding-top: 25px;
    min-width: 130px;
    order: 2;
}

.place-1 .podium-emoji {
    font-size: 4rem;
    animation: bounceGold 2s ease-in-out infinite;
}

@keyframes bounceGold {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.place-1 .podium-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.place-1 .podium-points {
    color: #ffd700;
    font-size: 0.9rem;
    opacity: 0.9;
}

.place-1 .podium-badge {
    background: linear-gradient(145deg, #ffd700, #f0a500);
    color: #1a1a2e;
}

.place-2 {
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.04));
    border: 2px solid #c0c0c0;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.1);
    padding-top: 15px;
    min-width: 110px;
    order: 1;
}

.place-2 .podium-emoji {
    font-size: 3.2rem;
}

.place-2 .podium-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c0c0c0;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.place-2 .podium-points {
    color: #c0c0c0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.place-2 .podium-badge {
    background: linear-gradient(145deg, #c0c0c0, #a0a0a0);
    color: #1a1a2e;
}

.place-3 {
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.04));
    border: 2px solid #cd7f32;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.1);
    padding-top: 15px;
    min-width: 110px;
    order: 3;
}

.place-3 .podium-emoji {
    font-size: 3.2rem;
}

.place-3 .podium-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #cd7f32;
    text-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
}

.place-3 .podium-points {
    color: #cd7f32;
    font-size: 0.85rem;
    opacity: 0.8;
}

.place-3 .podium-badge {
    background: linear-gradient(145deg, #cd7f32, #b06a28);
    color: #1a1a2e;
}

.podium-emoji {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.podium-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2px;
    word-break: break-all;
    max-width: 120px;
}

.podium-points {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.podium-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.podium-subtitle {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.rating-reservoir .podium-container {
    border-color: #2196F3;
    box-shadow: 0 0 40px rgba(33, 150, 243, 0.15);
}

.rating-reservoir .podium-title {
    background: linear-gradient(45deg, #2196F3, #00BCD4, #2196F3);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerTitle 3s ease-in-out infinite;
}

.rating-oil .podium-container {
    border-color: #2c1810;
    box-shadow: 0 0 40px rgba(44, 24, 16, 0.3);
    background: rgba(44, 24, 16, 0.1);
}

.rating-oil .podium-title {
    background: linear-gradient(45deg, #2c1810, #4a2a1a, #2c1810);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerTitle 3s ease-in-out infinite;
}

.rating-power .podium-container {
    border-color: #4CAF50;
    box-shadow: 0 0 40px rgba(76, 175, 80, 0.15);
}

.rating-power .podium-title {
    background: linear-gradient(45deg, #4CAF50, #8BC34A, #4CAF50);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerTitle 3s ease-in-out infinite;
}

.admin-actions {
    background: rgba(255, 126, 0, 0.08);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 30px;
    border: 1px solid #ff7e0060;
}

.admin-actions h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #ffaa44;
}

.admin-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-admin {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-admin:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #ff7e0060;
}

.btn-warning {
    background: linear-gradient(145deg, #ff8800, #cc6600);
    color: white;
}

.btn-danger {
    background: linear-gradient(145deg, #ff3300, #cc2200);
    color: white;
}

.chart-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid #ff7e0040;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #ff7e0040;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffaa44;
}

.legend-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.legend-color {
    display: inline-block;
    width: 30px;
    height: 4px;
    border-radius: 4px;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 30px;
    border: 1px solid #ff7e0040;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.nickname-link {
    text-decoration: none;
    color: inherit;
}

.nickname-link:hover .nickname {
    color: #ffcc44;
    text-shadow: 0 0 20px #ff7e0060;
}

.chart-link {
    color: #ffaa44;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #ff7e0020;
    border: 1px solid #ff7e0060;
    transition: 0.3s;
}

.chart-link:hover {
    background: #ff7e0060;
    box-shadow: 0 0 20px #ff7e0040;
}

@media (max-width: 768px) {
    body { padding: 10px; }
    header { padding: 15px; }
    .header-content { flex-direction: column; align-items: flex-start; }
    .title-group h1 { font-size: 1.3rem; }
    .header-controls { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .rating-section { padding: 15px; }
    .rating-section h2 { font-size: 1.6rem; }
    th, td { padding: 10px 12px; font-size: 0.85rem; }
    .login-card { padding: 30px 20px; }
    .file-input-wrapper { flex-direction: column; align-items: stretch; }
    .btn-upload { width: 100%; }
    .podium-container { padding: 20px 10px 25px; }
    .podium-title { font-size: 1.3rem; }
    .podium { gap: 10px; flex-wrap: wrap; }
    .podium-item { min-width: 80px; padding: 15px 10px 12px; flex: 1; min-width: 80px; max-width: 120px; }
    .place-1 { min-width: 100px; padding-top: 20px; order: 2; }
    .place-1 .podium-emoji { font-size: 3rem; }
    .place-1 .podium-name { font-size: 1rem; }
    .place-2, .place-3 { min-width: 80px; padding-top: 12px; }
    .place-2 .podium-emoji, .place-3 .podium-emoji { font-size: 2.5rem; }
    .place-2 .podium-name, .place-3 .podium-name { font-size: 0.9rem; }
    .podium-points { font-size: 0.7rem; }
    .podium-badge { font-size: 0.6rem; padding: 3px 10px; }
    .stats-container { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1.4rem; }
    .tabs-container { gap: 6px; padding: 10px 12px; }
    .tab-btn { padding: 8px 16px; font-size: 0.8rem; gap: 6px; }
    .tab-icon { font-size: 1rem; }
    .tab-name { font-size: 0.75rem; }
    .info-box { flex-direction: column; text-align: center; }
    .admin-buttons { flex-direction: column; }
    .btn-admin { text-align: center; }
}

@media (max-width: 480px) {
    .title-group h1 { font-size: 1.0rem; }
    .flame-icon { font-size: 1.2rem; }
    .user-greeting { font-size: 0.8rem; }
    .theme-btn, .logout-btn { padding: 5px 12px; font-size: 0.9rem; }
    th, td { padding: 8px 8px; font-size: 0.75rem; }
    .podium { gap: 6px; }
    .podium-item { min-width: 60px; max-width: 90px; padding: 10px 6px 10px; }
    .place-1 { min-width: 80px; padding-top: 15px; }
    .place-1 .podium-emoji { font-size: 2.5rem; }
    .place-1 .podium-name { font-size: 0.8rem; }
    .place-2 .podium-emoji, .place-3 .podium-emoji { font-size: 2rem; }
    .place-2 .podium-name, .place-3 .podium-name { font-size: 0.75rem; }
    .podium-title { font-size: 1rem; }
    .podium-points { font-size: 0.6rem; }
    .podium-badge { font-size: 0.5rem; padding: 2px 8px; }
    .podium-subtitle { font-size: 0.7rem; }
    .stats-container { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1.4rem; }
    .info-value { font-size: 1.2rem; }
    .legend-info { gap: 15px; font-size: 0.8rem; flex-direction: column; align-items: center; }
}

/* Стили для кнопок навигации - прозрачный фон с оранжевой обводкой */
.header-controls .nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ff7e0060;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.header-controls .nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff7e0060;
    background: rgba(255, 126, 0, 0.1);
}

.header-controls .nav-btn.primary {
    background: #ff7e00;
    border-color: #ff7e00;
    color: white;
}

.header-controls .nav-btn.primary:hover {
    background: #ff5500;
    border-color: #ff5500;
    color: white;
}

@media (max-width: 480px) {
    .header-controls .nav-btn {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
}