/* ============================================================= BYO COSPLAY
   Cinematic cosplay-stage design system. Dark canvas, neon accents,
   glass surfaces, fluid type. Built for speed + AdSense-safe layouts.
   ============================================================================ */

:root {
    --ink: #07060d;
    --ink-2: #0c0b16;
    --panel: #131124;
    --panel-2: #1a1830;
    --line: rgba(255, 255, 255, 0.10);
    --line-soft: rgba(255, 255, 255, 0.06);
    --text: #ece9f5;
    --muted: #a39fb8;
    --muted-2: #76728c;

    --cyan: #2bd9ff;
    --magenta: #ff3fa4;
    --amber: #ffb02e;
    --violet: #8b5cff;
    --green: #34e2a4;

    --grad-hot: linear-gradient(120deg, var(--magenta), var(--violet) 55%, var(--cyan));
    --grad-cool: linear-gradient(120deg, var(--cyan), var(--violet));
    --grad-text: linear-gradient(120deg, #fff, #cde9ff 40%, #ffc2e6);

    --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --radius-sm: 12px;
    --header: 72px;
    --maxw: 1240px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(139, 92, 255, 0.18), transparent 60%),
        radial-gradient(900px 600px at -10% 10%, rgba(43, 217, 255, 0.12), transparent 55%),
        var(--ink);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: Sora, Inter, sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.4em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--magenta); color: #fff; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

.skip-link {
    position: fixed; left: 1rem; top: -5rem; z-index: 80;
    background: #fff; color: #000; padding: 0.7rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

/* reading progress bar */
.read-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--grad-hot); z-index: 60; transition: width 0.1s linear;
    box-shadow: 0 0 16px rgba(255, 63, 164, 0.6);
}

/* ----------------------------------------------------------------- header */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
    display: flex; align-items: center;
    background: rgba(7, 6, 13, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck { background: rgba(7, 6, 13, 0.9); border-bottom-color: var(--line-soft); }
.header-inner { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; display: flex; align-items: center; gap: 1.2rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: Sora; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand img { width: 44px; height: 34px; object-fit: contain; }
.brand span strong { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.6rem; }
.site-nav > a, .nav-drop-toggle {
    padding: 0.55rem 0.85rem; border-radius: 10px; color: var(--muted);
    font-size: 0.94rem; font-weight: 500; background: none; border: 0; cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.site-nav > a:hover, .nav-drop-toggle:hover, .site-nav > a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 0.6rem); left: 0; min-width: 230px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 0.5rem; box-shadow: var(--shadow); display: none; flex-direction: column; gap: 2px;
}
.nav-drop.is-open .nav-drop-menu { display: flex; animation: pop 0.18s var(--ease); }
.nav-drop-menu a { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; border-radius: 9px; color: var(--muted); font-size: 0.92rem; }
.nav-drop-menu a span { margin-left: auto; font-size: 0.72rem; color: var(--muted-2); background: rgba(255, 255, 255, 0.06); padding: 0.05rem 0.45rem; border-radius: 20px; }
.nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.header-search { position: relative; display: flex; }
.header-search input {
    width: 190px; padding: 0.5rem 2.1rem 0.5rem 0.85rem; border-radius: 30px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text);
    font-size: 0.88rem; transition: width 0.25s var(--ease), border-color 0.2s;
}
.header-search input:focus { outline: none; width: 230px; border-color: var(--cyan); }
.header-search button { position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 0.4rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }

/* ----------------------------------------------------------------- buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1.4rem; border-radius: 30px; font-weight: 600; font-size: 0.96rem;
    border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s; white-space: nowrap;
}
.button.primary { background: var(--grad-hot); color: #fff; box-shadow: 0 10px 30px rgba(255, 63, 164, 0.32); }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 63, 164, 0.42); }
.button.ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--text); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.button.dark { background: #fff; color: #000; }
.button.dark:hover { transform: translateY(-2px); }
.button.mini { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
@media (max-width: 860px) { .button.mini.ghost { display: none; } }

/* ----------------------------------------------------------------- hero */
.hero {
    position: relative; padding: calc(var(--header) + 3rem) 0 3rem;
    overflow: hidden;
}
.hero-grid { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: stretch; }

