html, body {
    font-family: 'Oswald', sans-serif !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #16294C;
    color: #FFFFFF;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('team.jpg') center/cover no-repeat;
    z-index: -2;
    opacity: 0.7;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 45, 82, 0.8);
    z-index: -1;
}

/* Основное меню с логотипом - уменьшенное */
.main-menu {
    position: relative;
    width: 100%;
    background-color: rgba(15, 37, 71, 0.85);
    padding: 10px 0; /* Уменьшенный padding */
    z-index: 1000;
    backdrop-filter: blur(5px);
    top: 0;
}

.menu-container {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0 20px; /* Уменьшенный padding */
    flex-wrap: nowrap; /* Добавлено для лучшей адаптации */
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 40px; /* Уменьшено */
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
    height: 100%; /* Занимает всю высоту родителя */
}

.logo img {
    width: 90px; /* Уменьшено */
    height: 90px; /* Уменьшено */
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0);
}

.team-name {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-left: 15px;
    text-shadow: 0 2px 4px rgb(0, 49, 104);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: #cc3d00;
}

.nav-link.accent {
    background: #cc3d00;
    margin-left: 10px;
}

.nav-link.accent:hover {
    background: #ff5000;
}

.nav-link i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Выпадающие меню */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(3, 29, 62, 0.8);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.215, 0.610, 0.355, 1);
    z-index: 1001;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 49, 104, 0.7);
    border-top: 3px solid #cc3d00;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .nav-link {
    background: #cc3d00;
    border-radius: 6px 6px 0 0;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-content a {
    color: white;
    padding: 14px 25px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: #cc3d00;
    color: white;
    padding-left: 30px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .nav-link {
        padding: 12px 10px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .menu-container {
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }

    .logo-container {
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }

    .nav-wrapper {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
    }

    .nav-link {
        padding: 10px 8px;
        font-size: 13px;
    }

    .nav-link.accent {
        margin-left: 5px;
    }
}

@media (max-width: 768px) {
    .nav-link {
        padding: 8px 6px;
        font-size: 12px;
    }

    .nav-link i {
        margin-left: 5px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        gap: 3px;
    }

    .nav-link {
        padding: 6px 4px;
        font-size: 11px;
    }

    .team-name {
        font-size: 18px;
        margin-left: 10px;
    }
}

/* Основной контент */
.main-container {
    max-width: 1200px;
    margin: 15px auto; /* Уменьшено */
    padding: 20px;
    background: rgba(20, 45, 82, 0.7);
    border-radius: 20px;
    position: relative;
    z-index: 5;
}
.content-section {
    width: 100%;
}

.home-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* Уменьшено */
    padding-bottom: 12px; /* Уменьшено */
    border-bottom: 2px solid #FF6B35;
}

.home-news-header h2 {
    font-size: 22px; /* Немного уменьшено */
    font-weight: 400;
    color: white;
}

.view-all {
    color: #FF6B35;
    font-size: 14px; /* Уменьшено */
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px; /* Уменьшено */
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #FF8C5A;
}

.home-news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px; /* Уменьшено */
    list-style: none;
}

.home-news-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px; /* Уменьшено */
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #FF6B35;
}

.home-news-item h3 {
    color: white;
    font-size: 18px; /* Уменьшено */
    font-weight: 400;
    margin-bottom: 12px; /* Уменьшено */
}

.home-news-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px; /* Уменьшено */
    margin-bottom: 15px; /* Уменьшено */
    line-height: 1.6;
}

.home-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-news-meta span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px; /* Уменьшено */
}

.home-read-more {
    color: #FF6B35;
    font-size: 14px; /* Уменьшено */
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px; /* Уменьшено */
    transition: all 0.3s ease;
}

.home-read-more:hover {
    color: #FF8C5A;
    gap: 10px; /* Уменьшено */
}

@media (max-width: 768px) {
    .menu-container {
        flex-direction: row; /* Изменено с column на row */
        align-items: center;
        padding: 10px 15px; /* Уменьшено */
    }

    .logo {
        margin-bottom: 0; /* Удалено */
        margin-right: 15px; /* Добавлено */
    }

    .nav-links a {
        font-size: 14px; /* Уменьшено */
    }

    .main-container {
        margin: 15px; /* Уменьшено */
        padding: 18px; /* Уменьшено */
        border-radius: 15px; /* Уменьшено */
    }

    .home-news-header h2 {
        font-size: 18px; /* Уменьшено */
    }

    .home-news-item {
        padding: 15px; /* Уменьшено */
    }

    .home-news-item h3 {
        font-size: 16px; /* Уменьшено */
    }
}

@media (max-width: 480px) {
    .team-name {
        font-size: 14px; /* Уменьшено */
        display: none; /* Можно скрыть на очень маленьких экранах */
    }

    .logo img {
        width: 40px; /* Уменьшено */
        height: 40px; /* Уменьшено */
    }

    .main-container {
        margin: 8px; /* Уменьшено */
        padding: 12px; /* Уменьшено */
    }

    .home-news-header h2 {
        font-size: 16px; /* Уменьшено */
    }

    .home-news-item h3 {
        font-size: 14px; /* Уменьшено */
    }
}

.site-footer {
    background: rgb(8, 32, 60);
    color: #fff;
    padding: 40px 20px;
}

/* Верхняя часть с партнёрами */
.footer-top h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    letter-spacing: 1px;
}

.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

/* Общие стили для партнёров */
.partner {
    text-align: center;
}

