:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --accent: #DFFF00; /* Неоново жълто/зелено за спортен дух */
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
}

/* 1. СКРОЛБАР */
::-webkit-scrollbar {
    width: 8px; 
}


::-webkit-scrollbar-track {
    background: #000000; 
}


::-webkit-scrollbar-thumb {
    background: var(--accent); 
    border-radius: 10px;
    border: 2px solid #000000; 
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff; 
    box-shadow: 0 0 10px var(--accent); 
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 0 40px;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeInPage 0.8s ease-in-out;
}

/* Header & Nav */
header {
    /* padding: 20px 5%; */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

nav {
display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
}

#nav-menu a.active {
    color: var(--accent) !important;
    opacity: 1 !important;
    font-weight: 700;
    position: relative;
}

.menu-toggle {
    display: none; 
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo:hover {
    opacity: 0.7; 
    color: var(--text-main) !important; 
}

.logo:hover span {
    color: var(--accent) !important;
}

/* Индикаторът в навигацията */
.live-indicator {
    display: none; /* Скрит по подразбиране */
    align-items: center;
    gap: 8px;
    color: #ff0000;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50px;
    margin-left: auto !important; 
    margin-right: 30px;
    -webkit-tap-highlight-color: transparent;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ff0000;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite ease-in-out;
}

@keyframes live-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

.socials {
    display: flex;
    align-items: center;
    margin-right: 30px; 
}

.socials a {
    color: var(--text-main);
    font-size: 1.4rem;
    margin: 0 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.socials a:hover {
    color: var(--accent);
    transform: scale(1.2); 
}

.mobile-socials {
    display:none ;
}

.logo span {
    color: var(--accent) !important; 
}


/* --- About Me Section --- */
.about-section {
    position: relative;
    padding: 100px 0;
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-section .container {
    position: relative;
    z-index: 2;
    margin-left: 8vw; 
    max-width: 90%;
}

.about-wrapper {
    display: flex;
    gap: 100px;       
    align-items: stretch; 
    max-width: 1400px; 
    margin: 0 auto;
}

/* Главният текст */
.about-main-text {
    flex: 3;          
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-sidebar {
    flex: 1.2;
    min-width: 320px;
    padding: 40px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 1), rgba(5, 5, 5, 1));
    border: 1px solid rgba(220, 255, 0, 0.1); 
    border-right: 4px solid var(--accent);   
    display: flex;
    flex-direction: column;
    justify-content: center; 
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.about-sidebar .legal-label {
    font-family: 'Inter', sans-serif; 
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.about-sidebar .legal-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent);
}

.about-sidebar p {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
}

.about-sidebar strong {
    color: #fff;
    border-bottom: 1px solid var(--accent); 
    padding-bottom: 2px;
}

.ai-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-list li {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-list li::before {
    content: ">";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 900;
}

.about-section .vertical-title {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -2px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.contact-page .vertical-title {
    position: fixed; 
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: clamp(4rem, 8vw, 7rem);
    color: var(--accent);
    opacity: 0.8;
    pointer-events: none !important; 
    z-index: 1;
}

.status-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.status-box {
    background: #111;
    padding: 40px;
    border: 2px solid var(--accent);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(220, 255, 0, 0.2);
}

.status-box h2 {
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 900;
}

.status-box p {
    color: #888;
    margin-bottom: 25px;
}

#status-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.success-border { border-color: var(--accent); }
.error-border { border-color: #ff4444; }

.about-content {
    margin-left: 15vw; 
    position: relative;
    z-index: 2;
}

.about-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8; 
    margin-bottom: 25px;
    font-weight: 300; 
}

.about-content p.lead {
    color: var(--text-main);
    font-size: 1.6rem; 
    font-weight: 700;  
    line-height: 1.4;
    border-left: 4px solid var(--accent); 
    padding-left: 25px;
    margin-bottom: 40px;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; }
nav a {
    text-decoration: none;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
}

nav a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.hero-content {
    flex: 1;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 20px;
    -webkit-tap-highlight-color: transparent;
    
}

.hero h1 .surname {
    color: var(--accent);
    -webkit-tap-highlight-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 4px;
    -webkit-tap-highlight-color: transparent;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    z-index: 1;

    opacity: 0; 
    transform: translateX(150px); 
    animation: slideInRight 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    filter: drop-shadow(-20px 10px 50px rgba(0,0,0,0.5));
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent); 
    color: #000; 
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.btn-primary:hover {
    background-color: #ffffff; 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(223, 255, 0, 0.3); 
}

.next-match-home {
    padding: 80px 0;
}

.next-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #050505 100%);
    border: 1px solid #1a1a1a;
    border-left: 5px solid var(--accent); /* Твоето неоново жълто */
    padding: 40px;
    border-radius: 0 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.next-badge {
    display: inline-block;
    background: rgba(223, 255, 0, 0.1); /* Акцентен цвят с прозрачност */
    color: var(--accent);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#home-next-name {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

#home-next-meta {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-link {
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 15px 30px;
    border: 1px solid #333;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.next-link i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.next-link:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.next-link:hover i {
    transform: translateX(5px);
}

.sponsors-section {
    padding: 80px 0;
    background-color: #050505;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.sponsors-header {
    text-align: center;
    margin-bottom: 50px;
}

.sponsors-header h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

.sponsors-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.8;
}

.sponsor-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative; 
    flex-direction: column;
}

.sponsor-card.featured-partner {
    border: 1px solid #dcff00;
    padding: 20px;
    border-radius: 10px;
    background: rgba(220, 255, 0, 0.03);
}


.promo-badge {
    position: absolute;
    top: 65px;
    background: #dcff00;
    color: #000;
    padding: 2px 10px;
    font-weight: 900;
    font-size: 0.7rem;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.sponsor-card img {
    height: 50px;
    width: auto;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.4s ease;
}


.featured-partner img {
    filter: grayscale(0%) brightness(1) !important;
}

.sponsor-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}


.shop-link {
    margin-top: 10px;
    font-size: 0.6rem;
    color: #dcff00;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0.8;
}

.sponsors-cta {
    text-align: center;
    margin-top: 60px;
}

.sponsors-cta p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.link-accent {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.link-accent:hover {
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent);
}

/* Sections */
.content-section {
    padding: 100px 10%;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
}

.line {
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin: 10px 0 30px;
}

/* --- Стилизиране на Stats Секцията --- */
.stats-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    background-attachment: fixed;
}

.stats-section .section-title {
    text-align: center;
}

.stats-section .vertical-title {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: clamp(4rem, 8vw, 7rem);
    color: var(--accent);
    opacity: 0.6; 
    pointer-events: none !important; 
    z-index: 0;
    font-weight: 900;
}

.stats-header { 
    position: relative; /* Връщаме го в потока на страницата */
    text-align: center;
    margin-bottom: 60px; /* Разстояние до списъка с турнири */
    z-index: 1;
}

.stats-header h1 {
    color: var(--accent) !important;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap; 
}

.stat-card {
    background: #111;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    min-width: 250px;
    border: 1px solid #222;
    transition: 0.3s ease;
}

.details-flex-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 25px 15px;
    gap: 10px;
    animation: fadeInMatch 0.3s ease-in-out;
}

