/* ============================================================
   БАЗА: тёмный фон, снег, неон
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #0a0a0f;
    /* Многослойный радиальный градиент создаёт иллюзию падающего снега */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.20) 1px, transparent 1px),
        radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.10) 2px, transparent 2px),
        radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.30) 1px, transparent 1px),
        radial-gradient(circle at 5% 90%, rgba(255, 255, 255, 0.12) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size:
        120px 120px,
        180px 180px,
        90px 90px,
        140px 140px,
        200px 200px,
        160px 160px,
        110px 110px;
    animation: snowFall 20s linear infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e8edf5;
    line-height: 1.6;
}

@keyframes snowFall {
    0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 0 120px, 0 180px, 0 90px, 0 140px, 0 200px, 0 160px, 0 110px; }
}

/* ============================================================
   ОБЩИЕ СТИЛИ
   ============================================================ */
a {
    color: #ff0044;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}
a:hover {
    color: #ff4477;
    text-shadow: 0 0 8px rgba(255, 0, 68, 0.5);
}

img {
    max-width: 100%;
    height: auto;
}

.page {
    width: 100%;
    padding: 20px 40px;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .page {
        padding: 10px 15px;
    }
}

/* ============================================================
   ХЕДЕР – стекло + неон
   ============================================================ */
.header {
    background: rgba(16, 16, 26, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 0, 68, 0.15);
    border-radius: 24px;
    padding: 14px 28px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 0, 68, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}
.logo span {
    background: #ff0044;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.4);
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.nav a {
    color: #b0bcd6;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}
.nav a:hover {
    color: #ffffff;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0044;
    box-shadow: 0 0 10px #ff0044;
    transition: width 0.3s ease;
}
.nav a:hover::after {
    width: 100%;
}

.admin-link {
    background: rgba(255, 0, 68, 0.12);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 0, 68, 0.2);
}
.admin-link::after {
    display: none !important;
}
.admin-link:hover {
    background: rgba(255, 0, 68, 0.2);
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================================
   КАРТОЧКИ (стекло + неоновая обводка)
   ============================================================ */
.card {
    background: rgba(16, 16, 26, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 0, 68, 0.10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
    border-color: rgba(255, 0, 68, 0.25);
    box-shadow: 0 8px 40px rgba(255, 0, 68, 0.08);
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}
.card h2 a {
    font-size: 0.85rem;
    font-weight: 400;
    color: #b0bcd6;
}
.card h2 a:hover {
    color: #ff0044;
}

/* ============================================================
   СЛАЙДЕР РАСПИСАНИЯ
   ============================================================ */
.schedule-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    background: rgba(16, 16, 26, 0.55);
    backdrop-filter: blur(10px);
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 0, 68, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.schedule-slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}
.schedule-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.slider-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #b0bcd6;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.slider-btn:hover {
    background: rgba(255, 0, 68, 0.12);
    border-color: #ff0044;
    color: #fff;
}
.slider-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    cursor: pointer;
}
.slider-dot.active {
    background: #ff0044;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(255, 0, 68, 0.5);
}

/* ============================================================
   КАРТОЧКА МАТЧА
   ============================================================ */
.match-card {
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 68, 0.10);
    padding: 16px 20px;
    min-width: 260px;
    flex: 0 0 calc(33.333% - 11px);
    transition: transform 0.25s, box-shadow 0.3s, border-color 0.3s;
}
.match-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 68, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 0, 68, 0.05);
}
.match-date {
    display: flex;
    justify-content: space-between;
    color: #8e9bb5;
    font-size: 0.8rem;
    margin-bottom: 12px;
}
.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.team-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}
.team-name {
    font-weight: 600;
    color: #e8edf5;
    font-size: 0.95rem;
}
.match-score {
    text-align: center;
    font-weight: 700;
    color: #ff0044;
    font-size: 1.2rem;
    margin-top: 8px;
    text-shadow: 0 0 20px rgba(255, 0, 68, 0.3);
}

@media (max-width: 768px) {
    .match-card {
        min-width: 100%;
        flex: 0 0 100%;
    }
}

