/* CricketClues premium red redesign. Loaded last to neutralize older page-specific overlaps. */
:root {
  --cc-red: #d80f32;
  --cc-red-dark: #91091d;
  --cc-red-deep: #5e0715;
  --cc-ink: #08111f;
  --cc-ink-2: #101a2c;
  --cc-line: rgba(216, 15, 50, 0.16);
  --cc-muted: #697386;
  --cc-card: #ffffff;
  --cc-soft: #fff5f6;
  --cc-cream: #fbf7f4;
  --cc-shadow: 0 18px 42px rgba(8, 17, 31, 0.1);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.bg-light,
body {
  color: var(--cc-ink) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 15, 50, 0.08), transparent 25%),
    radial-gradient(circle at 96% 10%, rgba(94, 7, 21, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--cc-cream) 52%, #ffffff 100%) !important;
  font-family: "Source Sans Pro", Arial, sans-serif;
}

a {
  color: var(--cc-red);
}

a:hover {
  color: var(--cc-red-dark);
}

.container {
  max-width: 1240px;
}

.sticky-top {
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.18);
  z-index: 1040;
}

.sticky-top .navbar.bg-dark,
header .navbar.bg-dark {
  min-height: 74px;
  background:
    radial-gradient(circle at 88% 0%, rgba(216, 15, 50, 0.2), transparent 28%),
    linear-gradient(135deg, #070d19 0%, #111827 60%, #42131a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-top .navbar-brand img {
  width: 172px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 8px;
}

.navbar-dark .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(216, 15, 50, 0.9);
}

.navbar-dark .navbar-nav .nav-link-join {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--cc-red), var(--cc-red-dark)) !important;
  box-shadow: 0 12px 24px rgba(216, 15, 50, 0.28);
}

.menuabar.gradient-one {
  min-height: 48px;
  overflow: visible !important;
  background:
    linear-gradient(90deg, #08111f 0%, #101a2c 58%, #371018 100%) !important;
  border-bottom: 1px solid rgba(216, 15, 50, 0.2);
  animation: none !important;
}

.menuabar .container,
.menuabar .row {
  min-width: 0;
}

.flex-scroll-x {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.flex-scroll-x::-webkit-scrollbar {
  height: 5px;
}

.flex-scroll-x::-webkit-scrollbar-thumb {
  background: rgba(216, 15, 50, 0.55);
  border-radius: 999px;
}

.league-match-panel {
  background:
    radial-gradient(circle at 15% 0%, rgba(216, 15, 50, 0.16), transparent 30%),
    linear-gradient(180deg, #0b1323 0%, #08111f 100%) !important;
  border-top: 1px solid rgba(216, 15, 50, 0.24) !important;
  box-shadow: 0 28px 60px rgba(8, 17, 31, 0.34) !important;
}

.league-match-panel.is-active {
  max-height: 480px !important;
}

.league-match-card {
  background: #111a2b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 4px solid var(--cc-red) !important;
  border-radius: 10px !important;
}

main.container,
main.fixture-page,
main.match-detail-page {
  padding-top: 22px !important;
}

section,
.featured-news-block,
.fixture-date-card,
.fixture-filter-card,
.nav-tabs-card,
.match-h2h-panel,
.match-side-packages,
.match-bottom-packages,
.buy-tips-summary-card,
.buy-tips-subscribe-card {
  border-color: var(--cc-line) !important;
}

.featured-news-block,
.fixture-date-card,
.fixture-filter-card,
.nav-tabs-card,
.match-h2h-panel,
.match-side-packages,
.match-bottom-packages {
  color: var(--cc-ink) !important;
  background: var(--cc-card) !important;
  border: 1px solid var(--cc-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--cc-shadow) !important;
}

.featured-news-block {
  background:
    radial-gradient(circle at 88% 0%, rgba(216, 15, 50, 0.14), transparent 30%),
    linear-gradient(135deg, #08111f 0%, #101a2c 58%, #3c1119 100%) !important;
}

.border-cut,
.fixture-date-card header h2,
.buy-tips-summary-card h2 {
  color: var(--cc-ink) !important;
  -webkit-text-fill-color: var(--cc-ink) !important;
}

.border-cut {
  background: #ffffff !important;
  border-color: rgba(216, 15, 50, 0.28) !important;
  box-shadow: 0 12px 28px rgba(8, 17, 31, 0.08);
}

.card {
  border-radius: 12px !important;
}

.card:not(.live_active):not(.buy-tip-card),
.fixture-match-row,
.buy-tip-match-row,
.match-bottom-package-card {
  color: var(--cc-ink) !important;
  background: #ffffff !important;
  border: 1px solid rgba(216, 15, 50, 0.14) !important;
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.08) !important;
}

.btn-danger,
.btn-outline-danger,
.card-footer .btn,
.fixture-filter-card button[type="submit"],
.package-buy-btn,
.buy-tips-subscribe-link,
.prediction-bet-action {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, var(--cc-red), var(--cc-red-dark), var(--cc-red-deep)) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(216, 15, 50, 0.26);
}

.btn-outline-dark {
  color: var(--cc-ink) !important;
  border-color: rgba(8, 17, 31, 0.2) !important;
  border-radius: 999px !important;
}

.fixture-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 15, 50, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbf7f4 100%) !important;
}

