/* =========================
   SIDEBAR - OGÓLNE
========================= */

#left-side {
    width: 180px;
}

.dt-sidebar-box {
    position: relative;
    overflow: visible !important;
    margin-bottom: 18px;
    border-radius: 25px;
    background:
        radial-gradient(circle at top left, rgba(45,140,255,.14), transparent 30%),
        linear-gradient(145deg, rgba(20,30,45,.98), rgba(8,12,18,.98));
    border: 1px solid rgba(90,160,255,.12);
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    z-index: 50;
}

.dt-sidebar-box:hover {
    z-index: 999999 !important;
}

.dt-sidebar-title {
    position: relative;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(90,160,255,.08);
    background: linear-gradient(180deg, rgba(30,50,80,.42), rgba(12,18,28,.08));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    text-align: center;
    text-shadow: 0 0 10px rgba(77,166,255,.25);
    border-radius: 25px;
}

.dt-sidebar-title:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(45,140,255,.16), transparent 70%);
    pointer-events: none;
}

.dt-sidebar-content {
    padding: 12px;
    overflow: visible !important;
}

/* =========================
   MENU LISTA
========================= */

.dt-sidebar-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible !important;
}

.dt-sidebar-menu li {
    margin-bottom: 9px;
}

.dt-menu-item {
    position: relative;
    z-index: 999999 !important;
}

/* =========================
   PRZYCISKI KATEGORII
========================= */

.dt-menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(15,25,40,.94), rgba(5,10,18,.94));
    border: 1px solid rgba(90,160,255,.10);
    color: #eef5ff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1.2;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 6px 18px rgba(0,0,0,.22);
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.dt-menu-link:after {
    content: "";
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(45,140,255,.16), transparent 70%);
    opacity: 0;
    transition: .18s ease;
    pointer-events: none;
}

.dt-menu-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    transform: skewX(-25deg);
    transition: .45s ease;
}

/* Hover dla elementów z dt-menu-item */
.dt-menu-item:hover > .dt-menu-link {
    transform: translateX(5px) scale(1.015);
    background: linear-gradient(135deg, rgba(31,109,255,.28), rgba(18,168,255,.10)) !important;
    border-color: rgba(90,180,255,.34) !important;
    color: #fff !important;
    box-shadow:
        0 0 18px rgba(45,140,255,.18),
        inset 0 0 14px rgba(45,140,255,.05);
}

.dt-menu-item:hover > .dt-menu-link:before { left: 140%; }
.dt-menu-item:hover > .dt-menu-link:after  { opacity: 1; }

/* Hover dla pojedynczych linków (Premiery, Dziś Dodane itp.) */
.dt-sidebar-menu > li > .dt-menu-link:hover {
    transform: translateX(5px) scale(1.015);
    background: linear-gradient(135deg, rgba(31,109,255,.28), rgba(18,168,255,.10)) !important;
    border-color: rgba(90,180,255,.34) !important;
    color: #fff !important;
    box-shadow:
        0 0 18px rgba(45,140,255,.18),
        inset 0 0 14px rgba(45,140,255,.05);
}

.dt-sidebar-menu > li > .dt-menu-link:hover:before { left: 140%; }
.dt-sidebar-menu > li > .dt-menu-link:hover:after  { opacity: 1; }

/* =========================
   DOT (romb przed nazwą)
========================= */

.dt-menu-dot {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 3px;
    background: linear-gradient(135deg, #6fd3ff, #1f6dff);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(45,140,255,.35);
    transition: .18s ease;
}

.dt-menu-dot:before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.22);
}

