:root { --primary: #1e40af; --dark: #111827; --success: #10b981; --muted: #94a3b8; --accent:#3b82f6; }
* { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body { font-family: 'Inter', sans-serif; background:#0f172a; color:#e5e7eb; line-height:1.45; -webkit-overflow-scrolling:touch; }

/* LAYOUT */
.container { max-width:1200px; margin:0 auto; padding:2rem 1rem; }

/* CAROUSEL */
.carousel { position:relative; width:100%; height:65vh; overflow:hidden; background:#000; }
.carousel img { width:100%; height:100%; object-fit:cover; position:absolute; top:0; left:0; opacity:0; transition:opacity 1s ease-in-out; }
.carousel img.active { opacity:1; z-index:1; }
.carousel-overlay {
  position:absolute; inset:0; background:linear-gradient(to bottom,transparent 35%,rgba(0,0,0,0.95));
  display:flex; flex-direction:column; justify-content:flex-end; padding:2rem; color:white; z-index:2;
}
.carousel-title { font-size:3rem; font-weight:800; text-shadow:0 4px 20px rgba(0,0,0,0.8); margin-bottom:0.4rem; }
.carousel-subtitle { font-size:1.1rem; margin-bottom:0.3rem; opacity:0.95; }
.carousel-meta { font-size:0.95rem; opacity:0.9; }

.carousel-dots { position:absolute; left:50%; transform:translateX(-50%); bottom:12px; z-index:4; display:flex; gap:8px; }
.carousel-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.25); cursor:pointer; border:1px solid rgba(255,255,255,0.08); }
.carousel-dot.active { background:var(--accent); box-shadow:0 4px 10px rgba(59,130,246,0.2); }

.section-heading { text-align:center; color:#93c5fd; margin-bottom:1rem; font-size:1.3rem; }

.weather-section {
  background:#1f2937; border-radius:12px; padding:1.6rem; margin:2.5rem 0; border:1px solid #374151;
}
.weather-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1rem;
  margin-top:1rem;
}
.weather-card {
  position:relative;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.45);
  cursor:zoom-in;
  transition:transform 0.25s ease;
  background:#0b1220;
  display:flex;
  align-items:flex-end;
}
.weather-card:hover { transform:translateY(-4px); }

.weather-img-btn { border:0; background:transparent; padding:0; width:100%; display:block; text-align:left; cursor:pointer; }
.weather-img {
  display:block;
  width:100%;
  height:auto;
  max-height:480px;
  object-fit:cover;
}

.weather-overlay {
  position:absolute;
  bottom:0; left:0; right:0;
  background:linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding:1rem 1rem 1rem;
  color:white;
}
.weather-date { font-size:1.05rem; font-weight:700; color:#93c5fd; }

@media (max-width:1024px) {
  .carousel { height:55vh; }
  .carousel-title { font-size:2.6rem; }
  .weather-grid { grid-template-columns:repeat(2,1fr); gap:0.9rem; }
  .weather-img { max-height:420px; }
}
@media (max-width:640px) {
  .container { padding:1rem; }
  .carousel { height:46vh; }
  .carousel-title { font-size:1.9rem; }
  .carousel-subtitle { font-size:1rem; }
  .carousel-meta { font-size:0.85rem; }
  .weather-grid { grid-template-columns:1fr; gap:0.6rem; }
  .weather-img { max-height:none; }
  .weather-overlay { padding:0.9rem; }
}

.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:0.5rem; }
.venue-stats-section, .squad-section, .toss-section { background:#1f2937; border-radius:12px; padding:1.6rem; margin:2.5rem 0; border:1px solid #374151; }

.venue-stats-title { font-size:1.25rem; color:#93c5fd; text-align:center; margin-bottom:1rem; font-weight:600; }
.stats-table { width:100%; border-collapse:collapse; background:#111827; border-radius:10px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,0.35); min-width:640px; }
.stats-table th { background:#1e293b; color:white; padding:0.85rem 0.8rem; text-align:center; font-weight:600; font-size:0.95rem; }
.stats-table td { padding:0.8rem; text-align:center; border-bottom:1px solid #334155; font-size:0.95rem; }
.inning-label { background:#0f172a; color:#93c5fd; font-weight:600; text-align:left; padding-left:1.1rem; }
.bar-container { width:100%; height:36px; background:#334155; border-radius:8px; overflow:hidden; position:relative; }
.bar { height:100%; display:flex; align-items:center; justify-content:flex-end; padding-right:12px; color:white; font-weight:600; font-size:1rem; border-radius:8px; }
.bar-score   { background:#60a5fa; }
.bar-runrate { background:#34d399; }
.bar-dot     { background:#fb923c; }
.bar-wickets { background:#a3e635; }

.toss-title { font-size:1.15rem; color:#93c5fd; margin-bottom:0.8rem; font-weight:600; text-align:center; }
.toss-table { width:100%; border-collapse:collapse; background:#111827; border-radius:10px; min-width:520px; box-shadow:0 8px 24px rgba(0,0,0,0.35); }
.toss-table th { background:#1e293b; color:white; padding:0.8rem; font-size:0.95rem; }
.toss-table td { padding:0.9rem; font-size:0.95rem; background:#0f172a; border-bottom:1px solid #334155; text-align:center; }
.highlight-win { color:#34d399; font-weight:600; }
.highlight-draw { color:#fbbf24; font-weight:600; }
.conclusion-text { margin-top:0.8rem; font-size:0.95rem; color:var(--muted); text-align:center; }

.squad-title { font-size:1.25rem; color:#93c5fd; text-align:center; margin-bottom:1rem; font-weight:700; }
.squad-table { width:100%; border-collapse:collapse; background:#111827; border-radius:10px; overflow:hidden; box-shadow:0 8px 28px rgba(0,0,0,0.45); min-width:720px; font-size:0.95rem; }
.squad-table th { background:#1e293b; color:white; padding:0.9rem 0.8rem; text-align:center; font-weight:600; }
.squad-table td { padding:0.9rem 0.8rem; text-align:left; border-bottom:1px solid #334155; }
.squad-table tr:hover { background:#1e293b; }
.captain { color:#34d399; font-weight:700; }
.wicketkeeper { color:#fbbf24; }

.best-performers-section { background:#1f2937; border-radius:12px; padding:1.6rem; margin:2.5rem 0; border:1px solid #374151; }
.best-performers-title { font-size:1.3rem; color:#93c5fd; text-align:center; margin-bottom:1rem; font-weight:700; }
.tabs { display:flex; justify-content:center; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.tab-btn { padding:0.6rem 1.2rem; background:#1e293b; color:white; border:none; border-radius:999px; font-size:0.95rem; font-weight:600; cursor:pointer; transition:all 0.2s; }
.tab-btn.active, .tab-btn:hover { background:var(--accent); transform:scale(1.03); }
.tab-content { display:none; }
.tab-content.active { display:block; }
.performance-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:1rem; }
.player-card { background:#111827; border-radius:12px; overflow:hidden; box-shadow:0 8px 30px rgba(0,0,0,0.45); transition:transform 0.25s; }
.player-card:hover { transform:translateY(-6px); }
.player-img { width:100%; height:240px; object-fit:cover; display:block; }
.player-info { padding:1rem; text-align:center; }
.player-name { font-size:1.05rem; font-weight:700; color:#93c5fd; margin-bottom:0.5rem; }
.stats-simple { display:flex; justify-content:center; gap:1rem; font-size:0.95rem; }
.stat-big-value { font-size:1.5rem; font-weight:800; color:#60a5fa; }
.bowler .stat-big-value { color:#f87171; }

.video-highlights-section { background: #1f2937; border-radius: 12px; padding: 1.6rem; margin: 2.5rem 0; border: 1px solid #374151; text-align: center; }

/* NEW: Multiple Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.8rem;
  justify-items: center;
  margin-top: 1.5rem;
}
.video-player-item {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.25s;
}
.video-player-item:hover { transform: translateY(-6px); }
.player-img-big { width:100%; height:420px; object-fit:cover; display:block; }
.play-icon-big {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:72px; height:72px; background:rgba(59,130,246,0.95); border-radius:50%;
  display:flex; align-items:center; justify-content:center; pointer-events:none;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
}
.player-overlay {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(transparent, rgba(0,0,0,0.9)); padding:1rem; color:white;
}
.player-overlay h3 { font-size:1.1rem; margin:0 0 0.25rem 0; color:#93c5fd; }
.player-overlay p { margin:0; opacity:0.9; font-size:0.95rem; }

.video-modal { display:none; position:fixed; z-index:9999; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.94); backdrop-filter:blur(8px); align-items:center; justify-content:center; padding:1rem; }
.video-modal.active { display:flex; }
.video-modal-content { width:100%; max-width:980px; background:#111827; border-radius:12px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,0.8); position:relative; }
.video-close { position:absolute; top:12px; right:12px; color:white; font-size:28px; font-weight:bold; cursor:pointer; width:44px; height:44px; background:rgba(0,0,0,0.5); border-radius:50%; display:flex; align-items:center; justify-content:center; border:0; }

.lightbox { display:none; position:fixed; z-index:9998; inset:0; background:rgba(0,0,0,0.9); align-items:center; justify-content:center; padding:1rem; }
.lightbox.active { display:flex; }
.lightbox img { max-width:96%; max-height:92%; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,0.7); display:block; }
.lightbox-close { position:absolute; top:18px; right:18px; background:rgba(0,0,0,0.5); color:white; border:0; width:44px; height:44px; border-radius:50%; font-size:28px; cursor:pointer; }

@media (max-width:640px) {
  .stats-table, .squad-table, .toss-table { font-size:0.9rem; min-width:520px; }
  .player-img { height:200px; }
  .player-img-big { height:300px; }
  .carousel-title { font-size:1.3rem; }
  .video-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}








/* Performance Button - After Videos */
.performance-btn-container {
  text-align: center;
  margin: 3rem 0 2rem;
}
.performance-btn {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  transition: all 0.3s;
}
.performance-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}
.performance-btn svg {
  transition: transform 0.3s;
}
.performance-btn:hover svg {
  transform: translate(4px, -4px);
}

@media (max-width: 640px) {
  .performance-btn {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
  }
}














/* View Results Button */
.view-results-btn {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  transition: all 0.3s;
}
.view-results-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

/* Toss Results Slider Modal */
.toss-slider-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}
.toss-slider-modal.active { display: flex; }

.toss-slider-content {
  position: relative;
  width: 95%;
  max-width: 900px;
  text-align: center;
}

.toss-slide {
  display: none;
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.toss-slide.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

.toss-prev-btn, .toss-next-btn {
  position: absolute;
  top: 100%;
  transform: translateY(-50%);
  background: rgba(30,64,175,0.8);
  color: white;
  border: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}
.toss-prev-btn { left: 15px; }
.toss-next-btn { right: 15px; }
.toss-prev-btn:hover, .toss-next-btn:hover { background: #3b82f6; }

.toss-close-btn {
  position: absolute;
  top: -50px; right: 20px;
  background: #1f2937;
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  border: none;
  z-index: 10;
}

.toss-dots {
  text-align: center;
  margin-top: 15px;
}
.toss-dot {
  display: inline-block;
  width: 10px; height: 10px;
  margin: 0 6px;
  background: #374151;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.toss-dot.active, .toss-dot:hover {
  background: #60a5fa;
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .toss-prev-btn, .toss-next-btn { width: 40px; height: 40px; font-size: 20px; }
  .toss-close-btn { width: 40px; height: 40px; font-size: 26px; }
}