/* ============================================================
   TOINEWS — White & Red Modern News Theme
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --red: #e52020;
  --red-dark: #b71414;
  --red-deep: #8f0f0f;
  --red-soft: #fff1f1;
  --red-soft-2: #ffe5e5;

  --ink: #111114;
  --ink-2: #2a2a30;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e8e8ec;
  --line-2: #f1f1f4;

  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --bg-soft-2: #f2f2f5;
  --dark: #141418;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 20, 0.05);
  --shadow: 0 6px 24px rgba(17, 17, 20, 0.07);
  --shadow-lg: 0 16px 44px rgba(17, 17, 20, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 56px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: var(--red);
}

.section-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 4px;
  padding-left: 15px;
}

.link-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.link-all:hover {
  gap: 10px;
  color: var(--red-dark);
}

.tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  line-height: 1.3;
}

.tag--ghost {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

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

.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(229, 32, 32, 0.28);
}

.btn--outline {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--block {
  width: 100%;
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--dark);
  color: #cfcfd6;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}

.topbar__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar__date svg {
  color: var(--red);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__links a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #cfcfd6;
  transition: all 0.2s ease;
}

.topbar__links a:hover {
  background: var(--red);
  color: #fff;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.header.is-stuck {
  box-shadow: 0 4px 20px rgba(17, 17, 20, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 1;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo--sm img {
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav__link {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--red);
  background: var(--red-soft);
}

.nav__link.is-active {
  color: var(--red);
  background: var(--red-soft-2);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__input {
  width: 200px;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  font-size: 14px;
  transition: all 0.2s ease;
}

.search__input::placeholder {
  color: var(--muted-2);
}

.search__input:focus {
  outline: none;
  width: 250px;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(229, 32, 32, 0.09);
}

.search__icon {
  position: absolute;
  left: 13px;
  color: var(--muted);
  pointer-events: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Breaking Ticker ---------- */
.breaking {
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

.breaking__inner {
  display: flex;
  align-items: center;
  height: 44px;
}

.breaking__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-deep);
  padding: 0 16px;
  height: 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: none;
  z-index: 2;
}

.breaking__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.breaking__track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.breaking__list {
  display: flex;
  align-items: center;
  gap: 44px;
  height: 100%;
  width: max-content;
  animation: ticker 46s linear infinite;
  padding-left: 24px;
}

.breaking__track:hover .breaking__list {
  animation-play-state: paused;
}

.breaking__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.breaking__item:hover {
  opacity: 0.82;
  text-decoration: underline;
}

.breaking__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  flex: none;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 34px 0 10px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
  min-height: 560px;
}

.hero__feature {
  grid-row: 1 / 4;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow);
}

