@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;600;700&display=swap");

:root {
    --bg: #0a0a0a;
    --bg-elev: #111111;
    --ink: #f5f0e6;
    --muted: #9a9488;
    --cream: #e8dfcf;
    --cream-ink: #1a1612;
    --red: #8b1e1e;
    --red-hot: #a32626;
    --gold: #c5a059;
    --line: rgba(232, 223, 207, 0.18);
    --header-h: 70px;
    --font: Inter, system-ui, sans-serif;
    --display: "Playfair Display", Georgia, serif;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.preview-banner {
    position: sticky; top: 0; z-index: 100;
    display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem;
    padding: .65rem 1.1rem;
    background: #1a0c0c; color: #fff; font-weight: 700; font-size: .88rem;
    border-bottom: 1px solid var(--gold);
}
.preview-banner a { margin-left: auto; color: var(--gold); text-decoration: underline; }

/* ===== Header ===== */
.cc-header {
    position: sticky; top: 0; z-index: 80;
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 2rem);
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--line);
}
.cc-brand {
    display: inline-flex; align-items: center; gap: .65rem;
    color: var(--cream);
}
.cc-brand-mark {
    width: 34px; height: 34px;
    border: 1px solid var(--cream);
    background:
        linear-gradient(135deg, transparent 46%, var(--cream) 46%, var(--cream) 54%, transparent 54%),
        linear-gradient(45deg, transparent 46%, var(--cream) 46%, var(--cream) 54%, transparent 54%),
        transparent;
}
.cc-brand-name {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.cc-nav {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem;
    list-style: none; margin: 0; padding: 0;
}
.cc-nav a {
    padding: .45rem .7rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cream);
    border-bottom: 2px solid transparent;
}
.cc-nav a:hover { color: #fff; }
.cc-nav a.is-active {
    border-bottom-color: var(--cream);
}

.cc-search {
    display: flex; align-items: center; gap: .4rem;
    min-width: 190px;
    padding: .45rem .7rem;
    border: 1px solid var(--line);
    background: #0f0f0f;
    color: var(--cream);
}
.cc-search input {
    width: 100%; border: 0; outline: none;
    background: transparent; color: var(--cream);
}
.cc-search input::placeholder { color: var(--muted); }
.cc-search span { color: var(--cream); opacity: .8; }
.mobile-toggle {
    display: none;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--cream);
    cursor: pointer;
}

/* ===== Layout ===== */
.cc-shell {
    width: min(var(--max), calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) 300px;
    gap: 1.75rem;
    align-items: start;
}
.cc-shell.is-solo { grid-template-columns: 1fr; }
.cc-main-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.bw { filter: grayscale(1) contrast(1.08); }

/* ===== Hero ===== */
.hero {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 1.5rem;
    align-items: center;
}
.hero-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(197, 160, 89, 0.65);
    background: #151515;
    overflow: hidden;
}
.hero-frame img,
.hero-frame .cover-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-frame::before,
.hero-frame::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border: 1px solid var(--gold);
    z-index: 2;
    pointer-events: none;
}
.hero-frame::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.hero-frame::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.hero-diamond {
    position: absolute;
    top: -5px; left: 50%;
    width: 10px; height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--gold);
    z-index: 3;
}
.cover-fallback {
    display: grid; place-items: center;
    background: #1a1a1a;
    color: var(--muted);
    font-family: var(--display);
    letter-spacing: .12em;
}

.hero-copy { padding: .25rem 0; }
.hero-title {
    margin: 0 0 .55rem;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--red-hot);
}
.hero-credits {
    margin: 0 0 .85rem;
    font-size: .85rem;
    color: var(--muted);
    letter-spacing: .04em;
}
.hero-excerpt {
    margin: 0 0 1.1rem;
    max-width: 42ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(245, 240, 230, 0.82);
}
.hero-read {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--muted);
    font-size: .85rem;
}

/* ===== Triple columns ===== */
.tri-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem;
}
.tri-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: transparent;
}
.tri-head {
    margin: 0;
    padding: .65rem .75rem;
    background: var(--cream);
    color: var(--cream-ink);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
}
.tri-stage {
    position: relative;
    flex: 1;
    min-height: 280px;
    background: #141414;
    border: 1px solid var(--line);
    border-top: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 1.25rem .9rem;
}
.tri-poster {
    width: min(86%, 180px);
    aspect-ratio: 2 / 3;
    border: 2px solid rgba(232, 223, 207, 0.35);
    background: #0d0d0d;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    transform: rotate(-3.5deg);
    overflow: hidden;
    transition: transform .25s ease;
}
.tri-card:nth-child(2) .tri-poster { transform: rotate(2.5deg); }
.tri-card:nth-child(3) .tri-poster { transform: rotate(-2deg); }
.tri-card:hover .tri-poster { transform: rotate(0deg) scale(1.02); }
.tri-poster img,
.tri-poster .cover-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zigzag CTA */
.cta-zig {
    display: block;
    width: 100%;
    margin-top: .85rem;
    padding: 1rem 1.25rem 1.35rem;
    background: var(--red);
    color: #fff;
    text-align: center;
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    border: 0;
    clip-path: polygon(
        0 0, 100% 0, 100% calc(100% - 10px),
        97% 100%, 94% calc(100% - 10px), 91% 100%, 88% calc(100% - 10px),
        85% 100%, 82% calc(100% - 10px), 79% 100%, 76% calc(100% - 10px),
        73% 100%, 70% calc(100% - 10px), 67% 100%, 64% calc(100% - 10px),
        61% 100%, 58% calc(100% - 10px), 55% 100%, 52% calc(100% - 10px),
        49% 100%, 46% calc(100% - 10px), 43% 100%, 40% calc(100% - 10px),
        37% 100%, 34% calc(100% - 10px), 31% 100%, 28% calc(100% - 10px),
        25% 100%, 22% calc(100% - 10px), 19% 100%, 16% calc(100% - 10px),
        13% 100%, 10% calc(100% - 10px), 7% 100%, 4% calc(100% - 10px),
        0 100%
    );
}
.cta-zig:hover { background: var(--red-hot); }