.partner img {
    display: block;
    margin: 0 auto 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.partner:hover img {
    transform: scale(1.05);
}

.partner span {
    display: block;      /* ✅ теперь отступы сверху будут работать */
    font-size: 14px;
    opacity: 0.8;
    text-align: center;  /* чтобы текст был ровно под логотипом */
    margin-top: 8px;     /* базовый отступ */
}

/* === Индивидуальные стили для каждого партнёра === */

/* Партнёр 1 — Россети Волга */
.partner-1 img {
    max-height: 120px;
    object-fit: cover;
    filter: brightness(70); /* Цветной логотип */
    margin-top: 40px;
}
.partner-1 span {
    color: #ffffff; /* Индивидуальный акцент */
    padding-top: 55px;
}

/* Партнёр 2 — Орскнефтеоргсинтез */
.partner-2 img {
    max-height: 160px;
    max-width: 100%;
    object-fit: cover;
    filter: brightness(100); /* Лёгкая стилизация */
}
.partner-2 span {
    color: #ffffff;
}

/* Партнёр 3 — Альфа Банк */
.partner-3 img {
    max-height: 65px;
    object-fit: cover;
    filter: drop-shadow(0 0 5px rgb(0, 49, 104));
    margin-top: 40px;
}
.partner-3 span {
    color: #ffffff; /* Красный акцент */
    font-weight: 600;
    margin-top: 65px;
}

/* Партнёр 4 — Правительство Оренбургской области */
.partner-4 img {
    max-height: 80px;
    filter: brightness(100);
    margin-top: 30px;
}
.partner-4 span {
    color: #ffffff;
    margin-top: 60px;
}

.partner span {
    font-size: 14px;
    opacity: 0.8;
}

/* Нижняя часть с колонками */
.footer-bottom {
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    margin: 4px 0;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ff5000;
}

.footer-social {
    text-align: center;
}

.footer-social h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 30px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff5000;
}

/* Адаптив */
@media (max-width: 992px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.calendar-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(20, 45, 82, 0.7);
    border-radius: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B35;
}

.calendar-title {
    font-size: 24px;
    color: white;
    text-transform: uppercase;
}

