/* ===== Homepage — Webrace ===== */

.home-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== Hero Banner Image ===== */
.hero-banner--image {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    line-height: 0;
}

.hero-full-image {
    display: block;
    width: 100%;
    height: 216px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===== Recent Big Wins ===== */
.big-wins {
    margin-bottom: 28px;
}

.big-wins__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.big-wins__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.big-wins .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 11px 5px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
    color: #fff;
    background: rgba(88, 18, 28, 0.92);
    border: 1px solid rgba(220, 70, 80, 0.35);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.big-wins .live-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: #22c55e;
    border-radius: 50%;
    animation: bigWinsLivePulse 1.6s ease-in-out infinite;
}

@keyframes bigWinsLivePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.big-wins-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.big-wins-row::-webkit-scrollbar {
    display: none;
}

.big-win-card {
    flex: 0 0 102px;
    width: 102px;
    scroll-snap-align: start;
}

.big-win-card__thumb {
    position: relative;
    width: 102px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.big-win-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.big-win-card__meta {
    padding: 7px 0 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.big-win-card__user {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: lowercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 102px;
}

.big-win-card__amount {
    font-size: 14px;
    font-weight: 800;
    color: #b7ff00;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Big win thumb — images only (legacy gradient classes removed) */

/* ===== Lists Container ===== */
.lists-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.list-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.list-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.list-section__icon {
    width: 22px;
    height: 22px;
    display: flex;
}

.list-section__icon svg {
    width: 22px;
    height: 22px;
}

.list-section__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-section__track-wrap {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.list-section__track-wrap::-webkit-scrollbar {
    display: none;
}

.list-section.can-scroll-left .list-section__track-wrap::before,
.list-section.can-scroll-right .list-section__track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
}

.list-section.can-scroll-left .list-section__track-wrap::before {
    left: 0;
    background: linear-gradient(90deg, rgba(13, 13, 13, 0.95) 0%, transparent 100%);
}

.list-section.can-scroll-right .list-section__track-wrap::after {
    right: 0;
    background: linear-gradient(270deg, rgba(13, 13, 13, 0.95) 0%, transparent 100%);
}

.list-section__track {
    display: flex;
    gap: 12px;
    width: max-content;
}

/* Game tile styles → assets/css/game-tiles.css */

/* ===== Live Bets Table ===== */
.live-bets {
    margin-top: 36px;
    padding-bottom: 8px;
}

.live-bets__tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-bets__tab {
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.live-bets__tab:hover {
    color: #e5e7eb;
}

.live-bets__tab.active {
    background: #2a2a2a;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.live-bets__table {
    width: 100%;
}

.live-bets__head,
.live-bets__row {
    display: grid;
    grid-template-columns: minmax(150px, 1.8fr) minmax(130px, 1.3fr) minmax(100px, 1fr) minmax(90px, 0.9fr) minmax(100px, 1fr);
    align-items: center;
    gap: 16px;
}

.live-bets__head {
    padding: 0 16px 12px;
}

.live-bets__col {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

.live-bets__col--bet,
.live-bets__col--mult,
.live-bets__col--payout {
    text-align: right;
}

.live-bets__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-bets__row {
    padding: 12px 16px;
    min-height: 48px;
    border-radius: 10px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.live-bets__row:hover {
    background: #181818;
}

.live-bets__cell {
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.live-bets__cell--game {
    gap: 10px;
}

.live-bet-game__img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.live-bet-game__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.live-bet-game__icon svg,
.live-bet-game__icon img {
    width: 18px;
    height: 18px;
}

.live-bet-game__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #fff;
}

.live-bets__cell--player {
    gap: 8px;
}

.live-bet-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #fff;
}

.live-bet-player span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-bet-player--hidden {
    color: #9ca3af;
    font-weight: 500;
}

.live-bet-hidden-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.live-bet-rank {
    flex-shrink: 0;
}

.live-bets__cell--bet,
.live-bets__cell--mult,
.live-bets__cell--payout {
    justify-content: flex-end;
    gap: 6px;
}

.live-bets__cell--bet .live-bets__val {
    color: #fff;
}

.live-bets__val {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.live-bets__val--win {
    color: #b7ff00;
}

.live-bets__val--loss {
    color: #9ca3af;
}

.live-bet-coin {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 2px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    box-sizing: border-box;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-full-image {
        height: 160px;
    }

    .big-wins-row {
        gap: 10px;
    }

    .big-win-card,
    .big-win-card__thumb {
        flex: 0 0 96px;
        width: 96px;
    }

    .big-win-card__thumb {
        height: 132px;
    }

    .big-win-card__user {
        max-width: 96px;
    }

    .game-tile--provider {
        width: 160px;
        flex: 0 0 160px;
    }

    .game-tile__provider {
        width: 160px;
        height: 64px;
        padding: 10px 12px;
    }

    .provider-logo-img {
        max-height: 36px;
    }

    .game-tile--original,
    .game-tile--slot,
    .game-tile--live,
    .game-tile--mini {
        width: 112px;
    }

    .game-tile__cover {
        width: 112px;
        height: 150px;
    }

    .live-bets__head {
        display: none;
    }

    .live-bets__row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "game game"
            "player player"
            "bet mult"
            "payout payout";
        gap: 8px 12px;
        padding: 14px 12px;
        background: #161616;
    }

    .live-bets__cell--game { grid-area: game; }
    .live-bets__cell--player { grid-area: player; }
    .live-bets__cell--bet { grid-area: bet; justify-content: flex-start; }
    .live-bets__cell--mult { grid-area: mult; }
    .live-bets__cell--payout { grid-area: payout; justify-content: flex-start; }
}
