@import './player/player.css';
@import './catalog/catalog.css';
@import './ads/ads.css';

:root {
  --bg-primary: #080808;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --border-color: #262626;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent-color: #e50914;
  --accent-hover: #b80710;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-stack);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 頂部導航列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.search-box {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 20px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-color);
  background-color: #222222;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #737373;
}

/* 快捷標籤列 */
.filter-bar {
  background-color: #101010;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.filter-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: #1a1a1a;
  border: 1px solid #333333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: #ffffff;
  border-color: #555555;
}

.filter-chip.active {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.filter-chip.chip-priority {
  border-color: #a855f7;
}

/* 主內容區 */
.main-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 播放器英雄區 (Hero Player Section) */
.hero-player-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #0f0f0f;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.player-info-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-video-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.player-video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-tag {
  padding: 4px 10px;
  background-color: #1f1f1f;
  border: 1px solid #333333;
  border-radius: 4px;
  font-size: 12px;
  color: #d1d5db;
}

/* 區塊標題 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* 頁尾 */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  background-color: #0c0c0c;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: #737373;
}

/* 靜態 SEO 連結 */
.seo-static-links {
  border-top: 1px solid #1a1a1a;
  padding: 24px;
  font-size: 12px;
  color: #555555;
  background-color: #050505;
}

.seo-static-links a {
  color: #666666;
  text-decoration: none;
  margin-right: 14px;
  display: inline-block;
  line-height: 2;
}

.seo-static-links a:hover {
  color: #999999;
}

/* 18+ 年齡驗證彈窗 */
.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-content {
  background-color: #141414;
  border: 1px solid #333333;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.age-gate-icon {
  margin-bottom: 16px;
  color: var(--accent-color);
}

.age-gate-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.age-gate-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.6;
  margin-bottom: 24px;
}

.age-gate-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background-color: var(--accent-color);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.age-gate-btn:hover {
  background-color: var(--accent-hover);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-gate-btn-secondary {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #333333;
  background-color: transparent;
  color: #888888;
  cursor: pointer;
  transition: all 0.2s ease;
}

.age-gate-btn-secondary:hover {
  color: #ffffff;
  border-color: #555555;
  background-color: #1f1f1f;
}

/* ==========================================================================
   版型 2~5 視覺系統（源自 Google Stitch MCP 生成設計系統整合）
   ========================================================================== */

/* 版型 2：CosTube 影音 (costube01 / Deep Indigo Navy + Solid Brand Header) */
body[data-site-code="costube01"] {
  --bg-primary: #0a1628;
  --bg-secondary: #10203a;
  --bg-tertiary: #172d4f;
  --border-color: #23426e;
  --text-primary: #f0f9ff;
  --text-secondary: #93c5fd;
  --accent-color: #38bdf8;
  --accent-hover: #7dd3fc;
  --font-stack: "Outfit", system-ui, sans-serif;
}

body[data-site-code="costube01"] .site-header {
  background: linear-gradient(90deg, #0b2247 0%, #103266 100%);
  backdrop-filter: none;
  border-bottom: 2px solid #38bdf8;
}

body[data-site-code="costube01"] .header-container {
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 760px) {
  body[data-site-code="costube01"] .header-container {
    flex-direction: row;
  }
}

body[data-site-code="costube01"] .search-input {
  background-color: #071224;
  border-color: #2b4d80;
  color: #f0f9ff;
  border-radius: 6px;
}

body[data-site-code="costube01"] .search-input:focus {
  border-color: #38bdf8;
  background-color: #0d1d38;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

body[data-site-code="costube01"] .filter-bar {
  background-color: #081222;
  border-bottom-color: #1d365c;
}

body[data-site-code="costube01"] .filter-chip {
  font-family: "Space Grotesk", sans-serif;
  border-radius: 4px;
  transform: skewX(-8deg);
  background-color: #10203a;
  border-color: #23426e;
  color: #bae6fd;
}

body[data-site-code="costube01"] .filter-chip.active {
  background: #38bdf8;
  color: #061326;
  font-weight: 700;
  border-color: #7dd3fc;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

body[data-site-code="costube01"] .site-footer {
  background-color: #07101f;
  border-top-color: #1d365c;
  color: #93c5fd;
}

body[data-site-code="costube01"] .seo-static-links {
  background-color: #060d1a;
  border-top-color: #172d4f;
}

body[data-site-code="costube01"] .hero-player-section,
body[data-site-code="costube01"] .age-gate-content {
  background-color: #10203a;
  border-color: #23426e;
}

.brand-hero-spotlight {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.22);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 760px) {
  .brand-hero-spotlight {
    min-height: 360px;
  }
}

.spotlight-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68);
  transition: transform 0.6s ease;
}

.brand-hero-spotlight:hover .spotlight-backdrop {
  transform: scale(1.04);
}

.spotlight-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.96) 0%, rgba(16, 32, 58, 0.72) 55%, rgba(56, 189, 248, 0.16) 100%);
}