.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-label {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 900;
}

.team-name {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 400;
    text-align: center;
}

.match-vs {
    font-weight: 900;
    color: var(--accent);
    font-size: 0.8rem;
    padding: 5px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
}

.neon-border {
    border: 1px solid #dcff00; 
    box-shadow: 0 0 15px rgba(220, 255, 0, 0.2);
}

.stat-card .value {
    font-size: 3.5rem;
    font-weight: 900;
    color: #dcff00;
    margin-top: 10px;
}

.stat-card .label {
    text-transform: uppercase;
    color: #888;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* --- Таблица с мачове --- */
.match-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #0a0a0a;
}

.match-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #222;
    color: #555;
    text-transform: uppercase;
}

.match-table td {
    padding: 15px;
    border-bottom: 1px solid #111;
}

.text-success { color: #00ff88; }
.text-danger { color: #ff4444; }

.match-header {
    cursor: pointer;
    transition: background 0.3s;
}

.match-header:hover {
    background: rgba(220, 255, 0, 0.05); 
}

.match-details {
    background: #050505;
}

.details-content {
    padding: 15px;
    border-left: 3px solid #dcff00;
    font-size: 0.9rem;
    color: #ccc;
    animation: fadeIn 0.3s;
}

.small-icon {
    font-size: 0.7rem;
    margin-left: 5px;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInMatch {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- GALLERY STYLES --- */
.gallery-page {
    position: relative;
    padding: 120px 5% 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.gallery-page .vertical-title {
    position: fixed; 
    left: 40px;      
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: clamp(4rem, 8vw, 7rem);
    color: var(--accent);
    opacity: 0.8;
    pointer-events: none !important; 
    z-index: 1;
}

.gallery-header {
    position: relative;
    z-index: 1; 
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto; 
}

.filter-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.filter-mobile-btn {
    display: none !important;
    width: 100%;
    padding: 15px 25px;
    background: #111;
    border: 1px solid var(--accent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.filter-mobile-btn i {
    transition: transform 0.3s ease;
}

.gallery-filters {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    z-index: 101;
}

.filter-btn {
    cursor: pointer !important;
    position: relative;
    z-index: 102;
    padding: 12px 30px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease;
    user-select: none; 
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #1a1a1a;
}
.filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; 
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    cursor: pointer;
    aspect-ratio: 9 / 16;
    border: 1px solid #1a1a1a;
    transition: border-color 0.4s ease, transform 0.4s ease;
    
    max-width: 400px; 
    width: 100%;
}

.gallery-item:hover {
    border-color: var(--accent);
    z-index: 5;
}

.media-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover .media-wrapper {
    transform: scale(1.08);
}

.gallery-item.clicking {
    transform: scale(0.94);
    filter: brightness(1.2);
    transition: transform 0.15s ease;
}

/* Обновеният Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content video, 
#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border: 2px solid var(--accent);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    background: #000;
}

#lightbox-img {
    box-shadow: 0 0 30px rgba(220, 255, 0, 0.3);
    border-radius: 4px;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 30px; 
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
    line-height: 1;
    user-select: none;
    opacity: 0; 
}

.lightbox.active .close-lightbox {
    opacity: 1;
}

.close-lightbox:hover {
    color: var(--accent);
    transform: scale(1.2) rotate(90deg); 
}

/* ЕТИКЕТИ ПОД КЛИПОВЕТЕ */
.media-label {
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

.gallery-item:hover .media-wrapper {
    transform: scale(1.05);
}

/* Ефект за видео прозорците */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none; 
}

.gallery-item:hover .play-overlay {
    opacity: 1;
}

.play-overlay i, .play-overlay span {
    color: var(--accent);
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .play-overlay i,
.gallery-item:hover .play-overlay span {
    transform: scale(1); 
}

.placeholder-video {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, #050505, #111);
    color: var(--text-dim);
}

/* --- CONTACT PAGE --- */
.contact-page {
    padding: 120px 0;
    min-height: 100vh;
}

.contact-wrapper {
    display: flex;
    gap: 100px;
    align-items: flex-start;
    justify-content: center; 
    width: 100%;
    max-width: 1200px;       
    margin: 0 auto;          
    padding: 0 20px;         
    flex-wrap: wrap;         
}

.contact-form-container {
    flex: 1;
    max-width: 600px;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 40px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid #222;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px rgba(223, 255, 0, 0.1);
}

/* Privacy Page */
.privacy-page {
    background: #000;
    font-family: 'Inter', sans-serif;
}

.privacy-content {
    padding: 120px 20px;
    display: flex;
    justify-content: center;
}

.privacy-wrap {
    max-width: 900px;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    padding: 60px;
    border: 1px solid #1a1a1a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}


.privacy-content h1 {
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.privacy-content .last-updated {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 50px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-content h2 {
    color: #fff;
    margin-top: 45px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}


.privacy-content p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.privacy-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.privacy-content li {
    color: #888;
    margin-bottom: 12px;
    position: relative;
    list-style: none;
}

.privacy-content li::before {
    content: "—";
    color: var(--accent);
    position: absolute;
    left: -25px;
}


.legal-highlight {
    background: rgba(220, 255, 0, 0.03);
    border-left: 4px solid var(--accent);
    padding: 30px !important;
    margin: 40px 0 !important;
    position: relative;
}

.legal-highlight h2 {
    color: var(--accent) !important;
    border: none;
    margin-top: 0;
}

.legal-highlight p {
    color: #eee !important;
    font-style: normal;
}

.legal-highlight strong {
    color: var(--accent);
    text-decoration: underline;
}

.privacy-page .submit-btn {
    margin-top: 40px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.privacy-page .vertical-title {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: clamp(4rem, 8vw, 7rem);
    color: var(--accent);
    opacity: 0.6; 
    pointer-events: none !important; 
    z-index: 0;
    font-weight: 900;
}


/* Бутонът */
.submit-btn {
    display: block;
    margin: 30px auto 0 auto;
    
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(223, 255, 0, 0.3);
}

/* Animations */
.fade-in {
    animation: fadeInUp 1s forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0); 
    }
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

nav ul li a:active, nav ul li a:focus {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    background: #000;
    border-top: 1px solid #111; 
}

.footer-content p {
    margin: 8px 0; 
    color: #666;    
    font-size: 0.85rem;
}

.footer-link {
    color: var(--accent); 
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.footer-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

        .admin-wrapper {
            width: 95%;
            min-height: 80vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
            background: radial-gradient(circle at center, #111 0%, #000 100%);
        }

        .admin-card {
            background: #111;
            border: 1px solid #222;
            border-radius: 20px;
            padding: 40px;
            width: 100%;
            max-width: 450px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }

        .admin-card h2 {
            text-align: center;
            font-weight: 900;
            margin-bottom: 30px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #fff;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            color: #666;
            font-size: 0.75rem;
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }

        .admin-input {
            width: 100%;
            background: #050505;
            border: 1px solid #333;
            padding: 15px;
            border-radius: 10px;
            color: #fff;
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .admin-input:focus {
            border-color: var(--accent);
            outline: none;
            background: #080808;
        }

        .error-msg-popup {
            display: none; /* Скрито по подразбиране */
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #ff0000;
            color: #fff;
            padding: 15px 30px;
            border-radius: 10px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 9999;
            box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
            animation: slideDown 0.4s ease forwards;
        }

        @keyframes slideDown {
            from { top: -100px; opacity: 0; }
            to { top: 20px; opacity: 1; }
        }

        /* Дизайн на Toggle Switch (Пусни на живо) */
        .live-switch {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #1a1a1a;
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 30px;
            cursor: pointer;
            border: 1px solid #222;
        }

        .live-switch span {
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.85rem;
        }

        .live-switch input {
            width: 22px;
            height: 22px;
            accent-color: #ff0000;
            cursor: pointer;
        }

        .save-btn {
            width: 100%;
            background: var(--accent);
            color: #000;
            border: none;
            padding: 18px;
            border-radius: 12px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .save-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(223, 255, 0, 0.2);
            filter: brightness(1.1);
        }

        .success-msg {
            background: rgba(0, 255, 0, 0.1);
            color: #00ff00;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 20px;
            font-size: 0.8rem;
            display: none;
        }

    .live-hero {
        padding: 100px 20px 60px;
        text-align: center;
    }

    .live-badge {
        background: rgba(255, 0, 0, 0.1);
        color: #ff0000;
        padding: 5px 15px;
        border-radius: 5px;
        font-weight: 900;
        font-size: 0.8rem;
        display: inline-block;
        margin-bottom: 20px;
    }

    .video-frame-container {
        max-width: 1000px;
        margin: 40px auto;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        background: #111;
        border: 1px solid #222;
        box-shadow: 0 0 50px rgba(0,0,0,0.8);
    }

    .video-aspect-ratio {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
    }

    .video-aspect-ratio iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .live-info {
        margin-top: 30px;
    }

    .live-info h2 {
        font-size: 2rem;
        font-weight: 900;
        margin-bottom: 10px;
    }

    .court-tag {
        color: var(--accent); /* Твоето неоново жълто */
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .live-wrapper .vertical-title {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%) rotate(180deg);
        writing-mode: vertical-rl;
        font-size: clamp(3rem, 7vw, 5.5rem);
        font-weight: 900;
        color: var(--accent);
        text-transform: uppercase;
        line-height: 1;
        letter-spacing: -2px;
        opacity: 0.6;
        pointer-events: none;
        z-index: 1;
        white-space: nowrap;
    }


    /* Schedule Cards */
        .schedule-page { 
            min-height: 85vh;
            padding-top: 80px;
            max-width: 1200px;
            width: 95%;
            margin: 0 auto;
        }
        
        .schedule-page .vertical-title {
            position: fixed;
            left: 40px;
            top: 50%;
            transform: translateY(-50%) rotate(180deg);
            writing-mode: vertical-rl;
            font-size: clamp(4rem, 8vw, 7rem);
            color: var(--accent);
            opacity: 0.6; 
            pointer-events: none !important; 
            z-index: 0;
            font-weight: 900;
        }

        .schedule-header { 
            position: relative; /* Връщаме го в потока на страницата */
            text-align: center;
            margin-bottom: 60px; /* Разстояние до списъка с турнири */
            z-index: 1;
        }

        .schedule-header h1 {
            color: var(--accent) !important;
        }

        .section-subtitle { 
            margin-bottom: 30px;
            font-weight: 900;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .neon-dot {
            width: 10px;
            height: 10px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--accent);
        }

        .tournament-card {
            background: #0d0d0d;
            border: 1px solid #1a1a1a;
            padding: 25px;
            border-radius: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            transition: 0.3s;
        }

        .tournament-card:hover {
            border-color: var(--accent);
            transform: translateX(5px);
        }

        .separator {
            margin-bottom:15px;
        }

        .event-date-loc {
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-width: 120px;
        }
        .event-date-loc .date {
            font-weight: 900;
            color: #fff;
        }

        .event-date-loc .loc {
            color: #666;
            font-size: 0.8rem;
        }

        .event-name {
            font-weight: 900;
            text-transform: uppercase;
            font-size: 1.1rem;
            flex-grow: 1;
            padding: 0 20px;
        }

        .event-status { 
            background: #1a1a1a;
            padding: 5px 15px;
            border-radius: 5px; 
            font-size: 0.7rem;
            font-weight: 900;
            text-transform: uppercase;
        }

        .event-status.result {
            background: var(--accent);
            color: #000;
        }

        /* Next Tournament Card (Home Page) */
        .next-event-card {
            background: linear-gradient(90deg, #111 0%, #050505 100%);
            border-left: 4px solid var(--accent);
            padding: 30px;
            border-radius: 0 15px 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .no-events-msg {
            grid-column: 1 / -1; /* Заема целия ред в грида */
            text-align: center;
            padding: 100px 20px;
            background: #050505;
            border: 1px dashed #222;
            border-radius: 20px;
            border-color: var(--accent);
            margin: 20px 0;
        }

        .no-events-msg i {
            font-size: 3rem;
            color: #333;
            margin-bottom: 20px;
        }

        .no-events-msg h2 {
            font-weight: 900;
            font-size: 1.5rem;
            color: #fff;
            letter-spacing: 2px;
            margin-bottom: 10px;
        }

        .no-events-msg p {
            color: #666;
            font-size: 0.9rem;
        }

        #current-schedule-list { 
            margin-top: 20px;
        }

        .admin-tourney-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #050505;
            padding: 12px 15px;
            margin-bottom: 8px;
            border-radius: 10px;
            border: 1px solid #222;
        }

        .admin-tourney-item span {
            font-size: 0.85rem;
            color: #ccc;
        }

        .delete-btn {
            background: none;
            border: none;
            color: #ff4444;
            cursor: pointer;
            padding: 5px;
            transition: 0.3s;
        }

        .delete-btn:hover {
            color: #ff0000;
            transform: scale(1.1);
        }

        .admin-card {
            margin-bottom: 40px;
        }

/* Мобилни устройства */
@media (max-width: 768px) {
    html {
        background-color: #000000 !important;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;        
        position: relative; 

        height: auto !important;      
        overflow-y: visible !important; 
    }
    
    header { z-index: 3000 !important; }

    .container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    .vertical-title {
        position: static;
        transform: none;
        writing-mode: horizontal-tb;
        margin-bottom: 20px;
        font-size: 3rem !important;
    }

    body {
        cursor: auto !important;
    }

    .menu-toggle {
        display: block !important; 
        z-index: 10001 !important; 
        position: fixed; 
        right: 20px;
        top: 22px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* АНИМАЦИЯ НА БУРГЕРА КЪМ "Х" */
    #mobile-menu.is-active .bar:nth-child(2) { 
        opacity: 0; 
        transform: translateX(10px); 
    }
    #mobile-menu.is-active .bar:nth-child(1) { 
        transform: translateY(9px) rotate(45deg); 
    }
    #mobile-menu.is-active .bar:nth-child(3) { 
        transform: translateY(-9px) rotate(-45deg); 
    }

    .bar {
        width: 30px;
        height: 3px;
        background-color: #dcff00 !important;
        margin: 6px 0;
        display: block;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }


    #nav-menu a.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--accent);
        box-shadow: 0 0 8px var(--accent);
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        justify-content: center;
        align-items: center;
        z-index: 10000; 
        
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s ease-in-out;
    }

    nav ul.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    nav ul li { 
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        margin: 15px 0;
    }

    nav ul li a {
        font-size: 2rem;
        font-weight: 900;
        letter-spacing: 6px;
        text-transform: uppercase;
        color: #fff;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li:nth-child(1) { transition-delay: 0.1s; }
    nav ul li:nth-child(2) { transition-delay: 0.15s; }
    nav ul li:nth-child(3) { transition-delay: 0.2s; }
    nav ul li:nth-child(4) { transition-delay: 0.25s; }

    .socials { display: none; }

    .mobile-socials {
        display: flex !important;
        justify-content: center;
        gap: 35px;
        padding: 30px 0;
        margin-top: 20px;
        border-top: 1px solid #222; /* Лека разделителна линия */
        width: 80%; /* За да не е залепена за краищата */
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-socials a {
        font-size: 1.5rem !important; /* По-големи икони за лесно цъкане */
        color: #fff !important;
        transition: color 0.3s ease;
    }

    .mobile-socials a:hover {
        color: var(--accent) !important; /* Неоново жълто при докосване */
    }

    .hero {
        display: flex;
        flex-direction: column-reverse;
        padding-top: 100px;
        height: auto;
        text-align: center;
    }

    .hero-content {
        padding: 40px 20px;
        z-index: 2;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
        margin-bottom: 10px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 450px; 
        height: auto;
        opacity: 0.8; 
    }

    .about-wrapper {
        flex-direction: column;
    }

    .vertical-title {
        display:none;
    }

    .about-content {
        padding: 0 !important;
        text-align: center;
        margin-left: 0;
    }

    .about-section {
        padding: 0px 0px;
    }

    .about-content p.lead {
        border-left: none !important;
        padding-left: 0px;
    }

    .about-section .container {
        margin-left: 0 !important;
        margin-right: auto !important;
        margin-left: auto !important;
        max-width: 100% !important;
        padding: 0 20px; 
    }

    .about-sidebar {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-top: 30px;
        margin-bottom: 100px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        width: 100%;
        gap: 10px;
        box-sizing: border-box;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .gallery-item {
        aspect-ratio: auto !important; 
        height: auto !important;
        margin-bottom: 20px;
    }

    .gallery-item img, .gallery-item video {
        max-width: 100% !important; 
        height: auto !important;
    }

    .filter-mobile-btn {
        display: flex !important; 
        -webkit-tap-highlight-color: transparent;
    }

    .media-wrapper {
        height: auto !important;
    }

    .media-wrapper img, 
    .media-wrapper video {
        position: relative !important;
        height: auto !important;
        object-fit: contain !important; 
    }

    .gallery-filters {
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        border: 1px solid var(--accent);
        border-top: none;
        z-index: 500;
        padding: 0;
        gap: 0;

        
        max-height: 0; 
        opacity: 0;
        overflow: hidden; 
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    }

    .gallery-filters.open {
        max-height: 500px; 
        opacity: 1;
        visibility: visible;
        padding: 5px 0; 
    }

    .filter-btn {
        width: 100%;
        padding: 15px 20px;
        text-align: left;
        border: none !important;
        border-bottom: 1px solid #222 !important;
        font-size: 0.9rem;
        margin: 0 !important;
        
       
        transform: translateY(-10px);
        transition: transform 0.3s ease;
    }

    .gallery-filters.open .filter-btn {
        transform: translateY(0);
    }

    .filter-btn.active {
        background: var(--accent);
        color: #000;
    }


    .table-responsive, 
    .match-table, 
    #matches-list {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #matches-list tr:first-child {
        margin-top: 0 !important;
    }

    .stats-header { 
        z-index: 1 !important;
    }

    .stats-section .section-title {
        margin-bottom: 40px !important; 
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 1100;
    }

    .matches-container h3 {
        text-align: center;
        margin-top: 50px;       
        margin-bottom: 25px;    
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 900;
    }

    .match-table, .match-table tbody, .match-table tr, .match-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .match-table thead { display: none; }


    .match-header {
        background: #111 !important;
        border: 1px solid #222 !important;
        margin-top: 30px !important;
        padding: 20px !important;
        border-radius: 12px !important;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    }


    .match-header .fa-chevron-down {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .match-header.active .fa-chevron-down {
        transform: rotate(180deg); 
    }

    .match-header td:nth-of-type(1) {
        font-size: 0.75rem !important;
        color: #666 !important;
        text-align: left !important;
        margin-bottom: 10px;
    }

    .match-header td:nth-of-type(2) {
        font-size: 1rem !important;
        font-weight: 900 !important;
        color: #fff !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
        text-transform: uppercase;
        border-bottom: 1px solid #222;
        padding-bottom: 15px !important;
    }

    .match-header td:nth-of-type(3) {
        position: absolute;
        top: 20px;
        right: 20px;
        width: auto !important;
        font-weight: 900 !important;
        font-size: 1.2rem !important;
    }

    .match-header td:nth-of-type(4) {
        font-size: 1.8rem !important;
        font-weight: 900 !important;
        color: var(--accent) !important;
        text-align: center !important;
        padding-top: 10px !important;
    }

    .match-header td::before, .match-details td::before {
        display: none !important;
    }

    .match-details {
        margin-top: -5px !important;
        margin-bottom: 20px !important;
    }

    .match-details td {
        padding: 0 !important; 
        border: none !important;
    }

    .details-flex-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Хоризонтално центриране */
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 40px 125px !important;
        box-sizing: border-box;
        min-height: 0;
    }

    .team-box {
        width: 100% !important;
        text-align: center !important; /* Центрира текста вътре */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Центрира децата хоризонтално */
    }

    /* 2. Оправяне на самите имена */
    .team-name {
        display: inline-block !important; /* Позволява центрирането */
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important; /* Подсигурява центрирането, ако е блок */
        text-align: center !important;
    }

    /* 3. Центриране на етикетите (TEAM 1 / TEAM 2) */
    .team-label {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 4. VS елемента в средата */
    .match-vs {
        display: inline-block !important;
        margin: 15px auto !important;
        background: var(--accent) !important;
        color: #000 !important;
        padding: 8px 25px !important;
        border-radius: 50px;
        box-shadow: 0 0 15px rgba(220, 255, 0, 0.4);
    }
    
    .details-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        
        background: rgba(223, 255, 0, 0.03) !important;
        border: 1px solid #222 !important;
        border-top: none !important;
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
    }

    .match-details.open .details-wrapper {
        grid-template-rows: 1fr; 
        border-color: var(--accent) !important; 
    }

    .match-details.open .details-flex-container {
        padding: 20px; 
        transition: padding 0.5s ease;
    }

    .match-details td {
        color: #aaa !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
        padding: 0 !important;
        vertical-align: middle;
    }

    .match-details b {
        color: #fff;
        display: block;
        margin-top: 10px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .match-details strong {
        display: block;
        color: var(--accent);
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    
    .match-header.active {
        border-color: var(--accent) !important;
        background: #161616 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .last-updated {
        padding-top: 45px;
        text-align: center;
        letter-spacing: 2px;
        font-weight: 500;
    }
    

    .privacy-page .vertical-title {
        display:none !important;
    }

    .privacy-wrap {
        padding: 20px;
    }

    .privacy-content {
    padding: 140px 20px;
    justify-content: center;
    text-align: center;
    }

    .live-hero { 
    padding-top: 100px; 
    }
    
    .live-indicator {
        margin-right: 53px;
    }

    .video-frame-container { 
    padding: 5px; 
    border-radius: 10px; 
    }

    .admin-card { 
    padding: 25px;
    }
    
    .admin-wrapper { 
    width: 100%;
    min-height: 85vh;
    }

    .live-switch {
    -webkit-tap-highlight-color: transparent;
    }

    .save-btn {
    -webkit-tap-highlight-color: transparent;
    }

    .schedule-page {
        padding-top: 80px; /* Малко по-малко разстояние от нава на мобилен */
    }

    .schedule-header { 
        z-index: 1 !important;
    }

    .tournament-card {
        flex-direction: column; /* Елементите един под друг */
        align-items: flex-start; /* Подравняване вляво */
        gap: 15px;
        padding: 20px;
    }

    .event-date-loc {
        min-width: 100%;
        border-bottom: 1px solid #1a1a1a;
        padding-bottom: 10px;
        flex-direction: row; /* Дата и локация на един ред */
        justify-content: space-between;
        align-items: center;
    }

    .event-name {
        padding: 0;
        font-size: 1rem;
        line-height: 1.4;
    }

    .event-status {
        width: 100%; /* Статусът заема целия ред */
        text-align: center;
        padding: 8px;
    }

    /* 3. Модулът на началната страница (index.html) */
    .next-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        border-left: none;
        border-top: 5px solid var(--accent); /* Акцентът минава отгоре */
        border-radius: 0 0 15px 15px;
    }

    #home-next-name {
        font-size: 1.5rem;
        margin: 10px 0;
    }

    #home-next-meta {
        justify-content: center; /* Центрираме иконата и текста */
        margin-bottom: 20px;
    }

    .next-link {
        width: 100%; /* Бутонът става голям и лесен за натискане */
        display: block;
    }

    /* 4. Съобщението за липса на събития */
    .no-events-msg {
        padding: 60px 15px;
        border: 2px dashed #222;
        border-color: var(--accent);
    }

    .no-events-msg i {
        font-size: 2.2rem;
    }

    .no-events-msg h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .event-date-loc {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}