.hero-lead {
    position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px;
    display: flex; flex-direction: column; justify-content: flex-end;
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-lead .lead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 0.6s var(--ease); }
.hero-lead:hover .lead-img { transform: scale(1.08); }
.hero-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,13,0.05) 30%, rgba(7,6,13,0.65) 70%, rgba(7,6,13,0.95)); }
.hero-lead .lead-copy { position: relative; z-index: 2; padding: 2rem; }
.hero-lead h1 { font-size: clamp(1.8rem, 3.4vw, 3rem); margin-bottom: 0.5rem; }
.hero-lead p { color: #d9d6e8; max-width: 60ch; margin: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--cyan); margin-bottom: 0.8rem; }
.eyebrow.tag { background: rgba(43,217,255,0.12); border: 1px solid rgba(43,217,255,0.3); padding: 0.3rem 0.7rem; border-radius: 30px; }
.chip-cat { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 30px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--text); }

.meta-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.hero-side { display: flex; flex-direction: column; gap: 0.8rem; }
.hero-side-head { display: flex; align-items: center; justify-content: space-between; }
.hero-side-head h2 { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.trend-list { display: flex; flex-direction: column; gap: 0.55rem; }
.trend-item {
    display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.75rem; border-radius: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--line-soft); transition: background 0.2s, transform 0.2s;
}
.trend-item:hover { background: rgba(255,255,255,0.06); transform: translateX(3px); }
.trend-item .rank { font-family: Sora; font-weight: 800; font-size: 1.2rem; background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 1.4rem; }
.trend-item h3 { font-size: 0.95rem; line-height: 1.3; margin: 0 0 0.25rem; }
.trend-item .meta-row { margin-top: 0.2rem; font-size: 0.74rem; }