.spotlight-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
}

.spotlight-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #7dd3fc;
  box-shadow: 0 0 8px #38bdf8;
}

.spotlight-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #f0f9ff;
}

@media (min-width: 760px) {
  .spotlight-title {
    font-size: 28px;
  }
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.spotlight-id {
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
}

.spotlight-tag {
  font-size: 12px;
  color: #bae6fd;
  background: rgba(37, 99, 235, 0.28);
  padding: 2px 8px;
  border-radius: 4px;
}

.spotlight-play-btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #061326;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.65);
}

/* 版型 3：夜趣影城 (yequyingcheng01 / Warm Espresso Charcoal & Champagne Gold) */
body[data-site-code="yequyingcheng01"] {
  --bg-primary: #171310;
  --bg-secondary: #211b16;
  --bg-tertiary: #2d251e;
  --border-color: #524332;
  --text-primary: #f5efe6;
  --text-secondary: #cbbba0;
  --accent-color: #d4af37;
  --accent-hover: #f3d06b;
  --font-stack: "Geist", system-ui, sans-serif;
}

body[data-site-code="yequyingcheng01"] .site-header {
  background: rgba(28, 22, 18, 0.94);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid #524332;
}

body[data-site-code="yequyingcheng01"] .search-input {
  background-color: #211b16;
  border-color: #524332;
  border-radius: 2px;
}

body[data-site-code="yequyingcheng01"] .filter-bar {
  background-color: #14100d;
  border-bottom-color: #3b3025;
}

body[data-site-code="yequyingcheng01"] .filter-chip {
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
}

body[data-site-code="yequyingcheng01"] .filter-chip.active {
  background: transparent;
  color: #f3d06b;
  border-bottom: 2px solid #d4af37;
  font-weight: 700;
}

body[data-site-code="yequyingcheng01"] .hero-player-section,
body[data-site-code="yequyingcheng01"] .age-gate-content {
  background-color: #211b16;
  border-color: #524332;
}

body[data-site-code="yequyingcheng01"] .site-footer {
  background-color: #120e0c;
  border-top-color: #3b3025;
  color: #cbbba0;
}

body[data-site-code="yequyingcheng01"] .seo-static-links {
  background-color: #0e0b09;
  border-top-color: #2d251e;
}

.brand-vip-ranking {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vip-ranking-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #524332;
  padding-bottom: 10px;
}

.vip-ranking-heading {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffe088, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vip-ranking-sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: #cbbba0;
}

.vip-ranking-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
}

.vip-rank-card {
  position: relative;
  flex: 0 0 230px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

@media (min-width: 760px) {
  .vip-rank-card {
    flex: 0 0 280px;
  }
}

.vip-rank-number {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 62px;
  font-weight: 900;
  line-height: 0.8;
  margin-right: -14px;
  z-index: 2;
  background: linear-gradient(180deg, #ffe088 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.92));
  user-select: none;
}

.vip-rank-poster {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #524332;
  background: #211b16;
}

.vip-rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vip-rank-card:hover .vip-rank-poster img {
  transform: scale(1.06);
}

.vip-rank-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(23, 19, 16, 0.96));
}

.vip-rank-code {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #f3d06b;
  margin-bottom: 2px;
}