.month-navigation {
    display: flex;
    gap: 15px;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

.calendar-table th {
    color: #FF6B35;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.calendar-table td {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    vertical-align: top;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-day {
    background: transparent;
    border: none !important;
}

.game-legend {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.home-color {
    background-color: #FF6B35; /* Оранжевый */
}

.away-color {
    background-color: rgba(255, 255, 255, 0.55); /* Белый */
    border: 1px solid #ccc;
}

.home-game {
    background-color: rgba(255, 107, 53, 0.2) !important; /* Оранжевый для домашних игр */
    border-left: 3px solid #FF6B35 !important;
}

.away-game {
    background-color: rgba(255, 255, 255, 0.55) !important; /* Белый для выездных */
    border-left: 3px solid #ffffff !important;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    z-index: 1;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #003168;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

.form-group {
    margin-bottom: 20px;

}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
}

.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.form-group select:focus {
    border-color: var(--secondary-color); /* твой оранжевый */
    box-shadow: 0 0 10px rgba(255, 80, 0, 0.4);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #FF6B35;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #e05a2b;
}

.team-logo {
    text-align: center;
    margin-bottom: 20px;
}

.team-logo img {
    height: 60px;
}

/* Админ панель */
.admin-panel {
    background: rgba(20, 45, 82, 0.9);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF6B35;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 500;
    color: white;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: white;
    font-size: 16px;
}

.logout-btn {
    background: linear-gradient(135deg, #cc3d00, #ff5000);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff5c00, #cc3d00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
    color: white;
    background: rgba(255, 107, 53, 0.3);
}

.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.news-controls h2 {
    font-size: 22px;
    font-weight: 400;
    color: white;
}

.add-news-btn {
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-news-btn:hover {
    background: linear-gradient(135deg, #ff5c00, #cc3d00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
    transform: translateY(-2px);
}

.home-news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-item-admin {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.news-item-admin:hover {
    border-color: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-info {
    flex: 1;
}

.news-info h3 {
    color: white;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
}

.news-date {
    color: rgb(255, 255, 255);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-preview {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.5;
}

.news-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.news-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-btn {
    background: rgba(0, 123, 255, 0.8);
    color: white;
}

.edit-btn:hover {
    background: rgba(0, 123, 255, 1);
}

.delete-btn {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-item-admin {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* Стили для поиска */
.search-add-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: white;
    font-size: 15px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff5b00, #cc3d00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
}

.no-results {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px;
    font-size: 16px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #16294C;
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
    color: white;
    font-size: 22px;
    font-weight: 500;
}

.close-modal {
    color: rgb(188, 0, 44);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #ff5000;
}

.modal-body {
    padding: 10px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 15px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.save-btn {
    background: linear-gradient(135deg, #ff5c00, #cc3d00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}
/* фильтрация */
.date-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

.date-filter label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.date-filter input {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    transition: all 0.3s;
}

.date-filter input:focus {
    border-color: rgb(255, 80, 0);
    outline: none;
}

/* Общие кнопки */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* применения фильтра */
.apply-filter-btn {
    background: rgba(0, 123, 255, 0.8);
    color: white;
}

.apply-filter-btn:hover {
    background: rgba(0, 123, 255, 1);
}

/* сброс */
.reset-filter-btn {
    background: rgba(108, 117, 125, 0.8);
    color: white;
}

.reset-filter-btn:hover {
    background: rgba(108, 117, 125, 1);
}

/* кнопки удаления */
.delete-confirm-btn {
    background: rgba(220, 53, 69, 0.8);
    color: white;
    padding: 10px 20px;
}

.delete-confirm-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* Стили модального окна */
#filter-modal .modal-content {
    max-width: 500px;
}

#filter-modal .form-group {
    margin-bottom: 25px;
}

#filter-modal .form-group label {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 16px;
}

#filter-modal .form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
}

#filter-modal .form-group input:focus {
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3);
}

#filter-modal .form-actions {
    margin-top: 30px;
    justify-content: space-between;
}

/* Дополнительные элементы */
.filter-btn {
    background: linear-gradient(135deg, #ff6824, rgba(204, 61, 0, 0.75));;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
    transform: none;
}

.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-add-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0; /* Добавлено для правильного сжатия элементов */
}

.search-box {
    flex: 1;
    min-width: 200px; /* Минимальная ширина поля поиска */
    max-width: 400px; /* Максимальная ширина поля поиска */
}

.filter-btn, .add-news-btn {
    white-space: nowrap; /* Запрещаем перенос текста в кнопках */
}

@media (max-width: 768px) {
    .news-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-add-container {
        width: 100%;
        flex-wrap: wrap;
    }

    .search-box {
        min-width: 100%;
        order: 1;
    }

    .filter-btn, .add-news-btn {
        order: 2;
    }
}

/* превью изображений в списке новостей */
.news-image {
    margin-top: 10px;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* превью в модальных окнах */
.image-preview {
    margin-top: 10px;
    width: 100px;
    height: 100px;
    display: none;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.team-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1a3e72;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.position-title {
    font-size: 28px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003168;
    color: #1a3e72;
    text-transform: uppercase;
}

.players-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    align-items: flex-start;
}

.player-card {
    width: 240px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition:
            transform 0.3s ease,
            box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 30px;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.player-additional-info {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
            max-height 0.3s ease,
            opacity 0.3s ease,
            padding 0.3s ease;
    position: relative; /* Добавляем */
    z-index: 1; /* Добавляем */
}

.player-card:hover .player-additional-info {
    max-height: 200px;
    opacity: 1;
    padding-top: 15px;
    z-index: 2; /* Поднимаем только дополнительную информацию */
}

.player-photo {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 3px solid #003168;
    background: rgba(240, 240, 240, 0.84);
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1a3e72;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
    transition: color 0.3s ease;
}

.player-card:hover .player-name {
    color: #e74c3c; /* Новый цвет при наведении */
}

.player-number {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #003168;
    margin: 5px 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.player-main-details {
    text-align: center;
    margin-bottom: 10px;
}

.player-detail-item {
    margin-bottom: 5px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.player-age {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.player-additional-info {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.player-card:hover .player-additional-info {
    max-height: 200px; /* Достаточно для отображения */
    opacity: 1;
    padding-top: 15px;
}

.additional-item {
    text-align: center;
}

.additional-label {
    font-size: 11px;
    color: #999; /* Серый цвет для неактивного состояния */
    text-transform: uppercase;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.player-card:hover .additional-label {
    color: #666; /* Темнее при наведении */
}

.additional-value {
    font-size: 14px;
    font-weight: 600;
    color: #999; /* Серый цвет для неактивного состояния */
    transition: color 0.3s ease;
}

.player-card:hover .additional-value {
    color: #333; /* Темнее при наведении */
}

.team-photo-section {
    margin-top: 50px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.team-photo {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .team-title {
        font-size: 28px;
    }

    .position-title {
        font-size: 24px;
    }

    .player-card {
        width: 100%;
        max-width: 300px;
        min-height: auto;
        margin-bottom: 20px;
    }
}

/* История клуба - текстовая часть */
.history-header h1 {
    font-size: 36px;
    font-weight: 500;
    color: white;
    margin-bottom: 25px; /* Увеличиваем отступ снизу */
    position: relative;
    padding-bottom: 15px; /* Добавляем отступ внутри элемента */
}

.history-header h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255, 107, 53, 0);
    border-radius: 3px;
}

.history-text-content {
    margin-bottom: 50px;
}

.history-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.history-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF6B35;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.history-section h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.history-section:hover h2 {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}

.history-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.history-section:hover p {
    color: rgba(255, 255, 255, 0.95);
}

/* Галерея с фотографиями */
.history-gallery {
    margin: 60px 0;
}

.history-gallery h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: white;
    font-weight: 500;
}

.history-slider {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-slider .swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.history-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
}

.swiper-button-prev, .swiper-button-next {
    color: rgba(204, 61, 0, 0.49) !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
}

.swiper-pagination-bullet-active {
    background: #FF6B35 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .history-header h1 {
        font-size: 28px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .history-slider {
        height: 350px;
    }

    .history-section:hover {
        transform: translateY(-3px);
    }

    .history-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .history-slider {
        height: 250px;
    }

    .history-gallery h2 {
        font-size: 24px;
    }

    .slide-caption {
        font-size: 14px;
        padding: 10px;
    }
}

/* Достижения клуба - динамические */
.history-achievements {
    margin: 60px 0;
    padding: 30px 0;
}

.history-achievements h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: white;
    font-weight: 500;
    position: relative;
}

.history-achievements h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #FF6B35;
    margin: 15px auto 0;
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.achievement-block {
    background: rgba(20, 45, 82, 0.7);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.achievement-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.achievement-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.achievement-block.gold:before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.achievement-block.silver:before {
    background: linear-gradient(90deg, #C0C0C0, #A8A8A8);
}

.achievement-block.bronze:before {
    background: linear-gradient(90deg, #CD7F32, #A67C52);
}

.achievement-block.special:before {
    background: linear-gradient(90deg, #FF6B35, #FF8C5A);
}

.achievement-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.achievement-header i {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.achievement-block:hover .achievement-header i {
    transform: scale(1.1);
}

.achievement-block.gold .achievement-header i {
    color: #FFD700;
}

.achievement-block.silver .achievement-header i {
    color: #C0C0C0;
}

.achievement-block.bronze .achievement-header i {
    color: #CD7F32;
}

.achievement-block.special .achievement-header i {
    color: #FF6B35;
}

.achievement-header h3 {
    font-size: 22px;
    color: white;
    margin: 0;
    font-weight: 500;
}

.achievement-years {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 40px;
}

.achievement-years span {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
}

.achievement-block:hover .achievement-years span {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.achievement-footer {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    margin-top: 15px;
}

/* Анимация при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.achievement-block {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .achievements-container {
        grid-template-columns: 1fr 1fr;
    }

    .achievement-header i {
        font-size: 40px;
    }

    .achievement-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .achievements-container {
        grid-template-columns: 1fr;
    }

    .history-achievements h2 {
        font-size: 28px;
    }
}

/* Стили для заглушек слайдов */
.placeholder-slide {
    background: rgba(20, 45, 82, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

.slide-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.3);
}

.slide-placeholder p {
    font-size: 18px;
    margin: 0;
}

/* Улучшенные стили для fallback-контента */
.history-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-section h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(204, 61, 0, 0.78);
}

/* Анимация для заглушек */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.placeholder-slide .slide-placeholder i {
    animation: pulse 2s infinite ease-in-out;
}

/* Адаптивность для заглушек */
@media (max-width: 768px) {
    .slide-placeholder i {
        font-size: 40px;
    }
    .slide-placeholder p {
        font-size: 16px;
    }
}

/* Новости */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 36px;
    font-weight: 500;
    color: white;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.news-header h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 15px var(--secondary-color);
    border-radius: 3px;
}

.news-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Слайдер новостей */
.featured-news {
    margin-bottom: 15px;
}

.featured-news h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 107, 53, 40);
}

.news-slider {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px;
    color: white;
}

.news-slide-info .news-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 1px;
}

.news-slide-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-slide-info p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.read-more {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more:hover {
    color: #FF8C5A;
    transform: translateX(5px);
}

.read-more i {
    margin-left: 5px;
    font-size: 12px;
}

/* Список всех новостей */
.all-news h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.5);
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: rgb(255, 80, 0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.news-item-image {
    width: 300px;
    flex-shrink: 0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    padding: 25px;
    flex: 1;
}

.news-item-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-item-content h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item-content h3 a:hover {
    color: #FF6B35;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.news-pagination .page-btn {
    background: rgba(204, 61, 0, 0.35);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-pagination .page-btn:hover {
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
}

.news-pagination .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(204, 61, 0, 0.5);
}

.news-pagination .current-page {
    color: white;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

.news-pagination .page-btn i {
    font-size: 14px;
    vertical-align: middle;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: #FF6B35;
    color: white;
}

.page-link.next {
    width: auto;
    padding: 0 15px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .news-slider {
        height: 350px;
    }

    .news-item-image {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .news-slider {
        height: 300px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 200px;
    }

    .news-header h1 {
        font-size: 28px;
    }

    .featured-news h2, .all-news h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .news-slider {
        height: 250px;
    }

    .news-slide-info {
        padding: 15px;
    }

    .news-slide-info h3 {
        font-size: 20px;
    }

    .news-header h1 {
        font-size: 24px;
    }
}

/* Дополнительные стили для страницы новости */
.news-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-title {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.news-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 15px var(--secondary-color);
    border-radius: 3px;
}

.news-meta-container {
    display: flex;
    margin-bottom: 30px;
}


.meta-line {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-item {
    display: flex;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.meta-item > i {
    margin-right: 6px;
    background: linear-gradient(135deg, #ff6824, rgba(204, 61, 0, 0.75));
    display: inline;
}

.meta-item span {
    display: inline; /* текст рядом с иконкой */
}

.meta-item > div.news-date {
    margin-top: 5px;
    font-size: 13px;
    background: linear-gradient(135deg, #ff6824, rgba(204, 61, 0, 0.75));
    color: #fff;
}



@media (max-width: 480px) {
    .meta-line {
        gap: 10px;
    }

    .meta-separator {
        display: none;
    }
}

.news-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-slider {
    width: 100%;
    height: 900px; /* фиксированная высота */
    overflow: hidden;
    border-radius: 10px;
}

.gallery-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.gallery-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* картинка заполняет слайд, обрезая лишнее */
    display: block;
}

.news-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.content-placeholder {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
    background-size: 200% 100%;
    animation: placeholderShine 2s infinite;
    height: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

@keyframes placeholderShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.news-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
}

.news-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-tag {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.news-tag:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.back-link {
    color: #FF6B35;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255, 107, 53, 0.1);
}

.back-link:hover {
    color: #FF8C5A;
    transform: translateX(-5px);
    background: rgba(255, 107, 53, 0.2);
}

.back-link i {
    margin-right: 5px;
}

/* Современные элементы */
.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.vk { background: #4A76A8; }
.share-btn.telegram { background: #0088cc; }

/* Анимация загрузки контента */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-content {
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 768px) {
    .news-title {
        font-size: 28px;
    }

    .gallery-slider {
        height: 350px;
    }

    .news-content {
        padding: 20px;
    }

    .news-meta {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 24px;
    }

    .gallery-slider {
        height: 250px;
    }

    .news-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .back-link {
        width: 100%;
        justify-content: center;
    }
}

.view-all {
    color: rgba(204, 85, 0, 0.89);
    text-decoration: none;
    font-weight: bold;
}

/* Стили для контактной страницы */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.arena-info {
    flex: 1;
    min-width: 300px;
}

/* Контейнер для фото */
.arena-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    padding: 2px; /* Толщина границы */
    overflow: hidden;
    background: linear-gradient(270deg, #ff7a00, #ff4500, #ff7a00, #ffb347);
    background-size: 600% 600%;
    animation: borderFlow 6s linear infinite;
}

/* Само изображение */
.arena-wrapper .arena-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    align-content: center;
}

/* Анимация движения градиента */
@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.map-container {
    height: 400px;
    width: 100%;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-details {
    margin-top: 20px;
}

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

.contact-item i {
    margin-right: 10px;
    color: #ffffff;
    width: 20px;
    text-align: center;
}

/* Контейнер тренеров как сетка */
#coaches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Карточка тренера */
.coach-card {
    width: 100%;
    max-width: 270px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 4px solid rgba(20, 45, 82, 0.66); /* оранжевая акцентная полоса */
}

.coach-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* Фото тренера */
.coach-photo {
    height: 240px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid #e0e0e0;
}

/* Информация */
.coach-info {
    padding: 20px 15px 25px;
}

.coach-name {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 6px;
    color: #1a3e72;
    text-transform: uppercase;
    line-height: 1.3;
}

.coach-position {
    font-size: 0.95em;
    color: #555;
    font-weight: 500;
}

.coaches-title{
    display: flex;
    padding: 20px;
    justify-content: center;
    color: #003168;
}

/* Разделение имени на строки */
.coach-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    margin-bottom: 6px;
}

/* Имя и отчество */
.coach-name span.name-prefix {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9em;
    padding: 5px;
    color: #555;
}

/* Фамилия (акцент) */
.coach-name span.name-surname {
    font-size: 1.2em;
    font-weight: 800;
    color: #1a3e72;
}

/* При наведении: фамилия — оранжевая */
.coach-card:hover .coach-name span.name-surname {
    color: #ff5000;
}

/* При наведении: нижняя граница становится оранжевой */
.coach-card:hover {
    border-bottom: 4px solid #cc3d00;
}

:root {
    --primary-color: #16294C;
    --secondary-color: #ff5000;
    --text-color: #FFFFFF;
    --accent-color: rgb(204, 61, 0);
    --dark-bg: #0A1128;
}

.player-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 41, 76, 0.85) 0%, rgba(10, 17, 40, 0.85) 100%),
    url('.jpeg') center/cover no-repeat fixed;
    background-attachment: local; /* вместо fixed */
    color: white;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    min-height: 500px;
    overflow: hidden;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.7);
}

.player-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 15px var(--secondary-color);
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-name {
    flex: 1;
    text-align: left;
    padding-right: 40px;
    animation: fadeInLeft 1s ease-out;
}

.hero-number {
    flex-shrink: 0;
    animation: fadeInRight 1s ease-out;
}

.player-hero h1 {
    font-size: 72px;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.player-hero .position {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.player-hero .number {
    font-size: 180px;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 0.8;
    text-shadow: 0 0 20px rgba(255, 80, 0, 0.38);
    position: relative;
    display: inline-block;
}

.player-hero .number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transform: scaleX(0);
    transform-origin: right;
    animation: scaleIn 1.5s ease-out forwards;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgb(204, 61, 0);
    background: rgba(255, 255, 255, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(0,166,251,0.1) 100%);
    z-index: -1;
}

.stat-card h2 {
    font-size: 48px;
    color: var(rgb(255, 255, 255));
    margin: 0;
    line-height: 1;
}

.stat-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.player-profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 60px auto;
    max-width: 1200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.player-profile-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgb(204, 61, 0);
    z-index: -1;
    animation: rotate 30s linear infinite;
}

.profile-photo {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    height: 500px;
}

.profile-photo img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.profile-photo:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.profile-photo:hover img {
    transform: scale(1.05);
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22,41,76,0.3) 0%, rgba(255,107,53,0.2) 100%);
    z-index: 1;
}

.profile-info {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    align-content: start;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--secondary-color);
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.info-box h4 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.info-box p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* Анимации */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}


/* Адаптивность */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-name {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .player-hero h1 {
        font-size: 56px;
    }

    .player-hero .number {
        font-size: 120px;
    }
}

@media (max-width: 768px) {
    .player-hero {
        padding: 60px 20px;
        min-height: 400px;
    }

    .player-hero h1 {
        font-size: 42px;
    }

    .player-hero .number {
        font-size: 100px;
    }

    .profile-photo {
        min-width: 100%;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .player-hero h1 {
        font-size: 36px;
    }

    .player-hero .number {
        font-size: 80px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

:root {
    --primary: #0a1f3d;
    --secondary: #ff5000;
    --accent: #1a73e8;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #2e7d32;
    --danger: #bc002c;
    --gray: #6c757d;
}


.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.stats-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1a3e6f 100%);
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.stats-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
}

.stats-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stats-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 15px var(--secondary-color);
    margin: 15px auto 0;
}

.stats-subtitle {
    font-weight: 300;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Position Section */
.position-section {
    margin-bottom: 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--primary);
    color: white;
}

.position-title-s {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.best-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--secondary);
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Stats Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table thead th {
    padding: 18px 25px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-bottom: 2px solid #f0f0f0;
}

.stats-table tbody td {
    padding: 16px 25px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background-color: #f8fafc;
}

.player-number-s {
    font-weight: 700;
    color: var(--primary);
    width: 50px;
}

.player-name-s {
    font-weight: 500;
    min-width: 100px;
    color: var(--primary);
}

.stat-value {
    font-weight: 600;
    color: var(--primary);
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--danger);
}

.highlight {
    background-color: rgba(26, 115, 232, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-header {
        padding: 40px 0 30px;
    }

    .stats-title {
        font-size: 2rem;
    }

    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }

    .stats-table thead th,
    .stats-table tbody td {
        padding: 12px 15px;
    }

    .stats-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stats-table thead th:nth-child(n+4),
    .stats-table tbody td:nth-child(n+4) {
        display: none;
    }
}

:root {
    --prim-color: #ff5000;
    --sec-color: #003168;
    --acc-color: #ffffff;
    --t-light: #F5F5F5;
}

.shop-header {
    background: linear-gradient(135deg, #0A1F3D 40%, rgba(0, 49, 104, 0.65) 100%);
    color: var(--acc-color);
    padding: 60px 0 30px;
    margin-bottom: 40px;
    text-align: center;
}

.shop-title {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.container-atributika {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили для блока хитов продаж */
.featured-section {
    background-color: var(--acc-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 60px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--prim-color);
    padding-bottom: 15px;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--sec-color);
    margin: 0;
    text-transform: uppercase;
}

.featured-title-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--sec-color);
    margin: 0;
    text-transform: uppercase;
}

/* Главный тег "ХИТ" (под изображением) */
.featured-badge {
    align-self: flex-start; /* Выравниваем по левому краю */
    background: #ff5c00;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px; /* Отступ от изображения */
    order: -1; /* Перемещаем выше категории */
}

/* Остальные теги (под категорией) */
.merch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.merch-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgb(71, 99, 216);
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.featured-item {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #f1f1f1;
}

.product-category {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #bc002c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(204, 61, 0, 0.1);
}

.featured-item:hover::after {
    opacity: 1;
}

.featured-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(174, 52, 0, 0.2), rgba(255, 80, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.featured-item-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.featured-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--sec-color);
}

.featured-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--prim-color);
}

.featured-tags {
    margin-top: 15px;
}

.featured-tag {
    display: inline-block;
    background: rgba(10, 31, 61, 0.1);
    color: var(--sec-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Стили для остальных товаров */
.products-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sec-color);
    margin: 0 0 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--prim-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination .nav-button {
    background: rgba(204, 61, 0, 0.35);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination .nav-button:hover {
    background: rgb(204, 61, 0);
}

.pagination .nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(204, 61, 0, 0.35);
}

.pagination #page-indicator {
    color: white;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.standings-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.standings-pagination .nav-button {
    background: rgba(204, 61, 0, 0.4);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.standings-pagination .nav-button:hover {
    background: rgb(204, 61, 0);
}

.standings-pagination .nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(204, 61, 0, 0.4);
}

.standings-pagination #standings-page-indicator {
    color: white;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.add-schedule-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6824, rgba(204, 61, 0, 0.75));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.4);
}

.add-schedule-btn i {
    font-size: 16px;
}

.add-schedule-btn:hover {
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.6);
    transform: translateY(-2px);
}

.add-schedule-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(255, 80, 0, 0.4);
}

.match-card-sc {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* выравниваем кнопки */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.match-card-sc:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.match-main-sc {
    flex: 1;
    text-align: center;
}

/* --- Команды и счёт в одну строку --- */
.match-row-sc {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.team-name-sc {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    min-width: 120px;
    text-align: center;
}

.match-score-sc {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    min-width: 100px;
}

.vs-separator-sc {
    margin: 0 6px;
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Дата, время, город --- */
.match-meta-sc {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 6px;
    font-size: 14px;
    color: #bbb;
    align-items: center;
}

.match-meta span i {
    margin-right: 5px;
}

.match-actions-sc {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* Общие стили кнопок */
.match-actions-sc button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

/* Кнопка редактирования */
.match-actions-sc .edit-btn {
    background: #0d6efd;
}

.match-actions-sc .edit-btn:hover {
    background: #0b5ed7;
}

/* Кнопка удаления */
.match-actions-sc .delete-btn {
    background: #dc3545;
}

.match-actions-sc .delete-btn:hover {
    background: #bb2d3b;
}

/* Иконки внутри кнопок */
.match-actions-sc button i {
    font-size: 14px;
}

/* Чтобы кнопки ровно стояли справа */
.match-card-sc {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Адаптив для узких экранов */
@media (max-width: 1024px) {
    .match-card-sc {
        flex-wrap: wrap;            /* разрешаем перенос */
        align-items: flex-start;    /* выравниваем по верху */
    }

    .match-actions-sc {
        width: 100%;                /* кнопки займут всю ширину */
        margin-top: 10px;           /* небольшой отступ сверху */
        justify-content: flex-start;
        flex-direction: column;     /* кнопки одна под другой */
    }

    .match-actions-sc button {
        width: 100%;                /* каждая кнопка на всю ширину */
    }
}

/* Кнопка "Добавить игрока" */
.add-player-btn {
    background: linear-gradient(135deg, #ff5c00, #cc3d00);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3);
}

.add-player-btn:hover {
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.5);
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-btn, .delete-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-divider {
    color: rgba(204, 204, 204, 0);
    font-size: 14px;
}

.players-table {
    width: 100%;
    border-collapse: collapse; /* чтобы паддинги лучше работали */
    border-spacing: 0 8px; /* добавляет вертикальный зазор между строками */
}

.players-table th,
.players-table td {
    padding: 16px 30px; /* больше воздуха по горизонтали и вертикали */
    text-align: left;
}

/* Дополнительно увеличим минимальные ширины для читаемости */
.players-table th:nth-child(1), /* Фото */
.players-table td:nth-child(1) {
    min-width: 100px;
}

.players-table th:nth-child(2), /* Имя */
.players-table td:nth-child(2) {
    min-width: 180px;
}

.players-table th:nth-child(3), /* Позиция */
.players-table td:nth-child(3) {
    min-width: 140px;
}

.players-table th:nth-child(4), /* Номер */
.players-table td:nth-child(4) {
    min-width: 80px;
    text-align: center;
}

.players-table th:nth-child(5), /* Возраст */
.players-table td:nth-child(5) {
    min-width: 90px;
    text-align: center;
}

.players-table th:nth-child(6), /* Действия */
.players-table td:nth-child(6) {
    min-width: 200px; /* чтобы кнопки не слипались */
    text-align: center;
}


/* Кнопки внутри таблицы */
.players-table .edit-btn,
.players-table .delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Синяя кнопка "Изменить" */
.players-table .edit-btn {
    background: #007bff;
    color: #fff;
}

.players-table .edit-btn:hover {
    background: #0056b3;
}

/* Красная кнопка "Удалить" */
.players-table .delete-btn {
    background: #dc3545;
    color: #fff;
}

.players-table .delete-btn:hover {
    background: #b52a37;
}

/* Фото игрока в таблице */
.players-table .player-photo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

/* Плашки с позициями */
.position-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Цвета для разных позиций */
.position-badge.goalkeeper {
    background: rgba(0, 123, 255, 0.6);
}
.position-badge.defender {
    background: rgba(0, 200, 100, 0.6);
}
.position-badge.forward {
    background: rgba(255, 100, 0, 0.6);
}

/* Нет данных */
.no-results {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

/* Контейнер игроков */
#players-container {
    margin-top: 30px;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 12px; /* закругляем углы */
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
}

.modal-content-small {
    background-color: #16294C;
    margin: 15% auto;  /* немного выше по вертикали */
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Тело маленького модального окна */
.modal-content-small .modal-body-t {
    padding: 10px 0;
    overflow-y: visible; /* убираем скролл */
}

.modal-content-small .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}


.modal-t {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* Сам контейнер модального окна */
.modal-content-t {
    background-color: #16294C;
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;           /* ограничиваем высоту */
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* ВАЖНО: делаем прокрутку только для body модального окна */
.modal-body-t {
    flex: 1;                    /* занимает всё доступное пространство */
    overflow-y: auto;           /* скроллим внутри */
    padding: 10px 0 20px;       /* добавляем отступ снизу */
    scrollbar-width: thin;      /* тонкий скролл в Firefox */
}

/* Для красоты – стили скроллбара */
.modal-body-t::-webkit-scrollbar {
    width: 6px;
}
.modal-body-t::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.modal-body-t::-webkit-scrollbar-track {
    background: transparent;
}

.players-table {
    width: 100%;
    border-radius: 12px;
    border-collapse: collapse;
    background: rgba(20, 45, 82, 0.11);
}

.players-table th, .players-table td {
    padding: 12px 15px;
    text-align: left;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
}

.players-table th {
    font-weight: bold;
}

.players-table td:last-child {
    border-bottom: none;
}

/* Кнопки действий */
.table-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
}

.table-actions button {
    padding: 6px 12px;
    border: none;
    height: 100px;          /* фиксируем высоту */
    line-height: 100px;
    border-radius: 6px;
    cursor: pointer;
}

/* ✅ Адаптив: каждая строка превращается в карточку */
@media (max-width: 996px) {
    .players-table thead {
        display: none; /* скрываем шапку */
    }

    .players-table,
    .players-table tbody,
    .players-table tr,
    .players-table td {
        display: block;
        width: 100%;
    }

    /* Каждая строка становится карточкой */
    .players-table tr {
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid rgb(255, 255, 255);
        border-radius: 8px;
        background: rgba(0, 49, 104, 0.55);
    }

    /* Убираем разрывы данных — каждая td с заголовком */
    .players-table td {
        text-align: left;
        padding: 8px 0;
        position: relative;
    }

    /* Добавляем заголовок перед значением */
    .players-table td:nth-child(1)::before {
        content: "Фото: ";
        font-weight: bold;
        color: #ff7e24;
    }
    .players-table td:nth-child(2)::before {
        content: "ИМЯ: ";
        font-weight: bold;
        color: #ff7e24;
    }
    .players-table td:nth-child(3)::before {
        content: "ПОЗИЦИЯ:";
        font-weight: bold;
        color: #ff7e24;
        display: block;
    }

    .players-table td:nth-child(4)::before {
        content: "НОМЕР:";
        font-weight: bold;
        color: #ff7e24;
        display: block;
        text-align: left;
    }

    .players-table td:nth-child(5)::before {
        content: "ВОЗРАСТ:";
        font-weight: bold;
        color: #ff7e24;
        display: block;
        text-align: left;
    }


    /* Кнопки теперь идут вертикально */
    .table-actions {
        flex-direction: column;
    }

    .table-actions button {
        width: 100%;
        min-width: 150px;
    }
}

/* Основные стили админ-панели */
.admin-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.admin-content:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.staff-controls {
    margin-bottom: 25px;
}

.staff-controls h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Стили для табов */
.staff-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    margin-right: 5px;
    transition: all 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.tab-btn.active {
    color: #da7447;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff5000, #cc3d00);
    border-radius: 3px 3px 0 0;
}

.tab-btn:hover:not(.active) {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}



.add-staff-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff5000, rgba(255, 74, 0, 0.62));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgb(128, 69, 47);
}

.add-staff-btn:hover {
    background: linear-gradient(135deg, #e66b36, #aa3700);
    box-shadow: 0 6px 18px rgba(129, 63, 39, 0.62);
    transform: translateY(-1px);
}

.add-staff-btn i {
    font-size: 14px;
}

/* Стили для списка персонала */
.staff-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Карточка теперь вертикальная */
.staff-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;  /* ВЕРТИКАЛЬНОЕ выравнивание */
    align-items: flex-start; /* контент выровнен влево */
    border: 1px solid rgba(255, 74, 0, 0.3);
    flex-wrap: wrap;
    transition: all 0.3s;
    padding: 20px;
    margin-bottom: 15px;
    gap: 15px;
}

.staff-card:hover {
    box-shadow: 0 4px 12px rgb(255, 80, 0);
    transform: translateY(-2px);
}

/* Фото + текст теперь тоже в столбик */
.staff-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px; /* чтобы отделить от кнопок */
    flex: 1; /* занимает всё доступное пространство */
    min-width: 250px;
}

/* Фото остаётся слева */
.staff-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
}

.staff-info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Имя + должность + год */
.staff-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.staff-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 6px;
    width: fit-content;
}

.staff-since {
    color: #fff;
    font-size: 14px;
}

/* Кнопки теперь ВНИЗУ и в РЯД */
.staff-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start; /* по левому краю */
    margin-top: 10px;  /* чтобы отделить от инфо */
}

.staff-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 110px;
    white-space: nowrap;
}

/* Цвета кнопок */
.staff-actions .edit-btn {
    background: rgba(13, 110, 253, 0.8);
    color: #fff;
}
.staff-actions .edit-btn:hover {
    background: rgba(11, 94, 215, 0.9);
}

.staff-actions .delete-btn {
    background: rgba(220, 53, 69, 0.8);
    color: #fff;
}
.staff-actions .delete-btn:hover {
    background: rgba(187, 45, 59, 0.9);
}

/* Узкие экраны (например, ноутбуки, ширина < 1024px) */
@media (max-width: 1024px) {
    .staff-card {
        flex-wrap: wrap; /* разрешаем перенос элементов */
        flex-direction: column;
        align-items: flex-start;
    }

    .staff-actions {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column; /* кнопки одна под другой */
        margin-left: auto; /* прижимаем их к правому краю */
        gap: 8px;
    }

    .staff-actions button {
        width: 140px; /* делаем их чуть шире, чтобы текст не ломался */
    }
}

/* Мобильная версия (ещё уже) */
@media (max-width: 480px) {
    .staff-card {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-info {
        flex-direction: column;
        text-align: center;
    }

    .staff-actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .staff-actions button {
        width: 100%;
    }
}


/* Мобильная версия */
@media (max-width: 768px) {
    .staff-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .staff-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
}
/* Контейнер атрибутики */
.merchandise-admin-container {
    background: rgba(20, 45, 82, 0.66);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.merchandise-header {
    margin-bottom: 20px;
}

.merchandise-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Панель управления */
.controls-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.add-merch-btn {
    background: linear-gradient(135deg, #ff5c00, #cc3d00);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.add-merch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b1a, #e14a00);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.add-merch-btn:hover::before {
    opacity: 1;
}

.add-merch-btn:hover {
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.5);
    transform: translateY(-1px);
}

.category-filter {
    position: relative;
}

.category-filter select {
    padding: 10px 15px;
    padding-right: 35px; /* Добавляем место для кастомной стрелки */
    border-radius: 4px;
    background: linear-gradient(135deg, #ff6824, rgba(204, 61, 0, 0.75));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    appearance: none; /* Убираем стандартную стрелку */
    -webkit-appearance: none; /* Для Safari и Chrome */
    -moz-appearance: none; /* Для Firefox */
}

/* Кастомная стрелка */
.category-filter::after {
    content: "▼";
    font-size: 10px;
    color: #fff;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.category-filter select:hover {
    background: linear-gradient(135deg, #ff7b3d, rgba(204, 61, 0, 0.85));
}

.category-filter select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 104, 36, 0.3);
}

/* Таблица товаров */
.merch-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.merch-table th {
    background: rgb(255, 255, 255);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #cc3d00;
    border-bottom: 2px solid rgba(202, 202, 202, 0.6);
}

.merch-table tr:hover {
    background-color: transparent;
}


.merch-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.merch-table tr:hover {
    background-color: rgba(255, 74, 0, 0.62);
}

.merchandise-list {
    background: transparent;
    padding: 0;
    margin-top: 20px;
}


/* Стили для изображений товаров */
.merch-image-container {
    width: 120px; /* Фиксированная ширина */
    height: 120px; /* Фиксированная высота */
    flex-shrink: 0; /* Запрещаем уменьшение */
    border-radius: 8px;
    overflow: hidden; /* Обрезаем выходящие за границы части */
    position: relative; /* Для позиционирования бейджа */
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5; /* Фон на случай прозрачных изображений */
}

.merch-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняем контейнер с сохранением пропорций */
    object-position: center; /* Центрируем изображение */
}

.merch-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px; /* Увеличиваем отступ между карточками */
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 74, 0, 0.3); /* Меняем на тонкую границу */
    transition: all 0.3s ease;
}

/* Убираем оранжевую линию при наведении */
.merch-item:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.2); /* Делаем тень менее заметной */
    border: 1px solid rgba(255, 74, 0, 0.5); /* Усиливаем границу при наведении */
}

