:root {
  --color-accent: #e10600;
  --color-text: #1a1a1a;
  --color-accent-hover: #b80500;
  --color-heading: #111111;
  --color-muted: #5c5c5c;
  --color-footer-bg: #111111;
  --color-surface: #ffffff;
  --color-surface-muted: #f6f4ef;
  --color-border: #e4e0d8;
  --color-link: #c40a00;
  --color-footer-text: #d4d0c8;
  --color-white: #fff;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --max-width: 1240px;
  --header-height: 72px;
  --shadow-card: 0 10px 28px rgba(17, 17, 17, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-surface-muted);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Trending ticker */
.trending-ticker {
  background: var(--color-heading);
  color: var(--color-white);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.trending-ticker-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 36px;
  overflow: hidden;
}

.trending-label {
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 2px;
}

.trending-track {
  display: flex;
  gap: 28px;
  overflow: hidden;
  white-space: nowrap;
}

.trending-track a {
  color: #f3f1ec;
  font-weight: 500;
}

.trending-track a:hover {
  color: var(--color-white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 28px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 40px;
  width: auto;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--color-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  background: #fff1f0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle,
.mobile-menu-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
}

.subscribe-btn {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
}

.subscribe-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  z-index: 1200;
  padding: 80px 24px 24px;
}

.search-overlay.open {
  display: block;
}

.search-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit;
  font-size: 1.05rem;
}

.search-results {
  margin-top: 16px;
  max-height: 50vh;
  overflow: auto;
}

.search-result {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-heading);
}

.search-result small {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 14s ease-in-out infinite alternate;
}

.hero-slide.active img {
  animation-play-state: running;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.88) 0%,
    rgba(17, 17, 17, 0.28) 48%,
    rgba(17, 17, 17, 0.08) 100%
  );
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
}

.hero-category {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-white);
  max-width: 820px;
  margin-bottom: 10px;
}

.hero-title a {
  color: inherit;
}

.hero-excerpt {
  color: #ece8e0;
  font-size: 1.08rem;
  max-width: 640px;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--color-accent);
}

/* Sections */
.section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-accent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-heading);
}

.section-link {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.article-card-image {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd8ce;
}

.article-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 18px 20px;
  background: var(--color-surface);
}

.article-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.28;
  margin-bottom: 8px;
}

.article-card-title a {
  color: var(--color-heading);
}

.article-card-title a:hover {
  color: var(--color-accent);
}

.article-card-excerpt {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.article-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--color-muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.featured-main {
  min-width: 0;
}

.featured-main .article-card-image {
  aspect-ratio: 16 / 10;
}

.featured-main .article-card-title {
  font-size: 1.7rem;
}

.featured-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.featured-side .article-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: stretch;
}

.featured-side .article-card-image {
  width: 140px;
  max-width: 140px;
  height: 100%;
  aspect-ratio: auto;
  flex: none;
}

.featured-side .article-card-body {
  padding: 12px 14px 14px;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.video-card {
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
}

.play-badge span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.35);
}

.video-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 12px 14px 14px;
  color: var(--color-heading);
}

.video-player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.86);
  z-index: 1400;
  padding: 32px 16px;
}

.video-player-overlay.open {
  display: grid;
  place-items: center;
}

.video-stage {
  width: min(960px, 100%);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.video-stage img {
  width: 100%;
  height: min(62vh, 540px);
  object-fit: cover;
  animation: kenBurns 8s ease-in-out infinite alternate;
}

.video-caption {
  padding: 16px 18px 20px;
  color: #fff;
}

.video-caption h3 {
  font-family: var(--font-serif);
  margin-bottom: 6px;
}

.video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

/* Newsletter */
.newsletter-section {
  background: var(--color-heading);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 56px;
}

.newsletter-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
}

.newsletter-section p {
  color: #d8d4cc;
  margin-bottom: 22px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1fr minmax(9.5rem, auto);
  align-items: center;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.newsletter-form input,
.newsletter-form select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  box-sizing: border-box;
}

.newsletter-form button {
  height: 44px;
  min-width: 9.5rem;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

/* Category / legal / contact */
.page-hero,
.category-hero,
.legal-hero {
  padding: 48px 0 28px;
}

.page-hero h1,
.category-hero h1,
.legal-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-heading);
}

.page-hero p,
.category-hero p,
.legal-hero p {
  color: var(--color-muted);
  max-width: 720px;
  margin-top: 10px;
  font-size: 1.05rem;
}

.category-banner {
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto 72px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 0 0 16px 22px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.contact-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 72px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 64px;
}

.staff-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.staff-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.staff-card h3 {
  font-family: var(--font-serif);
  padding: 14px 16px 2px;
}

.staff-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 0 16px 16px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-surface);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.btn,
.btn-primary,
.btn-secondary {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 52px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--color-footer-text);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--color-footer-text);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  display: none;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
  padding: 18px 24px;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

@media (max-width: 1024px) {
  .articles-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-grid,
  .footer-grid,
  .contact-grid,
  .about-grid,
  .staff-grid,
  .newsletter-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px 18px;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .subscribe-btn {
    display: none;
  }
  .hero {
    height: 420px;
  }
  .articles-grid,
  .video-grid,
  .featured-grid,
  .featured-side .article-card,
  .staff-grid,
  .newsletter-form,
  .contact-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .featured-side .article-card-image {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}
