/* ============================================================
   БАЗОВЫЕ СТИЛИ И СБРОС
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0a0a0a;
    color: #ddd;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   ФОН ШАПКИ (псевдоэлемент body)
============================================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 800px;
    background: url('images/header-bg.jpg') no-repeat center top;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   ОСНОВНОЙ КОНТЕЙНЕР
============================================================ */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   ЛОГОТИП
============================================================ */
.logo-block {
    margin-bottom: 30px;
    width: 100%;
    padding-bottom: 30px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
}

.logo-wrapper-link {
    text-decoration: none;
    display: block;
}

.logo-svg {
    display: block;
    width: 120px;
    height: 120px;
}

.logo-text-wrapper {
    text-align: left;
}

.logo-text {
    font-size: 43px;
    font-weight: bold;
    color: #e99c00;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-text span {
    color: #ffffff;
    font-weight: bold;
}

.logo-subtitle {
    font-size: 16px;
    color: #ddd;
    margin-top: 10px;
    letter-spacing: 1.3px;
}

/* ============================================================
   ЗАГОЛОВОК НА СТРАНИЦАХ
============================================================ */
.main-title {
    font-size: 24px;
    color: #ddd;
    margin: 50px 0 30px 0;
    text-align: center;
}

.main-title-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* ============================================================
   СЕТКА ВИДЕО-КАРТОЧЕК
============================================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.video-card {
    background: rgba(20,20,20,0.9);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

a.video-card {
    text-decoration: none;
    color: inherit;
}

.video-card:hover {
    border-color: #e99c00;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(233,156,0,0.2);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 1280 / 720;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: #e99c00;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: monospace;
}

.video-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ddd;
}

.video-date {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ============================================================
   СТРАНИЦА ОТДЕЛЬНОГО ВИДЕО
============================================================ */
.video-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px 40px 30px;
}

.player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

