/* ============================================
   华体会 - HTH Sports Platform
   Global Stylesheet - Mobile First Design
   ============================================ */

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

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

body {
  font-family: 'Noto Sans', Roboto, 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #FAFAFA;
  color: #263238;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #0277BD;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #F44336;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: #263238;
}

.olympic-hide { display: none; }

/* === Container === */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* === Header & Navigation === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease-in-out;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0277BD;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Desktop Nav */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #263238;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.main-nav a:hover,
.main-nav a.active {
  color: #0277BD;
  background: rgba(2,119,189,0.06);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: none;
  position: relative;
}

.search-box input {
  width: 200px;
  padding: 6px 32px 6px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease-in-out;
}

.search-box input:focus {
  border-color: #0277BD;
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.lang-switch {
  display: none;
  font-size: 0.85rem;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  color: #263238;
}

.btn-login {
  display: none;
  padding: 6px 16px;
  background: #0277BD;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.btn-login:hover {
  background: #01579B;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #263238;
  transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: #263238;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
  color: #0277BD;
  background: rgba(2,119,189,0.04);
}

.mobile-menu .mobile-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu .mobile-actions button {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.mobile-menu .mobile-actions .btn-login-mobile {
  background: #0277BD;
  color: #fff;
  border: none;
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .search-box { display: block; }
  .lang-switch { display: block; }
  .btn-login { display: block; }
  .hamburger { display: none; }
  .header-inner { height: 68px; padding: 0 32px; }
}

/* === Hero Section === */
.hero-section {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  background: #111;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 300px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.hero-overlay h1 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.btn-cta {
  display: inline-block;
  padding: 10px 24px;
  background: #F44336;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.btn-cta:hover {
  background: #D32F2F;
  color: #fff;
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.hero-dots span.active {
  background: #fff;
}

@media (min-width: 768px) {
  .hero-slider { height: 420px; }
  .hero-overlay h1 { font-size: 2rem; }
  .hero-section { margin-top: 68px; }
}

@media (min-width: 1024px) {
  .hero-slider { height: 520px; }
  .hero-overlay h1 { font-size: 2.5rem; }
  .hero-overlay { padding: 50px 40px; }
}

@media (min-width: 1440px) {
  .hero-slider { height: 600px; }
}

/* === Section Common === */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #263238;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #0277BD, #F44336);
  margin-top: 8px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #607D8B;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
}

/* === Featured Events Cards === */
.events-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.events-scroll::-webkit-scrollbar {
  height: 4px;
}

.events-scroll::-webkit-scrollbar-thumb {
  background: #0277BD;
  border-radius: 2px;
}

.event-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.event-card .event-league {
  font-size: 0.75rem;
  color: #fff;
  background: #0277BD;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.event-card .event-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.event-card .team-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  flex: 1;
}

.event-card .vs {
  color: #F44336;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 8px;
}

.event-card .event-time {
  font-size: 0.8rem;
  color: #607D8B;
  text-align: center;
  margin-bottom: 12px;
}

.event-card .btn-live {
  display: block;
  text-align: center;
  padding: 8px;
  background: #F44336;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s ease-in-out;
}

.event-card .btn-live:hover {
  background: #D32F2F;
  color: #fff;
}

/* === News Section === */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.news-main .news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.news-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-item-content h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-item-content h4 a {
  color: #263238;
}

.news-item-content h4 a:hover {
  color: #0277BD;
}

.news-item-content .news-meta {
  font-size: 0.8rem;
  color: #90A4AE;
}

.news-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.news-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0277BD;
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hot-list .rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #E0E0E0;
  color: #666;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hot-list li:nth-child(1) .rank,
.hot-list li:nth-child(2) .rank,
.hot-list li:nth-child(3) .rank {
  background: #F44336;
  color: #fff;
}

.hot-list a {
  font-size: 0.9rem;
  color: #263238;
  line-height: 1.4;
}

.hot-list a:hover {
  color: #0277BD;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* === Data Hub === */
.data-hub {
  background: linear-gradient(135deg, #0277BD 0%, #01579B 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.data-hub::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border: 40px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.data-hub h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.data-hub p {
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.data-hub .btn-cta {
  background: #fff;
  color: #0277BD;
}

.data-hub .btn-cta:hover {
  background: #E3F2FD;
  color: #0277BD;
}

.data-hub img {
  margin-top: 24px;
  border-radius: 12px;
  max-height: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* === Global Arena Teaser === */
.global-teaser {
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.global-teaser-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0.6;
}

.global-teaser-content {
  padding: 30px 24px;
  color: #fff;
}

.global-teaser-content h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.global-teaser-content p {
  opacity: 0.85;
  margin-bottom: 20px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tags span {
  padding: 6px 14px;
  background: rgba(2,119,189,0.3);
  border: 1px solid rgba(2,119,189,0.5);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #90CAF9;
}

@media (min-width: 768px) {
  .global-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .global-teaser-img {
    height: 100%;
    opacity: 0.8;
  }
}

/* === Partners === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
}

.partner-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease-in-out;
  font-weight: 600;
  color: #90A4AE;
  font-size: 0.85rem;
  text-align: center;
}

.partner-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(6, 1fr); }
}

/* === Sports Categories === */
.sports-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sport-cat-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease-in-out;
}

.sport-cat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.sport-cat-item .sport-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.sport-cat-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.sport-cat-item p {
  font-size: 0.8rem;
  color: #90A4AE;
}

@media (min-width: 768px) {
  .sports-categories { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .sports-categories { grid-template-columns: repeat(6, 1fr); }
}

/* === APP Download === */
.app-section {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
}

.app-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.app-section p {
  color: #546E7A;
  margin-bottom: 24px;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.app-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #263238;
}

.app-feature-item .feat-icon {
  font-size: 1.5rem;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #263238;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: background 0.3s ease-in-out;
}

.app-btn:hover {
  background: #37474F;
  color: #fff;
}

@media (min-width: 768px) {
  .app-features { grid-template-columns: repeat(4, 1fr); }
}

/* === Footer === */
.site-footer {
  background: #263238;
  color: #fff;
  padding: 50px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #0277BD;
}

.footer-col a {
  display: block;
  color: #B0BEC5;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.3s ease-in-out;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  color: #B0BEC5;
  font-size: 0.9rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #B0BEC5;
  font-size: 0.9rem;
  transition: all 0.3s ease-in-out;
}

.social-links a:hover {
  background: #0277BD;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #78909C;
  padding: 20px 0;
  border-top: 1px solid #37474F;
}

.footer-bottom a {
  color: #90A4AE;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: #90A4AE;
  margin-top: 60px;
}

.breadcrumb a {
  color: #607D8B;
}

.breadcrumb a:hover {
  color: #0277BD;
}

.breadcrumb span {
  margin: 0 6px;
  color: #B0BEC5;
}

@media (min-width: 1024px) {
  .breadcrumb { margin-top: 68px; }
}

/* === Inner Page Layout === */
.inner-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 20px 0 60px;
}

.inner-main {
  min-width: 0;
}

.inner-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .inner-layout {
    grid-template-columns: 1fr 300px;
  }
  .inner-sidebar { display: block; }
}

/* === Article Styles === */
.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #90A4AE;
}

.article-hero {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
  max-height: 400px;
  object-fit: cover;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 30px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #0277BD;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

/* === TOC === */
.toc {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.toc h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #0277BD;
}

.toc ul {
  padding-left: 16px;
}

.toc li {
  padding: 4px 0;
  font-size: 0.9rem;
  list-style: decimal;
}

.toc a {
  color: #546E7A;
}

.toc a:hover {
  color: #0277BD;
}

/* === Sidebar Widgets === */
.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0277BD;
}

.sidebar-widget .related-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.sidebar-widget .related-list a {
  font-size: 0.9rem;
  color: #455A64;
}

.sidebar-widget .related-list a:hover {
  color: #0277BD;
}

/* === Share Buttons === */
.share-bar {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fff;
  transition: opacity 0.3s ease-in-out;
}

.share-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #1877F2; }
.share-btn.telegram { background: #0088cc; }

/* === Data Table === */
.data-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: #0277BD;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}

.data-table tr:hover {
  background: #f5f9fc;
}

.data-table tr:nth-child(even) {
  background: #fafafa;
}

/* === Global Arena Page === */
.arena-map-section {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}

.arena-map-section img {
  width: 100%;
  border-radius: 16px;
}

.timezone-converter {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.timezone-converter h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.tz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tz-controls select,
.tz-controls input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
}

.tz-controls button {
  padding: 8px 20px;
  background: #0277BD;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.tz-controls button:hover {
  background: #01579B;
}

/* === Prediction Section === */
.prediction-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.prediction-card .match-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.prediction-card .team {
  text-align: center;
  flex: 1;
}

.prediction-card .team h4 {
  font-size: 1rem;
}

.prediction-card .vs-badge {
  background: #F44336;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.vote-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.vote-bar .vote-a {
  background: #0277BD;
}

.vote-bar .vote-b {
  background: #F44336;
}

.vote-buttons {
  display: flex;
  gap: 12px;
}

.vote-buttons button {
  flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

.vote-buttons button:hover {
  border-color: #0277BD;
  color: #0277BD;
}

/* === APP Download Page === */
.app-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0277BD, #01579B);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 40px;
}

.app-hero h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 16px;
}

.app-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 24px;
}

.app-screenshots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.app-screenshots img {
  flex: 0 0 250px;
  border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.app-reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-card .stars {
  color: #FFC107;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 0.9rem;
  color: #546E7A;
  margin-bottom: 8px;
}

.review-card .reviewer {
  font-size: 0.8rem;
  color: #90A4AE;
}

@media (min-width: 768px) {
  .app-reviews { grid-template-columns: repeat(3, 1fr); }
}

/* === Utility Classes === */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* === Scroll to top === */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #0277BD;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #01579B;
}

/* === ISISS Badge === */
.isiss-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid #4CAF50;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #4CAF50;
  margin-bottom: 8px;
}

/* === Page Hero (Inner pages) === */
.page-hero {
  position: relative;
  height: 250px;
  margin-top: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.page-hero-overlay h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-hero-overlay p {
  opacity: 0.9;
}

@media (min-width: 768px) {
  .page-hero { height: 300px; }
}

@media (min-width: 1024px) {
  .page-hero { height: 350px; margin-top: 68px; }
}

/* === Card Grid (for inner pages) === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.content-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease-in-out;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.content-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.content-card .card-body {
  padding: 16px;
}

.content-card .card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.content-card .card-body p {
  font-size: 0.9rem;
  color: #607D8B;
  margin-bottom: 12px;
}

.content-card .card-body .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0277BD;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === About Page === */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content img {
  border-radius: 12px;
  margin: 24px 0;
}

/* === Legal Pages === */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
  color: #0277BD;
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.8;
  color: #455A64;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  list-style: disc;
  padding: 4px 0;
  color: #455A64;
}

/* === Timezone Convert Button === */
.tz-convert-btn {
  background: #0277BD;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s;
}

.tz-convert-btn:hover {
  background: #01579B;
}

/* === Vote Button === */
.vote-btn {
  background: #fff;
  border: 2px solid #ddd;
  padding: 8px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  color: #263238;
}

.vote-btn:hover {
  border-color: #0277BD;
  color: #0277BD;
}

.vote-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