/* ----------------------------------------------------------------- ticker */
.ticker { border-block: 1px solid var(--line-soft); background: rgba(255,255,255,0.02); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 2.5rem; padding: 0.7rem 0; white-space: nowrap; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker a { color: var(--muted); font-size: 0.86rem; display: inline-flex; gap: 0.6rem; }
.ticker a::before { content: "◆"; color: var(--magenta); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- sections */
.section { padding: 3.4rem 0; }
.section .container { position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.section-head p { color: var(--muted); max-width: 56ch; margin: 0.3rem 0 0; }
.section-label { color: var(--magenta); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.4rem; }
.link-more { color: var(--cyan); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 0.35rem; }
.link-more:hover { gap: 0.6rem; }

/* category pills */
.cat-rail { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.cat-pill, .filter {
    padding: 0.5rem 1rem; border-radius: 30px; background: rgba(255,255,255,0.04);
    border: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.cat-pill:hover, .filter:hover { color: var(--text); border-color: var(--cyan); }
.filter.active, .cat-pill.is-active { background: var(--grad-cool); color: #fff; border-color: transparent; }

/* ----------------------------------------------------------------- cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; }
.card-grid.tight { gap: 1rem; }

.story-card {
    position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
    overflow: hidden; background: var(--panel); border: 1px solid var(--line-soft);
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.story-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow-soft); }
.story-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.story-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.story-card:hover .thumb img { transform: scale(1.06); }
.story-card .thumb .chip-cat { position: absolute; top: 0.8rem; left: 0.8rem; backdrop-filter: blur(8px); background: rgba(7,6,13,0.55); }
.story-card .body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.story-card h3 { font-size: 1.12rem; line-height: 1.25; }
.story-card .dek { color: var(--muted); font-size: 0.92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .meta-row { margin-top: auto; }
.story-card a.stretch::after { content: ""; position: absolute; inset: 0; }

/* compact list card */
.mini-card { display: flex; gap: 0.9rem; align-items: center; padding: 0.6rem; border-radius: 14px; transition: background 0.2s; }
.mini-card:hover { background: rgba(255,255,255,0.04); }
.mini-card img { width: 84px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini-card h3 { font-size: 0.95rem; line-height: 1.3; margin: 0 0 0.2rem; }

/* ----------------------------------------------------------------- world orbit */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.world-orbit {
    position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%;
    border-radius: 50%; border: 1px solid var(--line); background:
        radial-gradient(circle at 50% 50%, rgba(139,92,255,0.12), transparent 60%);
}
.world-orbit::before, .world-orbit::after { content: ""; position: absolute; inset: 16%; border: 1px solid var(--line-soft); border-radius: 50%; }
.world-orbit::after { inset: 32%; }
.world-orbit span {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    padding: 0.4rem 0.85rem; border-radius: 30px; font-size: 0.8rem; font-weight: 600;
    background: rgba(7,6,13,0.7); border: 1px solid var(--c, var(--cyan)); color: #fff;
    box-shadow: 0 0 20px -4px var(--c, var(--cyan)); animation: float 6s var(--ease) infinite; backdrop-filter: blur(6px);
}
.world-orbit span:nth-child(2) { animation-delay: 1s; }
.world-orbit span:nth-child(3) { animation-delay: 2s; }
.world-orbit span:nth-child(4) { animation-delay: 3s; }
.world-orbit span:nth-child(5) { animation-delay: 1.5s; }

/* ----------------------------------------------------------------- studio */
.studio-band { background: linear-gradient(180deg, transparent, rgba(139,92,255,0.06)); }
.studio-panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; display: grid; gap: 1rem; box-shadow: var(--shadow-soft);
}
.studio-panel.wide { grid-template-columns: repeat(3, 1fr); align-items: end; }
.studio-panel.wide .full { grid-column: 1 / -1; }
.studio-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; align-items: start; }
label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
input, select, textarea {
    padding: 0.75rem 0.9rem; border-radius: 12px; background: rgba(255,255,255,0.04);
    border: 1px solid var(--line); color: var(--text); font-size: 0.95rem; transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); }
select option { background: var(--panel); }
.studio-output {
    grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.55rem;
    padding: 1.2rem; border-radius: 14px; background: rgba(43,217,255,0.05); border: 1px solid rgba(43,217,255,0.2);
}
.studio-output strong { font-family: Sora; font-size: 1.15rem; }
.studio-output span { color: var(--muted); font-size: 0.92rem; }
.studio-output span b { color: var(--text); }
.provider-strip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.provider-strip h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.provider-strip p { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; margin: 0; }
.provider-strip p strong { color: var(--green); font-size: 0.8rem; }

/* ----------------------------------------------------------------- page hero */
.page-hero { padding: calc(var(--header) + 3rem) 0 1.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.breadcrumbs { display: flex; gap: 0.5rem; font-size: 0.82rem; color: var(--muted-2); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span { color: var(--muted-2); }

/* ----------------------------------------------------------------- article */
.article-wrap { padding: calc(var(--header) + 2rem) 0 2rem; }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.4rem; align-items: start; }
.article-main { min-width: 0; }
.article-figure { border-radius: var(--radius); overflow: hidden; margin: 1.2rem 0; border: 1px solid var(--line); position: relative; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { font-size: 0.8rem; color: var(--muted-2); padding: 0.6rem 0.9rem; background: var(--panel); }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 0.6rem; }
.article-head .dek { font-size: 1.15rem; color: var(--muted); max-width: 70ch; }
.byline { display: flex; align-items: center; gap: 0.7rem; margin: 1.1rem 0; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; color: var(--muted); flex-wrap: wrap; }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-hot); display: grid; place-items: center; font-weight: 700; color: #fff; font-family: Sora; }
.share-row { display: flex; gap: 0.5rem; margin-left: auto; }
.share-row a, .share-row button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: all 0.2s; font-size: 0.9rem; }
.share-row a:hover, .share-row button:hover { color: #fff; border-color: var(--cyan); transform: translateY(-2px); }

.article-content { font-size: 1.08rem; line-height: 1.8; color: #ded9ec; }
.article-content > * { max-width: 70ch; }
.article-content p { margin: 0 0 1.2rem; }
.article-content h2 { font-size: 1.5rem; margin: 2rem 0 0.8rem; }
.article-content h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.article-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(43,217,255,0.4); }
.article-content ul, .article-content ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote { margin: 1.4rem 0; padding: 0.6rem 1.2rem; border-left: 3px solid var(--magenta); color: #fff; font-style: italic; background: rgba(255,63,164,0.06); border-radius: 0 12px 12px 0; }
.article-content img { border-radius: 12px; margin: 1.2rem 0; }

.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.8rem 0; }
.tag-row a { font-size: 0.82rem; padding: 0.35rem 0.8rem; border-radius: 30px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); }
.tag-row a:hover { color: var(--text); border-color: var(--cyan); }

.faq-block { margin: 2rem 0; }
.faq-item { border: 1px solid var(--line-soft); border-radius: 14px; margin-bottom: 0.7rem; overflow: hidden; background: rgba(255,255,255,0.02); }
.faq-item summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; font-family: Sora; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 1.2rem 1.1rem; color: var(--muted); margin: 0; }

.article-aside { position: sticky; top: calc(var(--header) + 1rem); display: flex; flex-direction: column; gap: 1.2rem; }
.aside-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.2rem; }
.aside-card h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.9rem; }
.source-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.source-list a { color: var(--cyan); font-size: 0.88rem; display: block; }
.source-list a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- ads */
.ad-slot { margin: 1.6rem auto; text-align: center; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; }
.ad-slot .ad-label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.ad-placeholder { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 12px, rgba(255,255,255,0.04) 12px, rgba(255,255,255,0.04) 24px); border: 1px dashed var(--line); border-radius: 14px; padding: 1.4rem; }
.ad-placeholder::before { content: "Ad space"; color: var(--muted-2); font-size: 0.85rem; }
.ad-in_article { max-width: 70ch; }
.ad-sidebar { min-height: 250px; }