.fixture-hero {
  padding: 34px 0 26px !important;
  color: var(--cc-ink) !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(216, 15, 50, 0.12) !important;
}

.fixture-hero span {
  color: var(--cc-red) !important;
}

.fixture-hero h1,
.fixture-hero h4 {
  color: var(--cc-ink) !important;
  -webkit-text-fill-color: var(--cc-ink) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 900 !important;
}

.fixture-hero p {
  color: #5f6878 !important;
}

.fixture-layout {
  align-items: start;
  gap: 24px !important;
}

.fixture-filter-card {
  position: sticky;
  top: 104px;
  padding: 22px !important;
}

.fixture-filter-card h2 {
  color: var(--cc-ink) !important;
  -webkit-text-fill-color: var(--cc-ink) !important;
}

.fixture-filter-card label {
  color: #4b5565 !important;
  font-weight: 800;
}

.fixture-filter-card input,
.fixture-filter-card select,
.fixture-filter-card .form-control {
  min-height: 40px;
  color: var(--cc-ink) !important;
  background: #fff !important;
  border: 1px solid rgba(8, 17, 31, 0.14) !important;
  border-radius: 8px !important;
}

.fixture-date-card > header {
  color: var(--cc-ink) !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(216, 15, 50, 0.12) !important;
}

.fixture-date-card > header span {
  color: #ffffff !important;
  background: var(--cc-red) !important;
  border-radius: 999px;
  padding: 6px 11px;
}

/* Buy tips: laptop and mobile repair */
main.buy-tips-fixture-page .buy-tip-match-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 86px !important;
  margin: 12px 16px !important;
  padding: 12px !important;
}

main.buy-tips-fixture-page .buy-tip-match-row .fixture-team {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 10px !important;
  color: var(--cc-ink) !important;
  background: var(--cc-soft) !important;
  border: 1px solid rgba(216, 15, 50, 0.12) !important;
  border-radius: 10px !important;
  text-align: left !important;
}

main.buy-tips-fixture-page .buy-tip-match-row .fixture-team img,
main.buy-tips-fixture-page .buy-tip-match-row .fixture-team .buy-tip-team-logo {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  padding: 4px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: #ffffff !important;
}

main.buy-tips-fixture-page .buy-tip-match-row .fixture-team b {
  display: block !important;
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: var(--cc-ink) !important;
  -webkit-text-fill-color: var(--cc-ink) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.24 !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}

main.buy-tips-fixture-page .fixture-status-pill {
  min-height: 68px !important;
  padding: 10px 12px !important;
  color: var(--cc-ink) !important;
  background: #ffffff !important;
  border: 1px solid rgba(216, 15, 50, 0.12) !important;
  border-radius: 12px !important;
}

main.buy-tips-fixture-page .fixture-status-pill em {
  display: none !important;
}

