:root {
    --bg-black: #05060a;
    --bg-surface: #0e111a;
    --bg-card: #161a26;
    --accent-red: linear-gradient(180deg, #ff4455 0%, #b80d1e 100%);
    --accent-gold: #fcc419;
    --text-main: #ffffff;
    --text-dim: #949eb5;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background: var(--bg-black); color: var(--text-main); -webkit-tap-highlight-color: transparent; }
.container { padding: 0 15px; }

/* Header & Horizontal Menu (Accanto, non sotto) */
.main-header {
    background: #080a0f;
    border-bottom: 1px solid #1c202a;
    position: sticky; top: 0; z-index: 1000;
}
.header-flex {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px;
}
.logo { font-size: 22px; font-weight: 900; text-decoration: none; text-transform: uppercase; color: #fff; }
.logo span { color: var(--accent-gold); }

.btn-login { background: #e4132f; color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: bold; text-decoration: none; margin-right: 5px; }
.btn-reg { background: var(--accent-gold); color: #000; padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: bold; text-decoration: none; }

/* Menu Orizzontale a scorrimento */
.horizontal-menu {
    background: #0c0f17;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}
.horizontal-menu::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.menu-container { display: flex; gap: 8px; padding: 0 15px; }
.menu-item {
    display: inline-block;
    padding: 8px 16px;
    background: #1c212e;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}
.menu-item.active { background: var(--accent-red); border-color: transparent; }

/* Categorie Volumetriche */
.cat-section { padding: 20px 0; overflow-x: auto; scrollbar-width: none; }
.cat-grid { display: flex; gap: 12px; padding-bottom: 10px; }
.cat-item { flex: 0 0 85px; text-align: center; position: relative; text-decoration: none; }
.cat-box { 
    height: 85px; border-radius: 18px; display: flex; align-items: center; justify-content: center; 
    font-size: 28px; background: var(--accent-red); box-shadow: 0 6px 15px rgba(0,0,0,0.4); margin-bottom: 8px;
}
.cat-item span { font-size: 11px; font-weight: bold; color: #fff; }

/* Badge style */
.badge-red::after, .badge-gold::after {
    content: attr(data-badge);
    position: absolute; top: -5px; right: 0; padding: 2px 6px; border-radius: 10px; font-size: 9px; font-weight: 900;
}
.badge-red::after { background: #ff0000; color: #fff; }
.badge-gold::after { background: var(--accent-gold); color: #000; }

/* Hero Card */
.hero-card {
    display: block; background: linear-gradient(45deg, #1e243a, #4a148c);
    border-radius: 16px; padding: 30px 20px; text-decoration: none; color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05);
}
.hero-content h2 { font-size: 22px; margin-bottom: 5px; }
.hero-content p { font-size: 14px; opacity: 0.8; margin-bottom: 20px; }
.hero-btn { background: var(--accent-gold); color: #000; padding: 10px 20px; border-radius: 50px; font-weight: 900; font-size: 12px; }

/* Sport & Slots */
.section-title { font-size: 18px; margin: 25px 0 15px; color: var(--accent-gold); }
.sports-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.sport-card { 
    flex: 0 0 280px; background: var(--bg-card); border-radius: 16px; padding: 15px; 
    text-decoration: none; color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.card-league { font-size: 11px; color: #00d4ff; font-weight: bold; margin-bottom: 5px; }
.match { font-size: 16px; font-weight: bold; margin-bottom: 15px; }
.odds-row { display: flex; gap: 8px; }
.odd { flex: 1; background: #0c0f16; padding: 10px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: bold; }
.odd span { color: var(--accent-gold); display: block; font-size: 14px; }

.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot img { width: 100%; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* Tabelle e Liste */
.list-volume .list-element {
    display: block; background: var(--bg-card); padding: 16px; margin-bottom: 10px; 
    border-radius: 12px; text-decoration: none; color: #fff; font-weight: bold; border-left: 4px solid #e4132f;
}
.volume-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 20px; }
.volume-table th { padding: 10px; text-align: left; color: var(--text-dim); font-size: 11px; }
.volume-table td { background: var(--bg-card); padding: 15px; font-size: 13px; cursor: pointer; }
.volume-table td:first-child { border-radius: 12px 0 0 12px; }
.volume-table td:last-child { border-radius: 0 12px 12px 0; }

/* Footer */
.main-footer { background: #040507; padding: 40px 15px; text-align: center; font-size: 11px; color: var(--text-dim); border-top: 1px solid #1c202a; margin-top: 40px; }
.footer-icons { margin-bottom: 20px; font-weight: 900; display: flex; justify-content: center; gap: 15px; }
.footer-icons a { color: #fff; text-decoration: none; border: 1px solid #333; padding: 4px 8px; border-radius: 4px; }
.footer-links { margin-top: 15px; }
.footer-links a { color: var(--accent-gold); text-decoration: none; }
p {
  margin-bottom: 1em;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

th, td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  font-weight: 500;
  background-color: #e53e3e;
  color: #fff;
}

td {
  background-color: #000;
}

@media (min-width: 768px) {
  table {
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }
}
ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4em;
}
/* Применяем ко всем указанным элементам */
p, h2, ul, ol, table {
  /* Отступы: 0 сверху/снизу, 20px (или 5%) слева и справа */
  margin-left: 20px;
  margin-right: 20px;
  
  /* Гарантируем, что элементы не будут шире экрана */
  max-width: calc(100% - 40px); 
}

/* Специфические настройки для списков */
ul, ol {
  /* Дополнительный внутренний отступ, чтобы маркеры (точки/цифры) 
     не выходили за пределы основного текста */
  padding-left: 20px; 
}

/* Специфические настройки для таблиц */
table {
  border-collapse: collapse;
  /* Убираем автоматическое растягивание, если данных мало */
  width: calc(100% - 40px); 
}
.custom-bet-button {
    /* Основные размеры и шрифт */
    display: inline-block;
    padding: 18px 45px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 12px;
    
    /* Цвета и градиент (золотисто-оранжевый игровой стиль) */
    color: #ffffff;
    background: linear-gradient(135deg, #ff9d00 0%, #ff5e00 100%);
    
    /* Тень для объема */
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
    
    /* Анимация перехода */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* Эффект при наведении */
.custom-bet-button:hover {
    transform: translateY(-3px); /* Кнопка слегка приподнимается */
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.6);
    background: linear-gradient(135deg, #ffad26 0%, #ff7326 100%);
}

/* Эффект при нажатии */
.custom-bet-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 94, 0, 0.4);
}