/* ===================================================== Weekly Sator Events: event.php */
.sev-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 1rem 0 0; font: 600 .95rem var(--f-body); color: var(--ink-soft); }
.sev-live, .sev-soon { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; font: 700 .66rem/1.2 var(--f-head); letter-spacing: .2em; text-transform: uppercase; border: 1px solid; }
.sev-live { color: #ffe9c4; border-color: var(--blood-glow); background: rgba(168, 20, 26, .45); }
.sev-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 10px #ff5a4e; animation: sev-pulse 1.6s ease-in-out infinite; }
@keyframes sev-pulse { 50% { opacity: .35; } }
.sev-soon { color: var(--ember-2); border-color: var(--line-strong); background: rgba(200, 147, 74, .08); }

.sev-body { max-width: 1120px; margin: 0 auto; padding: 46px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.sev-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21, 16, 21, .94), rgba(9, 7, 10, .97)); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.sev-about { overflow: hidden; }
.sev-pic { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); background: #0b080d; }
.sev-about-text { padding: 22px 24px 24px; }
.sev-about .codex-kicker { color: var(--blood-glow); margin-bottom: .7rem; }
.sev-desc { margin: 0 0 1rem; font-size: 1.12rem; line-height: 1.7; color: var(--ink); }
.ev-hl { color: var(--ember-2); font-weight: 700; }
.sev-note { margin: 0; padding: 12px 14px; border-left: 3px solid var(--ember); background: rgba(200, 147, 74, .07); color: var(--ink-soft); font-size: .98rem; }