.vip-rank-title {
  font-size: 12px;
  font-weight: 600;
  color: #f5efe6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 版型 4：AV 誌 (avmag / Warm Newsprint Daylight Editorial) */
body[data-site-code="avmag"] {
  --bg-primary: #f5f1e8;
  --bg-secondary: #ebe5d8;
  --bg-tertiary: #e2dac9;
  --border-color: #c8bfb0;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --accent-color: #b91c1c;
  --accent-hover: #991b1b;
  --font-stack: "Geist", system-ui, sans-serif;
}

body[data-site-code="avmag"] .site-header {
  background: rgba(245, 241, 232, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #1c1917;
}

body[data-site-code="avmag"] .search-input {
  background-color: #ffffff;
  border: 1px solid #a89f91;
  color: #1c1917;
  border-radius: 0;
}

body[data-site-code="avmag"] .search-input::placeholder {
  color: #78716c;
}

body[data-site-code="avmag"] .search-input:focus {
  border-color: #b91c1c;
  background-color: #ffffff;
}

body[data-site-code="avmag"] .filter-bar {
  background-color: #ebe5d8;
  border-bottom: 1px solid #c8bfb0;
}

body[data-site-code="avmag"] .filter-chip {
  border-radius: 0;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  background-color: #fdfbf7;
  border-color: #c8bfb0;
  color: #44403c;
}

body[data-site-code="avmag"] .filter-chip:hover {
  color: #1c1917;
  border-color: #1c1917;
}

body[data-site-code="avmag"] .filter-chip.active {
  background-color: #b91c1c;
  color: #ffffff;
  border-color: #b91c1c;
  font-weight: 700;
}

body[data-site-code="avmag"] .hero-player-section,
body[data-site-code="avmag"] .age-gate-content {
  background-color: #fdfbf7;
  border-color: #1c1917;
  border-radius: 0;
}

body[data-site-code="avmag"] .player-video-title,
body[data-site-code="avmag"] .age-gate-title,
body[data-site-code="avmag"] .section-title,
body[data-site-code="avmag"] .theme-shelf-title {
  color: #1c1917;
}

body[data-site-code="avmag"] .age-gate-desc {
  color: #57534e;
}

body[data-site-code="avmag"] .player-tag {
  background-color: #ebe5d8;
  border-color: #c8bfb0;
  color: #1c1917;
}

body[data-site-code="avmag"] .player-recovery-bar {
  background-color: #ebe5d8;
  border-color: #c8bfb0;
  color: #44403c;
}

body[data-site-code="avmag"] .player-btn {
  background-color: #ffffff;
  border-color: #a89f91;
  color: #1c1917;
}

body[data-site-code="avmag"] .site-footer {
  background-color: #ebe5d8;
  border-top: 2px solid #1c1917;
  color: #44403c;
}

body[data-site-code="avmag"] .seo-static-links {
  background-color: #e2dac9;
  border-top-color: #c8bfb0;
  color: #57534e;
}

body[data-site-code="avmag"] .seo-static-links a {
  color: #44403c;
}

body[data-site-code="avmag"] .seo-static-links a:hover {
  color: #b91c1c;
}

/* 版型 5：JAV Lite (javlite / Crisp Swiss White Archive) */
body[data-site-code="javlite"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-tertiary: #e4e4e7;
  --border-color: #e4e4e7;
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --font-stack: "Inter", system-ui, sans-serif;
}

body[data-site-code="javlite"] .site-header {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e4e4e7;
}

body[data-site-code="javlite"] .search-input {
  background-color: #f4f4f5;
  border: 1px solid #d4d4d8;
  color: #09090b;
}

body[data-site-code="javlite"] .search-input::placeholder {
  color: #71717a;
}

body[data-site-code="javlite"] .search-input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
}

body[data-site-code="javlite"] .filter-bar {
  padding: 6px 20px;
  background-color: #fafafa;
  border-bottom-color: #e4e4e7;
}

body[data-site-code="javlite"] .filter-chip {
  border-radius: 3px;
  padding: 4px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  background-color: #f4f4f5;
  border-color: #e4e4e7;
  color: #52525b;
}

body[data-site-code="javlite"] .filter-chip:hover {
  color: #09090b;
  border-color: #a1a1aa;
}

body[data-site-code="javlite"] .filter-chip.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-weight: 700;
}

body[data-site-code="javlite"] .hero-player-section,
body[data-site-code="javlite"] .age-gate-content {
  background-color: #ffffff;
  border-color: #e4e4e7;
  box-shadow: 0 12px 32px rgba(9, 9, 11, 0.08);
}

body[data-site-code="javlite"] .player-video-title,
body[data-site-code="javlite"] .age-gate-title,
body[data-site-code="javlite"] .section-title {
  color: #09090b;
}

body[data-site-code="javlite"] .age-gate-desc {
  color: #52525b;
}

body[data-site-code="javlite"] .player-tag {
  background-color: #f4f4f5;
  border-color: #e4e4e7;
  color: #27272a;
}

body[data-site-code="javlite"] .player-recovery-bar {
  background-color: #f4f4f5;
  border-color: #e4e4e7;
  color: #52525b;
}

body[data-site-code="javlite"] .player-btn {
  background-color: #ffffff;
  border-color: #d4d4d8;
  color: #09090b;
}

body[data-site-code="javlite"] .site-footer {
  background-color: #fafafa;
  border-top-color: #e4e4e7;
  color: #52525b;
}

body[data-site-code="javlite"] .seo-static-links {
  background-color: #f4f4f5;
  border-top-color: #e4e4e7;
  color: #52525b;
}

body[data-site-code="javlite"] .seo-static-links a {
  color: #52525b;
}

body[data-site-code="javlite"] .seo-static-links a:hover {
  color: #2563eb;
}

/* 雜誌編輯精選雙欄區塊 (Magazine Editorial Hero — Zero Radius Archive) */
.brand-magazine-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mag-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.mag-heading {
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.mag-sub {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  font-weight: 700;
}

.mag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 760px) {
  .mag-grid {
    grid-template-columns: 1.45fr 1fr;
  }
}

.mag-lead-card,
.mag-side-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #1c1917;
  cursor: pointer;
  background: var(--bg-secondary);
  aspect-ratio: 16 / 9;
  transition: border-color 0.2s ease;
}

.mag-lead-card:hover,
.mag-side-card:hover {
  border-color: #b91c1c;
}

.mag-side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.mag-lead-card img,
.mag-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.92));
}

.mag-card-code {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  background-color: #b91c1c;
  color: #ffffff;
  padding: 1px 6px;
  margin-bottom: 6px;
}

.mag-card-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #fdfbf7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
