:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: rgba(20, 20, 35, 0.7);
    --bg-card: rgba(30, 30, 50, 0.55);
    --bg-card-hover: rgba(40, 40, 65, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #c8c8d4;
    --text-muted: #8888aa;
    --accent: #6c5ce7;
    --accent-hover: #8b7af0;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --green: #00b894;
    --green-hover: #00d2a0;
    --border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 184, 148, 0.06) 0%, transparent 60%);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 2rem;
    font-weight: 700;
}
.logo:hover { transform: scale(1.02); }
.logo .icon {
    display: inline-block;
    font-size: 2.4rem;
    animation: logoIconFloat 3s ease-in-out infinite;
    transform-origin: center;
}
.logo .accent {
    display: inline-block;
    animation: logoAccentGlow 4s ease-in-out infinite;
    font-weight: 800;
    color: var(--accent);
}
.logo:hover .icon { animation-duration: 1.2s; }

@keyframes logoIconFloat {
    0% { transform: rotate(-3deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.05); }
    100% { transform: rotate(-3deg) scale(1); }
}
@keyframes logoAccentGlow {
    0% { color: #6c5ce7; text-shadow: 0 0 10px rgba(108, 92, 231, 0.2); }
    25% { color: #a78bfa; text-shadow: 0 0 20px rgba(167, 139, 250, 0.4); }
    50% { color: #8b5cf6; text-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
    75% { color: #a78bfa; text-shadow: 0 0 20px rgba(167, 139, 250, 0.4); }
    100% { color: #6c5ce7; text-shadow: 0 0 10px rgba(108, 92, 231, 0.2); }
}

.search-form {
    flex: 0 0 auto;
    max-width: 380px;
    margin-left: auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    border: 1px solid var(--border);
    padding: 2px 2px 2px 18px;
    transition: var(--transition);
}
.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(255, 255, 255, 0.1);
}
.search-form input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 0;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
    background: var(--accent);
    border: none;
    border-radius: 40px;
    padding: 8px 18px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.15);
}
.search-form button:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.25);
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-link {
    padding: 8px 20px;
    background: var(--accent);
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    color: white;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}
.admin-link:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ==========================================================
   ГЕРОЙ
   ========================================================== */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.btn-hero {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: white;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.15);
}
.btn-hero:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--accent-glow);
}

/* ==========================================================
   ВКЛАДКИ
   ========================================================== */
.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.tab {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid transparent;
}
.tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border);
}
.tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.search-info {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ==========================================================
   КАРТОЧКИ
   ========================================================== */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0 48px;
}
.mod-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.mod-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 48px rgba(108, 92, 231, 0.12), 0 0 40px rgba(108, 92, 231, 0.04);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.mod-card:nth-child(1) { animation-delay: 0.05s; }
.mod-card:nth-child(2) { animation-delay: 0.10s; }
.mod-card:nth-child(3) { animation-delay: 0.15s; }
.mod-card:nth-child(4) { animation-delay: 0.20s; }
.mod-card:nth-child(5) { animation-delay: 0.25s; }
.mod-card:nth-child(6) { animation-delay: 0.30s; }
.mod-card:nth-child(7) { animation-delay: 0.35s; }
.mod-card:nth-child(8) { animation-delay: 0.40s; }
.mod-card:nth-child(9) { animation-delay: 0.45s; }
.mod-card:nth-child(10) { animation-delay: 0.50s; }

.mod-image-wrapper {
    width: 100%;
    height: 200px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.mod-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}
.mod-card:hover .mod-image {
    transform: scale(1.04);
    filter: brightness(1.1);
}
.mod-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-muted);
    background: var(--bg-primary);
    flex-shrink: 0;
}
.mod-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    letter-spacing: 0.5px;
}

