/* ==========================================================================
   VINTAGE 2003 WEBMASTER TOPLIST & CLASSIFIED LEADERBOARD
   Folder 27 - Authentic 2002-2004 Slate & Steel-Blue TopList Portal
   100% Pure Native Vanilla CSS | ZERO External Libraries | Sub-2ms TTFB
   Colors: Slate (#475569, #64748b), Steel Blue (#2563eb, #1e40af), Mint (#10b981)
   ========================================================================== */

:root {
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --slate-dark: #334155;
  --slate-main: #475569;
  --slate-muted: #64748b;
  --slate-light: #94a3b8;
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --blue-primary: #2563eb;
  --blue-dark: #1e40af;
  --blue-soft: #eff6ff;
  --green-mint: #059669;
  --green-light: #ecfdf5;
  --gold-star: #d97706;
  --gold-light: #fef3c7;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--slate-dark);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* Master TopList Container (75% Max-Width Matching Original 73% Layout) */
.toplist-master-wrap {
  max-width: 960px;
  width: 94%;
  margin: 20px auto 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(51, 65, 85, 0.08);
  overflow: hidden;
}

/* Top System Ticker */
.toplist-ticker {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 8px;
}

.ticker-tag {
  background: #2563eb;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-family: var(--font-mono);
}

/* Header Section with Original Logo */
.toplist-header {
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.header-logo-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo-side img {
  max-height: 52px;
  width: auto;
  border-radius: 4px;
}

.header-text-side {
  text-align: right;
  font-size: 12px;
  color: var(--slate-muted);
}

.header-title-text {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.header-date-badge {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
  margin-top: 4px;
}

/* CTA Bar */
.toplist-cta-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-pill-btn {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.cta-pill-btn:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

/* Section Header Bar */
.section-bar-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section-bar-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.section-badge-counter {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ==========================================================================
   12 CINEMA STREAM CARDS (EXPANDED STREAM SHOWCASE)
   ========================================================================== */
.cinema-showcase-section {
  padding: 16px 18px;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
}

.cinema-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.cinema-stream-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.cinema-stream-card:hover {
  background: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stream-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.stream-badge-pill {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #bfdbfe;
}

.stream-card-meta {
  font-size: 11px;
  color: var(--slate-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-play-action {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 4px;
  text-align: center;
  margin-top: 4px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stream-play-action:hover {
  background: #1e40af;
}

/* ==========================================================================
   TOPLIST LEADERBOARD TABLE (50+ ENTRIES) - MOBILE OPTIMIZED & ENLARGED FONTS
   ========================================================================== */
.toplist-table-section .section-bar-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 2px solid var(--border-color);
}

.leaderboard-title {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.toplist-table-section .section-badge-counter {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
}

.toplist-filter-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.toplist-search-input {
  max-width: 420px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px; /* >= 16px or 15px on mobile prevents auto-zoom and enhances touch ergonomics */
  outline: none;
  font-family: inherit;
  background: #ffffff;
  transition: all 0.15s ease;
}

.toplist-search-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.toplist-table-section {
  padding: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
}

.toplist-table {
  width: 100%;
  border-collapse: collapse;
}

.toplist-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.12s ease;
}

.toplist-row:hover {
  background-color: #f8fafc;
}

.toplist-cell-rank {
  width: 60px;
  padding: 14px 14px;
  text-align: center;
  vertical-align: middle;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  font-family: var(--font-mono);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rank-gold { 
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%); 
  color: #92400e; 
  border: 1px solid #f59e0b; 
}
.rank-silver { 
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); 
  color: #334155; 
  border: 1px solid #94a3b8; 
}
.rank-bronze { 
  background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%); 
  color: #9a3412; 
  border: 1px solid #fb923c; 
}
.rank-normal { 
  background: #f8fafc; 
  color: var(--slate-muted); 
  border: 1px solid var(--border-light); 
}

.toplist-cell-title {
  padding: 14px 12px;
  vertical-align: middle;
}

.toplist-link-anchor {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.35;
}

.toplist-link-anchor:hover {
  color: var(--blue-primary);
  text-decoration: underline;
}

.toplist-cell-count {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  width: 140px;
}

.count-mint-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  white-space: nowrap;
}

.toplist-cell-action {
  width: 100px;
  padding: 14px 16px;
  text-align: right;
  vertical-align: middle;
}

.action-visit-btn {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 5px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s ease;
}

.action-visit-btn:hover {
  background: var(--blue-primary);
  color: #ffffff !important;
  border-color: var(--blue-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   WEBMASTER TRAFFIC IN/OUT VERIFICATION MATRIX (UNIQUE BOTTOM SECTION)
   ========================================================================== */
.matrix-stats-section {
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 2px solid var(--border-light);
}

.matrix-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.matrix-table th {
  background: #f1f5f9;
  color: var(--slate-main);
  padding: 8px 12px;
  text-align: left;
  font-weight: 800;
  border-bottom: 1px solid var(--border-color);
  font-size: 10.5px;
  text-transform: uppercase;
}

.matrix-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.matrix-table tr:hover {
  background: #f8fafc;
}

/* Private Archive Grid #1 to #14 */
.private-archive-section {
  padding: 18px 20px;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
}

.private-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.archive-pill-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-main);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.archive-pill-box:hover {
  background: var(--blue-soft);
  border-color: #bfdbfe;
  color: var(--blue-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

.archive-pill-box img {
  width: 24px;
  height: 24px;
  border-radius: 3px;
}

/* Minimalist Webring Ribbon Bar */
.webring-ribbon-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  text-align: center;
}

.webring-ribbon-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--slate-main);
  margin-bottom: 6px;
}

.webring-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.webring-node-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--slate-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.webring-node-btn:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Compliance Footer */
.toplist-footer {
  background: #ffffff;
  padding: 20px;
  text-align: center;
  font-size: 11.5px;
  color: var(--slate-muted);
}

.compliance-legal-text {
  max-width: 720px;
  margin: 8px auto 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: #64748b;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .toplist-master-wrap {
    width: 98%;
    margin: 8px auto;
  }
  .header-logo-side {
    gap: 10px;
  }
  .header-text-side {
    text-align: left;
  }
  .leaderboard-title {
    font-size: 16.5px !important;
  }
  .toplist-filter-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .toplist-search-input {
    max-width: 100%;
    font-size: 16px; /* Prevents auto-zoom on mobile iOS */
    padding: 10px 14px;
  }
  .toplist-cell-rank {
    width: 50px;
    padding: 12px 6px 12px 10px;
  }
  .rank-pill {
    width: 30px;
    height: 30px;
    font-size: 12.5px;
  }
  .toplist-cell-title {
    padding: 12px 8px;
  }
  .toplist-link-anchor {
    font-size: 15.5px;
    gap: 8px;
  }
  .toplist-cell-count {
    padding: 12px 10px 12px 6px;
    width: auto;
  }
  .count-mint-badge {
    font-size: 12px;
    padding: 4px 8px;
  }
  .toplist-cell-action {
    display: none;
  }
  .cinema-streams-grid {
    grid-template-columns: 1fr;
  }
  .matrix-table {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .leaderboard-title {
    font-size: 15.5px !important;
  }
  .toplist-link-anchor {
    font-size: 15px;
  }
  .toplist-cell-rank {
    width: 44px;
    padding: 11px 4px 11px 8px;
  }
  .rank-pill {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .count-mint-badge {
    font-size: 11.5px;
    padding: 3px 6px;
  }
}