/* ============================================================
   СЕТКИ
   ============================================================ */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 10px;
}
@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   НОВОСТИ
   ============================================================ */
.news-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: padding-left 0.2s, border-left 0.2s;
}
.news-item:hover {
    padding-left: 12px;
    border-left: 3px solid #ff0044;
    border-left-color: #ff0044;
}
.news-date {
    font-size: 0.7rem;
    color: #8e9bb5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-title {
    font-weight: 600;
    margin-top: 4px;
}
.news-title a {
    color: #e8edf5;
}
.news-title a:hover {
    color: #ff0044;
}
.news-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: block;
    border: 1px solid rgba(255, 0, 68, 0.08);
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #b0bcd6;
    font-weight: 500;
}
.back-link:hover {
    color: #ff0044;
}

/* ============================================================
   ТАБЛИЦА ТУРНИРНОЙ ТАБЛИЦЫ
   ============================================================ */
.conference-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.conference-btn {
    background: transparent;
    border: none;
    font-weight: 600;
    color: #8e9bb5;
    cursor: pointer;
    padding: 6px 20px;
    border-radius: 30px;
    transition: 0.2s;
    font-size: 0.9rem;
}
.conference-btn.active {
    background: #ff0044;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.3);
}
.conference-btn:hover:not(.active) {
    background: rgba(255, 0, 68, 0.08);
    color: #fff;
}

.table-wrap {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
th, td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}
th {
    color: #b0bcd6;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.rank {
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.7rem;
    color: #b0bcd6;
}
.rank-top {
    background: rgba(255, 0, 68, 0.15);
    color: #ff0044;
}
.hide {
    display: none;
}

/* ============================================================
   АДМИНКА (тёмная версия)
   ============================================================ */
.admin-wrap {
    max-width: 1100px;
    margin: 40px auto;
    background: rgba(16, 16, 26, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 32px;
    border: 1px solid rgba(255, 0, 68, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 28px;
}
.tabs a {
    color: #b0bcd6;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 12px;
    transition: 0.2s;
}
.tabs a.active {
    background: #ff0044;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.25);
}
.tabs a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.btn {
    background: #ff0044;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 4px 16px rgba(255, 0, 68, 0.2);
}
.btn:hover {
    background: #ff3366;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 68, 0.3);
}
.btn-danger {
    background: #cc0033;
}
.btn-danger:hover {
    background: #aa0022;
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0bcd6;
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e8edf5;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    border-color: #ff0044;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 68, 0.15);
}
.form-control::placeholder {
    color: #6a7a92;
}

.login-box {
    background: rgba(16, 16, 26, 0.8);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 0, 68, 0.1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    width: 320px;
}
.login-box input {
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
}
.login-box input:focus {
    border-color: #ff0044;
    outline: none;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background: #ff0044;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 16px rgba(255, 0, 68, 0.2);
}
.login-box button:hover {
    background: #ff3366;
    transform: translateY(-2px);
}

.error {
    color: #ff0044;
    margin-bottom: 10px;
}
.success {
    background: rgba(0, 200, 80, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: #66ff99;
    border-left: 3px solid #00cc55;
    margin-bottom: 20px;
}

.actions a {
    color: #b0bcd6;
    margin-left: 12px;
    transition: color 0.2s;
}
.actions a:hover {
    color: #ff0044;
}
.actions a:last-child {
    color: #ff0044;
}
.actions a:last-child:hover {
    color: #ff3366;
}

/* ============================================================
   ВИЗУАЛЬНЫЙ РЕДАКТОР
   ============================================================ */
.editor-toolbar {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px 16px 0 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.editor-toolbar button {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #b0bcd6;
    transition: 0.2s;
}
.editor-toolbar button:hover {
    background: rgba(255, 0, 68, 0.08);
    color: #fff;
}
#editor-content {
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    min-height: 250px;
    border-radius: 0 0 16px 16px;
    background: rgba(0, 0, 0, 0.2);
    color: #e8edf5;
    outline: none;
    overflow-y: auto;
}
#editor-content:focus {
    border-color: #ff0044;
    box-shadow: 0 0 0 3px rgba(255, 0, 68, 0.08);
}
#editor-content::placeholder {
    color: #6a7a92;
}