/* ═══════════════════════════════════════════════════════════════
   AZTECHMETAL — ARTICLE / BLOG STYLES v2.0
   Premium editorial layout with immersive reading experience
   Responsive-first for Web App — 320px to 2560px
   ═══════════════════════════════════════════════════════════════ */

/* ─── READING PROGRESS BAR ─── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-red), var(--c-red-bright), var(--c-red-glow));
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5), 0 0 20px rgba(139, 0, 0, 0.3);
}

/* ─── ARTICLE HERO ─── */
.article-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    max-height: 900px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.article-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.4) brightness(0.35);
    animation: heroZoom 25s ease-in-out infinite alternate;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            var(--c-bg) 0%,
            rgba(10,10,10,0.92) 25%,
            rgba(10,10,10,0.5) 60%,
            rgba(10,10,10,0.3) 80%,
            rgba(10,10,10,0.6) 100%
        ),
        linear-gradient(
            90deg,
            rgba(139, 0, 0, 0.08) 0%,
            transparent 50%
        );
}

.article-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--gap) clamp(2rem, 6vw, 4rem);
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 1s var(--ease-out) 0.3s both;
}

.article-hero__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--c-text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    color: var(--c-text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 700px;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-items: center;
}

.article-hero__author {
    color: var(--c-red-bright);
    font-weight: 500;
}

.article-hero__reading {
    padding: 4px 12px;
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid rgba(139, 0, 0, 0.3);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb a {
    color: var(--c-text-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-red-bright);
    transition: width 0.3s var(--ease-out);
}

.breadcrumb a:hover {
    color: var(--c-red-bright);
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb span {
    color: var(--c-text-muted);
    opacity: 0.4;
}

.breadcrumb__current {
    color: var(--c-text) !important;
    opacity: 1 !important;
}

/* ─── ARTICLE LAYOUT: Content + Sidebar ─── */
.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(2rem, 4vw, 4rem) var(--gap);
}

/* ─── TABLE OF CONTENTS (SIDEBAR) ─── */
.toc {
    position: sticky;
    top: 90px;
    align-self: start;
    padding: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-red);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--c-red) transparent;
    /* Reset float - using grid now */
    float: none;
    width: auto;
    margin: 0;
}

.toc::-webkit-scrollbar { width: 3px; }
.toc::-webkit-scrollbar-thumb { background: var(--c-red); }

.toc__title {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--c-red-bright);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc__title::before {
    content: '☰';
    font-size: 1rem;
}

.toc__list {
    list-style: none;
    padding: 0;
    counter-reset: toc;
}

.toc__list li {
    counter-increment: toc;
    margin-bottom: 2px;
}

.toc__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--c-text-muted);
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s var(--ease-out);
    border-left: 2px solid transparent;
    line-height: 1.3;
}

.toc__link:hover {
    color: var(--c-text);
    background: rgba(139, 0, 0, 0.05);
    border-left-color: var(--c-red);
}

.toc__link.active {
    color: var(--c-red-bright);
    background: rgba(139, 0, 0, 0.1);
    border-left-color: var(--c-red-bright);
    font-weight: 500;
}

.toc__link::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    color: var(--c-red);
    opacity: 0.5;
    min-width: 20px;
}

/* ─── ARTICLE BODY ─── */
.article-body {
    max-width: none;
    margin: 0;
    padding: 0;
}

.article-content {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.85;
    color: rgba(232, 228, 224, 0.85);
}

.article-lead {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-text);
    border-left: 4px solid var(--c-red);
    padding: 20px 24px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.06), transparent 70%);
    position: relative;
}

.article-lead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--c-red-bright), var(--c-red));
}

/* ─── ARTICLE HEADINGS ─── */
.article-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-text);
    margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 2px solid var(--c-border);
    position: relative;
    letter-spacing: 0.02em;
    line-height: 1.1;
    scroll-margin-top: 100px;
}

.article-h2::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--c-red);
}

.article-h2__num {
    font-family: var(--font-accent);
    color: var(--c-red);
    font-size: 0.55em;
    margin-right: 8px;
    opacity: 0.4;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-text);
    margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(0.5rem, 1vw, 0.8rem);
    letter-spacing: 0.03em;
    position: relative;
    padding-left: 16px;
}

.article-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: calc(100% - 8px);
    background: var(--c-red);
    opacity: 0.6;
}

/* ─── ARTICLE TEXT ELEMENTS ─── */
.article-content p {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.article-content strong {
    color: var(--c-text);
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: var(--c-red-bright);
}

.article-quote {
    margin: clamp(1.5rem, 3vw, 2.5rem) 0;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface));
    border-left: 4px solid var(--c-red);
    position: relative;
    overflow: hidden;
}