/* ----------------------------------------------------------------- newsletter band */
.cta-band { margin: 1rem 0; }
.cta-inner { background: var(--grad-hot); border-radius: calc(var(--radius) + 6px); padding: 2.6rem; text-align: center; position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 50% 0%, rgba(255,255,255,0.25), transparent 70%); }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); color: #fff; position: relative; }
.cta-inner p { color: rgba(255,255,255,0.9); position: relative; max-width: 50ch; margin-inline: auto; }
.cta-form { display: flex; gap: 0.6rem; max-width: 460px; margin: 1.4rem auto 0; position: relative; }
.cta-form input { flex: 1; background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-form input::placeholder { color: rgba(255,255,255,0.7); }
.cta-status { color: #fff; font-size: 0.88rem; margin-top: 0.7rem; min-height: 1.2em; position: relative; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 2rem; background: rgba(0,0,0,0.3); }
.footer-grid { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 40ch; }
.footer-news label { font-size: 0.82rem; margin-bottom: 0.5rem; }
.news-row { display: flex; gap: 0.5rem; }
.news-row input { flex: 1; }
.news-status { font-size: 0.82rem; color: var(--green); min-height: 1.1em; margin: 0.4rem 0 0; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 0.3rem 0; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; gap: 1rem; flex-wrap: wrap; color: var(--muted-2); font-size: 0.84rem; }
.footer-bottom nav { display: flex; gap: 1rem; }
.footer-bottom nav a:hover { color: var(--cyan); }

/* ----------------------------------------------------------------- prose pages */
.prose { max-width: 760px; }
.prose p, .prose li { color: #d4d0e3; font-size: 1.04rem; line-height: 1.8; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.7rem; }
.prose h3 { font-size: 1.18rem; margin: 1.5rem 0 0.5rem; }
.prose a { color: var(--cyan); text-decoration: underline; }
.prose ul { padding-left: 1.3rem; }

/* ----------------------------------------------------------------- events */
.event-card .thumb .date-badge {
    position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
    background: var(--grad-hot); color: #fff; font-weight: 700; font-size: 0.78rem;
    padding: 0.3rem 0.7rem; border-radius: 30px; box-shadow: 0 6px 18px rgba(255,63,164,0.4);
}
.event-card .thumb .date-badge.past { background: rgba(7,6,13,0.7); color: var(--muted); box-shadow: none; border: 1px solid var(--line); }
.event-card .thumb .chip-cat { top: auto; bottom: 0.8rem; left: 0.8rem; }
.event-badges { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.chip-cat.live { background: rgba(52,226,164,0.14); border-color: rgba(52,226,164,0.4); color: #9af7d4; }

.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 1.4rem 0; }
.event-facts .fact { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 0.9rem 1rem; }
.event-facts .fact span { display: block; color: var(--muted-2); font-size: 0.76rem; margin-bottom: 0.25rem; }
.event-facts .fact strong { font-family: Sora; font-size: 0.98rem; }

.event-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.event-cta .button { padding: 0.7rem 1.1rem; font-size: 0.9rem; }

.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 1.2rem 0; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.social-strip { display: flex; align-items: center; gap: 0.5rem; margin: 1.6rem 0; flex-wrap: wrap; }
.social-strip span { color: var(--muted); font-size: 0.88rem; margin-right: 0.2rem; }
.social-strip a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text); font-weight: 700; transition: all 0.2s; }
.social-strip a:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--cyan); }

