/* =====================================
   RESET & BASE
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f2f2f2;
    color: #222;
}

/* =====================================
   LOADER
===================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #444;
    border-top: 5px solid #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* =====================================
   LOGO
===================================== */
.logo {
    text-align: center;
    background: #000;
    padding: 10px;
}

.logo img {
    max-width: 200px;
}

/* =====================================
   BANNER SLIDER
===================================== */
.banner-slider {
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.banner-slider .slide img {
    width: 100%;
    display: block;
}

/* =====================================
   DATE BOX
===================================== */
.date-box {
    background: #fff;
    margin: 10px auto;
    padding: 8px;
    width: 95%;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* =====================================
   SECTION TITLES
===================================== */
.section-title {
    width: 100%;
    padding: 10px;
    color: #fff;
    font-size: 20px;
    margin-top: 15px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.live-title { background: #d9534f; }
.next-title { background: #f0ad4e; }
.rest-title { background: #0275d8; }

/* =====================================
   MARKET BOX
===================================== */
.market-box {
    width: 95%;
    margin: auto;
}

/* =====================================
   MARKET ROW
===================================== */
.row {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0;
    padding: 12px;
    border-left: 6px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================
   ROW COLORS
===================================== */
.row.yellow {
    border-left-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255,204,0,0.6);
}

.row.blue {
    border-left-color: #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.6);
}

.row.white {
    border-left-color: #999;
}

/* =====================================
   ROW CONTENT
===================================== */
.name {
    font-size: 16px;
    font-weight: bold;
    width: 45%;
}

.result {
    font-size: 22px;
    font-weight: bold;
    color: #000;
}

.time {
    font-size: 14px;
    color: #555;
}

/* =====================================
   LIVE BLINK
===================================== */
.live-blink .result {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { color: #d9534f; }
    50% { color: #fff; }
    100% { color: #d9534f; }
}

/* =====================================
   MOBILE RESPONSIVE
===================================== */
@media (max-width: 600px) {

    .name {
        font-size: 15px;
        width: 50%;
    }

    .result {
        font-size: 20px;
    }

    .time {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
    }

    .row {
        padding: 10px;
    }
}

/* =====================================
   ANTI COPY
===================================== */
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

img {
    -webkit-user-drag: none;
}
