:root {
  --bg-main: #08080A;
  --bg-card: #141416;
  --accent-red: #FF1F2E;
  --accent-yellow: #FFC107;
  --text-white: #FFFFFF;
  --text-gray: #8E8E93;
  --border-dark: #2A2A2E;
  --border-red: rgba(255, 31, 46, 0.3);
  --container-width: 1200px;
  --space-section: 120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Typography */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p { color: var(--text-gray); margin-bottom: 16px; }

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: var(--space-section) 0;
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
}

/* Top Marquee */
.top-marquee {
  background-color: #000;
  color: var(--text-white);
  font-size: 14px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-icon {
  color: var(--accent-red);
  margin-left: 20px;
  font-weight: bold;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee-content span { margin: 0 20px; }
.marquee-content .highlight-red { color: var(--accent-red); font-weight: bold; }
.marquee-content .highlight-yellow { color: var(--accent-yellow); font-weight: bold; }
@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* Header */
header {
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--accent-red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-white);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-red); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: 4px;
  padding: 0 12px;
  height: 40px;
  min-width: 200px;
}
.search-box input {
  background: none;
  border: none;
  color: var(--text-white);
  outline: none;
  width: 100%;
  font-size: 14px;
}
.search-box input::placeholder { color: var(--text-gray); }
.search-icon {
  color: var(--text-gray);
  margin-right: 8px;
}
.btn-download-nav {
  background: var(--accent-red);
  color: var(--text-white);
  padding: 0 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: bold;
  font-size: 15px;
  transition: opacity 0.3s;
}
.btn-download-nav:hover { opacity: 0.9; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 24px;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
}