/* ----------------------------------------------------------------- anime / titles */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.1rem; }
.poster-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x mandatory; }
.poster-rail .poster-card { scroll-snap-align: start; }
.poster-card { display: flex; flex-direction: column; gap: 0.4rem; }
.poster-img { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel); box-shadow: var(--shadow-soft); transition: transform 0.25s var(--ease), border-color 0.25s; }
.poster-card:hover .poster-img { transform: translateY(-5px); border-color: var(--cyan); }
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.rating-badge { position: absolute; top: 0.5rem; left: 0.5rem; background: rgba(7,6,13,0.8); color: var(--amber); font-weight: 700; font-size: 0.78rem; padding: 0.2rem 0.5rem; border-radius: 20px; border: 1px solid rgba(255,176,46,0.4); }
.play-badge { position: absolute; bottom: 0.5rem; right: 0.5rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-hot); color: #fff; font-size: 0.75rem; box-shadow: 0 4px 14px rgba(255,63,164,0.5); }
.poster-card h3 { font-size: 0.92rem; line-height: 1.25; margin: 0; }
.poster-meta { color: var(--muted-2); font-size: 0.78rem; }

.title-page { position: relative; padding-bottom: 2rem; }
.title-backdrop { position: absolute; inset: 0; height: 520px; background-size: cover; background-position: center; z-index: -1; }
.title-head { display: grid; grid-template-columns: 220px 1fr; gap: 1.8rem; align-items: start; margin-top: 1rem; }
.title-poster { width: 220px; aspect-ratio: 2/3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.title-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0.5rem 0 0.2rem; }
.title-original { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.4rem; }
.title-tagline { color: var(--cyan); font-style: italic; margin: 0.6rem 0; }
.title-overview { color: #ded9ec; line-height: 1.7; max-width: 70ch; }
.rating-inline { color: var(--amber); font-weight: 700; }
.tag-chip { font-size: 0.78rem; padding: 0.25rem 0.65rem; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--muted); }
.tag-chip:hover { color: var(--text); border-color: var(--cyan); }
.cast-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cast-chip { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0.6rem 0.9rem; min-width: 140px; }
.cast-chip strong { display: block; font-size: 0.9rem; }
.cast-chip span { color: var(--muted-2); font-size: 0.8rem; }
@media (max-width: 720px) {
    .title-head { grid-template-columns: 120px 1fr; gap: 1rem; }
    .title-poster { width: 120px; }
    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.8rem; }
}