.sev-top { padding: 22px 24px 18px; }
.sev-top-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sev-top-head .codex-kicker { color: var(--blood-glow); margin-bottom: .35rem; }
.sev-top-head h2 { margin: 0; font-size: 1.6rem; color: #f1e2c4; }
.sev-metric { padding: 4px 10px; font: 700 .6rem/1.2 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--ember-2); border: 1px solid var(--line-strong); text-align: right; }
.sev-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sev-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); overflow: hidden; }
.sev-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); background: linear-gradient(90deg, var(--blood), var(--ember)); opacity: .8; }
.sev-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 900 .9rem/1 var(--f-head); color: var(--ink-soft); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.sev-name { font: 600 1.05rem var(--f-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sev-name a { color: inherit; }
.sev-amount { font: 700 1rem/1 var(--f-head); color: var(--ember-2); letter-spacing: .04em; }
.sev-row.is-p1 { border-color: rgba(242, 207, 115, .6); background: linear-gradient(90deg, rgba(242, 207, 115, .14), rgba(0, 0, 0, .3) 70%); }
.sev-row.is-p1 .sev-rank { color: #1a0e05; background: radial-gradient(circle at 35% 30%, #fff1b8, #e9b765 55%, #9c6a24); border-color: #f2cf73; }
.sev-row.is-p2 .sev-rank { color: #14161a; background: radial-gradient(circle at 35% 30%, #ffffff, #c9ccd2 55%, #7d828a); border-color: #dfe2e7; }
.sev-row.is-p3 .sev-rank { color: #1a0e05; background: radial-gradient(circle at 35% 30%, #f6caa0, #b0794a 55%, #6d4422); border-color: #c99064; }
.sev-row.is-p1 .sev-name { color: #f4e6c8; }
.sev-empty { margin: 6px 0; }
.sev-foot { margin: 12px 0 0; font-size: .9rem; color: var(--muted); font-style: italic; }

.sev-h { max-width: 1120px; margin: 0 auto 14px; font: 700 1rem/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--ember-2); display: flex; align-items: center; gap: 14px; }
.sev-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.sev-runs, .sev-all { max-width: 1120px; margin: 0 auto; padding: 46px var(--gutter) 0; }
.sev-all { padding-bottom: 110px; }
.sev-runs .mini-card h4 a { color: inherit; }
.sev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sev-tile { position: relative; display: grid; border: 1px solid var(--line); background: #0b080d; text-decoration: none; overflow: hidden; transition: border-color .2s, transform .2s; }
.sev-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sev-tile img, .sev-tile-blank { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: brightness(.9); transition: filter .2s; }
.sev-tile:hover img { filter: none; }
.sev-tile-blank { display: grid; place-items: center; font-size: 2rem; color: var(--ember); background: radial-gradient(circle at 50% 40%, rgba(200, 147, 74, .15), transparent 70%); }
.sev-tile-name { padding: 9px 10px; font: 700 .78rem/1.25 var(--f-head); letter-spacing: .04em; color: var(--ink); border-top: 1px solid var(--line); }
.sev-tile.is-current { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.sev-tile.is-live { border-color: var(--blood-glow); }
.sev-tile-live { position: absolute; top: 8px; left: 8px; padding: 3px 8px; font: 700 .56rem/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: #ffe9c4; background: rgba(168, 20, 26, .85); border: 1px solid var(--blood-glow); }

@media (max-width: 820px) { .sev-body { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sev-top, .sev-about-text { padding: 18px 16px; } .sev-row { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 9px 10px; gap: 10px; } }

/* ---- Events page v3: week schedule → featured event → all events ---- */
.sev-week { max-width: 1120px; margin: 0 auto; padding: 46px var(--gutter) 0; scroll-margin-top: 80px; }
.sev-week-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sev-week-title { text-align: center; }
.sev-week-title .codex-kicker { color: var(--blood-glow); margin-bottom: .35rem; }
.sev-week-title h2 { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: #f1e2c4; }
.sev-week-btn { padding: 9px 14px; font: 700 .66rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ember-2); text-decoration: none; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .35); white-space: nowrap; transition: background .2s, color .2s; }
.sev-week-btn:hover { color: #fff; background: rgba(200, 147, 74, .14); }
.sev-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sev-dayc > a, .sev-dayc > div { position: relative; display: grid; gap: 6px; height: 100%; padding: 8px 8px 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21, 16, 21, .94), rgba(9, 7, 10, .97)); transition: border-color .2s, transform .2s; }
.sev-dayc > a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sev-dayc.is-today > a, .sev-dayc.is-today > div { border-color: var(--ember); box-shadow: 0 0 0 1px rgba(233, 183, 101, .35), 0 12px 30px rgba(0, 0, 0, .45); }
.sev-dayc-when { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.sev-dayc-when b { font: 700 .74rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ember-2); }
.sev-dayc-when small { font-size: .78rem; color: var(--muted); }
.sev-dayc img, .sev-dayc-blank { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sev-dayc-blank { display: grid; place-items: center; font-size: 1.4rem; color: rgba(200, 147, 74, .35); border: 1px dashed var(--line); }
.sev-dayc-name { font: 700 .78rem/1.25 var(--f-head); letter-spacing: .03em; min-height: 2.5em; }
.sev-dayc.is-empty .sev-dayc-name { color: var(--muted); font-weight: 600; }
.sev-dayc-st { justify-self: start; padding: 3px 7px; font: 700 .54rem/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.sev-dayc-st.is-live { color: #ffe9c4; border-color: var(--blood-glow); background: rgba(168, 20, 26, .5); }
.sev-dayc-st.is-soon { color: var(--ember-2); }
.sev-dayc-st.is-missed { color: #ffb4a8; border-color: rgba(224, 38, 44, .45); }
.sev-week-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); font-style: italic; text-align: center; }

.sev-featured { max-width: 1120px; margin: 0 auto; padding: 50px var(--gutter) 0; scroll-margin-top: 80px; }
.sev-feat-head { text-align: center; margin-bottom: 4px; }
.sev-feat-head .codex-kicker { color: var(--blood-glow); margin-bottom: .45rem; }
.sev-feat-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #f4e6c8; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.sev-featured .sev-body { max-width: none; padding: 24px 0 0; }
.sev-featured .sev-runs { max-width: none; padding: 40px 0 0; }
.sev-top-head h3 { margin: 0; font-size: 1.6rem; color: #f1e2c4; }
svg.sev-pic, img.sev-pic { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); background: #0b080d; }
.sev-tile .sev-tile-art { display: block; width: 100%; height: auto; transition: filter .2s; filter: brightness(.92); }
.sev-tile:hover .sev-tile-art { filter: none; }
.sev-tile .sev-tile-name { display: none; }

@media (max-width: 900px) { .sev-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.sev-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sev-week-btn span { display: none; }
}
@media (max-width: 560px) {
	.sev-days { grid-template-columns: 1fr; gap: 6px; }
	.sev-dayc > a, .sev-dayc > div { grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "pic when" "pic name" "pic st"; column-gap: 12px; row-gap: 3px; align-items: center; }
	.sev-dayc img, .sev-dayc-blank { grid-area: pic; }
	.sev-dayc-when { grid-area: when; justify-content: flex-start; }
	.sev-dayc-name { grid-area: name; min-height: 0; }
	.sev-dayc-st { grid-area: st; }
	.sev-dayc.is-empty > div { grid-template-columns: 1fr; grid-template-areas: "when" "name"; }
	.sev-dayc.is-empty .sev-dayc-blank { display: none; }
}
.sev-week-now { display: inline-block; margin-top: 8px; padding: 5px 12px; font: 700 .62rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: #1a0e05; text-decoration: none; background: linear-gradient(180deg, var(--ember-2), var(--ember)); border: 1px solid var(--ember-2); }
.sev-week-now:hover { filter: brightness(1.1); color: #1a0e05; }
.sev-week-btn.is-off { opacity: .3; pointer-events: none; }