.merch-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.merch-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.merch-price {
    font-size: 16px;
    font-weight: 700;
    color: #ffae75;
    margin: 0;
}

.merch-category {
    display: inline-block;
    padding: 4px 8px;
    background: rgb(232, 71, 0);
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    margin-right: 8px;
    min-width: 0;
    max-width: 73px;
    white-space: nowrap;
}

.merch-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.merch-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    transition: all 0.2s ease;
}

.featured-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #bc002c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.edit-btn {
    background: rgba(0, 123, 255, 0.8);
    color: white;
}

.edit-btn:hover {
    background: rgba(0, 123, 255, 1);
}

.delete-btn {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* Состояние загрузки */
.loading {
    padding: 20px;
    text-align: center;
    color: #cc3d00;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
    }

    .search-box, .add-merch-btn, .category-filter select {
        width: 100%;
    }

    .merch-table {
        display: block;
        overflow-x: auto;
    }

    .action-btn {
        margin-bottom: 5px;
    }
}

/* Стили только для чекбокса "Хит продаж" */
input#add-merch-featured,
input#edit-merch-featured {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
    vertical-align: middle;
    margin-right: 8px;
}

input#add-merch-featured:checked,
input#edit-merch-featured:checked {
    background: #ff5c00;
}

input#add-merch-featured::before,
input#edit-merch-featured::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

