:root {
    --bg: #0d0000;
    /* Hitam dengan sedikit tint merah */
    --bg-dark: #000000;
    --bg-card: #1a0505;
    /* Merah sangat gelap untuk card */
    --bg-card-2: #3d0a0a;
    /* Merah gelap untuk hover/aksen */
    --bg-panel: #140303;
    --line-red: #ff1212;
    /* Merah terang utama */
    --red: #ff1212;
    --red-2: #ff4d4d;
    /* Merah agak muda */
    --red-light: #ffb3b3;
    /* Merah sangat muda untuk highlight */
    --text: #ffffff;
    --text-muted: #cccccc;
    --shadow: 0 4px 20px rgba(255, 18, 18, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 18, 18, 0.35);
    --radius: 8px;
    /* Diubah agak mengotak khas sports/stadium */
    --radius-pill: 999px;
    --transition: 0.25s ease-out;
    --neon-red: 0 0 10px rgba(255, 18, 18, 0.7), 0 0 20px rgba(255, 18, 18, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Font diubah ke Oswald/Impact style yang lebih agresif khas olahraga */
    font-family: 'Arial Black', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at center, #2b0505 0%, #050000 100%);
    color: var(--text);
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
a,
li {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER - Sports Stadium Style */
.header {
    width: 100%;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(180deg, #1f0303 0%, #070000 100%);
    border-bottom: 3px solid var(--line-red);
    /* Lebih tebal ala papan skor */
    box-shadow: var(--shadow-glow);
}

.logo {
    width: 220px;
}

.logo img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 18, 18, 0.6));
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
    border-radius: 4px;
    /* Mengotak (Sporty) */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-style: italic;
    /* Gaya teks miring khas sports */
}

.btn:hover {
    transform: skewX(-5deg) translateY(-3px);
    /* Efek miring dinamis saat hover */
    filter: brightness(1.2);
    box-shadow: var(--neon-red);
}

.btn:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.btn-login {
    background: linear-gradient(135deg, #3d0a0a 0%, #1a0505 100%);
    color: #ffffff;
    border: 1px solid var(--line-red);
    box-shadow: 0 0 10px rgba(255, 18, 18, 0.2);
}

.btn-daftar {
    background: linear-gradient(135deg, var(--red) 0%, #b30000 50%, var(--red) 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 18, 18, 0.6);
    animation: redPulse 1.5s infinite;
}

@keyframes redPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 18, 18, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 18, 18, 0.9);
    }
}

/* HERO - Arena Grandeur */
.hero-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.hero {
    width: 100%;
    max-width: 1200px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 18, 18, 0.4);
}

.hero img {
    width: 100%;
    display: block;
    filter: brightness(1.05) contrast(1.1);
}

.hero-side {
    width: 350px;
    flex-shrink: 0;
}

.hero-side img {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: floatHero 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 18, 18, 0.5));
}

.left-side img {
    transform: scaleX(-1);
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* MARQUEE - Live Match Ticker */
.marquee-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(90deg, #140202 0%, #330808 50%, #140202 100%);
    border-bottom: 2px solid var(--line-red);
    box-shadow: inset 0 1px 0 rgba(255, 18, 18, 0.2);
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.marquee {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
    /* Sedikit dipercepat agar lebih energik */
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 18, 18, 0.8);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.search-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid var(--line-red);
    background: #000000;
    box-shadow: 0 0 15px rgba(255, 18, 18, 0.2);
}

.search-bar input {
    width: 200px;
    max-width: 40vw;
    padding: 12px 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #888888;
}

.search-bar button {
    padding: 12px 20px;
    border: 0;
    background: linear-gradient(135deg, var(--red) 0%, #b30000 100%);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 13px;
    font-style: italic;
}

.search-bar button:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(255, 18, 18, 0.6);
}

@media (max-width: 600px) {
    .marquee-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        width: 100%;
        max-width: none;
    }
}

