:root {
  --red: #c4170c;
  --red-dark: #9a120a;
  --ink: #1a1a1a;
  --gray: #555;
  --light: #f4f4f4;
  --border: #e2e2e2;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }

/* Topbar */
.topbar { background: var(--red-dark); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar-date { opacity: .9; }
.topbar-live { display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .4px; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a:hover { text-decoration: underline; }

.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; display: inline-block;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Masthead */
.masthead { border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 46px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.brand-footer .brand-logo { height: 42px; }
.brand-badge {
  background: var(--red); color: #fff; font-weight: 800; font-size: 22px;
  width: 46px; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -1px;
}
.brand-badge.big { width: 60px; height: 60px; font-size: 28px; margin: 0 auto 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 24px; letter-spacing: -.5px; color: var(--ink); }
.brand-text small { color: var(--gray); font-size: 12.5px; }
.search { display: flex; }
.search input {
  border: 1px solid var(--border); border-right: 0; padding: 9px 14px; border-radius: 8px 0 0 8px;
  font-size: 14px; width: 240px; outline: none;
}
.search input:focus { border-color: var(--red); }
.search button {
  background: var(--red); color: #fff; border: 0; padding: 9px 18px; border-radius: 0 8px 8px 0;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.search button:hover { background: var(--red-dark); }

/* Category nav */
.catnav { background: var(--red); }
.catnav-inner { display: flex; gap: 2px; overflow-x: auto; }
.catnav a {
  color: #fff; padding: 12px 16px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.catnav a:hover, .catnav a.active { background: var(--red-dark); border-bottom-color: #fff; }

/* Ticker */
.ticker { background: #222; color: #fff; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.ticker-label {
  background: var(--red); font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 4px;
  letter-spacing: 1px; flex-shrink: 0;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { font-size: 14px; opacity: .95; }
.ticker-track a:hover { text-decoration: underline; }
.ticker-time { color: #ffb3ab; font-size: 12px; font-weight: 600; }
.ticker-sep { color: var(--red); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 28px 20px; }
.section-title {
  font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
  border-left: 5px solid var(--red); padding-left: 10px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.see-all { font-size: 13px; color: var(--red); font-weight: 600; }
.see-all:hover { text-decoration: underline; }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.muted { color: var(--gray); }
.center { text-align: center; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.card a { display: block; height: 100%; }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; }
.card-body h2 { font-size: 22px; line-height: 1.25; margin: 6px 0 8px; }
.card-body h3 { font-size: 16.5px; line-height: 1.3; margin: 6px 0 6px; }
.card-body p { color: var(--gray); font-size: 14.5px; }
.card-body time { color: #999; font-size: 12.5px; }
.card-cat {
  display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; padding: 3px 8px; border-radius: 4px;
}
.card-hero .card-img { aspect-ratio: 16/9.5; }

/* Hero grid */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-side { display: grid; gap: 20px; align-content: start; }

/* Two columns */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.list-latest { display: grid; gap: 4px; }
.row-item a { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.row-item img { width: 150px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.row-item h3 { font-size: 17px; margin: 4px 0; line-height: 1.3; }
.row-item a:hover h3 { color: var(--red); }
.row-item time { color: #999; font-size: 12.5px; }

.most-read { list-style: none; counter-reset: rank; }
.most-read li a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.most-read .rank {
  font-size: 26px; font-weight: 800; color: var(--red); min-width: 30px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.most-read h3 { font-size: 15px; line-height: 1.3; }
.most-read a:hover h3 { color: var(--red); }
.most-read time { color: #999; font-size: 12px; }

.ad-box {
  margin-top: 20px; border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 34px 18px; text-align: center; color: var(--gray); background: #fafafa;
}
.ad-box span { display: block; font-weight: 700; font-size: 16px; }
.ad-box small { color: #999; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Sponsors */
.sponsors-band { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sponsors-row { display: flex; flex-wrap: wrap; gap: 18px; }
.sponsor {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 22px; display: flex; align-items: center; min-width: 170px; flex: 1; justify-content: center;
  transition: box-shadow .2s;
}
.sponsor:hover { box-shadow: var(--shadow); }
.sponsor img { max-height: 52px; width: auto; object-fit: contain; }

/* Gallery */
.gallery-strip, .gallery-grid { display: grid; gap: 16px; }
.gallery-strip { grid-template-columns: repeat(4, 1fr); }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.gallery-item img { aspect-ratio: 4/3; width: 100%; object-fit: cover; opacity: .92; transition: transform .3s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.05); opacity: 1; }
.gallery-item span, .gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}

/* Article */
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--red); }
.article h1 { font-size: 32px; line-height: 1.2; margin: 10px 0; }
.article-sub { font-size: 18px; color: var(--gray); margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #888; font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 20px; }
.article-img { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.article-body { font-size: 17px; line-height: 1.75; max-width: 760px; }
.article-body p { margin-bottom: 16px; }
.article-body h3 { margin: 22px 0 10px; font-size: 20px; }
.article-body ul { margin: 0 0 16px 22px; }
.article-body strong { color: var(--ink); }
.share { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.share a, .share button {
  border: 1px solid var(--border); background: #fff; padding: 7px 14px; border-radius: 20px; font-size: 13.5px;
  cursor: pointer; font-weight: 600;
}
.share a:hover, .share button:hover { border-color: var(--red); color: var(--red); }

/* Footer */
.footer { background: #17181c; color: #cfcfcf; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 40px 20px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #999; }
.footer-about { margin-top: 12px; font-size: 14px; color: #aaa; max-width: 380px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid #2a2b31; font-size: 12.5px; color: #888; flex-wrap: wrap; }

/* Radio bar */
.radio-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #141519; color: #fff; border-top: 3px solid var(--red);
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
}
.radio-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.radio-play {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: #fff;
  font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .15s, background .2s;
}
.radio-play:hover { background: var(--red-dark); transform: scale(1.06); }
.radio-play.playing .radio-icon { font-size: 14px; }
.radio-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.radio-info strong { font-size: 15px; }
.radio-status { font-size: 12px; color: #ff8f85; display: flex; align-items: center; gap: 6px; }
.radio-status.playing { color: #7ddb8a; }
.radio-vol { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.radio-vol input { width: 110px; accent-color: var(--red); }
.radio-spacer { height: 84px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .masthead-inner { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; flex: 1; }
  .brand-text strong { font-size: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .row-item a { grid-template-columns: 110px 1fr; }
  .row-item img { width: 110px; }
  .article h1 { font-size: 24px; }
  .topbar-social { display: none; }
  .radio-vol { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-body h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-img img { transition: none; }
}