/* Hero */
.hero {
  padding: 80px 0 0;
  text-align: left;
}
.tag-yellow {
  display: inline-block;
  background: var(--accent-yellow);
  color: #000;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}
.btn-primary {
  background: linear-gradient(135deg, #FF1F2E, #B3000A);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--accent-red);
  border: 1px solid var(--text-white);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.hero-banner {
  background: #fff;
  border-radius: 8px;
  display: flex;
  justify-content: space-around;
  padding: 24px 20px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  gap: 20px;
}
.banner-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.banner-icon { font-size: 24px; color: var(--accent-red); }
.banner-text .num { font-size: 2rem; color: var(--accent-red); font-weight: 900; line-height: 1; }
.banner-text .desc { font-size: 14px; color: #000; font-weight: bold; }

/* Section Head */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.sec-head-left .sub-title {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
}
.sub-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--accent-red);
  margin-right: 8px;
}
.sub-title.yellow::before { background: var(--accent-yellow); }
.sec-head-right {
  font-size: 14px;
  color: var(--text-gray);
}
.btn-outline-red {
  background: #fff;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* Channels */
.channels-sec { background: #fff; color: #000; }
.channels-sec h2 { color: #000; }
.channels-sec .sub-title { color: #666; }
.channels-sec .sec-head-right { color: #666; }
.ch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ch-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 30px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: border-color 0.3s;
}
.ch-card:hover { border-color: var(--accent-red); }
.ch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 31, 46, 0.2) 0%, transparent 70%);
  z-index: 1;
}
.ch-content { position: relative; z-index: 2; }
.ch-icon {
  display: inline-block;
  background: var(--accent-yellow);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 12px;
}
.ch-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.2rem; }
.ch-card p { color: var(--text-gray); font-size: 14px; margin: 0; }

/* Card Grid (Hot, Lists) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.data-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.data-card:hover { transform: translateY(-5px); }
.card-img-wrap { position: relative; aspect-ratio: 16/9; }
.card-img-wrap img { width: 100%; height: 100%; }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-red);
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
}
.card-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-yellow);
  color: #000;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
}
.card-info {
  padding: 20px;
  background: #fff;
  color: #000;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-info h3 {
  color: #000;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-tag {
  background: #f0f0f0;
  color: #666;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-top: auto;
}
.meta-hot { color: var(--accent-red); font-weight: bold; }

/* Dark section wrap for light backgrounds */
.light-bg-sec { background: #F5F5F7; color: #000; }
.light-bg-sec .sec-head-left h2 { color: #000; }
.light-bg-sec .sub-title { color: #666; }
.light-bg-sec .sub-title::before { background: #000; }
.light-bg-sec .data-card { background: #fff; border-color: #e0e0e0; }
.light-bg-sec .card-info { background: #fff; }

/* Ranking */
.rank-layout {
  display: flex;
  gap: 30px;
}
.rank-left {
  flex: 0 0 40%;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--border-dark);
}
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rank-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  background: #333;
  color: #fff;
}
.rank-num.top-1 { background: var(--accent-red); }
.rank-num.top-2 { background: var(--accent-yellow); color: #000; }
.rank-num.top-3 { background: #FF9800; color: #000; }
.rank-title {
  flex-grow: 1;
  font-size: 15px;
  color: var(--text-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-score { color: var(--accent-red); font-weight: bold; font-size: 14px; }

.rank-right {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rank-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rank-cards .data-card { background: var(--bg-card); border-color: var(--border-dark); }
.rank-cards .card-info { background: var(--bg-card); }
.rank-cards .card-info h3 { color: var(--text-white); }
.rank-cards .card-info p { color: var(--text-gray); }
.rank-cards .card-tag { background: #222; color: #999; }
.rank-cards .card-meta { color: #666; }

.promo-box {
  background: #FFF0F2;
  border-radius: 8px;
  padding: 30px;
  border: 1px solid #FFCDD2;
}
.promo-box h3 { color: var(--accent-red); font-size: 1.5rem; margin-bottom: 12px; }
.promo-box p { color: #666; margin-bottom: 20px; }
.btn-promo {
  background: var(--accent-red);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

/* Collections */
.collection-sec {
  background: #2B080C;
}
.collection-layout {
  display: flex;
  gap: 40px;
}
.col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.col-left h2 { color: #fff; margin-bottom: 20px; font-size: 2.2rem; }
.col-left p { color: #ccc; margin-bottom: 30px; }
.col-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.capsule {
  background: #3D0C12;
  border: 1px solid #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.capsule-icon { color: var(--accent-yellow); }
.col-btns {
  display: flex;
  gap: 16px;
}
.btn-col-yellow {
  background: var(--accent-yellow);
  color: #000;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.btn-col-dark {
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.col-right .data-card {
  background: #fff;
  border: none;
}
.col-right .card-info h3 { color: #000; }
.col-right .card-info p { color: #666; }
.col-right .card-tag { background: #f0f0f0; color: #666; }
.col-right .card-meta { color: #999; }

/* Footer */
footer {
  background: #000;
  padding: 80px 0 30px;
  border-top: 1px solid #222;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand img { height: 32px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-gray); font-size: 14px; margin-bottom: 20px; }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 14px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p { color: var(--text-gray); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--accent-red);
  padding: 12px 20px;
  z-index: 200;
  justify-content: center;
}
.mobile-sticky-bar .btn-download-nav {
  width: 100%;
  height: 48px;
  font-size: 16px;
}


/* Responsive */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
}
@media (max-width: 992px) {
  .container { max-width: 720px; }
  .nav-links { display: none; }
  .search-box { display: none; }
  .mobile-menu-btn { display: block; }
  .rank-layout { flex-direction: column; }
  .rank-left, .rank-right { flex: 1; }
  .collection-layout { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding-top: 40px; }
  .hero-btns { flex-direction: column; }
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .rank-cards { grid-template-columns: 1fr; }
  .hero-banner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .ch-grid { grid-template-columns: 1fr; }
  .col-btns { flex-direction: column; }
  .btn-col-yellow, .btn-col-dark { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-content { animation: none; }
  * { transition: none !important; animation: none !important; }
}