main.buy-tips-fixture-page .fixture-status-pill .timer,
main.buy-tips-fixture-page .countdown {
  color: #ffffff !important;
  background: #101a2c !important;
  border-radius: 999px !important;
}

main.buy-tips-fixture-page .buy-tip-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

main.buy-tips-fixture-page .buy-tip-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

main.buy-tips-fixture-page .buy-tip-actions a:first-child {
  background: #101a2c !important;
}

main.buy-tips-fixture-page .buy-tip-actions a:last-child {
  background: linear-gradient(135deg, var(--cc-red), var(--cc-red-dark)) !important;
}

/* Match detail: readable dark premium hero */
main.match-detail-page .match_det.reload_match,
main.match-detail-page .match-detail-hero-card {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 86% 0%, rgba(216, 15, 50, 0.28), transparent 28%),
    linear-gradient(145deg, #08111f 0%, #101a2c 60%, #3c1119 100%) !important;
  border-color: rgba(216, 15, 50, 0.26) !important;
}

main.match-detail-page .match-detail-hero-card .card-header,
main.match-detail-page .match-detail-hero-card .card-body,
main.match-detail-page .match-detail-hero-card .card-footer {
  color: #ffffff !important;
  background: transparent !important;
}

main.match-detail-page .match-detail-team {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

main.match-detail-page .match-detail-team span,
main.match-detail-page .match-detail-team b,
main.match-detail-page .match-detail-center small,
main.match-detail-page .match-detail-status,
main.match-detail-page .match-detail-status small {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.match-last-balls-panel,
main.match-detail-page .match-info-card,
main.match-detail-page .match-info-strip span {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.prediction-bet-card {
  background: linear-gradient(135deg, #101a2c, #3c1119) !important;
  border-color: rgba(216, 15, 50, 0.34) !important;
}

footer.footer {
  background:
    radial-gradient(circle at 90% 0%, rgba(216, 15, 50, 0.18), transparent 28%),
    linear-gradient(135deg, #070d19 0%, #101a2c 100%) !important;
}

@media (max-width: 991.98px) {
  .fixture-layout {
    grid-template-columns: 1fr !important;
  }

  .fixture-filter-card {
    position: static;
  }

  main.buy-tips-fixture-page .buy-tip-match-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  .sticky-top .navbar-brand img {
    width: 148px;
  }

  .navbar-collapse {
    padding: 12px 0;
  }

  .navbar-dark .navbar-nav .nav-link {
    width: 100%;
  }

  .menuabar .container {
    max-width: 100%;
  }

  .league-match-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
  }
}

@media (max-width: 575.98px) {
  main.container,
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fixture-hero {
    padding: 24px 0 18px !important;
  }

  main.buy-tips-fixture-page .buy-tip-match-row {
    margin: 10px !important;
    gap: 8px !important;
  }

  main.buy-tips-fixture-page .buy-tip-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Light white design override */
:root {
  --cc-red: #d7192f;
  --cc-red-dark: #a80f22;
  --cc-red-deep: #7f0c1a;
  --cc-ink: #111827;
  --cc-ink-2: #1f2937;
  --cc-muted: #667085;
  --cc-card: #ffffff;
  --cc-soft: #f8f8f8;
  --cc-cream: #ffffff;
  --cc-line: rgba(17, 24, 39, 0.1);
  --cc-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

html,
body,
body.bg-light {
  color: var(--cc-ink) !important;
  background: #ffffff !important;
}

.sticky-top,
.sticky-top .navbar.bg-dark,
header .navbar.bg-dark,
.menuabar.gradient-one,
footer.footer,
.league-match-panel,
.featured-news-block,
main.match-detail-page .match_det.reload_match,
main.match-detail-page .match-detail-hero-card,
.prediction-bet-card,
.league-match-card,
.live_active,
.home-live-focus-panel,
.fixture-date-card,
.fixture-filter-card,
.nav-tabs-card,
.match-h2h-panel,
.match-side-packages,
.match-bottom-packages,
.buy-tips-summary-card,
.buy-tips-subscribe-card,
.card:not(.buy-tip-card),
.fixture-match-row,
.buy-tip-match-row,
.match-bottom-package-card,
.blog-card,
.contact-card {
  color: var(--cc-ink) !important;
  background: #ffffff !important;
  border-color: var(--cc-line) !important;
  box-shadow: var(--cc-shadow) !important;
}

.sticky-top .navbar.bg-dark:before,
.sticky-top .navbar.bg-dark:after,
.menuabar.gradient-one:before,
.menuabar.gradient-one:after {
  display: none !important;
}

.navbar-dark .navbar-nav .nav-link,
.menuabar .navbar-nav .nav-link,
footer.footer,
footer.footer a,
footer.footer p,
footer.footer li,
footer.footer h1,
footer.footer h2,
footer.footer h3,
footer.footer h4,
footer.footer h5,
footer.footer h6,
.live-card-top,
.live-card-top b,
.live-team-name,
.live-team-score,
.home-match-info,
.home-live-focus-panel h2,
.home-live-focus-panel p,
.home-live-focus-panel li,
.home-live-focus-stats span,
.home-live-focus-stats b {
  color: var(--cc-ink) !important;
  -webkit-text-fill-color: var(--cc-ink) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active,
.menuabar .navbar-nav .nav-link:hover,
.menu-league-item:hover > .nav-link,
.menu-league-item.is-active > .nav-link,
.navbar-dark .navbar-nav .nav-link-join,
.btn-danger,
.btn-outline-danger,
.card-footer .btn,
.fixture-filter-card button[type="submit"],
.package-buy-btn,
.buy-tips-subscribe-link,
.prediction-bet-action,
.buy-tip-actions a:last-child,
.live-card-top em,
.home-live-now-label,
.home-live-focus-badge,
.home-live-focus-links a,
.home-live-promo-content a,
.fixture-date-card > header span,
.badge.bg-danger,
.live_match.badge,
.live-vs-badge span,
.home-promo-control,
.live-slider-control {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--cc-red) !important;
  border-color: var(--cc-red) !important;
  box-shadow: none !important;
}

.navbar-dark .navbar-nav .nav-link .fa,
.league-match-panel-head span i,
.league-match-panel-head a,
.text-danger,
.text-primary,
.fixture-hero span,
.card-header b {
  color: var(--cc-red) !important;
  -webkit-text-fill-color: var(--cc-red) !important;
}

.border-cut,
.fixture-date-card header h2,
.buy-tips-summary-card h2,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--cc-ink) !important;
  -webkit-text-fill-color: var(--cc-ink) !important;
}

.border-cut,
.bg-light,
.fixture-page,
main section.bg-white.bg-gradient,
.bg-gradient,
.form-control,
.fixture-filter-card input,
.fixture-filter-card select,
.fixture-filter-card .form-control {
  background: #ffffff !important;
}

.bg-danger,
.bg-primary,
.accordion-button:not(.collapsed),
.owl-dots button.owl-dot.active,
.home-promo-dots button.is-active {
  background: var(--cc-red) !important;
  color: #ffffff !important;
}

.btn-outline-dark,
.buy-tip-actions a:first-child {
  color: var(--cc-ink) !important;
  background: #ffffff !important;
  border: 1px solid var(--cc-line) !important;
  box-shadow: none !important;
}

/* Black header and footer */
.sticky-top,
.sticky-top .navbar.bg-dark,
header .navbar.bg-dark,
.menuabar.gradient-one,
footer.footer {
  background: #050505 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link,
.menuabar .navbar-nav .nav-link,
footer.footer,
footer.footer a,
footer.footer p,
footer.footer li,
footer.footer h1,
footer.footer h2,
footer.footer h3,
footer.footer h4,
footer.footer h5,
footer.footer h6 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active,
.menuabar .navbar-nav .nav-link:hover,
.menu-league-item:hover > .nav-link,
.menu-league-item.is-active > .nav-link,
.navbar-dark .navbar-nav .nav-link-join {
  background: var(--cc-red) !important;
  border-color: var(--cc-red) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