/* ----------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- empty */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h3 { color: var(--text); }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; }
    .article-shell { grid-template-columns: 1fr; }
    .article-aside { position: static; flex-direction: row; flex-wrap: wrap; }
    .article-aside .aside-card { flex: 1; min-width: 240px; }
    .split { grid-template-columns: 1fr; }
    .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .site-nav { position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 0.6rem; transform: translateY(-130%); transition: transform 0.3s var(--ease); margin: 0; }
    .site-nav.is-open { transform: none; }
    .site-nav > a, .nav-drop-toggle { padding: 0.9rem 1rem; width: 100%; text-align: left; }
    .nav-drop-menu { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,0.03); }
    .nav-toggle { display: flex; }
    .header-search input { width: 130px; }
    .header-search input:focus { width: 150px; }
    .studio-panel.wide { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .header-search { display: none; }
    .cta-form { flex-direction: column; }
    .hero-lead { min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================= ADMIN + AUTH */
.admin-body { background: var(--ink); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink-2); border-right: 1px solid var(--line-soft); padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 0.6rem; font-family: Sora; font-weight: 700; margin-bottom: 1.2rem; font-size: 1rem; }
.admin-brand img { width: 34px; height: 26px; object-fit: contain; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar nav a, .sidebar-link { padding: 0.6rem 0.8rem; border-radius: 10px; color: var(--muted); font-size: 0.92rem; transition: background 0.2s, color 0.2s; }
.admin-sidebar nav a:hover, .sidebar-link:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.admin-sidebar nav a.active { background: var(--grad-cool); color: #fff; }
.sidebar-link { margin-top: auto; border: 1px solid var(--line); text-align: center; }
.admin-main { padding: 1.6rem 2rem 3rem; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.2rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line-soft); }
.admin-topbar strong { display: block; font-family: Sora; }
.admin-topbar span { color: var(--muted-2); font-size: 0.82rem; }
.admin-topbar a { color: var(--cyan); font-size: 0.9rem; }

.notice { padding: 0.8rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: 0.9rem; border: 1px solid var(--line); }
.notice.success { background: rgba(52,226,164,0.1); border-color: rgba(52,226,164,0.3); color: #9af7d4; }
.notice.warning { background: rgba(255,176,46,0.1); border-color: rgba(255,176,46,0.3); color: #ffd596; }
.notice.error { background: rgba(255,99,99,0.1); border-color: rgba(255,99,99,0.3); color: #ffb0b0; }

.admin-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin-hero h1 { font-size: 1.7rem; }
.admin-hero p { color: var(--muted); margin: 0.3rem 0 0; max-width: 60ch; }
.command-actions { display: flex; gap: 0.6rem; }
.command-actions form { margin: 0; }

.metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.metric-strip > div { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 1.1rem 1.2rem; }
.metric-strip span { display: block; color: var(--muted-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.metric-strip strong { font-family: Sora; font-size: 1.8rem; }

.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; align-items: start; }
.admin-panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem; }
.admin-panel.wide { grid-column: 1 / -1; }
.admin-panel h2 { font-size: 1rem; margin-bottom: 1rem; }
.admin-page-heading { margin-bottom: 1.4rem; }
.admin-page-heading h1 { font-size: 1.6rem; }
.admin-page-heading p { color: var(--muted); max-width: 70ch; }

.admin-form { display: flex; flex-direction: column; gap: 0.8rem; }
.admin-form label { font-size: 0.84rem; }
.admin-form textarea { min-height: 72px; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.switch-row { flex-direction: row !important; align-items: center; gap: 0.5rem !important; }
.switch-row input { width: auto; }

.status-list p { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: 0.9rem; }
.status-list p strong { color: var(--green); font-size: 0.82rem; }

.admin-table { display: flex; flex-direction: column; font-size: 0.88rem; }
.admin-row { display: grid; grid-template-columns: 2.4fr 1fr 0.8fr 0.8fr; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.admin-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-head { color: var(--muted-2); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.inline-form { display: flex; gap: 0.4rem; align-items: center; }
.inline-form select { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
.inline-form button { padding: 0.42rem 0.8rem; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 0.82rem; }
.inline-form button:hover { border-color: var(--cyan); }
.settings-form textarea { min-height: 90px; }

.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.preset-btn { padding: 0.6rem; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.preset-btn:hover { border-color: var(--cyan); background: rgba(43,217,255,0.08); }

.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.auth-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; width: min(100%, 380px); display: flex; flex-direction: column; gap: 0.9rem; box-shadow: var(--shadow); }
.auth-panel img { width: 54px; height: 42px; object-fit: contain; }
.auth-panel h1 { font-size: 1.4rem; }
.auth-panel label { font-size: 0.85rem; }
.auth-panel code { background: rgba(255,255,255,0.06); padding: 0.1rem 0.4rem; border-radius: 5px; font-size: 0.85rem; }

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-link { margin: 0; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-main { padding: 1.2rem; }
    .admin-row { grid-template-columns: 2fr 1fr; }
    .admin-row span:nth-child(n+3) { display: none; }
}