.dt-menu-item:hover .dt-menu-dot {
    transform: rotate(135deg) scale(1.12);
    background: linear-gradient(135deg, #66ffe0, #18b9ff);
    box-shadow: 0 0 14px rgba(102,255,224,.45);
}

.dt-menu-text {
    position: relative;
    z-index: 3;
    display: block;
}

/* =========================
   ACTIVE
========================= */

.dt-menu-active {
    background: linear-gradient(135deg, rgba(0,201,109,.24), rgba(0,201,109,.08)) !important;
    border-color: rgba(90,255,140,.30) !important;
    color: #b8ffd8 !important;
    box-shadow:
        0 0 20px rgba(0,201,109,.16),
        inset 0 0 14px rgba(0,201,109,.05);
}

.dt-menu-active:after {
    opacity: 1;
    background: radial-gradient(circle, rgba(0,201,109,.18), transparent 70%);
}

.dt-menu-active .dt-menu-dot {
    background: linear-gradient(135deg, #66ff99, #00c96d);
    box-shadow: 0 0 14px rgba(102,255,153,.45);
}

/* =========================
   KOLORY SPECJALNYCH LINKÓW
========================= */

.dt-link-premium { color: #66ffe0 !important; }
.dt-link-today   { color: #ff7b7b !important; }
.dt-link-warez   { color: #ffe066 !important; }
.dt-link-request { color: #ff9d5c !important; }
.dt-link-stats   { color: #b89cff !important; }

/* =========================
   SUBMENU (chmurka)
========================= */

.dt-submenu {
    display: none;
    position: absolute;
    left: calc(100% - 2px);
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-width: 300px;
    max-height: 310px;
    overflow-y: auto;
    z-index: 9999999 !important;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(4,9,16,.97), rgba(2,6,12,.97));
    border: 1px solid rgba(90,160,255,.16);
    box-shadow:
        0 12px 28px rgba(0,0,0,.45),
        inset 0 0 18px rgba(45,140,255,.04);
    backdrop-filter: blur(10px);
    animation: cloudIn .16s ease both;
}

.dt-menu-item:hover .dt-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Niewidzialne rozszerzenie hover po lewej */
.dt-submenu:after {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    width: 18px;
    height: 100%;
}

/* Strzałka wskazująca na element */
.dt-submenu:before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 14px;
    background: rgba(4,9,16,.97);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

@keyframes cloudIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-8px) scale(.96); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}

/* Tagi gatunków */
.dt-submenu-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31,109,255,.14), rgba(18,168,255,.05));
    border: 1px solid rgba(90,160,255,.12);
    color: #c4d3e6 !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform .14s ease,
        background .14s ease,
        border-color .14s ease,
        box-shadow .14s ease;
}

.dt-submenu-link:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    transform: translateX(-120%);
    transition: .28s ease;
}

.dt-submenu-link:hover:before { transform: translateX(120%); }

.dt-submenu-link:hover {
    background: linear-gradient(135deg, rgba(31,109,255,.26), rgba(18,168,255,.12));
    border-color: rgba(90,180,255,.28);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(45,140,255,.14);
}

/* Scrollbar submenu */
.dt-submenu::-webkit-scrollbar       { width: 10px; }
.dt-submenu::-webkit-scrollbar-track { background: rgba(255,255,255,.03); border-radius: 999px; }
.dt-submenu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(90,160,255,.55), rgba(45,140,255,.32));
    border-radius: 999px;
    border: 2px solid rgba(4,9,16,.95);
}
.dt-submenu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(120,190,255,.75), rgba(45,140,255,.48));
}

/* =========================
   RANKING
========================= */

.dt-ranking-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(31,109,255,.22), rgba(18,168,255,.12));
    border: 1px solid rgba(90,180,255,.28);
    color: #dbe7ff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    transition: .16s ease;
    box-shadow:
        inset 0 0 14px rgba(45,140,255,.05),
        0 0 14px rgba(45,140,255,.10);
}

.dt-ranking-btn:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    transform: translateX(-120%);
    transition: .35s ease;
}

.dt-ranking-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(90,200,255,.45);
    color: #fff !important;
    box-shadow:
        0 0 18px rgba(45,140,255,.22),
        inset 0 0 14px rgba(45,140,255,.08);
}

.dt-ranking-btn:hover:before { transform: translateX(120%); }

/* =========================
   FIX Z-INDEX
========================= */

#left-side-1,
#left-side-2 {
    position: relative;
    z-index: 99999 !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
    .dt-submenu {
        position: static;
        transform: none;
        width: auto;
        max-width: none;
        max-height: none;
        margin: 8px 0 0 0;
    }
    .dt-submenu:before,
    .dt-submenu:after { display: none; }
}