.mod-card .card-content {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mod-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 30px;
    align-self: flex-start;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.mod-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text-primary);
}
.mod-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
mark {
    background: rgba(108, 92, 231, 0.2);
    color: var(--text-primary);
    padding: 0 2px;
    border-radius: 4px;
}
.mod-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.mod-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}
.btn-download {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}
.btn-download:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--accent-glow);
}
.btn-install {
    background: var(--green);
    color: white;
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.1);
}
.btn-install:hover {
    background: var(--green-hover);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 184, 148, 0.2);
}
.btn-view {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-view:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.no-mods {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-secondary);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    margin: 40px 0;
    border: 1px solid var(--border);
}
.no-mods .icon { font-size: 4rem; margin-bottom: 16px; }
.no-mods h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.no-mods p { color: var(--text-secondary); font-size: 1rem; }

.site-footer {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 40px;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

/* ==========================================================
   СТРАНИЦА МОДА (view.php) – УВЕЛИЧЕНЫ ФОТО И НАЗВАНИЕ, БЕЗ КНОПКИ
   ========================================================== */
.mod-detail {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.mod-detail-image-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    position: sticky;
    top: 100px;
    overflow: visible;
}

.mod-detail-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mod-detail-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px;  /* увеличенная картинка */
    transition: transform 0.4s ease;
}
.mod-detail-image-frame:hover .mod-detail-image {
    transform: scale(1.02);
}
.mod-detail-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.mod-detail-header-block {
    background: var(--bg-secondary);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 20px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}
.mod-detail-header-block:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.08);
}

.mod-detail-title {
    font-size: 2rem;  /* увеличенное название */
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.mod-detail-image-wrapper .mod-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.mod-detail-image-wrapper .badge-category,
.mod-detail-image-wrapper .badge-date,
.mod-detail-image-wrapper .badge-downloads {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-primary);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ===== УВЕЛИЧЕННАЯ ЛЕВАЯ КОЛОНКА ===== */
.mod-detail-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;  /* левая шире */
    gap: 40px;
    margin: 30px 0 40px;
    align-items: start;
}

.mod-detail-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mod-detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 0;
}

.mod-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stat-item:last-child { border-bottom: none; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.stat-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); text-align: right; }

.mod-detail-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 40px;
    flex: 1 1 auto;
    min-width: 160px;
    transition: all 0.25s ease;
}
.btn-download {
    background: linear-gradient(135deg, var(--accent), #8b6ff0);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}
.btn-install {
    background: linear-gradient(135deg, var(--green), #00d2a0);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.1);
}
.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 184, 148, 0.3);
}

.mod-detail-youtube { margin-bottom: 40px; }
.mod-detail-youtube h3 { font-size: 1.3rem; margin-bottom: 16px; }
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.mod-detail-gallery { margin-top: 40px; }
.mod-detail-gallery h3 { font-size: 1.3rem; margin-bottom: 16px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.12);
}
.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ==========================================================
   АДМИН-ПАНЕЛЬ
   ========================================================== */