.article-quote::before {
    content: '"';
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    color: var(--c-red);
    opacity: 0.08;
    position: absolute;
    top: -10px;
    left: 15px;
    line-height: 1;
    pointer-events: none;
}

.article-quote::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.03));
    pointer-events: none;
}

.article-quote p {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-style: italic;
    color: var(--c-text);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: clamp(1rem, 2vw, 1.5rem) 0;
}

.article-list li {
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid var(--c-border);
    position: relative;
    transition: padding 0.3s var(--ease-out);
}

.article-list li:hover {
    padding-left: 28px;
}

.article-list li::before {
    content: '▸';
    color: var(--c-red);
    position: absolute;
    left: 0;
    font-weight: bold;
    transition: transform 0.3s var(--ease-out);
}

.article-list li:hover::before {
    transform: translateX(3px);
}

/* ─── TIMELINE ─── */
.article-timeline {
    margin: clamp(1.5rem, 3vw, 2.5rem) 0;
    padding-left: clamp(1.5rem, 3vw, 2rem);
    border-left: 2px solid var(--c-surface-3);
    position: relative;
}

.timeline-item {
    position: relative;
    padding: 8px 0 clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
    transition: transform 0.3s var(--ease-out);
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * clamp(1.5rem, 3vw, 2rem) - 6px);
    top: 12px;
    width: 12px;
    height: 12px;
    background: var(--c-red);
    border: 3px solid var(--c-bg);
    z-index: 1;
    transition: all 0.3s var(--ease-out);
}

.timeline-item:hover::before {
    background: var(--c-red-bright);
    box-shadow: 0 0 12px rgba(204, 0, 0, 0.5);
    transform: scale(1.3);
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--c-red-bright);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.timeline-item p {
    margin: 0;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: rgba(232, 228, 224, 0.7);
    line-height: 1.5;
}

/* ─── SUBGENRE GRID ─── */
.subgenre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.subgenre-card {
    background: var(--c-surface);
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--c-border);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.subgenre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-red-bright);
    transition: width 0.5s var(--ease-out);
}

.subgenre-card:hover::before {
    width: 100%;
}

.subgenre-card:hover {
    border-color: var(--c-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.12);
}

.subgenre-card h3 {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--c-text);
    margin-bottom: 8px;
    padding-left: 0 !important;
}

.subgenre-card h3::before {
    display: none !important;
}

.subgenre-card p {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--c-text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.subgenre-card span {
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: var(--c-text-dim);
}

/* ─── FESTIVAL LIST ─── */
.festival-list {
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.festival-item {
    padding: clamp(1rem, 2vw, 1.5rem);
    background: var(--c-surface);
    border-left: 3px solid var(--c-red);
    margin-bottom: clamp(0.8rem, 1.5vw, 1rem);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.festival-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.festival-item:hover::after {
    opacity: 1;
}

.festival-item:hover {
    border-left-color: var(--c-red-bright);
    transform: translateX(6px);
}

.festival-item h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--c-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    padding-left: 0 !important;
}

.festival-item h3::before {
    display: none !important;
}

.festival-item p {
    margin: 4px 0;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
}

/* ─── BANDS TABLE ─── */
.bands-table-wrap {
    overflow-x: auto;
    margin: clamp(1.5rem, 3vw, 2rem) 0;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--c-border);
}

.bands-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1vw, 0.9rem);
}

.bands-table th {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    letter-spacing: 0.12em;
    color: var(--c-red-bright);
    padding: 12px 16px;
    background: var(--c-surface-2);
    text-align: left;
    border-bottom: 2px solid var(--c-red);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.bands-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-border);
    color: rgba(232, 228, 224, 0.75);
    vertical-align: middle;
}

.bands-table tr {
    transition: background 0.3s var(--ease-out);
}

.bands-table tr:hover td {
    background: rgba(139, 0, 0, 0.05);
    color: var(--c-text);
}

.bands-table td:first-child {
    font-family: var(--font-accent);
    color: var(--c-red);
    width: 40px;
    text-align: center;
    opacity: 0.5;
}

/* ─── FAQ ─── */
.faq-list {
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.faq-item {
    margin-bottom: 8px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out);
}

.faq-item[open] {
    border-color: var(--c-red);
}

.faq-item summary {
    cursor: pointer;
    padding: clamp(1rem, 2vw, 1.25rem);
    list-style: none;
    display: flex;
    align-items: center;
    transition: background 0.3s var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '+';
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--c-red);
    margin-right: 16px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
}

