body {
    background: #181c1b;
    color: #e0e0e0;
    font-family: 'Minecraft', 'Courier New', monospace;
    margin: 0;
    min-height: 100vh;
    position: relative;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.header {
    background: #232826;
    border-bottom: 2px solid #3a4d3a;
    padding: 24px 0 12px 0;
    position: relative;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-name {
    font-size: 2rem;
    color: #b6e388;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #232826;
    font-weight: bold;
}
.main {
    padding: 40px 0 24px 0;
}
.hero {
    text-align: center;
    background: #232826;
    border-radius: 8px;
    padding: 32px 16px;
    box-shadow: 0 2px 8px #0002;
}
.hero h1 {
    color: #b6e388;
    font-size: 2rem;
    margin-bottom: 12px;
}
.hero p {
    color: #a0bfa0;
    margin-bottom: 24px;
}
.version-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.version-btn {
    background: #2e3b2e;
    color: #b6e388;
    border: 2px solid #3a4d3a;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 2px #0003;
}
.version-btn:hover {
    background: #3a4d3a;
    color: #fff;
}
.footer {
    background: #232826;
    color: #a0bfa0;
    text-align: center;
    padding: 24px 0 12px 0;
    border-top: 2px solid #3a4d3a;
    font-size: 0.95rem;
}
/* Кнопки, пагинация, карточки модов, поиск и т.д. будут добавлены для других страниц */

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #232826;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0002;
}
.page-header h1 {
    color: #b6e388;
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.page-header p {
    color: #a0bfa0;
    margin: 0;
    line-height: 1.5;
}
.mods-count {
    display: inline-block;
    background: #2e3b2e;
    color: #b6e388;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Контент обертка */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

/* Основной контент */
.main-content {
    min-width: 0;
}

/* Боковое меню */
.sidebar {
    position: sticky;
    top: 24px;
}
.sidebar-block {
    background: #232826;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px #0002;
    border: 1px solid #3a4d3a;
}
.sidebar-block h3 {
    color: #b6e388;
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3a4d3a;
}

/* Популярные моды */
.popular-mods {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popular-mods li {
    margin-bottom: 8px;
}
.popular-mods a {
    color: #a0bfa0;
    text-decoration: none;
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.popular-mods a:hover {
    background: #2e3b2e;
    color: #b6e388;
}

/* Сервера */
.servers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.servers-list li {
    margin-bottom: 12px;
}
.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a0bfa0;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}
.server-item:hover {
    background: #2e3b2e;
    color: #b6e388;
    border-color: #3a4d3a;
}
.server-name {
    font-weight: bold;
}
.server-players {
    font-size: 0.9em;
    color: #8ba08b;
}

/* Список модов и карточки */
.mods-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}
.mod-card {
    background: #232826;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0002;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #3a4d3a;
    cursor: pointer;
}
.mod-card:hover {
    box-shadow: 0 8px 24px #0004;
    transform: translateY(-2px);
    border-color: #b6e388;
}
.mod-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #181c1b;
}
.mod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mod-card:hover .mod-image img {
    transform: scale(1.05);
}
.mod-card-info {
    padding: 20px 24px;
}
.mod-card-info h2 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    color: #b6e388;
}
.mod-card-info h2 a {
    color: inherit;
    text-decoration: none;
}
.mod-card-info h2 a:hover {
    text-decoration: underline;
}
.mod-card-info p {
    color: #a0bfa0;
    margin: 0 0 16px 0;
    line-height: 1.5;
}
.mod-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mod-version {
    background: #2e3b2e;
    color: #b6e388;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.9em;
    border: 1px solid #3a4d3a;
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 4px;
}
.mod-downloads {
    background: #3a4d3a;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.9em;
    border: 1px solid #4a5d4a;
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 4px;
    text-transform: capitalize;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}
.page-btn {
    background: #2e3b2e;
    color: #b6e388;
    border: 1.5px solid #3a4d3a;
    border-radius: 5px;
    padding: 7px 16px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.page-btn.active, .page-btn:hover {
    background: #3a4d3a;
    color: #fff;
}
.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.page-dots {
    color: #a0bfa0;
    padding: 0 4px;
}

/* Поиск */
.search-form {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    max-width: 400px;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #3a4d3a;
    border-radius: 6px 0 0 6px;
    background: #232826;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}
.search-input:focus {
    border-color: #b6e388;
}
.search-btn {
    padding: 12px 20px;
    border: 2px solid #3a4d3a;
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: #2e3b2e;
    color: #b6e388;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.search-btn:hover {
    background: #3a4d3a;
    color: #fff;
}

/* Страница мода */
.mod-detail {
    background: #232826;
    border-radius: 8px;
    box-shadow: 0 1px 4px #0002;
    padding: 32px 24px;
    margin: 0;
    text-align: left;
    border: 1px solid #3a4d3a;
}
.mod-detail h1 {
    color: #b6e388;
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

/* Слайдер */
.mod-slider {
    margin-bottom: 32px;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    background: #181c1b;
    border: 2px solid #3a4d3a;
}
.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 40, 38, 0.8);
    color: #b6e388;
    border: 1px solid #3a4d3a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.slider-btn:hover {
    background: rgba(54, 77, 58, 0.9);
    color: #fff;
}
.slider-btn.prev {
    left: 10px;
}
.slider-btn.next {
    right: 10px;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a4d3a;
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active {
    background: #b6e388;
}

/* Расширенное описание */
.mod-description-full {
    margin-bottom: 32px;
}
.mod-description-full h3 {
    color: #b6e388;
    font-size: 1.4rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3a4d3a;
}
.mod-description-full h4 {
    color: #b6e388;
    font-size: 1.1rem;
    margin: 20px 0 12px 0;
}
.mod-description-full p {
    color: #a0bfa0;
    line-height: 1.6;
    margin-bottom: 16px;
}
.mod-description-full ul, .mod-description-full ol {
    color: #a0bfa0;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 20px;
}
.mod-description-full li {
    margin-bottom: 8px;
}

/* Секция скачивания */
.download-section {
    background: #2e3b2e;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #3a4d3a;
}
.download-section h3 {
    color: #b6e388;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}
.version-selector {
    margin-bottom: 20px;
    text-align: center;
}
.version-selector label {
    display: block;
    color: #a0bfa0;
    margin-bottom: 8px;
    font-weight: bold;
}
.version-select {
    background: #232826;
    color: #e0e0e0;
    border: 2px solid #3a4d3a;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    min-width: 200px;
}
.version-select:focus {
    border-color: #b6e388;
}
.download-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.download-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid;
    font-weight: bold;
}
.download-btn.primary {
    background: #3a4d3a;
    color: #fff;
    border-color: #4a5d4a;
}
.download-btn.primary:hover {
    background: #b6e388;
    color: #232826;
    border-color: #b6e388;
}
.download-btn.secondary {
    background: #232826;
    color: #b6e388;
    border-color: #3a4d3a;
}
.download-btn.secondary:hover {
    background: #2e3b2e;
    color: #fff;
    border-color: #b6e388;
}
.download-info {
    text-align: center;
    color: #8ba08b;
    font-size: 0.9rem;
    padding-top: 12px;
    border-top: 1px solid #3a4d3a;
}

/* Старые стили для обратной совместимости */
.mod-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}
.mod-gallery img {
    width: 180px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid #3a4d3a;
    background: #181c1b;
}
.mod-description {
    color: #a0bfa0;
    margin-bottom: 28px;
    font-size: 1.08rem;
    text-align: center;
}

@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sidebar {
        position: static;
    }
    .slider-container {
        height: 250px;
    }
    .download-links {
        flex-direction: column;
        align-items: center;
    }
    .download-btn {
        max-width: 300px;
        text-align: center;
    }
    .zombie-bg {
        width: 180px;
        min-width: 80px;
        opacity: 0.18;
    }
}

@media (max-width: 600px) {
    .container { padding: 0 8px; }
    .mod-detail { padding: 16px 8px; }
    .slider-container { height: 200px; }
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    .mod-description-full h3 {
        font-size: 1.2rem;
    }
    .download-section {
        padding: 16px;
    }
    .version-select {
        min-width: 150px;
    }
    .zombie-bg {
        width: 100px;
        min-width: 50px;
        opacity: 0.12;
    }
    .header .container {
        flex-direction: column;
        gap: 12px;
    }
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .header-mods-link {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    .slime-icon {
        width: 22px;
        height: 22px;
    }
    .site-logo {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }
}

/* Фоновый зомби слева */
.zombie-bg {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
    width: 320px;
    max-width: 40vw;
    min-width: 160px;
    transition: opacity 0.3s;
}

/* Повышаем z-index для основного контента */
.header, .main, .footer, .container, .content-wrapper, .sidebar, .main-content {
    position: relative;
    z-index: 1;
}

.header-mods-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2e3b2e;
    color: #b6e388;
    border: 2px solid #3a4d3a;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 1.1rem;
    font-family: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 1px 2px #0003;
    white-space: nowrap;
}
.header-mods-link:hover {
    background: #3a4d3a;
    color: #fff;
    border-color: #b6e388;
}
.slime-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
}

.site-logo {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* Стили для страницы ошибок */
.error-page {
    text-align: center;
    padding: 60px 20px;
    background: #1f271f;
    border-radius: 8px;
    border: 1px solid #3a4d3a;
    margin: 40px auto;
    max-width: 600px;
}

.error-page h1 {
    color: #b6e388;
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Minecraft', monospace;
}

.error-page p {
    color: #a0bfa0;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.2s;
}

.error-actions .btn.primary {
    background: #3a4d3a;
    color: #fff;
    border: 2px solid #4a5d4a;
}

.error-actions .btn.primary:hover {
    background: #b6e388;
    color: #232826;
    border-color: #b6e388;
}

.error-actions .btn.secondary {
    background: #232826;
    color: #b6e388;
    border: 2px solid #3a4d3a;
}

.error-actions .btn.secondary:hover {
    background: #2e3b2e;
    color: #fff;
    border-color: #b6e388;
}

/* Стили для вкладок загрузчиков */
.loader-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #1f271f;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #3a4d3a;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #a0bfa0;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.tab-btn:hover {
    background: #2e3b2e;
    color: #b6e388;
}

.tab-btn.active {
    background: #3a4d3a;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .loader-tabs {
        flex-direction: column;
        gap: 2px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
} 