/* PROVIDER - Sportsbook/Slot Lobby Vendors */
.provider {
    background: linear-gradient(180deg, #1a0505 0%, #080000 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 18, 18, 0.3);
}

.provider ul {
    padding: 10px 0;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    padding-left: 20px;
}

.provider ul::-webkit-scrollbar {
    display: none;
}

.provider li {
    min-width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 2px solid rgba(255, 18, 18, 0.4);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    background: #260a0a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.provider li:hover,
.provider li.active {
    transform: scale(1.05);
    border-color: var(--line-red);
    box-shadow: var(--neon-red);
    background: #401010;
}

.provider li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECTION TITLE - Aggressive Red Championship */
.section-title {
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
    text-shadow: 0 0 15px rgba(255, 18, 18, 0.8);
    position: relative;
    padding: 0 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    margin: 15px auto 0;
    box-shadow: 0 0 10px rgba(255, 18, 18, 0.7);
}

/* GAME SECTION */
.games-section {
    padding: 40px 20px 60px;
    min-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--red) #1a1a1a;
}

.games-section::-webkit-scrollbar {
    width: 10px;
}

.games-section::-webkit-scrollbar-track {
    background: #140505;
    border-radius: 10px;
}

.games-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red) 0%, #990000 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 18, 18, 0.5);
}

.games-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--red-light) 0%, var(--red) 100%);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
    }
}

/* GAME CARD - Stadium Screen Style */
.game-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: var(--transition);
    background: linear-gradient(145deg, #1f0505 0%, #3d0a0a 100%);
    border: 1px solid rgba(255, 18, 18, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-red);
    box-shadow: var(--shadow-glow), 0 15px 35px rgba(0, 0, 0, 0.8);
}

.game-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.game-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
    filter: brightness(1) contrast(1.1);
}

.game-card:hover .game-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.15);
}

.game-content {
    padding: 15px;
    position: relative;
    z-index: 2;
}

.game-title {
    min-height: 35px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* HOT BADGE - Matchday Fire Glow */
.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 4px;
    /* Mengotak */
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg, #ff0000 0%, #7a0000 100%);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    animation: hotPulse 1.2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes hotPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 0, 0, 1);
    }
}

/* PLAY OVERLAY - Sports Match Screen */
.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 2, 2, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    padding: 14px 28px;
    border-radius: 4px;
    /* Mengotak */
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    font-style: italic;
    transform: scale(0.8);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--red) 0%, #990000 100%);
    box-shadow: 0 0 25px rgba(255, 18, 18, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--red-light);
}

.game-card:hover .play-btn {
    transform: scale(1);
}

/* PREMIUM RED PROGRESS BAR - Live RTP Tracker */
.progress-box {
    width: 100%;
    height: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #050000 0%, #1f0505 100%);
    border-radius: var(--radius-pill);
    border: 2px solid var(--line-red);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 18, 18, 0.2);
}

.progress-bar {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-pill);
    transition: width 2s ease;
    /* Efek gradasi Merah Gelap ke Merah Terang/Neon di tengah */
    background: linear-gradient(90deg, #660000 0%, var(--red) 25%, var(--red-light) 50%, var(--red) 75%, #660000 100%);
    background-size: 300% 100%;
    animation: moveRed 3s linear infinite;
    /* Animasi bergerak dipercepat */
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 18, 18, 0.6);
}

.progress-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(-20deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.4) 35%, transparent 55%);
    transform: translateX(-100%);
    animation: shimmer 1.2s linear infinite;
}

@keyframes moveRed {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.rtp-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 18, 18, 0.8);
    letter-spacing: 1px;
}

/* MOBILE RESPONSIVE ACCENTS */
@media (max-width: 900px) {
    .hero-side {
        display: none;
    }

    .hero-wrapper {
        padding: 20px 0;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 12px 15px;
        gap: 10px;
    }

    .logo {
        width: 160px;
    }

    .logo img {
        height: 50px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 11px;
    }

    .provider li {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .games-section {
        padding: 30px 15px 50px;
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}