.faq-item[open] summary::before {
    content: '−';
    color: var(--c-red-bright);
}

.faq-item summary:hover {
    background: rgba(139, 0, 0, 0.06);
}

.faq-item summary h3 {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    text-transform: uppercase;
    color: var(--c-text);
    margin: 0;
    padding-left: 0 !important;
}

.faq-item summary h3::before {
    display: none !important;
}

.faq-item p {
    padding: 0 clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.25rem) calc(24px + 16px + clamp(1rem, 2vw, 1.25rem));
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: rgba(232, 228, 224, 0.75);
    line-height: 1.7;
}

/* ─── SHARE ─── */
.article-share {
    margin: clamp(2rem, 5vw, 3rem) 0;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--c-surface);
    text-align: center;
    border: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}

.article-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-red), transparent);
}

.article-share__label {
    font-family: var(--font-accent);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    letter-spacing: 0.2em;
    color: var(--c-text-muted);
    margin-bottom: 16px;
}

.article-share__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── RELATED ARTICLES ─── */
.related-articles {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--c-border);
}

.related-articles__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-articles__title::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--c-red);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.related-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.related-card:hover {
    border-color: var(--c-red);
    transform: translate(-2px, -2px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.12);
}

.related-card__img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    filter: saturate(0.6) brightness(0.8);
}

.related-card:hover .related-card__img img {
    transform: scale(1.06);
    filter: saturate(0.8) brightness(0.9);
}

.related-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.9));
}

.related-card__body {
    padding: 20px;
}

.related-card__tag {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 3px 10px;
    background: var(--c-red);
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.related-card__body h3 {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 8px;
    padding-left: 0 !important;
}

.related-card__body h3::before {
    display: none !important;
}

.related-card__body p {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card__meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--c-text-dim);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
}

/* ─── ARTICLE FOOTER (AUTHOR BIO) ─── */
.article-author {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    margin: clamp(2rem, 4vw, 3rem) 0;
}

.article-author__avatar {
    width: 64px;
    height: 64px;
    background: var(--c-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.article-author__info h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.article-author__info p {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--c-red);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--c-red-bright);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ─── MOBILE TOC TOGGLE ─── */
.toc-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-red);
    color: var(--c-red-bright);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toc-mobile-toggle:hover {
    background: var(--c-red);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Desktop Large */
@media (min-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toc {
        position: fixed;
        top: 72px;
        right: 0;
        bottom: 0;
        width: 300px;
        max-height: none;
        height: calc(100vh - 72px);
        z-index: 900;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        border-left: 2px solid var(--c-red);
        border-top: none;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .toc.toc--open {
        transform: translateX(0);
    }

    .toc-mobile-toggle {
        display: flex;
    }

    .article-body {
        padding: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .article-hero {
        height: 65vh;
        min-height: 380px;
    }

    .article-hero__content {
        padding: 0 16px clamp(1.5rem, 4vw, 2rem);
    }

    .article-hero__meta {
        gap: 12px;
    }

    .article-layout {
        padding: clamp(1.5rem, 4vw, 2rem) 16px;
    }

    .article-content {
        font-size: 1rem;
    }

    .subgenre-grid {
        grid-template-columns: 1fr 1fr;
    }

    .breadcrumb {
        font-size: 0.65rem;
        gap: 6px;
    }

    .toc {
        width: 85vw;
        max-width: 320px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .toc-mobile-toggle {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-author {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .article-hero {
        height: 55vh;
        min-height: 340px;
    }

    .subgenre-grid {
        grid-template-columns: 1fr;
    }

    .article-hero__tags {
        gap: 6px;
    }

    .timeline-item::before {
        width: 10px;
        height: 10px;
    }

    .festival-item:hover {
        transform: translateX(3px);
    }

    .article-share__buttons {
        flex-direction: column;
    }

    .article-share__buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* PWA: safe-area-inset for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .article-hero__content {
        padding-left: max(var(--gap), env(safe-area-inset-left));
        padding-right: max(var(--gap), env(safe-area-inset-right));
    }

    .back-to-top {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .toc-mobile-toggle {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .footer__bottom {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* Print Styles */
@media print {
    .reading-progress,
    .toc,
    .toc-mobile-toggle,
    .back-to-top,
    .nav-header,
    .article-share,
    .svg-noise {
        display: none !important;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-hero {
        height: auto;
        min-height: 0;
    }

    .article-hero__bg {
        display: none;
    }

    .article-content {
        color: #000;
    }
}
