:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #14161a;
  --muted: #646b78;
  --line: #e3e6eb;
  --accent: #d90429;
  --accent-dark: #a8001f;
  --dark: #111318;
  --up: #16a34a;
  --down: #dc2626;
  --radius: 14px;
  --serif: "Merriweather", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Ticker */
.ticker { background: var(--dark); color: #d9dce2; font-size: 13px; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: scroll 40s linear infinite; padding: 7px 0; }
.tick { padding: 0 22px; }
.tick b { color: #fff; }
.tick em { font-style: normal; font-weight: 600; }
.up { color: #4ade80; } .down { color: #f87171; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: var(--accent); margin-left: 2px; }
.logo-light { color: #fff; }
.search-form { flex: 1; max-width: 420px; margin-left: auto; display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; font-size: 15px; outline: none; }
.search-form button { border: 0; background: transparent; padding: 0 16px; font-size: 20px; cursor: pointer; color: var(--muted); }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.socials { display: flex; gap: 6px; }
.social { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--text); transition: background .2s, color .2s; }
.social:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials-footer { margin-top: 14px; }
.socials-footer .social { background: #1f232b; border-color: #2a2e37; color: #d9dce2; }
.icon-btn { display: none; border: 0; background: none; font-size: 24px; cursor: pointer; padding: 4px; }
.main-nav { border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-row a { padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-row a.active, .nav-row a:hover { color: var(--text); border-color: var(--accent); }

/* Tags & meta */
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-dark); margin-right: 6px; }
.tag-sponsored { background: #fff4d6; color: #8a5a00; padding: 2px 8px; border-radius: 4px; }
.meta { font-size: 13px; color: var(--muted); }

/* Hero */
main { padding-top: 24px; padding-bottom: 40px; }
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 36px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--dark); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .5s; }
.hero-main:hover .hero-img img { transform: scale(1.03); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero-text h1 { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.2; margin: 8px 0 10px; }
.hero-text a:hover { color: #fff; text-decoration: underline; }
.hero-text p { margin: 0 0 10px; color: #e5e7eb; max-width: 640px; }
.hero-text .meta { color: #cbd0d8; }
.hero-text .tag { color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 4px; }
.hero-side { display: grid; gap: 16px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card h3 { font-family: var(--serif); font-size: 18px; line-height: 1.35; margin: 6px 0 8px; }
.card p { color: var(--muted); margin: 0 0 10px; font-size: 15px; }
.card.small { flex-direction: row; }
.card.small .card-img { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
.card.small .card-body { padding: 12px 14px; }
.card.small h3 { font-size: 15px; }
.grid-3 .card.small { flex-direction: column; }
.grid-3 .card.small .card-img { width: 100%; aspect-ratio: 16/9; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.section-title { font-size: 20px; font-weight: 800; margin: 0 0 18px; padding-left: 12px; border-left: 4px solid var(--accent); }
.page-title { font-family: var(--serif); margin: 0 0 6px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Sidebar */
.sidebar { display: grid; gap: 20px; position: sticky; top: 140px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.box-title { margin: 0 0 12px; font-size: 16px; }
.box-dark { background: var(--dark); color: #fff; border: 0; }
.box-dark h3 { margin: 0 0 4px; }
.box-dark p { color: #b8bec9; margin: 0 0 14px; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-list a { font-weight: 600; font-size: 14px; line-height: 1.4; }
.num { font-family: var(--serif); font-size: 22px; font-weight: 900; color: var(--accent); min-width: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* Article */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.article.narrow { max-width: 760px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.article h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin: 8px 0 12px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 12px; }
.article-img { width: 100%; border-radius: 10px; margin: 20px 0; aspect-ratio: 16/9; object-fit: cover; }
.article-body { font-size: 18px; line-height: 1.75; max-width: 720px; }
.article-body p { margin: 0 0 1.2em; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.share span { font-weight: 700; margin-right: 4px; }
.share-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.share-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.prev-next a { font-weight: 600; font-size: 15px; }
.prev-next small { display: block; color: var(--muted); font-weight: 500; }
.prev-next .right { text-align: right; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.empty a { color: var(--accent-dark); font-weight: 600; }

/* Newsletter & footer */
.newsletter { padding: 0 0 40px; }
.newsletter-box { background: linear-gradient(120deg, #1b1e26, #3a0d16); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.newsletter-box h2 { margin: 0 0 4px; font-family: var(--serif); }
.newsletter-box p { margin: 0; color: #c4c9d2; }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 440px; min-width: 260px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 0; font: inherit; }
.thanks { color: #4ade80; font-weight: 600; margin: 0; }
.site-footer { background: var(--dark); color: #b8bec9; padding: 40px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #2a2e37; margin-top: 32px; padding: 18px 16px; font-size: 13px; }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Tablet */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(3, 1fr); }
  .hero-side .card.small { flex-direction: column; }
  .hero-side .card.small .card-img { width: 100%; aspect-ratio: 16/9; }
}

/* Mobile */
@media (max-width: 680px) {
  .icon-btn { display: block; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { font-size: 21px; }
  .header-row > .socials { margin-left: auto; gap: 4px; }
  .header-row > .socials .social { width: 30px; height: 30px; }
  .header-row > .socials .social:nth-child(n+4) { display: none; }
  .search-form { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav { display: none; }
  .nav-open .main-nav { display: block; }
  .nav-row { flex-direction: column; }
  .nav-row a { border-bottom: 1px solid var(--line); }
  .hero-main { min-height: 380px; }
  .hero-text { padding: 20px; }
  .hero-text p { display: none; }
  .hero-side, .grid, .grid-3 { grid-template-columns: 1fr; }
  .hero-side .card.small, .grid-3 .card.small { flex-direction: row; }
  .hero-side .card.small .card-img, .grid-3 .card.small .card-img { width: 38%; aspect-ratio: auto; }
  .article { padding: 20px; }
  .article-body { font-size: 17px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .right { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .newsletter-box { padding: 24px; }
}
