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

:root {
  --accent: #E12229;
  --accent-dark: #b81c22;
  --nav-bg: #fff;
  --text-primary: #111;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e5e5e5;
  --bg: #fff;
  --bg-subtle: #f8f8f8;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

/* ── NAV ── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  max-width: 1320px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.3;
}
.nav-promo-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-promo a, .nav-promo-text {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.nav-promo a:hover { text-decoration: underline; }

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.nav-actions a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.nav-actions a:hover { color: var(--accent); }

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.nav-icon-btn:hover { color: var(--accent); }
.nav-icon-btn svg { width: 18px; height: 18px; }

.nav-links {
  border-bottom: 1px solid var(--border);
}
.nav-links-inner {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-block;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link.active {
  color: var(--accent);
  font-style: italic;
  border-bottom-color: var(--accent);
}

/* ── IMAGE THUMBNAILS ── */
.hp-card-thumb,
.hp-latest-thumb,
.cat-card-thumb {
  overflow: hidden;
}
.hp-card-thumb img,
.hp-latest-thumb img,
.cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SHARED LAYOUT ── */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ── AD HELPERS ── */
.ad-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.ad-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── SIDEBAR (shared across article + category) ── */
.sidebar { position: sticky; top: 110px; }

.sidebar-ad {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.related-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.related-item:last-child { border-bottom: none; }

.related-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.related-headline {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}
.related-headline:hover { color: var(--accent); }

.related-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.newsletter-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin-top: 32px;
  color: var(--text-primary);
}
.newsletter-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.newsletter-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  margin-bottom: 10px;
}
.newsletter-btn {
  width: 100%;
  background: #e0e0e0;
  color: var(--text-primary);
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.newsletter-btn:hover { background: #ccc; }

/* ── FOOTER ── */
footer {
  background: #000;
  color: rgba(255,255,255,0.55);
  padding: 52px 24px 0;
  margin-top: 60px;
  font-family: var(--sans);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo img { height: 32px; display: block; }
.footer-tagline { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.45); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-notice {
  padding: 20px 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-notice p {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.35);
  max-width: 900px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 20px 0;
  color: rgba(255,255,255,0.3);
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.3); text-decoration: none; font-size: 11px; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── FLYOUT MENU ── */
.flyout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.flyout-overlay.open {
  opacity: 1;
  visibility: visible;
}

.flyout-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.flyout-menu.open {
  transform: translateX(0);
}

.flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 2px solid var(--accent);
}

.flyout-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.flyout-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.flyout-close svg { width: 20px; height: 20px; }
.flyout-close:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.flyout-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.flyout-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.flyout-link:hover {
  background: var(--bg-subtle);
  color: var(--accent);
  border-left-color: var(--accent);
}

.flyout-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.flyout-link:hover .flyout-icon { opacity: 1; }

/* Slightly larger slot so 16:9 player + play control read clearly at menu size */
.flyout-icon--video-hero {
  width: 22px;
  height: 22px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .sidebar { position: static; display: none; }
}

@media (max-width: 768px) {
  .nav-promo { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 10px; }
}

@media (max-width: 480px) {
  .nav-top { padding: 0 16px; height: auto; min-height: 56px; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav-logo img { height: 28px; }
  .nav-actions { gap: 10px; }
  .nav-actions a { font-size: 12px; }
  .nav-link { padding: 10px 14px; font-size: 11px; letter-spacing: 0.8px; }
  .page { padding: 20px 16px 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-legal { flex-direction: column; align-items: center; gap: 6px; }
}
