:root {
  --bg-darkest: #0d1a2a;
  --bg-darker: #0f2035;
  --bg-main: #14395f;
  --bg-lighter: #1e4e7e;
  --color-primary: #f5b21a;
  --color-primary-hover: #c48e15;
  --color-secondary: #8a9caf;
  --color-text: #ffffff;
  --color-text-muted: rgba(255,255,255,0.6);
  --color-heading: #fff;
  --color-link-seo: #f5b21a;
  --radius: 0.5rem;
  --font: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg-darkest);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 { color: var(--color-heading); line-height: 1.3; }
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1rem; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  height: 56px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 0.75rem;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 36px;
  width: auto;
  aspect-ratio: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.burger-btn {
  background: none;
  border: none;
  color: var(--color-text);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 0.25rem;
}
.burger-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}
.burger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #000;
}
.btn-outline-primary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #000;
}
.btn-outline-secondary {
  background: transparent;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.btn-outline-secondary:hover {
  background: var(--color-secondary);
  color: #fff;
}
.rounded-pill { border-radius: 50rem !important; }

.layout-wrapper {
  display: flex;
  margin-top: 56px;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-darker);
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-lighter) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--bg-lighter); border-radius: 2px; }
.sidebar-section {
  background: var(--bg-main);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}
.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 0.05rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  color: var(--color-text);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--bg-lighter);
  color: #fff;
}
.sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-single-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
}
.sidebar-single-link:hover { background: var(--bg-lighter); color: #fff; }

.site-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1rem 3rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: rgba(0,0,0,0.6);
  z-index: 899;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    left: 0; top: 56px;
    z-index: 900;
    transform: translateX(-100%);
    width: 260px;
    height: calc(100vh - 56px);
    transition: transform 0.3s;
  }
  .sidebar.open { transform: translateX(0); }
  .site-main { padding: 1rem 0.75rem 2rem; }
}

.promo-section { margin-bottom: 1.5rem; }
.promo-slider-wrap { position: relative; }
.promo-slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.promo-slider::-webkit-scrollbar { display: none; }
.promo-card {
  background: var(--bg-darker);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.promo-card-content { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.promo-badge {
  display: inline-block;
  background: var(--bg-lighter);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 50rem;
  letter-spacing: 0.04em;
  width: fit-content;
}
.promo-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.promo-img { width: 80px; flex-shrink: 0; }
.promo-img img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 0.375rem;
  aspect-ratio: 1/1;
}
.slider-arrows {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}
.slider-arrow {
  background: var(--bg-lighter);
  border: none;
  color: var(--color-text);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.slider-arrow:hover { background: var(--bg-main); }

.searchbar-wrap { margin: 1.25rem 0; }
.searchbar {
  display: flex;
  align-items: center;
  background: var(--bg-darker);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  gap: 0.5rem;
}
.searchbar svg { color: var(--color-text-muted); flex-shrink: 0; }
.searchbar input {
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 0.9rem;
  width: 100%;
  font-family: inherit;
}
.searchbar input::placeholder { color: var(--color-text-muted); }

.category-nav { margin-bottom: 1.25rem; }
.pills-wrap {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-darker);
  border-radius: 50rem;
  padding: 0.3rem;
}
.pills-wrap::-webkit-scrollbar { display: none; }
.pill-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  cursor: pointer;
}
.pill-btn:hover { color: var(--color-text); background: var(--bg-lighter); }
.pill-btn.active { background: var(--color-primary); color: #000; }
.pill-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.games-section { margin-bottom: 1.5rem; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}
@media (min-width: 576px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
}
@media (min-width: 992px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-darker);
  aspect-ratio: 1 / 1;
}
.game-card a { display: block; width: 100%; height: 100%; }
.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
  aspect-ratio: 1/1;
}
.game-card:hover img { transform: scale(1.04); }
.game-label {
  position: absolute;
  top: 0.35rem; left: 0.35rem;
  background: rgba(245,178,26,0.9);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 50rem;
  white-space: nowrap;
  pointer-events: none;
}
.load-more-wrap {
  text-align: center;
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-text); }
.footer-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}
.footer-providers a { display: flex; align-items: center; }
.footer-providers img {
  width: 80px; height: auto;
  filter: brightness(0.65);
  transition: filter 0.2s;
}
.footer-providers a:hover img { filter: brightness(1); }
.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.seo-block {
  background: var(--bg-darker);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  color: var(--color-text);
}
.seo-block h1, .seo-block h2, .seo-block h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.seo-block h1:first-child,
.seo-block h2:first-child,
.seo-block h3:first-child { margin-top: 0; }
.seo-block p { font-size: 0.925rem; line-height: 1.75; }
.seo-block ol, .seo-block ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.seo-block li { font-size: 0.925rem; line-height: 1.75; margin-bottom: 0.3rem; }
.seo-block table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.seo-block td, .seo-block th {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.seo-block figure { overflow-x: auto; margin-bottom: 1rem; }
.seo-block a {
  color: var(--color-link-seo);
  text-decoration: underline;
  font-weight: 600;
}
.seo-block a:hover { color: #ffd055; }
.seo-block strong { color: var(--color-heading); }
@media (max-width: 767px) {
  .seo-block { padding: 1.25rem; }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-text); }
.breadcrumbs .sep { color: var(--color-text-muted); }
.breadcrumbs .current { color: var(--color-primary); font-weight: 600; }

.page-hero {
  background: var(--bg-darker);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--color-text-muted); font-size: 0.95rem; }
.content-card {
  background: var(--bg-darker);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.content-card h2, .content-card h3 {
  margin-bottom: 0.75rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.w-100 { width: 100%; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }