/* =====================================================
   SKIBIDI TIMES — COUNTDOWN TIMER
   Dark / Gold / Rainbow (Alpha Skibidi Edition)
   ===================================================== */
@media screen and (max-width: 768px) {



img.event-image {
    margin-bottom: 0!important;
}
}



/* ------------------------------
   Base Countdown Container
------------------------------ */

@media (min-width: 800px) and (max-width: 1599px) {
.st-countdown {
    height: 150px!important;
}
}


.st-countdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    margin: 20px auto;
    padding: 20px 25px;
    gap: 8px;
    height: 100px;
    max-height: 100%!important;
    max-width: 100%;
    border-radius: 12px;

    background: linear-gradient(180deg, #0b0b0b, #050505);
    color: #f4f4f4;
    font-family: "Inter", sans-serif;

    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);

    overflow: hidden;
}


/* Soft top glow (subtle, premium) */
.st-countdown::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(
            120% 120% at 50% -20%,
            rgba(255,255,255,0.06),
            transparent 60%
        );
    pointer-events: none;
}


/* ------------------------------
   Grid Wrapper (Multiple Timers)
------------------------------ */

.st-countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
    align-items: stretch;
}


/* ------------------------------
   Label
------------------------------ */

.st-countdown-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.75;
    text-align: center;
    line-height: 1.2;
    user-select: none;
}


/* ------------------------------
   Timer Layout
------------------------------ */

.st-countdown-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}


/* Time blocks */
.st-countdown-inner > span {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;

    display: block;
    text-align: center;
    padding: 10px 14px;

    background: rgba(255,255,255,0.05);
    border-radius: 10px;

    box-shadow:
        inset 0 0 0 1px rgba(212,175,55,0.15),
        0 6px 18px rgba(0,0,0,0.5);

    font-variant-numeric: tabular-nums;
}


/* Unit labels */
.st-countdown small {
    display: block;
    margin-top: 6px;

    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    text-align: center;
    opacity: 0.7;
    user-select: none;
}



/* ------------------------------
   Hero Mode (Big Events)
------------------------------ */

.st-countdown.hero {
    padding: 28px 32px;
    gap: 14px;
    border-width: 2px;
    max-height: 400px;
}

.st-countdown.hero span {
    font-size: 3.2rem;
}

.st-countdown.hero .st-countdown-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.9;
}


/* ------------------------------
   Gold Authority (Admin / Important)
------------------------------ */

.st-countdown.admin {
    border-color: rgba(212,175,55,0.45);
}

.st-countdown.admin .st-countdown-label {
    color: #d4af37;
}

/* Soft gold aura */
.st-countdown.admin::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(212,175,55,0.12);
    pointer-events: none;
}


/* ------------------------------
   LIVE State — Rainbow Accent Only
------------------------------ */

@keyframes rainbowBorder {
    0%   { border-color: #ff4d4d; }
    20%  { border-color: #ffb84d; }
    40%  { border-color: #ffee4d; }
    60%  { border-color: #4dff88; }
    80%  { border-color: #4da6ff; }
    100% { border-color: #b84dff; }
}

.st-countdown.is-live {
    animation: rainbowBorder 6s linear infinite;
    border-width: 2px;
}


/* Rainbow shimmer on hero digits only */
@keyframes rainbowShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.st-countdown.hero.is-live span {
    background:
        linear-gradient(
            135deg,
            #ff4d4d,
            #ffb84d,
            #ffee4d,
            #4dff88,
            #4da6ff,
            #b84dff
        );
    animation: rainbowShift 8s ease infinite;
    color: #000;
}


/* ------------------------------
   Expired / Idle State
------------------------------ */

.st-countdown.is-expired {
    filter: grayscale(0.85);
    opacity: 0.6;
}

.st-countdown-expired {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    color: #aaa;
}


/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 768px) {
    .st-countdown {
        padding: 14px 16px;
        gap: 6px;
    }

    .st-countdown-inner {
        gap: 12px;
    }

    .st-countdown span {
        font-size: 0.6rem;
        min-width: 54px;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .st-countdown {
        padding: 12px 14px;
        gap: 6px;
    }

    .st-countdown-label {
        font-size: 0.7rem;
        letter-spacing: 0.4px;
    }

    .st-countdown-inner {
        gap: 10px;
    }

    .st-countdown-inner > span {
        font-size: 1.1rem;
        min-width: 52px;
        padding: 6px 8px;
        border-radius: 8px;
    }

    .st-countdown small {
        font-size: 0.45rem;
        margin-top: 4px;
    }

    /* Kill hero inflation on mobile */
    .st-countdown.hero span {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .st-countdown {
        padding: 10px 12px;
        gap: 4px;
    }
    


    .st-countdown-label {
        font-size: 0.65rem;
    }

    .st-countdown-inner {
        gap: 2px;
    }

    .st-countdown-inner > span {
        font-size: 0.95rem;
        min-width: 0;
        padding: 5px 6px;
        box-shadow:
            inset 0 0 0 1px rgba(212,175,55,0.12),
            0 4px 12px rgba(0,0,0,0.45);
    }


    /* Hero mode behaves like "featured", not massive */
    .st-countdown.hero span {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .st-countdown-inner {
        gap: 2px;
    }

    .st-countdown-inner > span {
        font-size: 0.85rem;
        min-width: 0;
        padding: 4px 5px;
    }

    .st-countdown small {
        font-size: 0.38rem;
    }

    .st-countdown-label {
        font-size: 0.6rem;
    }
}


/* Add red "Ends in" to event countdown labels */
.st-countdown.event.ends .st-countdown-label::after {
    content: "⏰ Ends in";
    display: block;
    margin-top: 2px;
    font-size: 0.65rem;
    color: #ff3b3b;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.st-countdown.event.starts .st-countdown-label::after {
    content: "⏰Starts in";
    display: block;
    margin-top: 2px;
    font-size: 0.65rem;
    color: green;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
