:root {
  --color-bg: #ffffff;
  --color-bg-elevated: #f9fafb;
  --color-bg-soft: #f3f4f6;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-subtle: #e5e7eb;
  --color-primary: #e50914;
  --color-primary-soft: rgba(229, 9, 20, 0.12);
  --color-primary-strong: #ff1a24;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-soft: #9ca3af;
  --color-link: #1f2937;
  --color-link-hover: #111827;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  padding: 24px 16px 32px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: #000000;
  border-bottom: 1px solid #111827;
}

.top-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  height: clamp(48px, 10vw, 64px);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.logo-icon {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.edition {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-button,
.ghost-button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-link);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    transform 0.08s ease, box-shadow 0.16s ease;
}

.profile-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: radial-gradient(circle at 30% 0, #1f2937, #020617);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.18s ease,
    border-color 0.16s ease, background 0.16s ease;
}

.profile-icon {
  width: 18px;
  height: 18px;
  fill: #e5e7eb;
  stroke: #e5e7eb;
  stroke-width: 1.4;
}

.profile-button:hover {
  transform: translateY(-1px);
  border-color: #e5e7eb;
  background: radial-gradient(circle at 20% 0, #374151, #020617);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
}

.ghost-button {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(243, 244, 246, 0.9);
}

.ghost-button:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background: #ffffff;
  color: var(--color-link-hover);
}

.primary-button {
  background: linear-gradient(135deg, var(--color-primary), #ff4b55);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.6);
  border: none;
  font-weight: 600;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(229, 9, 20, 0.8);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.main-nav {
  border-top: 1px solid #111827;
  border-bottom: 1px solid #111827;
  background: #000000;
}

.main-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav li {
  white-space: nowrap;
}

.main-nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  border-radius: 999px;
  padding: 4px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), #ff4b55);
  transform: translateX(-50%);
  opacity: 0;
  transition: width 0.16s ease, opacity 0.16s ease;
}

.main-nav a:hover {
  color: var(--color-link-hover);
}

.main-nav a:hover::after {
  width: 80%;
  opacity: 1;
}

/* Breaking bar */

.breaking-bar {
  margin-top: 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  background: #ffffff;
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}

.breaking-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97373, var(--color-primary));
  color: #fef2f2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.7),
    0 10px 24px rgba(248, 113, 113, 0.65);
}

.breaking-marquee {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: #7f1d1d;
  overflow-x: auto;
  scrollbar-width: none;
}

.breaking-marquee::-webkit-scrollbar {
  display: none;
}

.breaking-marquee span {
  position: relative;
  padding-right: 16px;
}

.breaking-marquee span::after {
  content: "•";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(254, 202, 202, 0.8);
}

.breaking-marquee span:last-child::after {
  content: "";
}

/* Hero grid */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: stretch;
}

.hero-main {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  border: 1px solid var(--color-border);
}

.hero-image {
  position: relative;
  min-height: 300px;
  padding: 22px 22px 24px;
  background: #ffffff;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: none;
}

.hero-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #7f1d1d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(254, 202, 202, 0.7);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f97373;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.5);
}

.hero-content {
  position: relative;
  max-width: 520px;
  margin-top: 32px;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-content p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.hero-side {
  border-radius: 18px;
  padding: 18px 18px 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.section-title {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}

.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.headline-list li {
  border-radius: 14px;
  padding: 10px 10px 11px;
  transition: background 0.15s ease, transform 0.08s ease,
    box-shadow 0.15s ease;
}

.headline-list a h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.headline-list a p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.headline-list li:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* Content grid */

.content-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 24px;
}

.main-column {
  border-radius: 20px;
  padding: 18px 18px 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.see-all {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
}

.see-all:hover {
  color: var(--color-link-hover);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  border-radius: 16px;
  padding: 12px 12px 13px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  transition: background 0.16s ease, transform 0.08s ease,
    box-shadow 0.16s ease, border-color 0.16s ease;
}

.news-card h3 {
  margin: 6px 0 6px;
  font-size: 15px;
}

.news-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-soft);
}

.news-card:hover {
  background: #fef2f2;
  border-color: rgba(248, 113, 113, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px 3px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f9fafb;
}

.badge-world {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.badge-politics {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.badge-economy {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.badge-health {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.analysis-section {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.analysis-card {
  border-radius: 14px;
  padding: 10px 11px;
  background: #f9fafb;
  border: 1px solid rgba(45, 212, 191, 0.4);
  margin-bottom: 10px;
  transition: background 0.16s ease, transform 0.08s ease,
    box-shadow 0.16s ease;
}

.analysis-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.analysis-card p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.analysis-meta {
  font-size: 12px;
  color: var(--color-text-soft);
}

.analysis-card:hover {
  background: #ecfeff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

/* Sidebar */

.sidebar {
  border-radius: 20px;
  padding: 16px 16px 18px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-section {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.sidebar-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-list li a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 7px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--color-link);
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.compact-list li a time {
  font-size: 11px;
  color: var(--color-text-soft);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-text-soft);
}

.dot.live {
  background: #f97373;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.35);
}

.compact-list li a:hover {
  background: #f9fafb;
  color: var(--color-link-hover);
  transform: translateY(-1px);
}

.ranked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranked-list li a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  padding: 7px 6px 7px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--color-link);
  transition: background 0.16s ease, transform 0.08s ease;
}

.rank {
  width: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--color-text-soft);
}

.ranked-list li:nth-child(1) .rank {
  color: #f97373;
}

.ranked-list li a:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.media-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 6px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.08s ease,
    box-shadow 0.16s ease;
}

.media-thumb {
  border-radius: 10px;
  background: radial-gradient(circle at 30% 0, #f97373, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
}

.play-icon {
  font-size: 18px;
  color: #f9fafb;
}

.media-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.media-info p {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-soft);
}

.media-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.media-card:hover {
  background: #fef2f2;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #ffffff;
  padding: 24px 16px 26px;
  color: var(--color-text-soft);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo .logo-icon-footer {
  height: clamp(20px, 4vw, 28px);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-column h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.footer-column a {
  display: block;
  font-size: 13px;
  color: var(--color-link);
  margin-bottom: 2px;
}

.footer-column a:hover {
  color: var(--color-link-hover);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 14px;
}

.footer-bottom a {
  color: var(--color-text-soft);
}

.footer-bottom a:hover {
  color: var(--color-link-hover);
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 0, #f97373, #b91c1c);
  color: #f9fafb;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-main {
    order: 1;
  }

  .hero-side {
    order: 2;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-right {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav ul {
    padding-block: 8px;
  }

  .page {
    padding-inline: 12px;
  }

  .breaking-bar {
    border-radius: 18px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: 3;
  }

  .hero-content h1 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