.admin-container {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 30px 20px;
}
.admin-box, .admin-login-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.admin-login-box { max-width: 440px; }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}
.admin-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }
.admin-section { margin-bottom: 32px; }
.admin-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group small { display: block; color: var(--text-muted); font-size: 0.75rem; margin-top: 4px; }
.btn-publish {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}
.btn-publish:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-small {
    padding: 10px 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-small:hover { border-color: var(--accent); color: var(--accent); }
.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.inline-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
}
.inline-form input[type="text"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.category-list, .mods-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.category-item, .mod-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 8px;
}
.category-item:hover, .mod-list-item:hover { border-color: var(--accent); }
.category-item span, .mod-list-info { color: var(--text-primary); font-size: 0.95rem; }
.mod-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mod-id { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
.mod-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.mod-list-actions { display: flex; gap: 6px; }
.btn-edit {
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-edit:hover { background: rgba(108, 92, 231, 0.2); }
.btn-delete {
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-delete:hover { background: rgba(239, 68, 68, 0.2); }

.admin-login-box h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.admin-login-box p { color: var(--text-secondary); margin-bottom: 24px; }
.admin-login-box input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 16px;
    transition: var(--transition);
}
.admin-login-box input[type="password"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.admin-login-box button {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}
.admin-login-box button:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 30px var(--accent-glow);
}

hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.back-link, .logout-link { font-weight: 500; font-size: 0.9rem; }
.back-link { color: var(--text-secondary); }
.back-link:hover { color: var(--text-primary); }
.logout-link { color: #ef4444; }
.logout-link:hover { color: #f87171; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}
.alert.success { background: rgba(0, 184, 148, 0.1); border: 1px solid var(--green); color: var(--green); }
.alert.error { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #ef4444; }
.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border-left: 3px solid #ef4444;
}
.no-data { color: var(--text-muted); font-style: italic; padding: 12px 0; }

/* ==========================================================
   АДАПТИВНОСТЬ
   ========================================================== */
@media (max-width: 992px) {
    .mod-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .mod-detail-image-wrapper { position: static; max-height: 400px; overflow: hidden; }
    .mod-detail-image { max-height: 400px; width: 100%; object-fit: cover; }
    .mod-detail-image-frame { max-height: 400px; }
}
@media (max-width: 768px) {
    .site-header .container { flex-direction: column; align-items: flex-start; }
    .header-actions { width: 100%; justify-content: flex-start; }
    .search-form { 
        margin-left: 0; 
        max-width: 100%; 
        width: 100%; 
        order: 3; 
        margin-top: 8px; 
    }
    .mods-grid { grid-template-columns: 1fr; }
    .admin-box, .admin-login-box { padding: 24px 16px; }
    .site-footer .container { flex-direction: column; text-align: center; }
    .game-tabs { gap: 4px; }
    .tab { padding: 6px 14px; font-size: 0.75rem; }
    .mod-list-item { flex-direction: column; align-items: stretch; }
    .mod-list-actions { justify-content: flex-start; }
    .mod-image-wrapper { height: 160px; }
    .mod-detail-title { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
}
@media (max-width: 600px) {
    .mod-detail-stats { grid-template-columns: 1fr; gap: 4px; }
    .stat-item { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 6px 0; }
    .stat-item:last-child { border-bottom: none; }
    .mod-detail-image-wrapper { max-height: 250px; }
    .mod-detail-image { max-height: 250px; }
    .mod-detail-image-frame { max-height: 250px; }
    .btn-lg { flex: 1 1 100%; justify-content: center; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item img { height: 120px; }
    .logo .icon { font-size: 1.8rem; }
    .logo { font-size: 1.6rem; }
    .hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .site-header .logo { font-size: 1.3rem; }
    .mod-card .mod-title { font-size: 1rem; }
    .btn { flex: 1 1 100%; justify-content: center; }
    .mod-image-wrapper { height: 140px; }
    .logo .icon { font-size: 1.5rem; }
    .hero h1 { font-size: 1.6rem; }
}


/* ===== ГЕРОЙ С ПРЕИМУЩЕСТВАМИ ===== */
.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0 16px;
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.hero-benefit span {
    font-size: 1.3rem;
}

.hero-benefit h4 {
    font-size: 0.9rem;
    font-weight: 700;  /* ← жирнее */
    margin: 0;
}

.hero-benefit p {
    font-size: 0.8rem;
    font-weight: 500;  /* ← жирнее, но не так сильно */
    color: var(--text-secondary);
    margin: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-benefits {
        gap: 12px;
    }
    .hero-benefit {
        padding: 6px 12px;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stat .stat-number {
        font-size: 1.4rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 60px;          /* подгоните размер */
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo span {
    font-size: 2.2rem;
    font-weight: 700;
}

.logo .accent {
    color: var(--accent);
}

.category-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
    object-fit: cover;
}

.category-icon-small {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 4px;
    object-fit: cover;
    display: inline-block;
}