h1 {
    color: #e99c00;
    font-size: 22px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.meta {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.meta span {
    color: #666;
}

.desc {
    color: #ddd;
    font-size: 14px;
    line-height: 1.7;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.back,
.prev,
.next {
    display: inline-block;
    margin-bottom: 30px;
    color: #000;
    text-decoration: none;
    background: #e99c00;
    border: 1px solid #e99c00;
    padding: 5px 14px 7px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.back:hover,
.prev:hover,
.next:hover {
    background: rgba(233,156,0,0.25);
    box-shadow: 0 0 18px rgba(233,156,0,0.5);
    border-color: #ffab02;
    color: #ffab02;
}

.prev {
    margin-right: 10px;
}

.next {
    margin-left: 10px;
}




/* ============================================================
   ИНФОРМАЦИОННЫЙ БЛОК (описание игры)
============================================================ */
.info-block {
    background: rgba(20,20,20,0.9);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.info-block h2 {
    color: #e99c00;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 3px solid #e99c00;
    padding-left: 15px;
}

.info-block h2:first-child {
    margin-top: 0;
}

.info-block p {
    font-size: 15px;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 20px;
}

.info-block strong {
    color: #e99c00;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #ddd;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: #e99c00;
}

.feature-item strong {
    display: block;
    margin-bottom: 5px;
    color: #e99c00;
}

/* ============================================================
   КАРТОЧКИ ДОНАТОВ
============================================================ */
.donate-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.donate-card {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 37px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.donate-card:hover {
    border-color: #e99c00;
}

.donate-card h3 {
    color: #e99c00;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.donate-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #ddd;
    margin-bottom: 15px;
}

.donate-card a,
.donate-card a:visited {
    color: #ddd;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s;
    word-break: break-all;
    font-size: 13px;
}

.donate-card a:hover {
    color: #e99c00;
    text-decoration: none;
}

.donate-card .back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #000 !important;
    text-decoration: none;
    background: #e99c00;
    border: 1px solid #e99c00;
    padding: 5px 14px 7px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.donate-card .back-link:hover {
    background: rgba(233,156,0,0.25);
    box-shadow: 0 0 18px rgba(233,156,0,0.5);
    border-color: #ffab02;
    color: #ffab02 !important;
}

.donate-card .back-link-red {
    display: inline-block;
    margin-bottom: 30px;
    color: #fff !important;
    text-decoration: none;
    background: #e32500;
    border: 1px solid #e32500;
    padding: 5px 14px 7px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.donate-card .back-link-red:hover {
    background: rgba(227,37,0,0.25);
    box-shadow: 0 0 18px rgba(227,37,0,0.5);
    border-color: #ff3d15;
    color: #ff3d15 !important;
}

/* ============================================================
   СТРАНИЦА ДОНАТОВ
============================================================ */
.donations-header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.donations-total {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #e99c00;
    border-radius: 20px;
    padding: 14px 40px;
    display: inline-block;
}

.donations-total .total-label {
    font-size: 18px;
    color: #e99c00;
    letter-spacing: 1px;
}

.donations-total .total-amount {
    font-size: 45px;
    font-weight: bold;
    color: #e99c00;
    margin-top: 2px;
}

.donations-total .total-amount span {
    font-size: 24px;
}

.donations-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    text-align: center;
}

.star {
    font-size: 24px;
    color: #e99c00;
    margin-left: 4px;
}

.donations-thanks {
    text-align: center;
    color: #e99c00;
    font-size: 28px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.donations-thanks-text {
    text-align: center;
    color: #ddd;
    font-size: 16px;
    margin-bottom: 50px;
}

.year-section {
    width: 100%;
    margin-bottom: 40px;
}

.year-title {
    color: #e99c00;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.donations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
}

.donation-card {
    background: rgba(20,20,20,0.9);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
}

.donation-card:hover {
    border-color: #e99c00;
    transform: translateY(-2px);
}

.donation-name {
    font-size: 18px;
    font-weight: 600;
    color: #e99c00;
    margin-bottom: 8px;
}

.donation-amount {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.donation-amount span {
    font-size: 14px;
    color: #e99c00;
}

.donation-message {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 8px 0;
    border-top: 1px solid #333;
    margin-top: 5px;
}

.donation-date {
    font-size: 11px;
    color: #666;
    text-align: right;
}






/* ============================================================
   СВОРАЧИВАЕМЫЕ БЛОКИ
============================================================ */
.year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.year-header .year-title {
    color: #e99c00;
    font-size: 28px;
    margin: 0;
    padding: 0;
    border: none;
}

.collapse-toggle {
    color: #e99c00;
    font-size: 14px;
    transition: all 0.3s;
}

.collapse-toggle:hover {
    color: #ffab02;
}

.year-content.collapsed {
    display: none;
}

/* ============================================================
   КНОПКА "НАВЕРХ"
============================================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e99c00;
    border: 1px solid #e99c00;
    color: #0a0a0a;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .scroll-top:hover {
        background: rgba(233,156,0,0.25);
        box-shadow: 0 0 18px rgba(233,156,0,0.5);
        border-color: #ffab02;
        color: #ffab02;
    }
}

@media (hover: none) {
    .scroll-top:hover,
    .scroll-top:active,
    .scroll-top:focus {
        background: #e99c00;
        border-color: #e99c00;
        color: #0a0a0a;
    }
}

/* ============================================================
   КНОПКИ НАВИГАЦИИ
============================================================ */
.back-link {
    display: inline-block;
    margin-bottom: 0;
    color: #000;
    text-decoration: none;
    background: #e99c00;
    border: 1px solid #e99c00;
    padding: 5px 14px 7px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(233,156,0,0.25);
    box-shadow: 0 0 18px rgba(233,156,0,0.5);
    border-color: #ffab02;
    color: #ffab02;
}

.back-link.active,
.back-link.active:hover {
    background: rgba(233,156,0,0.25);
    box-shadow: 0 0 18px rgba(233,156,0,0.5);
    border-color: #ffab02;
    color: #ffab02;
    cursor: default;
    pointer-events: none;
}

.back-link-red {
    display: inline-block;
    margin-bottom: 30px;
    color: #fff !important;
    text-decoration: none;
    background: #e32500;
    border: 1px solid #e32500;
    padding: 5px 14px 7px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.back-link-red:hover {
    background: rgba(227,37,0,0.25);
    box-shadow: 0 0 18px rgba(227,37,0,0.5);
    border-color: #ff3d15;
    color: #ff3d15 !important;
}









/* ============================================================
   ВЫПАДАЮЩИЙ СПИСОК (Плейлисты)
============================================================ */
.buttons-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: #e99c00;
    color: #000;
    border: 1px solid #e99c00;
    padding: 5px 14px 7px 14px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.dropbtn:hover {
    background: rgba(233,156,0,0.25);
    box-shadow: 0 0 18px rgba(233,156,0,0.5);
    border-color: #ffab02;
    color: #ffab02;
}

.dropbtn .arrow {
    font-size: 10px;
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s;
}

.dropbtn.active,
.dropbtn.active:hover {
    background: rgba(233,156,0,0.25);
    box-shadow: 0 0 18px rgba(233,156,0,0.5);
    border-color: #ffab02;
    color: #ffab02;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #0a0a0a;
    border: 1px solid #e99c00;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    left: 0;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content a {
    color: #ddd;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: 0.2s;
    white-space: nowrap;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #e99c00;
    color: #000;
}

.dropdown-group-title {
    color: #e99c00;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px 4px 16px;
    border-top: 1px solid #444;
    margin-top: 8px;
    cursor: default;
}

.dropdown-group-title:first-child {
    border-top: none;
    margin-top: 0;
}








/* ============================================================
   ПРЕЛОАДЕР ВИДЕО
============================================================ */
.video-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #e99c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   ФУТЕР
============================================================ */
.footer {
    background: transparent;
    width: 100%;
    padding-bottom: 40px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer .social-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 0 auto;
}

.footer .social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s;
    text-decoration: none;
    width: 100%;
    position: relative;
    z-index: 20;
}

.footer .social-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.footer .social-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.footer .social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer .social-info {
    flex: 1;
}

.footer .social-name {
    color: #ddd;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.footer .social-link {
    color: #888;
    font-size: 12px;
    word-break: break-all;
}

.footer .footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
}

.footer .footer-bottom a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.footer .footer-bottom a:hover {
    color: #e99c00;
}

.footer .footer-copyright {
    color: #666;
    font-size: 11px;
}

















/* ============================================================
   МЕДИА-ЗАПРОСЫ
============================================================ */

@media (max-width: 1024px) {
    body::before {
        background: url('images/header-bg-tablet.jpg') no-repeat center top;
        background-size: cover;
        height: 500px;
    }
}












@media (max-width: 768px) {
    h1 { font-size: 18px; }
    
    .video-page { padding: 40px 15px; }
    
    body::before {
        background: url('images/header-bg-tablet.jpg') no-repeat center top;
        background-size: cover;
        height: 500px;
    }
    
    .main-container { padding: 40px 15px 0 15px; }
    
    .main-title { font-size: 20px; margin: 40px 0 20px 0; }
    
    .logo-wrapper { flex-direction: column; gap: 20px; }
    .logo-text-wrapper { text-align: center; }
    .logo-svg { width: 90px; height: 90px; }
    .logo-text { font-size: 32px; }
    .logo-subtitle { letter-spacing: 1.3px; }
    
    .info-block { padding: 20px; }
    .info-block h2 { font-size: 18px; }
    
    .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .video-title { font-size: 15px; }
    
    .game-features { grid-template-columns: 1fr; }
    .feature-item { font-size: 13px; }
    
    .donate-cards-wrapper { grid-template-columns: 1fr; gap: 15px; }
    .donate-card { padding: 20px; }
    
    .donations-grid { grid-template-columns: 1fr; }
    
    .donations-total { padding: 14px 30px; }
    .donations-total .total-label { font-size: 16px; }
    .donations-total .total-amount { font-size: 38px; }
    .donations-total .total-amount span { font-size: 26px; }
    
    .donations-thanks-text { margin-bottom: 30px; }
    
    .dropdown-content { left: auto; right: 0; min-width: 180px; }
    .dropbtn { font-size: 14px; padding: 5px 14px 7px; }
    .dropbtn .arrow { font-size: 10px; }
    
    .footer-container { padding: 0 15px; }
    .footer .social-grid { max-width: 100%; }
    .footer .social-name { font-size: 14px; }
    .footer .social-link { font-size: 11px; }
    .footer .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .footer { padding-bottom: 30px; }
}












@media (max-width: 480px) {
    body::before {
        background: url('images/header-bg-mobile.jpg') no-repeat center top;
        background-size: cover;
        height: 800px;
    }
    
    h1 { font-size: 16px; }
    
    .logo-block { margin-bottom: 20px; padding-bottom: 20px; }
    
    .main-title { font-size: 20px; margin: 30px 0 18px 0; }
    
    .logo-text { font-size: 28px; }
    .logo-svg { width: 70px; height: 70px; }
    .logo-subtitle { font-size: 12px; }
    
    .info-block { padding: 20px; }
    .info-block h2 { font-size: 18px; }
    .info-block p { font-size: 13px; }
    
    .videos-grid { grid-template-columns: 1fr; gap: 15px; }
    
    .donate-card { padding: 15px; }
    .donate-card h3 { font-size: 16px; }
    .donate-card p { font-size: 13px; }
    
    .donations-total { padding: 12px 25px; }
    .donations-total .total-label { font-size: 14px; }
    .donations-total .total-amount { font-size: 32px; }
    .donations-total .total-amount span { font-size: 22px; }
    
    .donations-note { font-size: 9px; margin-top: 6px; }
    .star { font-size: 18px; }
    
    .donations-thanks { font-size: 22px; margin-top: 15px; margin-bottom: 15px; }
    .donations-thanks-text { font-size: 13px; margin-bottom: 25px; }
    
    .year-title { font-size: 22px; }
    .donation-card { padding: 12px; }
    .donation-name { font-size: 16px; }
    .donation-amount { font-size: 18px; }
    .donation-message { font-size: 11px; }
    
    .dropdown-content { min-width: 160px; right: -10px; }
    .dropdown-content a { padding: 8px 12px; font-size: 13px; }
    .dropbtn { font-size: 14px; padding: 5px 14px 7px; }
    .dropbtn .arrow { font-size: 10px; }
    
    .footer .social-item { padding: 10px 15px; gap: 12px; }
    .footer .social-icon { width: 28px; height: 28px; }
    .footer .social-name { font-size: 13px; }
    .footer .social-link { font-size: 10px; }
    .footer .footer-bottom { gap: 8px; }
    .footer .footer-bottom a { font-size: 10px; }
    .footer .footer-copyright { font-size: 9px; }
    .footer { padding-bottom: 20px; }
}