        :root {
            --primary-color: #3498db;
            --accent-color: #e74c3c;
            --white: #fff;
            --text-color: #333;
            --shadow-color: rgba(0,0,0,0.1);
            --primary: #4f46e5;
            --secondary: #7c3aed;
            --accent: #10b981;
            --dark: #1e293b;
            --light: #f8fafc;
            --border: #e2e8f0;
            --text-muted: #64748b;
        }
        
body {
    background: 
        /* Абстрактни кръгове (представляващи топки и обръчи) */
        radial-gradient(circle at 10% 20%, rgba(255, 105, 180, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(65, 105, 225, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 20% 80%, rgba(50, 205, 50, 0.08) 0%, transparent 22%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.08) 0%, transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 35%),
        
        /* Линии (представляващи балансир и въжета) */
        linear-gradient(90deg, transparent 49%, rgba(52, 152, 219, 0.05) 49%, rgba(52, 152, 219, 0.05) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(231, 76, 60, 0.05) 49%, rgba(231, 76, 60, 0.05) 51%, transparent 51%),
        linear-gradient(45deg, transparent 49%, rgba(46, 204, 113, 0.05) 49%, rgba(46, 204, 113, 0.05) 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(155, 89, 182, 0.05) 49%, rgba(155, 89, 182, 0.05) 51%, transparent 51%),
        
        /* Основен фон с градиент */
        linear-gradient(135deg, #e0f7ff 0%, #f5f0ff 25%, #fff0f5 50%, #f0fff4 75%, #e0f7ff 100%);
    
    background-size: 
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100px 100px,
        100px 100px,
        100px 100px,
        100px 100px,
        400% 400%;
    
    background-attachment: fixed;
    animation: sportElements 30s ease-in-out infinite;
}

@keyframes sportElements {
    0%, 100% {
        background-position: 
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 50%;
    }
    50% {
        background-position: 
            100% 100%,
            100% 100%,
            100% 100%,
            100% 100%,
            100% 100%,
            50% 50%,
            50% 50%,
            50% 50%,
            50% 50%,
            100% 50%;
    }
}
        
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
            padding: 20px;
        }
        
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status-pending {
    background-color: #6c757d; /* Сив за чакащи */
}

.status-in-progress {
    background-color: #ffc107; /* Жълт за в процес */
    color: #000;
}

.status-completed {
    background-color: #28a745; /* Зелен за завършени */
}

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        h1, h2, h3 {
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        .breadcrumb {
            margin-bottom: 20px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 4px;
        }
        
        .breadcrumb a {
            color: #007bff;
            text-decoration: none;
        }
        
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        
        .selection-panel {
            margin-bottom: 30px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 4px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        
        select, button {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        select {
            width: 100%;
        }
        
        button {
            background: #007bff;
            color: white;
            cursor: pointer;
            border: none;
        }
        
        button:hover {
            background: #0056b3;
        }
        
        .start-list-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        .start-list-table th, 
        .start-list-table td {
            padding: 10px;
            text-align: left;
            border: 1px solid #ddd;
        }
        
        .start-list-table th {
            background: #f8f9fa;
            font-weight: bold;
        }
        
        .start-list-table tr:hover {
            background: #f8f9fa;
        }
        
        .start-list-table .inactive-row {
            opacity: 0.55;
            text-decoration: line-through;
        }
        
        .photo-thumbnail {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 4px;
        }
        
        .apparatus-thumbnail {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }
        
        .flag-icon {
            width: 20px;
            height: 15px;
            object-fit: contain;
            margin-right: 5px;
            vertical-align: middle;
        }
        
        .score-display {
            font-weight: bold;
            cursor: pointer;
            color: #007bff;
        }
        
        .score-display:hover {
            text-decoration: underline;
        }
        
        /* Модален прозорец */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }
        
        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 20px;
            border-radius: 8px;
            width: 80%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close:hover {
            color: black;
        }
        
        .score-details {
            margin-top: 20px;
        }
        
        .score-section {
            margin-bottom: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 4px;
        }
        
        .score-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 10px;
        }
        
        .score-item {
            padding: 10px;
            background: white;
            border-radius: 4px;
            border: 1px solid #ddd;
        }
        
        .score-label {
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .score-value {
            font-size: 18px;
            color: #2c3e50;
        }
        
        .loading {
            text-align: center;
            padding: 20px;
            font-style: italic;
            color: #6c757d;
        }
        
        .action-buttons {
            display: flex;
            gap: 5px;
        }
        
        .action-buttons button {
            padding: 5px 10px;
            font-size: 14px;
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .modal-content {
                width: 95%;
                margin: 10% auto;
            }
            
            .score-grid {
                grid-template-columns: 1fr;
            }
        }                                     
                                        
        .main-container {
            background-color: rgba(255, 255, 255, 0.85);
            border-radius: 8px;
            box-shadow: 0 2px 15px var(--shadow-color);
            margin: 20px auto;
            max-width: 1400px;
            padding: 20px;
            position: relative;
            backdrop-filter: blur(2px);
        }
        
        /* Онлайн брояч като бутон */
        .online-counter-btn {
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            animation: pulseOnline 2s infinite;
            cursor: default;
            position: relative;
            overflow: hidden;
        }
        
        .online-counter-btn:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }
        
        .online-counter-btn i {
            color: #4ade80;
            font-size: 14px;
            animation: userPulse 1.5s infinite;
        }
        
        .online-counter-btn span {
            color: white;
            font-weight: 600;
            font-size: 14px;
            min-width: 20px;
            text-align: center;
        }
        
        @keyframes pulseOnline {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
            }
            50% {
                box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
            }
        }
        
        @keyframes userPulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.6;
            }
        }
        
        .event-header {
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
            color: var(--white);
            padding: 14px 24px;
            height: auto;
            min-height: 200px;
            position: relative;
            z-index: 10;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            border-radius: 8px;
            margin: 10px auto;
            max-width: 1400px;
            gap: 15px;
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            z-index: 2;
        }
        
        .event-logo {
            height: 100px;
            width: auto;
            max-width: 100%;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
            transition: all 0.5s ease;
            z-index: 2;
            animation: logoFloat 4s ease-in-out infinite;
            background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0) 70%);
            border-radius: 16px;
            padding: 6px 10px;
        }
        
        @keyframes logoFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-5px) rotate(2deg); }
        }
        
        .event-info {
            text-align: center;
            min-width: 0;
            padding: 5px;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .event-club {
            font-size: clamp(1.2rem, 2.5vw, 1.8rem);
            font-weight: 700;
            margin: 0;
            color: var(--white);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
        }
        
        .event-title {
            font-size: clamp(0.7rem, 1.5vw, 1.1rem);
            font-weight: 500;
            color: rgba(255,255,255,0.9);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
        }
        
        .video-container {
            width: 100%;
            max-width: 1400px;
            margin: 20px auto;
            position: relative;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 30px var(--shadow-color);
            transition: all 0.3s ease;
            border: 2px solid rgba(255,255,255,0.2);
            aspect-ratio: 16/9;
        }
        
        #owncastEmbed {
            width: 100%;
            height: 100%;
            border-radius: 8px;
            border: none;
            position: absolute;
            top: 0;
            left: 0;
        }
        
        .pause-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 5;
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .pause-overlay img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .event-countdown {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 6;
            background: rgba(0, 0, 0, 0.6);
            padding: 16px 24px;
            border-radius: 12px;
            text-align: center;
            color: #fff;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .event-countdown-date {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .event-countdown-time {
            font-size: 26px;
            font-weight: 700;
            letter-spacing: 2px;
        }
        
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: rgba(0,0,0,0.5);
            z-index: 10;
        }
        
        #playButton {
            padding: 10px 20px;
            font-size: 1.2rem;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .simple-gallery {
            margin: 20px 0;
            text-align: center;
        }
        
        .image-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-top: 15px;
        }
        
        .image-item img {
            width: 100%;
            height: auto;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            margin-bottom: 8px;
        }
        
        .slider-container {
            width: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 20px;
            box-shadow: 0 8px 15px var(--shadow-color);
            margin-top: 40px;
        }
        
        .slider-track {
            display: flex;
            width: max-content;
            animation: scroll 40s linear infinite;
        }
        
        .slider-track img {
            width: 250px;
            height: 360px;
            margin: 0 10px;
            object-fit: contain;
            opacity: 0.9;
            transition: opacity 0.3s;
        }
        
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }
        
        .tab-container {
            display: flex;
            justify-content: center;
            margin: 20px 0;
            gap: 10px;
        }
        
        .tab-button {
            padding: 12px 24px;
            font-size: 1rem;
            font-weight: 600;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .tab-button:hover {
            background-color: var(--secondary);
            transform: translateY(-2px);
        }
        
        .tab-button.active {
            background-color: var(--accent);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .archive-container {
            display: none;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            margin: 20px auto;
            max-width: 1400px;
            overflow: hidden;
        }
        
        .archive-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .archive-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .archive-controls {
            display: flex;
            gap: 1rem;
        }
        
        .search-box {
            position: relative;
            width: 200px;
            margin-right: auto;
        }
        
        .search-box input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 0.95rem;
            transition: all 0.3s;
        }
        
        .search-box input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .search-box i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .table-container {
            padding: 1.5rem;
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }
        
        th {
            background: #f1f5f9;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 0.5px;
            padding: 1rem;
            text-align: left;
            position: sticky;
            top: 0;
        }
        
        tr {
            transition: all 0.2s;
        }
        
        tr:hover {
            background: #f5f7fa !important;
            transform: translateY(-1px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        td {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }
        
        tr:last-child td {
            border-bottom: none;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo-text {
            display: flex;
            flex-direction: column;
        }
        
        .logo h1 {
            font-size: 24px;
            margin: 0;
            font-weight: 700;
            color: #2c3e50;
        }
        
        .tagline {
            margin: 0;
            font-size: 14px;
            color: #666;
            font-style: italic;
            line-height: 1.3;
        }
        
        .logo-image {
            height: 80px;
            width: auto;
            object-fit: contain;
        }
        
        header {
            max-width: 1400px;
            margin: 20px auto;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 133, 199, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 30px;
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        /* Хедър бутони */
        .header-buttons {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .btn-header {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            height: 44px;
            padding: 0 16px;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
            vertical-align: middle;
            line-height: 1;
            box-sizing: border-box;
            margin: 0;
        }
        
        .btn-header:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
            border-color: rgba(255, 255, 255, 0.2);
        }
        
        .btn-header:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        }
        
        /* Специфични стилове за всеки бутон - бизнес стил */
        .btn-header[onclick*="showInfoModal"] {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            border-color: rgba(255, 255, 255, 0.15);
        }
        
        .btn-header[onclick*="showInfoModal"]:hover {
            background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
        }
        
        .btn-header[href*="login"] {
            background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
            border-color: rgba(255, 255, 255, 0.15);
        }
        
        .btn-header[href*="login"]:hover {
            background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
        }
        
        .btn-header[href*="logout"] {
            background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
            border-color: rgba(255, 255, 255, 0.15);
        }
        
        .btn-header[href*="logout"]:hover {
            background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
        }
        
        .btn-header[href*="index"] {
            background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
            border-color: rgba(255, 255, 255, 0.15);
            font-weight: 600;
            min-width: 44px;
            font-size: 14px;
            padding: 0 16px;
        }
        
        .btn-header[href*="index"]:hover {
            background: linear-gradient(135deg, #7d3c98 0%, #8e44ad 100%);
        }
        
        .btn-header[href*="index-en"] {
            background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
            border-color: rgba(255, 255, 255, 0.15);
            font-weight: 600;
            min-width: 44px;
            font-size: 14px;
            padding: 0 16px;
        }
        
        .btn-header[href*="index-en"]:hover {
            background: linear-gradient(135deg, #7d3c98 0%, #8e44ad 100%);
        }
        
        /* Анимация при зареждане */
        @keyframes headerButtonEntrance {
            0% {
                opacity: 0;
                transform: translateY(20px) scale(0.8);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        .btn-header {
            animation: headerButtonEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        
        .btn-header:nth-child(1) { animation-delay: 0.1s; }
        .btn-header:nth-child(2) { animation-delay: 0.2s; }
        .btn-header:nth-child(3) { animation-delay: 0.3s; }
        
        /* Responsive дизайн */
        @media (max-width: 768px) {
            /* Центриране на хедъра и бутоните за мобилна версия */
            header {
                flex-direction: column;
                text-align: center;
                gap: 20px;
            }
            
            .header-buttons {
                gap: 8px;
                justify-content: center;
                margin: 0 auto;
            }
            
            .btn-header {
                min-width: 40px;
                height: 40px;
                padding: 0 12px;
                font-size: 12px;
            }
            
            .btn-header span {
                display: none;
            }
            
            .btn-header[onclick*="showInfoModal"],
            .btn-header[href*="index-en"] {
                min-width: 40px;
                font-size: 16px;
            }
        }
        
        @media (max-width: 480px) {
            .header-buttons {
                gap: 6px;
            }
            
            .btn-header {
                min-width: 36px;
                height: 36px;
                padding: 0 10px;
                border-radius: 8px;
            }
        }
        
        .competitions-landing {
            max-width: 900px;
            margin: 0 auto 24px;
            padding: 16px;
        }

        .competitions-header {
            display: flex;
            align-items: center;
            gap: 20px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 133, 199, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            margin: 20px auto;
            max-width: 1400px;
            padding: 30px;
            position: relative;
            z-index: 10;
        }
        
        .competitions-logo {
            height: 120px;
            width: auto;
            max-width: 300px;
            object-fit: contain;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
            transition: all 0.5s ease;
            z-index: 2;
            animation: logoFloat 6s ease-in-out infinite;
            background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0) 70%);
            border-radius: 20px;
            padding: 15px 20px;
        }
        
        .competitions-text-block {
            flex: 1;
            min-width: 0;
        }
        
        .competitions-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 0 0 15px 0;
            text-align: left;
            background: linear-gradient(135deg, #0085C7, #F4C300);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .competitions-info-text {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text-color);
            margin: 0;
            text-align: left;
            opacity: 0.9;
        }
        
        .competitions-info-text span {
            font-weight: 600;
            color: #0085C7;
            background: rgba(0, 133, 199, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
        }
        
        .competitions-landing {
            max-width: 900px;
            margin: 0 auto 24px;
            padding: 16px;
        }
        
        .archive-container-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--dark);
            margin: 0;
        }

        .competitions-info-text {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .competitions-info-text span {
            font-weight: 600;
            color: var(--primary);
        }

        .competitions-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 8px;
        }

        .competition-card {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 14px;
            background: rgba(255,255,255,0.96);
            box-shadow: 0 4px 10px rgba(15,23,42,0.08);
            text-decoration: none;
            color: inherit;
            border: 1px solid rgba(148,163,184,0.35);
        }

        .competition-card:hover {
            box-shadow: 0 6px 14px rgba(15,23,42,0.16);
            transform: translateY(-1px);
        }

        .competition-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: #eff6ff;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            overflow: hidden;
        }

        .competition-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .competition-main {
            flex: 1;
            min-width: 0;
        }

        .competition-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--dark);
            margin: 0 0 4px;
        }

        .competition-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 12px;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .competition-meta-item {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .competition-meta-item i {
            font-size: 0.8rem;
        }

        .competition-organizer {
            margin-top: 4px;
            font-size: 0.8rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .competition-cta {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 2px;
            font-size: 0.6rem;
            color: #ffffff;
            font-weight: 600;
            flex-shrink: 0;
            padding: 4px 8px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            box-shadow: 0 2px 5px rgba(15,23,42,0.25);
        }

        .competition-card:hover .competition-cta {
            box-shadow: 0 3px 6px rgba(15,23,42,0.35);
            transform: translateY(-0.5px);
        }

        .competition-cta i {
            font-size: 0.8rem;
        }

        .live-badge-small {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(45deg, #ff0000, #ff6b6b);
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            animation: livePulseSmall 2s infinite;
            margin-left: 6px;
        }

        .live-badge-small::before {
            content: '';
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            animation: liveDotSmall 1.5s infinite;
        }

        @keyframes livePulseSmall {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 3px 10px rgba(255, 0, 0, 0.5);
            }
        }

        @keyframes liveDotSmall {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.3;
            }
        }

        .competitions-empty {
            margin-top: 12px;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .competitions-footer {
            margin-top: 16px;
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .events-section {
            margin-top: 32px;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--border);
        }

        .event-status {
            font-size: 0.75rem;
            padding: 2px 8px;
            border-radius: 12px;
            background: var(--primary);
            color: white;
            font-weight: 500;
        }

        .event-status.status-upcoming {
            background: var(--primary);
        }

        .event-status.status-active {
            background: var(--accent);
        }

        .event-status.status-completed {
            background: var(--text-muted);
        }

        .live-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            background: linear-gradient(45deg, #ff0000, #ff6b6b);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 100;
            animation: livePulse 2s infinite;
            box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .live-indicator::before {
            content: '';
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
            animation: liveDot 1.5s infinite;
        }

        @keyframes livePulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
            }
        }

        @keyframes liveDot {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.3;
            }
        }

        .event-logo-placeholder {
            width: 52px;
            height: 52px;
            border-radius: 12px;
            background: rgba(255,255,255,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.5rem;
            box-shadow: 0 2px 8px rgba(15,23,42,0.18);
        }

        @media (max-width: 600px) {
            .competitions-landing {
                padding: 12px;
            }
            
            header {
                padding: 20px 12px;
                margin: 8px auto;
            }
            
            .logo {
                gap: 10px;
            }
            
            .logo-image {
                height: 50px;
            }
            
            .logo h1 {
                font-size: 18px;
            }
            
            .tagline {
                font-size: 11px;
            }

            .competitions-header {
                align-items: flex-start;
            }

            .competition-card {
                padding: 10px;
            }

            .competition-name {
                font-size: 0.9rem;
            }

            .competition-meta,
            .competition-organizer {
                font-size: 0.78rem;
            }
        }
        
        .player-name {
            font-weight: 500;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .player-name i {
            color: var(--primary);
            font-size: 1.1rem;
        }
        
        .file-meta {
            display: flex;
            gap: 1.5rem;
            color: var(--text-muted);
            font-size: 0.875rem;
        }
        
        .file-meta span {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .action-btns {
            display: flex;
            gap: 0.5rem;
        }
        
        .btn {
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            font-size: 0.875rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--dark);
        }
        
        .btn-success {
            background: var(--accent);
            color: white;
        }
        
        .btn-copy {
            background: #f1f5f9;
            color: var(--text-muted);
        }
        
        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .status-msg {
            text-align: center;
            padding: 3rem;
            color: var(--text-muted);
        }
        
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            animation: fadeIn 0.3s;
        }
        
        .popup-content {
            width: 90%;
            max-width: 900px;
            position: relative;
        }
        
        .video-player {
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
        }
        
        .close-btn {
            position: absolute;
            top: -40px;
            right: 0;
            background: #fff;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .close-btn:hover {
            transform: rotate(90deg);
        }
        
        .video-meta-popup {
            color: white;
            margin-top: 15px;
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes fadeInRow {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .fade-in {
            animation: fadeInRow 0.4s ease-out forwards;
        }
        
        /* Gallery Styles */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            padding: 1rem;
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            aspect-ratio: 1/1;
        }
        
        .gallery-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.05);
        }
        
        /* Photo Modal */
        .photo-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .photo-modal.active {
            display: flex;
        }
        
        .photo-modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            cursor: pointer;
        }
        
        .photo-modal img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
        }
        
        .photo-modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: #fff;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 1001;
        }
        
        .photo-modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
        }
        
        .photo-modal-prev {
            left: 20px;
        }
        
        .photo-modal-next {
            right: 20px;
        }
        
        .photo-modal-actions {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1001;
        }
        
        .photo-action-btn {
            background: rgba(255,255,255,0.9);
            border: none;
            border-radius: 4px;
            padding: 8px 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
            transition: all 0.2s;
            color: #333;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .photo-action-btn:hover {
            background: white;
            transform: translateY(-2px);
        }
        
        #shareSuccessMessage {
            display: none;
            margin-top: 8px;
            color: #4CAF50;
            font-size: 14px;
            animation: fadeInOut 3s ease-in-out;
            opacity: 0;
        }
        
        @keyframes fadeInOut {
            0% { opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 1; }
            100% { opacity: 0; }
        }
        
        /* QR Code Modal */
        .qr-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .qr-modal.active {
            display: flex;
        }
        
        .qr-modal-content {
            background: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            max-width: 300px;
            width: 90%;
        }
        
        .qr-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #fff;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
        }
        
        #qrCodeCanvas {
            margin: 15px auto;
            max-width: 100%;
        }
        
        .qr-modal-text {
            margin-top: 15px;
            font-size: 0.9rem;
            color: #333;
        }
        
        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            margin: 20px 0;
            gap: 5px;
        }
        
        .page-btn {
            padding: 8px 12px;
            border: 1px solid var(--border);
            background: white;
            color: var(--dark);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* QR Button */
        .qr-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            z-index: 100;
            transition: all 0.3s;
        }
        
        .qr-btn:hover {
            background: var(--secondary);
            transform: scale(1.1);
        }
        
        .qr-btn i {
            font-size: 24px;
        }
        
        @media (max-width: 768px) {
            .competitions-header {
                flex-direction: column;
                text-align: center;
                padding: 25px 15px;
                gap: 20px;
                position: relative;
            }
            
            header {
                flex-direction: column;
                text-align: center;
                padding: 25px 15px;
                gap: 20px;
                margin: 10px auto;
            }
            
            .logo {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            
            .logo-image {
                height: 60px;
            }
            
            .logo h1 {
                font-size: 20px;
                text-align: center;
            }
            
            .tagline {
                font-size: 12px;
                text-align: center;
            }
            
            .competitions-logo {
                height: 120px;
                padding: 12px 18px;
                margin: 0 auto;
            }
            
            .competitions-text-block {
                order: 2;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            
            .competitions-title {
                font-size: 2rem;
                margin: 0;
                text-align: center;
            }
            
            button[onclick="showInfoModal()"] {
                position: static;
                margin-left: 0;
                margin-top: 10px;
                order: 3;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .photo-modal-nav, .qr-modal-close {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            
            .photo-action-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            .qr-btn {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
            }
        }
        
        @media (max-width: 992px) {
            .event-header {
                grid-template-columns: auto 1fr auto;
                padding: 12px 15px;
                gap: 12px;
                min-height: 160px;
            }
            
            .event-logo {
                height: 70px;
                padding: 4px 8px;
            }
            
            .event-club {
                font-size: clamp(0.9rem, 3.5vw, 1.3rem);
            }
            
            .event-title {
                font-size: clamp(0.55rem, 2.8vw, 0.85rem);
            }
        }
        
        @media (max-width: 768px) {
            .event-header {
                grid-template-columns: 1fr;
                text-align: center;
                height: auto;
                min-height: 140px;
                padding: 15px 10px;
                gap: 8px;
            }
            
            /* Скриване на логата на мобилни устройства при избрано състезание/събитие */
            body.player-desktop-scaled .event-header .logo-container {
                display: none;
            }
            
            .logo-container {
                order: -1;
                margin-bottom: 5px;
            }
            
            .event-info {
                padding: 2px;
            }
            
            .event-logo {
                height: 55px;
                padding: 3px 6px;
            }
        }
        
        @media (max-width: 480px) {
            .event-header {
                padding: 12px 8px;
                min-height: 120px;
                margin: 8px auto;
            }
            
            /* Скриване на логата на много малки екрани при избрано състезание/събитие */
            body.player-desktop-scaled .event-header .logo-container {
                display: none;
            }
            
            .event-club {
                font-size: clamp(0.85rem, 4.5vw, 1.1rem);
                line-height: 1.2;
                margin-bottom: 2px;
            }
            
            .event-title {
                font-size: clamp(0.5rem, 3.5vw, 0.75rem);
                line-height: 1.1;
            }
            
            .event-logo {
                height: 45px;
                padding: 2px 4px;
            }
            #owncastEmbed {
                min-height: 250px;
            }
            
            .tab-button {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
            
            .search-box {
                width: 150px;
            }
        }

/* Подобрен responsive дизайн за player.php на мобилни устройства */
@media (max-width: 1024px) {
    body.player-desktop-scaled {
        /* Премахваме transform: scale() и използваме нормален responsive подход */
        transform: none;
    }
    
    /* Намаляваме размерите на елементите вместо да мащабираме цялата страница */
    .tab-container {
        font-size: 14px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    body.player-desktop-scaled {
        transform: none;
    }
    
    /* По-агресивни намаления за таблети */
    .tab-container {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 80px;
    }
    
    /* По-малки размери за видео контейнер */
    .video-container {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    body.player-desktop-scaled {
        transform: none;
    }
    
    /* Оптимизации за телефони */
    .tab-container {
        font-size: 11px;
        gap: 2px;
    }
    
    .tab-button {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 60px;
    }
    
    .video-container {
        min-height: 220px;
    }
    
    /* По-добро мащабиране на менюто */
    .tab-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px;
    }
    
    .tab-button {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 80px;
        margin: 2px;
        flex: 0 0 auto;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav a {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Модален прозорец за уреди на отбор (ансамбъл) */
.team-apparatus-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.team-apparatus-modal-content {
    background-color: #fefefe;
    margin: 4% auto;
    padding: 24px;
    border-radius: 10px;
    width: 90%;
    max-width: 960px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.team-apparatus-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.team-apparatus-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.team-apparatus-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.team-apparatus-close:hover {
    color: #000;
}

.team-apparatus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.team-apparatus-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-apparatus-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-apparatus-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.team-apparatus-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.team-apparatus-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.gymnasts-columns {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.gymnasts-columns .col {
    flex: 1;
    text-align: left;
}

.gymnasts-columns .col-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.countdown-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 160px;
    line-height: 1;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
    letter-spacing: 4px;
    z-index: 5;
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.team-apparatus-item ol {
    margin: 0 0 0 18px;
    padding: 0;
    text-align: left;
}

/* Футер стилове */
.site-footer {
    max-width: 1400px;
    margin: 60px auto 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 133, 199, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.footer-section p {
    line-height: 1.5;
    color: #475569;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 133, 199, 0.2);
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 133, 199, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e4405f;
    color: white;
}

.social-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.social-link span {
    font-weight: 500;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 133, 199, 0.2);
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    color: #64748b;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* Responsive стилове за футер */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin: 40px auto 15px;
        padding: 25px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin: 30px auto 10px;
        padding: 20px 12px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .footer-section p {
        font-size: 0.8rem;
    }
    
    .social-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .social-link i {
        font-size: 0.9rem;
        width: 18px;
    }
    
    .footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}

/* Flag styles */
.flag-small {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-right: 5px;
    vertical-align: middle;
    object-fit: cover;
}

.flag-medium {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-right: 8px;
    vertical-align: middle;
    object-fit: cover;
}

.flag-large {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
    vertical-align: middle;
    object-fit: cover;
}

.no-flag {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.country-unknown {
    color: #e74c3c;
    font-style: italic;
}