/*
Theme Name: Kiranime Pro Child
Author: Dzul Qurnain
Description: Kiranime Pro child - Anime Christmas V48.0 (No Snow Animation - Max Speed)
Version: 48.0.0
Template: kiranime_pro
*/

/* 1) TABS RANGE EPISODI (1–150, 151–300, ...) */
.episode-range-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 12px 4px;
    margin-bottom: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
}

.episode-range-tab {
    background: #1f2933;
    color: #e5e7eb;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.episode-range-tab:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.episode-range-tab.active {
    background: #e63946;
    border-color: #fbbf24;
    color: #fff;
    box-shadow: 0 0 12px rgba(230,57,70,0.8);
}

/* 2) GRIGLIA EPISODI */
.episode-list-grid-box {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)) !important;
    gap: 10px !important;
    padding: 20px 16px !important;
    max-height: 650px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    background:
        linear-gradient(rgba(15, 15, 35, 0.5), rgba(15, 15, 35, 0.7)),
        url('https://i.imgur.com/os8JCoh.jpeg') !important;

    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;

    border: 2px solid #e63946 !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    margin-top: 0 !important;
    position: relative;
    contain: paint;
}

/* 3) BOTTONI EPISODI */
.episode-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px !important;
    min-height: 48px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Segoe UI', sans-serif !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 2;

    background: rgba(20, 20, 30, 0.6) !important;

    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px 0 10px 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.episode-grid-item[style*="none"] {
    display: none !important;
}

/* HOVER: Verde Natale */
.episode-grid-item:hover {
    background: #2a9d8f !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.5) !important;
    z-index: 10;
}

/* EPISODIO CORRENTE: Oro */
.episode-grid-item.current-episode {
    background: #ffcc00 !important;
    color: #000 !important;
    border: 2px solid #fff !important;
    border-radius: 0 10px 0 10px !important;
    box-shadow: 0 0 20px #ffcc00, inset 0 0 10px rgba(255,255,255,0.5) !important;
    font-weight: 900 !important;
    animation: glow-pulse 2s infinite;
}

.episode-grid-item.current-episode::after {
    content: "LIVE";
    position: absolute;
    top: -8px;
    right: -5px;
    background: #e63946 !important;
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 900;
    box-shadow: 0 0 8px #e63946;
    letter-spacing: 1px;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 15px #ffcc00; }
    50% { box-shadow: 0 0 25px #ffcc00, 0 0 5px #fff; }
    100% { box-shadow: 0 0 15px #ffcc00; }
}

/* 4) BARRA DI RICERCA */
.episode-list-search-box {
    background: #e63946 !important;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.05) 10px,
        rgba(0,0,0,0.05) 20px
    ) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #e63946 !important;
    border-bottom: 2px solid #fff !important;
    z-index: 5;
    min-height: 60px;
    position: relative;
}

.episode-list-search-box > span {
    font-family: 'Impact', 'Arial Black', sans-serif !important;
    font-size: 0 !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 10px;
}

.episode-list-search-box > span::before {
    content: "ELENCO EPISODI";
    font-size: 1.4rem !important;
    color: #fff;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #000;
    white-space: nowrap;
    pointer-events: auto;
}

/* STILE INPUT BOX - SENZA ICONA */
div.episode-list-search-box label.search-input-label {
    background: #ffffff !important;
    border: 2px solid #fff !important;
    border-radius: 20px !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    max-width: 200px !important;
    height: 36px !important;
    position: relative !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* ICONA NASCOSTA */
div.episode-list-search-box label.search-input-label .material-icons-round {
    display: none !important;
}

div.episode-list-search-box label.search-input-label input {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    text-align: center;
}

div.episode-list-search-box label.search-input-label input::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

div.episode-list-search-box label.search-input-label input::-webkit-input-placeholder { color: #888 !important; }
div.episode-list-search-box label.search-input-label input::-moz-placeholder { color: #888 !important; }
div.episode-list-search-box label.search-input-label input:-ms-input-placeholder { color: #888 !important; }

/* 5) SCROLLBAR */
.episode-list-grid-box::-webkit-scrollbar {
    width: 8px;
}
.episode-list-grid-box::-webkit-scrollbar-track {
    background: #0f0f19;
}
.episode-list-grid-box::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #e63946, #2a9d8f);
    border-radius: 4px;
    border: 2px solid #0f0f19;
}

/* 6) SERVER BUTTONS (SUB + ITA) */
.player-selection .player-sub span.player-server-tag[data-embed-id],
.player-selection .player-dub span.player-server-tag[data-embed-id] {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px 0 6px 0 !important;
    padding: 6px 14px;
    margin: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.player-selection .player-sub span.player-server-tag[data-embed-id]:hover,
.player-selection .player-dub span.player-server-tag[data-embed-id]:hover {
    background: #e63946 !important;
    border-color: #e63946 !important;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
    transform: translateY(-2px);
}

.player-selection .player-sub span.player-server-tag.active[data-embed-id],
.player-selection .player-dub span.player-server-tag.active[data-embed-id] {
    background: #2a9d8f !important;
    color: #fff !important;
    border-color: #2a9d8f !important;
    box-shadow: 0 0 15px rgba(42, 157, 143, 0.5);
}
