:root {
  --bg-main: #0f0f0f;
  --bg-sub: #1a1a1a;
  --bg-panel: #222222;
  --text-main: #f2f2f2;
  --text-muted: #999999;
  --accent-yellow: #ffcc00;
  --accent-dark: #cc9900;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-yellow: rgba(255, 204, 0, 0.3);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --font-sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sys);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; background-color: var(--bg-sub); }
a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-yellow); }
::selection { background-color: var(--accent-yellow); color: #000; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; border-bottom: 1px solid var(--border-light); }
.section:last-of-type { border-bottom: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--accent-yellow); color: #000; padding: 8px 16px; z-index: 1000; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* Typography */
.kicker { color: var(--accent-yellow); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kicker::before { content: ""; display: block; width: 12px; height: 2px; background-color: var(--accent-yellow); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section__title { font-size: 32px; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; line-height: 1.2; position: relative; display: inline-block; margin-bottom: 8px; }
.section__title::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 40px; height: 3px; background-color: var(--accent-yellow); }
.section__dek { color: var(--text-muted); font-size: 15px; max-width: 400px; text-align: right; }
.pullquote { border-left: 4px solid var(--accent-yellow); padding-left: 20px; font-size: 20px; font-weight: 500; color: var(--text-main); font-style: italic; margin: 30px 0; }
.tag { display: inline-block; background-color: var(--accent-yellow); color: #000; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.text-link { color: var(--accent-yellow); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.text-link::after { content: "→"; transition: transform 0.3s; }
.text-link:hover::after { transform: translateX(4px); }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.3s; border: none; }
.btn--solid { background-color: var(--accent-yellow); color: #000; }
.btn--solid:hover { background-color: #ffdb4d; transform: translateY(-2px); color: #000; }
.btn--outline { background-color: transparent; border: 2px solid var(--accent-yellow); color: var(--accent-yellow); }
.btn--outline:hover { background-color: var(--accent-yellow); color: #000; }
.btn--block { width: 100%; }
.btn--small { padding: 8px 16px; font-size: 13px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); z-index: 100; }
.site-header__bar { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 32px; width: auto; border-radius: 6px; }
.brand__text strong { display: block; font-size: 18px; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.brand__text small { display: block; font-size: 11px; color: var(--accent-yellow); font-weight: 600; letter-spacing: 0.05em; }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent-yellow); }
.nav a.active { border-bottom: 2px solid var(--accent-yellow); padding-bottom: 4px; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background-color: var(--text-main); transition: 0.3s; }
.nav-toggle:hover span { background-color: var(--accent-yellow); }

/* Ticker */
.ticker { background-color: #000; border-bottom: 1px solid var(--border-light); height: 36px; display: flex; align-items: center; margin-top: 70px; overflow: hidden; }
.ticker__inner { display: flex; align-items: center; width: 100%; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.ticker__label { background-color: var(--accent-yellow); color: #000; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; margin-right: 16px; }
.ticker__viewport { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker__track { display: inline-block; animation: ticker 20s linear infinite; color: var(--text-muted); font-size: 13px; }
.ticker__track span { margin: 0 16px; position: relative; }
.ticker__track span::after { content: "•"; color: var(--accent-yellow); position: absolute; right: -20px; top: 0; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Drawer */
.drawer { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background-color: var(--bg-sub); z-index: 200; transition: right 0.3s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.5); display: flex; flex-direction: column; }
.drawer.open { right: 0; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-light); }
.drawer__nav { display: flex; flex-direction: column; padding: 20px; flex: 1; }
.drawer__nav a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border-light); font-size: 16px; font-weight: 500; }
.drawer__nav a small { color: var(--accent-yellow); font-size: 12px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--border-light); }
.drawer__foot p { font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center; }
.drawer__close { background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }
.drawer__close:hover { color: var(--accent-yellow); }

/* Frontpage */
.frontpage { padding: 60px 0; }
.masthead { margin-bottom: 60px; }
.masthead__meta { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.masthead__meta::before { content: ""; display: inline-block; width: 8px; height: 8px; background-color: var(--accent-yellow); }
.masthead__title { font-size: 56px; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.masthead__title em { font-style: normal; color: var(--accent-yellow); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.masthead__slogan { font-size: 20px; color: var(--accent-yellow); font-weight: 600; margin-bottom: 30px; }
.masthead__foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border-light); padding-top: 20px; }
.masthead__desc { max-width: 600px; color: var(--text-muted); font-size: 15px; }
.masthead__issue { text-align: right; }
.masthead__issue strong { display: block; font-size: 48px; color: var(--accent-yellow); line-height: 1; font-weight: 900; }
.masthead__issue span { color: var(--text-muted); font-size: 12px; letter-spacing: 0.1em; }

.frontpage__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.cover-frame { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-light); background-color: var(--bg-sub); }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cover-frame:hover img { transform: scale(1.05); }
.stamp { position: absolute; top: 12px; left: 12px; background-color: var(--accent-yellow); color: #000; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; z-index: 2; }

.lead__caption { margin-top: 16px; }
.lead__caption h2 { font-size: 24px; margin-bottom: 8px; }
.lead__caption p { color: var(--text-muted); font-size: 14px; }

.dispatch { padding: 0 10px; }
.dispatch__lead { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 16px; }
.dispatch p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.dispatch__actions { display: flex; gap: 12px; margin-top: 24px; }
.dispatch__note { font-size: 12px; color: var(--text-muted); border-left: 2px solid var(--accent-yellow); padding-left: 10px; margin-top: 24px; }

.side-covers { display: flex; flex-direction: column; gap: 20px; }
.side-card { position: relative; display: flex; gap: 16px; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; }
.side-card:last-child { border-bottom: none; }
.side-card__img { width: 80px; height: 106px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.side-card__img img { width: 100%; height: 100%; object-fit: cover; }
.side-card__rank { position: absolute; top: -8px; left: -8px; background-color: var(--accent-yellow); color: #000; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; z-index: 2; }
.side-card__info { display: flex; flex-direction: column; justify-content: center; }
.side-card__info h3 { font-size: 16px; margin-bottom: 4px; }
.side-card__info p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.side-link { font-size: 13px; }

/* Cover Story */
.cover-story__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; }
.cover-story__figure figcaption { margin-top: 12px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.cover-story__figure figcaption::before { content: ""; display: block; width: 16px; height: 2px; background-color: var(--accent-yellow); }
.cover-story__text h2 { font-size: 32px; margin-bottom: 20px; }
.cover-story__lead { font-size: 18px; font-weight: 600; color: var(--text-main); margin-bottom: 20px; }
.cover-story__text p { color: var(--text-muted); margin-bottom: 16px; }

/* Lineup */
.lineup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.lineup__lead { position: relative; }
.rank-badge { position: absolute; top: 16px; right: 16px; background-color: var(--accent-yellow); color: #000; font-size: 24px; font-weight: 900; width: 48px; height: 48px; display: flex; justify-content: center; align-items: center; border-radius: 50%; z-index: 2; }
.lineup__lead-body { margin-top: 20px; }
.lineup__lead-body h3 { font-size: 24px; margin-bottom: 12px; }
.lineup__lead-body p { color: var(--text-muted); margin-bottom: 16px; }
.lineup__meta { color: var(--accent-yellow); font-size: 13px; font-weight: 600; }

.lineup__list { list-style: none; }
.lineup__item { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-light); transition: background 0.3s; }
.lineup__item:hover { background-color: rgba(255,255,255,0.02); }
.lineup__item:hover h3 { color: var(--accent-yellow); }
.lineup__rank { font-size: 32px; font-weight: 900; color: var(--accent-yellow); width: 40px; flex-shrink: 0; }
.lineup__thumb { width: 60px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.lineup__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lineup__info { flex: 1; }
.lineup__info h3 { font-size: 18px; margin-bottom: 4px; transition: color 0.3s; }
.lineup__info p { font-size: 13px; color: var(--text-muted); }
.section__cta { margin-top: 40px; text-align: center; }

/* Genre */
.genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.genre-card { background-color: var(--bg-panel); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 20px; transition: all 0.3s; }
.genre-card:hover { border-color: var(--accent-yellow); transform: translateY(-4px); }
.genre-card .cover-frame { margin-bottom: 16px; }
.genre-card h3 { font-size: 18px; margin-bottom: 8px; }
.genre-card p { font-size: 13px; color: var(--text-muted); }
.genre-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.genre-chips span { background-color: #000; border: 1px solid var(--accent-yellow); color: var(--accent-yellow); padding: 6px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; transition: all 0.3s; }
.genre-chips span:hover { background-color: var(--accent-yellow); color: #000; }

/* Standards */
.standards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.standard { border-top: 2px solid var(--accent-yellow); padding-top: 20px; }
.standard__num { font-size: 48px; font-weight: 900; color: var(--accent-yellow); line-height: 1; margin-bottom: 16px; }
.standard h3 { font-size: 20px; margin-bottom: 12px; }
.standard p { color: var(--text-muted); font-size: 15px; }

/* Lab */
.lab__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.lab__panel { background-color: var(--bg-sub); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px; }
.lab__panel--after { border-left: 4px solid var(--accent-yellow); background-color: rgba(255, 204, 0, 0.05); }
.lab__label { display: inline-block; background-color: var(--accent-yellow); color: #000; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 16px; }
.lab__line { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text-main); }
.lab__panel p { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.lab__switch { display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--accent-yellow); }
.lab__note { margin-top: 24px; font-size: 13px; color: var(--text-muted); border-left: 2px solid var(--accent-yellow); padding-left: 12px; }

/* Editor */
.editor__inner { max-width: 800px; margin: 0 auto; padding: 40px 0; border-top: 1px solid var(--border-yellow); border-bottom: 1px solid var(--border-yellow); }
.editor__quote { font-size: 24px; font-weight: 600; line-height: 1.4; font-style: italic; border-left: 4px solid var(--accent-yellow); padding-left: 20px; margin-bottom: 24px; }
.editor__by { text-align: right; color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.editor__body p { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; line-height: 1.8; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.faq__intro h2 { font-size: 32px; margin-bottom: 16px; }
.faq__intro p { color: var(--text-muted); }
.faq__list details { background-color: var(--bg-sub); border: 1px solid var(--border-light); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; transition: border-color 0.3s; }
.faq__list details:hover { border-color: var(--accent-dark); }
.faq__list summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; color: var(--accent-yellow); font-size: 20px; font-weight: 400; transition: transform 0.3s; }
.faq__list details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq__answer { padding: 0 20px 20px; color: var(--text-muted); font-size: 14px; border-top: 1px solid var(--border-light); padding-top: 16px; }

/* Download */
.download { background-color: var(--bg-panel); border: 1px solid var(--border-yellow); border-radius: var(--radius-lg); padding: 40px; margin-bottom: 60px; }
.download__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.download__copy h2 { font-size: 36px; margin-bottom: 16px; }
.download__copy p { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }
.download__ticket { display: inline-block; background-color: var(--accent-yellow); color: #000; padding: 6px 12px; font-size: 13px; font-weight: 700; border-radius: 4px; border: 1px dashed #000; }
.download__actions { display: flex; flex-direction: column; gap: 16px; }
.dl-btn { display: flex; flex-direction: column; background-color: #000; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 16px 24px; text-align: left; transition: all 0.3s; }
.dl-btn:hover { border-color: var(--accent-yellow); }
.dl-btn strong { color: var(--text-main); font-size: 18px; margin-bottom: 4px; transition: color 0.3s; }
.dl-btn span { color: var(--text-muted); font-size: 13px; }
.dl-btn:hover strong { color: var(--accent-yellow); }
.download__meta { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Footer */
.site-footer { background-color: var(--bg-sub); border-top: 1px solid var(--border-light); padding: 60px 0 20px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { color: var(--text-muted); font-size: 13px; margin-top: 16px; max-width: 300px; }
.footer__col h3 { color: var(--accent-yellow); font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer__col a { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid var(--border-light); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 12px; flex-wrap: wrap; gap: 12px; }
.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--accent-yellow); }

/* Fixed Elements */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(10px); border-top: 1px solid var(--border-light); padding: 12px 20px; z-index: 90; gap: 12px; }
.mobile-cta .btn { flex: 1; }
.to-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; background-color: #000; border: 1px solid var(--accent-yellow); color: var(--accent-yellow); display: flex; justify-content: center; align-items: center; border-radius: 50%; cursor: pointer; z-index: 90; opacity: 0; visibility: hidden; transition: all 0.3s; font-size: 20px; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background-color: var(--accent-yellow); color: #000; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__panel { background-color: var(--bg-sub); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 30px; width: 90%; max-width: 400px; position: relative; }
.modal__close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }
.modal__close:hover { color: var(--accent-yellow); }
.modal__panel h3 { font-size: 20px; margin-bottom: 16px; }
.modal__url { background-color: #111; border: 1px solid var(--border-light); border-left: 3px solid var(--accent-yellow); padding: 12px; color: var(--text-main); font-family: monospace; font-size: 13px; margin-bottom: 20px; word-break: break-all; }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; }

/* Responsive */
@media (max-width: 1200px) {
  .frontpage__grid { grid-template-columns: 1fr 1fr; }
  .frontpage__grid > :last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .genre-grid, .standards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .frontpage__grid, .cover-story__grid, .lineup__grid, .faq__grid, .download__grid { grid-template-columns: 1fr; }
  .frontpage__grid > :last-child { grid-column: span 1; display: flex; flex-direction: column; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 80px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section__dek { text-align: left; }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__switch { transform: rotate(90deg); margin: -10px 0; }
  .to-top { bottom: 80px; }
}
@media (max-width: 640px) {
  .masthead__title { font-size: 36px; }
  .masthead__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .masthead__issue { text-align: left; }
  .genre-grid, .standards__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .lineup__thumb { display: none; }
  .download { padding: 24px; }
  .modal__panel { width: 100%; height: 100%; border-radius: 0; max-width: none; display: flex; flex-direction: column; justify-content: center; }
  .btn { width: 100%; }
  .dispatch__actions { flex-direction: column; }
}