/* ===== Sidebar ===== */
.cc-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.side-mod { min-width: 0; }
.section-label {
    margin: 0 0 .85rem;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cream);
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--line);
}
.side-link {
    display: inline-block;
    margin-top: .65rem;
    font-size: .82rem;
    color: var(--gold);
}
.side-link:hover { color: #e0c07a; }

.cabinet-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: .7rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(232, 223, 207, 0.08);
}
.cabinet-item:last-of-type { border-bottom: 0; }
.cabinet-thumb {
    width: 56px; height: 56px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid var(--line);
}
.cabinet-thumb img,
.cabinet-thumb .cover-fallback,
.redis-thumb img,
.redis-thumb .cover-fallback {
    width: 100%; height: 100%; object-fit: cover;
}
.cabinet-kicker {
    margin: 0 0 .2rem;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}
.cabinet-item h3 {
    margin: 0 0 .2rem;
    font-family: var(--display);
    font-size: .98rem;
    line-height: 1.2;
    color: var(--cream);
}
.cabinet-item .time {
    font-size: .75rem;
    color: var(--muted);
}

.redis-item {
    display: grid;
    grid-template-columns: 22px 1fr 44px;
    gap: .55rem;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(232, 223, 207, 0.08);
}
.redis-item:last-child { border-bottom: 0; }
.redis-num {
    font-family: var(--display);
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 700;
}
.redis-item h3 {
    margin: 0;
    font-family: var(--display);
    font-size: .92rem;
    line-height: 1.2;
    color: var(--cream);
}
.redis-item small {
    display: block;
    margin-top: .15rem;
    color: var(--muted);
    font-size: .72rem;
}
.redis-thumb {
    width: 44px; height: 44px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid var(--line);
}

.prog-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: .65rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(232, 223, 207, 0.08);
}
.prog-item:last-of-type { border-bottom: 0; }
.prog-date {
    background: var(--red);
    color: #fff;
    text-align: center;
    padding: .4rem .2rem;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.15;
}
.prog-item h3 {
    margin: 0 0 .2rem;
    font-family: var(--display);
    font-size: .95rem;
    color: var(--cream);
}
.prog-meta {
    color: var(--muted);
    font-size: .75rem;
    margin-bottom: .3rem;
}
.prog-tag {
    display: inline-block;
    padding: .15rem .4rem;
    background: #1a1a1a;
    border: 1px solid var(--line);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cream);
}

/* Content pages */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
}
.card {
    border: 1px solid var(--line);
    background: var(--bg-elev);
    overflow: hidden;
}
.card-media { aspect-ratio: 2 / 3; overflow: hidden; background: #151515; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .85rem; }
.card-title {
    margin: .35rem 0;
    font-family: var(--display);
    font-size: 1.05rem;
    color: var(--cream);
}
.badge-cat {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}
.meta-soft { color: var(--muted); font-size: .8rem; }

.article-cover {
    width: min(720px, calc(100% - 1.5rem));
    margin: 0 auto 1.1rem;
    border: 1px solid rgba(197, 160, 89, 0.5);
}
.article-cover img {
    width: 100%; max-height: 440px; object-fit: cover;
}
.article-wrap {
    width: min(720px, calc(100% - 1.5rem));
    margin: 0 auto 2.5rem;
}
.breadcrumb {
    display: flex; flex-wrap: wrap; gap: .35rem;
    color: var(--muted); font-size: .85rem; margin-bottom: .75rem;
}
.breadcrumb a:hover { color: var(--cream); }
.article-wrap h1 {
    margin: .35rem 0 .7rem;
    font-family: var(--display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--cream);
}
.article-content {
    margin-top: 1.25rem;
    font-family: Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(245, 240, 230, 0.88);
}
.article-content a { color: var(--gold); }
.article-content h2, .article-content h3 {
    font-family: var(--display); color: var(--cream);
}
.article-content blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--red);
    background: rgba(139, 30, 30, 0.12);
    font-style: italic;
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.related { margin-top: 1.5rem; }
.empty {
    padding: 1.2rem;
    border: 1px dashed var(--line);
    color: var(--muted);
    text-align: center;
}
.btn-red {
    display: inline-flex;
    padding: .7rem 1.1rem;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cc-footer {
    border-top: 1px solid var(--line);
    background: #050505;
    color: var(--muted);
}
.cc-footer-inner {
    width: min(var(--max), calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    align-items: center;
}
.cc-footer strong {
    color: var(--cream);
    font-family: var(--display);
    letter-spacing: .04em;
}
.cc-footer a:hover { color: var(--cream); }

@media (max-width: 1050px) {
    .cc-shell { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-frame { max-width: 360px; }
    .tri-grid, .cards-grid { grid-template-columns: 1fr; }
    .cc-nav {
        display: none; position: absolute; left: 1rem; right: 1rem;
        top: calc(var(--header-h) + .35rem);
        flex-direction: column;
        background: #111;
        border: 1px solid var(--line);
        padding: .75rem; z-index: 50;
    }
    .cc-nav.is-open { display: flex; }
    .mobile-toggle { display: inline-grid; }
    .cc-search { min-width: 0; max-width: 140px; }
}
