/* Общий контейнер на 1400px */
.article-premium-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 4vw;
    animation: fadeInUp 0.8s ease forwards;
}

/* 1. HERO СЕКЦИЯ (Заголовок + Главное фото) */
.article-hero {
    text-align: center;
    margin-bottom: 4rem;
}
.article-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    background: rgba(201, 169, 97, 0.1); border: 1px solid rgba(201, 169, 97, 0.3); color: var(--gold);
}
.article-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.article-hero-meta {
    display: flex; justify-content: center; align-items: center; gap: 1.5rem;
    color: var(--text-muted); font-size: 0.95rem; margin-bottom: 3rem;
}
.article-hero-meta i { color: var(--gold); margin-right: 0.4rem; }

.article-hero-image {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 169, 97, 0.1);
    transition: transform 0.8s ease;
}
.article-hero-image:hover { transform: scale(1.01); }

/* 2. ТЕЛО СТАТЬИ (Журнальная вёрстка) */
.article-body {
    max-width: 950px; /* Идеальная ширина для чтения */
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* Стилизация контента из WYSIWYG редактора */
.article-body h2, .article-body h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    margin: 3.5rem 0 1.5rem;
    line-height: 1.3;
}
.article-body p { margin-bottom: 2rem; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; transition: 0.3s; }
.article-body a:hover { color: var(--gold-light); }

/* Картинки внутри текста */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin: 2.5rem 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Цитаты */
.article-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 2rem 2.5rem;
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.08) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 3rem 0;
    line-height: 1.6;
}

/* Списки */
.article-body ul, .article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.article-body li { margin-bottom: 0.8rem; }
.article-body li::marker { color: var(--gold); }

/* YouTube видео (широкое) */
.youtube-video-container {
    margin: 3rem -10%; /* Вылезает за пределы текста для эффекта */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201, 169, 97, 0.15);
}
@media (max-width: 900px) { .youtube-video-container { margin: 2rem 0; } }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Описание и Telegram */
.article-description {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
}
.telegram-source { margin: 3rem 0; text-align: center; }
.telegram-link {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 1rem 2rem; background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3); border-radius: 10px;
    color: var(--teal); text-decoration: none; font-weight: 600; font-size: 1.05rem;
    transition: var(--transition-smooth);
}
.telegram-link:hover { background: rgba(45, 212, 191, 0.2); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(45, 212, 191, 0.2); }

/* Теги и Категория */
.article-footer-meta {
    max-width: 950px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex; flex-direction: column; gap: 1.5rem;
}
.meta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.meta-label { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.meta-label i { color: var(--gold); }
.tags-list { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tag-pill {
    padding: 0.4rem 1rem; background: rgba(107, 63, 160, 0.1);
    border: 1px solid rgba(107, 63, 160, 0.2); border-radius: 100px;
    color: var(--text-secondary); font-size: 0.85rem; text-decoration: none;
    transition: 0.3s;
}
.tag-pill:hover { background: rgba(201, 169, 97, 0.1); border-color: var(--gold); color: var(--gold); }
.category-link { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 1rem; }
.category-link:hover { text-decoration: underline; }

/* Кнопки действий */
.article-actions {
    max-width: 850px;
    margin: 3rem auto 0;
    display: flex; justify-content: space-between; align-items: center;
}
.btn-magistral {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.8rem;
    border-radius: 10px; font-weight: 600; text-decoration: none;
    transition: var(--transition-smooth); font-size: 0.95rem;
}
.btn-back {
    background: transparent; border: 1px solid var(--glass-border); color: var(--text-secondary);
}
.btn-back:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 169, 97, 0.05); }
.btn-edit {
    background: rgba(201, 169, 97, 0.1); border: 1px solid rgba(201, 169, 97, 0.3); color: var(--gold);
}
.btn-edit:hover { background: rgba(201, 169, 97, 0.2); box-shadow: 0 0 25px rgba(201, 169, 97, 0.2); }

/* 3. КОММЕНТАРИИ (ПРЕМИАЛЬНЫЙ БЛОК) */
.comments-section {
    max-width: 850px;
    margin: 5rem auto 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
}
.comments-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.comments-title i { color: var(--gold); }

/* Форма комментариев */
.comment-form { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--glass-border); }
.comment-form .form-input {
    width: 100%; padding: 1rem; background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border); border-radius: 10px;
    color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 1rem;
    transition: var(--transition-smooth); margin-bottom: 1rem;
}
[data-theme="light"] .comment-form .form-input { background: rgba(255, 255, 255, 0.5); }
.comment-form .form-input:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 20px rgba(201, 169, 97, 0.15);
}
.comment-form textarea.form-input { min-height: 120px; resize: vertical; }
.btn-submit-comment {
    width: 100%; padding: 1rem; background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(107, 63, 160, 0.1));
    border: 1px solid rgba(201, 169, 97, 0.5); border-radius: 10px; color: var(--gold);
    font-family: 'Cinzel', serif; font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-submit-comment:hover {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(107, 63, 160, 0.15));
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.3); transform: translateY(-2px);
}

/* Список комментариев */
.comment-item {
    display: flex; gap: 1.2rem; margin-bottom: 2rem; padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.comment-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.comment-avatar {
    width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--purple));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1.1rem;
}
.comment-body { flex: 1; }
.comment-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.comment-author { color: var(--gold-light); font-weight: 600; font-size: 1rem; }
.comment-date { color: var(--text-muted); font-size: 0.8rem; }
.comment-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

@media (max-width: 768px) {
    .article-premium-wrapper { padding: 2rem 1.5rem; }
    .article-hero-title { font-size: 2.2rem; }
    .article-body { font-size: 1.05rem; }
    .comments-section { padding: 1.5rem; }
    .article-actions { flex-direction: column; gap: 1rem; width: 100%; }
    .btn-magistral { width: 100%; justify-content: center; }
}