/* Базовые настройки */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff4e8c;
    --dark-color: #2d2d44;
    --light-color: #f8f9ff;
    --gray-color: #8a8aa3;
    --success-color: #21B352;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Шапка */
#site-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    margin-bottom: 3rem;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.artist-photo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-info h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.artist-info p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Секции */
section {
    margin-bottom: 4rem;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-description {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Донаты */
.donation-methods {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.method-category {
    margin-bottom: 2.5rem;
}

.method-category:last-child {
    margin-bottom: 0;
}

.method-category h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Карточки донатов */
.donation-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.donation-card {
    background: var(--light-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.donation-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.donation-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.donation-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    width: 100%;
    border: none;
    cursor: pointer;
}

.donate-button:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

/* Банковские карты */
.bank-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.bank-card {
    background: var(--light-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--success-color), #4CAF50);
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.bank-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.bank-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-align: center;
    margin: 1rem 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    word-break: break-all;
}

.card-holder {
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.copy-button {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 8px;
    color: var(--dark-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-button:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* Перевод по номеру */
.phone-payments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.phone-payment {
    background: var(--light-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    text-align: center;
}

.phone-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.2rem;
}

.phone-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.phone-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Социальные сети */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.2rem;
    transition: transform 0.3s;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.social-username {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Видео */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--dark-color);
}

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

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.video-card:hover .video-play {
    background: var(--primary-color);
    color: white;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.video-description {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* QR-код */
.qr-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#qr-code {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.qr-url {
    color: var(--gray-color);
    font-size: 0.95rem;
    word-break: break-all;
    margin-top: 1rem;
}

/* Подвал */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--gray-color);
}

#footer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.admin-link {
    margin-top: 1rem;
}

.admin-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(106, 17, 203, 0.08);
    transition: all 0.3s;
}

.admin-link a:hover {
    background: rgba(106, 17, 203, 0.15);
}


/* Модальное окно видео - ПОЛНОСТЬЮ ПЕРЕПИСАННЫЙ БЛОК */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(5px);
}

.video-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    z-index: 2;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* КОНКРЕТНЫЕ РАЗМЕРЫ ДЛЯ КАЖДОЙ ПЛАТФОРМЫ */

/* YouTube обычные видео (16:9) */
.video-modal.youtube-video .modal-content {
    width: 900px;
    max-width: 99vw;
    aspect-ratio: 16/9;
}

/* YouTube Shorts (9:16) */
.video-modal.shorts-video .modal-content {
    width: 360px;
    max-width: 99vw;
    aspect-ratio: 9/16;
}

/* TikTok (9:16) */
.video-modal.tiktok-video .modal-content {
    width: 380px;
    max-width: 99vw;
    aspect-ratio: 9/16;
}

/* Instagram обычные посты (1:1 или 4:5) */
.video-modal.instagram-video .modal-content {
    width: 500px;
    max-width: 99vw;
    aspect-ratio: 1/1;
}

/* Instagram Reels (9:16) */
.video-modal.reels-video .modal-content {
    width: 360px;
    max-width: 99vw;
    aspect-ratio: 9/16;
}

/* VK видео (разные форматы, но обычно 16:9) */
.video-modal.vk-video .modal-content {
    width: 850px;
    max-width: 99vw;
    aspect-ratio: 16/9;
}

/* Сообщение об ошибке */
.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    height: 100%;
    background: #f8f9ff;
}

.video-error p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.video-error .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.video-error .btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ */

@media (max-width: 992px) {
    .video-modal.youtube-video .modal-content,
    .video-modal.vk-video .modal-content {
        width: 800px;
    }
}

@media (max-width: 768px) {
    .video-modal {
        padding: 15px;
    }
    
    .video-modal.youtube-video .modal-content,
    .video-modal.vk-video .modal-content {
        width: 95vw;
        max-height: 80vh;
    }
    
    .video-modal.shorts-video .modal-content,
    .video-modal.tiktok-video .modal-content,
    .video-modal.reels-video .modal-content {
        width: 99vw;
        max-width: 400px;
        max-height: 90vh;
    }
    
    .video-modal.instagram-video .modal-content {
        width: 99vw;
        max-width: 450px;
        max-height: 90vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .video-modal {
        padding: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .video-modal.shorts-video .modal-content,
    .video-modal.tiktok-video .modal-content,
    .video-modal.reels-video .modal-content {
        width: 100vw;
        max-width: 100%;
        height: 99vh;
        border-radius: 0;
    }
    
    .video-modal.instagram-video .modal-content {
        width: 99vw;
        height: 99vw;
        max-height: 99vh;
    }
    
    .modal-close {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-error {
        padding: 20px;
    }
    
    .video-error p {
        font-size: 1rem;
    }
}


/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        padding: 1.5rem;
    }
    
    .artist-photo-container {
        width: 140px;
        height: 140px;
    }
    
    .artist-info h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .donation-methods,
    .qr-section {
        padding: 1.5rem;
    }
    
    .donation-links,
    .bank-cards,
    .phone-payments,
    .social-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #site-header {
        min-height: 350px;
    }
    
    .artist-info h1 {
        font-size: 1.8rem;
    }
    
    .donation-card,
    .bank-card,
    .phone-payment,
    .social-card {
        padding: 1.5rem;
    }
    
    .card-number {
        font-size: 1.2rem;
    }
}

/* Дополнительные адаптивные стили */
@media (max-width: 992px) {
    .donation-links,
    .bank-cards,
    .social-grid,
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .artist-photo-container {
        width: 120px;
        height: 120px;
    }
    
    .artist-info h1 {
        font-size: 2rem;
    }
    
    .donation-links,
    .bank-cards,
    .phone-payments,
    .social-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .method-category h3 {
        font-size: 1.3rem;
    }
    
    .card-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 0;
    }
    
    .artist-info h1 {
        font-size: 1.6rem;
    }
    
    .artist-info p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .donation-card,
    .bank-card,
    .phone-payment,
    .social-card {
        padding: 1.2rem;
    }
}