input#add-merch-featured:checked::before,
input#edit-merch-featured:checked::before {
    transform: translateX(24px);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    input#add-merch-featured,
    input#edit-merch-featured {
        width: 40px;
        height: 22px;
    }

    input#add-merch-featured::before,
    input#edit-merch-featured::before {
        width: 18px;
        height: 18px;
    }

    input#add-merch-featured:checked::before,
    input#edit-merch-featured:checked::before {
        transform: translateX(18px);
    }
}

.match-card {
    background: rgba(19, 39, 71, 0.66);
    border: 1px solid rgba(20, 45, 82, 0.1);
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.match-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.match-header a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.match-date {
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

.match-translation {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.match-score {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: -15px 0 10px 0;
    position: relative;
    z-index: 1; /* Убедитесь, что счет находится под эмблемами */
    transform: translateY(65px);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2; /* Эмблемы команд должны быть выше счета */
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.match-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
    position: relative;
    z-index: 3; /* Логотипы должны быть выше всего */
}

.match-team-name {
    font-weight: bold;
    text-align: center;
}

.match-team-city {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.add-merch-category select,
.category-filter select {
    border-radius: 6px;
    padding: 8px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


.add-merch-category select option,
.category-filter select option  {
    background: rgba(20, 45, 82, 0.8);
    color: #ffffff;
}

select::-ms-expand {
    display: none;
}

.modal select {
    background: rgba(20, 45, 82, 0.8);
    color: #fff; /* белый текст */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
}

.modal select option {
    background: rgba(20, 45, 82, 0.8);
    color: #fff;
}

.modal select::-ms-expand {
    display: none;
}

.modal-t select {
    background: rgba(20, 45, 82, 0.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
}

.modal-t select option {
    background: rgba(20, 45, 82, 0.8);
    color: #fff;
}

.modal-t select::-ms-expand {
    display: none;
}

.fetch-stats-btn {
  background-color: #4a6fa5;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  transition: background-color 0.3s;
}

.fetch-stats-btn:hover {
  background-color: #3a5a8a;
}

.fetch-stats-btn:active {
  transform: scale(0.98);
}

.fetch-stats-btn i {
  margin-right: 5px;
}
/* Карточка матча – теперь как билет */
.game-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* При наведении – лёгкий подъём */
.game-event:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Логотип сверху */
.game-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Время – крупнее */
.game-time {
    font-size: 18px;
    font-weight: 800;
    margin: 8px 0;
}

/* Название матча */
.game-teams {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

/* Локация */
.game-location {
    font-size: 13px;
    opacity: 0.8;
}

/* Разные цвета для домашних и выездных */
.home-game .game-event {
    background: linear-gradient(160deg, rgba(255,90,30,0.3), rgba(255,50,0,0.15));
    border: 1px solid rgba(255,100,50,0.4);
}
.away-game .game-event {
    background: linear-gradient(160deg, rgba(0, 49, 104, 0.53), rgba(24, 51, 89, 0.47));
    border: 1px solid rgba(0, 142, 255, 0.4);
}

/* Оттенки времени */
.home-game .game-time { color: #ff7640; }
.away-game .game-time { color: #ffffff; }

.day-number {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