.hero__feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__feature:hover img {
  transform: scale(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.05) 30%, rgba(10, 10, 14, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.hero__feature-title {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 12px 0 10px;
  text-wrap: balance;
}

.hero__feature-excerpt {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  max-width: 540px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__feature .meta {
  color: rgba(255, 255, 255, 0.72);
}

.hero__feature .meta .dot {
  background: rgba(255, 255, 255, 0.5);
}

.hero__side {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
}

.hero__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__side:hover img {
  transform: scale(1.06);
}

.hero__side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.02) 20%, rgba(10, 10, 14, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.hero__side-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__side .meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* ---------- Category Tabs ---------- */
.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(229, 32, 32, 0.25);
}

/* ---------- Content Layout ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 336px;
  gap: 40px;
  align-items: start;
}

/* ---------- News Cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card__media img {
  transform: scale(1.07);
}

.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 17.5px;
  font-weight: 750;
  line-height: 1.32;
  letter-spacing: -0.018em;
  margin-bottom: 9px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover .card__title {
  color: var(--red);
}

.card__excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__body .meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: calc(var(--header-h) + 22px);
}

.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.widget__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.widget__head h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.widget__head::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--red);
}

.widget__body {
  padding: 6px 18px 10px;
}

.trend-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}

.trend-item:last-child {
  border-bottom: none;
}

.trend-item__num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--red-soft-2);
  font-style: italic;
  flex: none;
  width: 32px;
  transition: color 0.2s ease;
  letter-spacing: -0.04em;
}

.trend-item:hover .trend-item__num {
  color: var(--red);
}

.trend-item__title {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-item:hover .trend-item__title {
  color: var(--red);
}

.trend-item .meta {
  font-size: 12px;
  margin-top: 5px;
}

.mostread-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}

.mostread-item:last-child {
  border-bottom: none;
}

.mostread-item img {
  width: 74px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: var(--bg-soft-2);
}

.mostread-item__title {
  font-size: 13.8px;
  font-weight: 650;
  line-height: 1.38;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mostread-item:hover .mostread-item__title {
  color: var(--red);
}

.mostread-item .meta {
  font-size: 11.5px;
  margin-top: 4px;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(150deg, var(--red) 0%, var(--red-deep) 100%);
  border: none;
  color: #fff;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
}

.newsletter::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.newsletter::before {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.newsletter h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.newsletter p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.newsletter__form input {
  height: 46px;
  border-radius: 9px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 14px;
}

.newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.newsletter__form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.newsletter__form button {
  height: 46px;
  border-radius: 9px;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter__form button:hover {
  background: var(--dark);
  color: #fff;
}

.newsletter__note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* Load more */
.loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  display: none;
}

.no-results.is-visible {
  display: block;
}

.no-results strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #b9b9c4;
  padding: 60px 0 0;
  margin-top: 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo {
  margin-bottom: 16px;
}

.footer .logo img {
  height: 42px;
}

.footer__about {
  font-size: 14px;
  line-height: 1.7;
  max-width: 330px;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 9px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #d6d6de;
  transition: all 0.2s ease;
}

.footer__social a:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.footer__links li {
  margin-bottom: 11px;
}

.footer__links a {
  font-size: 14px;
  color: #b9b9c4;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer__links a::before {
  content: "›";
  color: var(--red);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.footer__links a:hover {
  color: #fff;
  padding-left: 2px;
}

.footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 13px;
}

.footer__bottom a {
  color: #d6d6de;
  transition: color 0.2s ease;
}

.footer__bottom a:hover {
  color: var(--red);
}

.footer__legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

/* Progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  z-index: 999;
  transition: width 0.08s linear;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding: 26px 0 0;
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb__sep {
  color: var(--muted-2);
}

.breadcrumb__current {
  color: var(--red);
  font-weight: 600;
}

.article-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 0 30px;
  text-align: center;
}

.article-header .tag {
  margin-bottom: 18px;
}

.article-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.032em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.article-excerpt {
  font-size: 18.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 26px;
  text-wrap: pretty;
}

.article-meta-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.author__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  flex: none;
}

.author__name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.author__role {
  font-size: 12.5px;
  color: var(--muted);
}

.article-hero {
  max-width: var(--max);
  margin: 0 auto 42px;
  padding: 0 22px;
}

.article-hero figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft-2);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero figcaption {
  padding: 13px 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 740px) 1fr;
  gap: 20px;
  padding-bottom: 50px;
}

.article-body {
  grid-column: 2;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body p:first-of-type::first-letter {
  float: left;
  font-size: 62px;
  line-height: 0.82;
  font-weight: 850;
  color: var(--red);
  margin: 6px 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
}

.article-body blockquote {
  margin: 34px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  letter-spacing: -0.012em;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 36px 0 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-tags span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--red);
  color: #fff;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 50px;
}

.share-bar__label {
  font-size: 14px;
  font-weight: 750;
  margin-right: auto;
}

.share-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(229, 32, 32, 0.3);
}

.share-btn--copy {
  width: auto;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  gap: 7px;
}

/* Related */
.related {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
}

.related .news-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(229, 32, 32, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.28s ease;
  z-index: 90;
}

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

.to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile Nav Overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(15, 15, 20, 0.5);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: #fff;
  padding: 26px 24px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.16);
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav__close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav__close:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.mobile-nav__link {
  padding: 14px 14px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink-2);
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--line-2);
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: var(--red-soft);
  color: var(--red);
}

.mobile-nav__search {
  margin-bottom: 14px;
}

.mobile-nav__search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0 15px;
  background: var(--bg-soft);
  font-size: 14.5px;
}

.mobile-nav__search input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .newsletter {
    grid-column: 1 / -1;
  }

  .search__input {
    width: 160px;
  }

  .search__input:focus {
    width: 190px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .hero__feature {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .hero__side {
    aspect-ratio: 16 / 9;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .related .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 62px;
  }

  .logo img {
    height: 38px;
  }

  .topbar__links {
    display: none;
  }

  .search {
    display: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 42px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero__overlay {
    padding: 20px;
  }

  .hero__feature-title {
    font-size: 22px;
  }

  .hero__feature-excerpt {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .related .news-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding: 0 22px 40px;
  }

  .article-body {
    grid-column: 1;
    font-size: 16.5px;
  }

  .article-body p:first-of-type::first-letter {
    font-size: 52px;
  }

  .article-body blockquote {
    font-size: 17.5px;
    padding: 18px 20px;
  }

  .article-meta-bar {
    border-radius: var(--radius);
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .article-header {
    padding: 18px 22px 22px;
  }

  .article-excerpt {
    font-size: 16.5px;
  }

  .share-bar__label {
    width: 100%;
    margin-bottom: 4px;
  }

  .breaking__label span:last-child {
    display: none;
  }

  .breaking__label {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
