:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --accent-red: #8b0000;
    --accent-red-light: #a52a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --hero-gradient-color: rgba(139, 0, 0, 0.1);
    /* Фоновое изображение (можно заменить на скриншот сервера) */
}

body.light-mode {
    --dark-bg: #f0f0f0;
    --darker-bg: #d0d0d0;
    --card-bg: #ffffff;
    --accent-red: #8b0000;
    --accent-red-light: #a52a2a;
    --text-primary: #121212;
    --text-secondary: #606060;
    --hero-overlay: rgba(255, 255, 255, 0.7);
    --hero-gradient-color: rgba(192, 57, 43, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 20%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Навигация */
header {
    background-color: var(--darker-bg);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-main { color: var(--text-primary); }
.logo-accent { color: var(--accent-red); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 30px; position: relative; }

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.nav-links a i { margin-right: 8px; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-red); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Main Wrapper for footer sticky */
main { flex: 1; padding-top: 80px; }

/* Hero Section (для главной) */
.hero {
    height: 100vh;
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    margin-top: -80px; /* Компенсация padding-top у main */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
}

.hero p { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-secondary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--accent-red);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--accent-red-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

/* Sections General */
section { padding: 80px 0; position: relative; }

.section-title { text-align: center; margin-bottom: 60px; position: relative; }
.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-primary);
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px; background-color: var(--accent-red);
}

/* Cards (Features, News, Players) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 5px; height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.card:hover::before { transform: scaleY(1); }
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 0 2px var(--accent-red), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card h3 { color: var(--accent-red); margin-bottom: 15px; font-size: 1.5rem; }
.card p, .card li { color: var(--text-secondary); margin-bottom: 10px; }
.card ul { list-style: none; padding-left: 0; }
.card ul li::before { content: "▸ "; color: var(--accent-red); }

/* Player Cards Specifics */
.player-head {
    width: 80px; height: 80px;
    background: var(--accent-red);
    margin: 0 auto 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.role-badge {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.role-badge.admin { background: var(--accent-red); color: white; }
.role-badge.sheriff { background: #d4af37; color: #121212; }

/* Events List */
.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent-red);
    transition: transform 0.3s;
}
.event-item:hover { transform: translateX(10px); }
.event-date { font-weight: bold; color: var(--accent-red); font-size: 1.2rem; min-width: 150px; }
.event-name { color: var(--text-primary); font-size: 1.1rem; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-primary); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent-red);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content { color: var(--text-secondary); }

/* Animation Classes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Music Player & Theme Toggle */
.music-player {
    position: fixed; bottom: 20px; left: 20px;
    background: var(--card-bg); border-radius: 50px;
    padding: 10px; display: flex; align-items: center; gap: 15px;
    z-index: 1010; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 0, 0, 0.3);
}
.music-btn {
    background: none; border: none; color: var(--text-primary);
    font-size: 1.4rem; cursor: pointer; transition: 0.3s;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.music-btn:hover { color: var(--accent-red); background: rgba(139, 0, 0, 0.1); }
#theme-toggle { background: none; border: none; color: var(--text-primary); font-size: 1.2rem; cursor: pointer; margin-left: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu simplified for this task */
    .hero h1 { font-size: 2.5rem; }
    .event-item { flex-direction: column; align-items: flex-start; }
}