/* Стили для кнопки "Поделиться" */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color, #ff4e8c);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.share-button:hover {
    background: #ff3d7a;
    transform: scale(1.05);
}

/* Адаптивные размеры модальных окон для разных платформ */
.video-modal.youtube-video .modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.video-modal.tiktok-video .modal-content {
    width: 380px;
    max-width: 90%;
    aspect-ratio: 9/16;
}

.video-modal.instagram-video .modal-content {
    width: 500px;
    max-width: 90%;
    aspect-ratio: 1/1;
}

.video-modal.vk-video .modal-content {
    width: 500px;
    max-width: 90%;
    min-height: 300px;
    padding: 2rem;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.video-error p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

.video-error .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.video-error .btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .video-modal .modal-content {
        width: 95% !important;
        padding: 15px;
    }
    
    .video-modal.youtube-video .modal-content {
        aspect-ratio: 16/9;
        max-height: 70vh;
    }
    
    .video-modal.tiktok-video .modal-content {
        width: 350px !important;
        max-height: 80vh;
    }
    
    .video-modal.instagram-video .modal-content {
        width: 350px !important;
        max-height: 80vh;
    }
    
    .video-modal.vk-video .modal-content {
        width: 95% !important;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .video-modal.tiktok-video .modal-content,
    .video-modal.instagram-video .modal-content {
        width: 95% !important;
    }
}

/* Адаптивные размеры модальных окон для всех платформ */

/* YouTube обычные видео (16:9) */
.video-modal.youtube-video .modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

/* YouTube Shorts (9:16) */
.video-modal.shorts-video .modal-content {
    width: 360px;
    max-width: 90%;
    aspect-ratio: 9/16;
}

/* TikTok (9:16) */
.video-modal.tiktok-video .modal-content {
    width: 380px;
    max-width: 90%;
    aspect-ratio: 9/16;
}

/* Instagram обычные видео/посты (1:1) */
.video-modal.instagram-video .modal-content {
    width: 500px;
    max-width: 90%;
    aspect-ratio: 1/1;
}

/* Instagram Reels (9:16) */
.video-modal.reels-video .modal-content {
    width: 360px;
    max-width: 90%;
    aspect-ratio: 9/16;
}

/* VK видео */
.video-modal.vk-video .modal-content {
    width: 850px;
    max-width: 90%;
    aspect-ratio: 16/9;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .video-modal .modal-content {
        width: 95% !important;
        max-height: 90vh;
        padding: 10px;
    }
    
    .video-modal.youtube-video .modal-content,
    .video-modal.vk-video .modal-content {
        aspect-ratio: 16/9;
        height: auto;
        max-height: 70vh;
    }
    
    .video-modal.shorts-video .modal-content,
    .video-modal.tiktok-video .modal-content,
    .video-modal.reels-video .modal-content {
        width: 95% !important;
        max-width: 400px;
        aspect-ratio: 9/16;
        max-height: 90vh;
    }
    
    .video-modal.instagram-video .modal-content {
        width: 95% !important;
        max-width: 450px;
        aspect-ratio: 1/1;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .video-modal .modal-content {
        padding: 5px;
        border-radius: 8px;
    }
    
    .modal-close {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
