
body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    font-family: 'Space Grotesk', sans-serif;

    background-image:
        linear-gradient(
            rgba(5, 8, 18, 0.72),
            rgba(5, 8, 18, 0.62)
        ),
        url("/static/core/images/sajt3.108a09d50e22.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: white;

    overflow-x: hidden;
}

/* optional extra cyber overlay */
.bg-overlay {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(124, 58, 237, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(34, 211, 238, 0.10),
            transparent 30%
        );

    pointer-events: none;
    z-index: 0;
}

/* keep content above overlay */
.container {
    position: relative;
    z-index: 1;
}
.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-bottom: 26px;
}

/* button */
.tiktok-btn {
    position: relative;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            rgba(124, 58, 237, 0.22),
            rgba(15, 23, 42, 0.92)
        );

    border: 1px solid rgba(124, 58, 237, 0.25);

    backdrop-filter: blur(10px);

    overflow: hidden;

    transition: all 0.28s ease;

    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.12);
}

/* neon ambient glow */
.tiktok-btn::before {
    content: "";
    
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.10),
            transparent 45%,
            rgba(34, 211, 238, 0.08)
        );

    opacity: 0;

    transition: 0.3s ease;
}

/* icon */
.tiktok-btn svg {
    width: 24px;
    height: 24px;

    color: #d8b4fe;

    z-index: 2;

    transition: 0.25s ease;
}

/* hover */
.tiktok-btn:hover {
    transform: translateY(-3px) scale(1.03);

    border-color: rgba(34, 211, 238, 0.45);

    box-shadow:
        0 0 30px rgba(124, 58, 237, 0.25),
        0 0 45px rgba(34, 211, 238, 0.12);
}

.tiktok-btn:hover::before {
    opacity: 1;
}

.tiktok-btn:hover svg {
    color: white;

    transform: scale(1.08);
}

/* title */
.title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #c084fc;
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
    margin-bottom: 24px;
}

/* search */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.search-form input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #2a2f45;
    background: rgba(255,255,255,0.03);
    color: white;
    outline: none;
    transition: 0.2s ease;
    backdrop-filter: blur(6px);
}

.search-form input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.search-form button {
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    color: #0b0f14;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* results */
.results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* card */
.card {
    position: relative;

    display: flex;
    gap: 16px;

    padding: 16px;

    border-radius: 18px;

    /* stronger glass background */
    background: rgba(10, 14, 24, 0.78);

    /* cyber border */
    border: 1px solid rgba(124, 58, 237, 0.25);

    backdrop-filter: blur(14px);

    overflow: hidden;

    transition: all 0.25s ease;

    /* layered depth */
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(124, 58, 237, 0.08);
}

/* ambient cyber glow */
.card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.10),
            transparent 45%,
            rgba(112, 184, 5, 0.05)
        );

    pointer-events: none;
}

/* hover state */
.card:hover {
    transform: translateY(-5px) scale(1.01);

    border-color: rgba(124, 58, 237, 0.55);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(124, 58, 237, 0.22),
        0 0 60px rgba(34, 211, 238, 0.08);
}

/* subtle neon top line */
.card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 20px;

    width: 80px;
    height: 2px;

    background: linear-gradient(
        to right,
        #7c3aed,
        #22d3ee
    );

    border-radius: 999px;

    opacity: 0.85;
}

.card-link {
    text-decoration: none;
}

.card img {
    width: 140px;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #2a2f45;
}

/* text */
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TITLE */
.card-content h3 {
    margin: 0;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.3;

    font-family: 'Orbitron', 'Space Grotesk', sans-serif;

    /* cyber gradient text */
    background: linear-gradient(
        90deg,
        #ffffff,
        #c4b5fd,
        #67e8f9
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 16px rgba(124, 58, 237, 0.18);
}

/* DESCRIPTION */
.card-content p {
    margin-top: 10px;

    font-size: 14px;
    line-height: 1.65;

    color: #cbd5e1;

    font-weight: 400;

    max-width: 95%;
}

/* optional subtle metadata vibe */
.card-content p::before {
    content: "";

    display: block;

    width: 22px;
    height: 1px;

    margin-bottom: 10px;

    background: rgba(124, 58, 237, 0.55);

    box-shadow:
        0 0 8px rgba(89, 1, 243, 0.18);
}
/* reset */
.reset {
    display: inline-flex;
    align-items: center;
    
    gap: 8px;

    margin-top: 18px;
    padding: 10px 14px;

    font-size: 13px;
    font-weight: 600;

    color: #c4b5fd;

    text-decoration: none;

    border-radius: 12px;

    background: rgba(124, 58, 237, 0.08);

    border: 1px solid rgba(124, 58, 237, 0.25);

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.10);

    transition: all 0.25s ease;

    position: relative;
    overflow: hidden;
}

/* subtle neon sweep */
.reset::before {
    content: "";

    position: absolute;
    top: 0;
    left: -60%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(34, 211, 238, 0.18),
        transparent
    );

    transform: skewX(-20deg);

    transition: 0.5s ease;
}

/* hover state */
.reset:hover {
    color: #ffffff;

    border-color: rgba(34, 211, 238, 0.5);

    background: rgba(34, 211, 238, 0.10);

    box-shadow:
        0 0 25px rgba(124, 58, 237, 0.25),
        0 0 35px rgba(34, 211, 238, 0.15);

    transform: translateY(-2px);
}

.reset:hover::before {
    left: 140%;
}

/* click feel */
.reset:active {
    transform: scale(0.97);
}

/* empty */
.empty {
    text-align: center;

    padding: 40px 20px;

    color: #94a3b8;

    font-size: 14px;
    font-weight: 500;

    letter-spacing: 0.5px;

    position: relative;

    background: rgba(10, 14, 24, 0.4);

    border: 1px solid rgba(124, 58, 237, 0.15);

    border-radius: 14px;

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(124, 58, 237, 0.08);
}

/* subtle warning line */
.empty::before {
    content: "";

    display: block;

    width: 40px;
    height: 2px;

    margin: 0 auto 12px auto;

    background: linear-gradient(
        to right,
        #ef4444,
        #7c3aed
    );

    opacity: 0.7;

    box-shadow:
        0 0 10px rgba(239, 68, 68, 0.15);
}

/* soft glitch accent */
.empty::after {
    content: "NO RESULTS";

    display: block;

    margin-top: 10px;

    font-size: 10px;

    letter-spacing: 2px;

    color: rgba(148, 163, 184, 0.35);
}
/* =========================================
   SCENE DETAIL PAGE
========================================= */
/* LAYOUT */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}
.container-scene {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
  
    
}

/* MAIN CARD */
.glass-card {
    position: relative;

    background: rgba(255, 255, 255, 0.03);

    border-radius: 16px;

    padding: 26px;

    /* transparent border base */
    border: 1px solid transparent;

    /* CYBER GRADIENT BORDER */
    background:
        linear-gradient(#0b0f1a, #0b0f1a) padding-box,
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.7),
            rgba(34, 211, 238, 0.5),
            rgba(236, 72, 153, 0.35)
        ) border-box;

    /* deep cyber shadow stack */
    box-shadow:
        0 0 25px rgba(124, 58, 237, 0.15),
        0 0 55px rgba(34, 211, 238, 0.08),
        0 25px 70px rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(10px);

    overflow: hidden;

    animation: floatCard 6s ease-in-out infinite;
}

/* soft ambient scan light */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(34, 211, 238, 0.08),
        transparent
    );

    transform: translateX(-120%);
    pointer-events: none;
}

/* animated glow sweep */
.glass-card::after {
    content: "";
    position: absolute;

    width: 200%;
    height: 200%;

    top: -50%;
    left: -50%;

    background: radial-gradient(
        circle,
        rgba(124, 58, 237, 0.12),
        transparent 60%
    );

    animation: pulseGlow 8s ease-in-out infinite;

    pointer-events: none;
}

/* hover interaction */
.glass-card:hover {
    transform: translateY(-6px) scale(1.01);

    box-shadow:
        0 0 35px rgba(124, 58, 237, 0.25),
        0 0 80px rgba(34, 211, 238, 0.15),
        0 30px 90px rgba(0, 0, 0, 0.75);
}

/* floating motion */
@keyframes floatCard {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* slow neon pulse */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}
/* HEADER */
.header {
    margin-bottom: 24px;
    padding-bottom: 14px;

    border-bottom: 1px solid rgba(124, 58, 237, 0.25);
}

/* MAIN TITLE */
.anime-title {
    font-size: 36px;
    font-weight: 800;

    color: #ffffff;

    font-family: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;

    letter-spacing: 0.5px;

    /* cyber gradient text */
    background: linear-gradient(
        90deg,
        #a78bfa,
        #22d3ee,
        #ec4899
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 18px rgba(124, 58, 237, 0.25);
}

/* EPISODE LINE */
.episode {
    margin-top: 6px;

    font-size: 19px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    color: #c4b5fd;

    font-family: 'Space Grotesk', system-ui, sans-serif;

    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* small neon dot indicator */
.episode::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #22d3ee;

    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.scene-title {
    margin-top: 10px;
    color: #c4b5fd;
    font-size: 16px;
}

/* IMAGE (controlled width, NOT full bleed) */
.media {
    display: flex;
    justify-content: center;
    margin: 20px 0 35px;
}

/* CYBER SCENE IMAGE */
.scene-image {
    width: 420px;
    max-width: 100%;

    height: 260px;
    object-fit: cover;

    border-radius: 14px;

    position: relative;

    /* cyber border */
    border: 1px solid transparent;

    background:
        linear-gradient(#0b0f1a, #0b0f1a) padding-box,
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.8),
            rgba(34, 211, 238, 0.6),
            rgba(236, 72, 153, 0.4)
        ) border-box;

    /* layered neon shadow */
    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.18),
        0 0 35px rgba(34, 211, 238, 0.10),
        0 12px 45px rgba(0, 0, 0, 0.55);

    transition: all 0.25s ease;

    overflow: hidden;
}



/* subtle scan glow overlay */
.scene-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(34, 211, 238, 0.10),
        transparent
    );

    transform: translateX(-120%);
    pointer-events: none;
}

/* hover cyber pulse */
.scene-image:hover {
    transform: scale(1.03);

    box-shadow:
        0 0 25px rgba(124, 58, 237, 0.30),
        0 0 50px rgba(34, 211, 238, 0.18),
        0 18px 60px rgba(0, 0, 0, 0.6);
}

.scene-image:hover::after {
    transform: translateX(120%);
    transition: transform 0.6s ease;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.block.full {
    grid-column: 1 / -1;
}

/* LABELS */
.label {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: #8b5cf6;
    margin-bottom: 8px;
}

/* TEXT */
.text {
    font-size: 16px;
    line-height: 1.75;
    color: #e5e7eb;
}

.subtle {
    color: #9ca3af;
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* CYBER PILL TAGS - CLEAN TEXT */
.tag {
    display: inline-flex;
    align-items: center;

    padding: 4px 12px;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0;
    text-transform: none;

    color: #c4b5fd;

    font-family: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;

    border-radius: 999px;

    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);

    transition: all 0.2s ease;

    position: relative;
    overflow: hidden;
}

/* subtle neon sweep */
.tag::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(34, 211, 238, 0.18),
        transparent
    );

    transform: translateX(-120%);
}

.tag:hover {
    color: #ffffff;

    transform: translateY(-2px);

    border-color: rgba(34, 211, 238, 0.6);

    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.25),
        0 0 30px rgba(34, 211, 238, 0.15);
}

.tag:hover::before {
    transform: translateX(120%);
    transition: transform 0.6s ease;
}
/* BACK LINK */
.back-link {
    display: inline-block;
    margin: 20px 0 0 20px;

    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;

    transition: 0.2s ease;
}

.back-link:hover {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .container {
        padding: 20px 14px;
    }

    .container-scene {
        padding: 16px 12px;
    }

    /* title */
    .title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    /* search */
    .search-form {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 18px;
    }

    .search-form input,
    .search-form button {
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
    }

    /* card */
    .card {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .card img {
        width: 100%;
        height: 180px;
        border-radius: 10px;
    }

    .card-content h3 {
        font-size: 15px;
    }

    .card-content p {
        font-size: 13px;
    }

    /* detail page */
    .grid {
        grid-template-columns: 1fr;
    }

    .anime-title {
        font-size: 22px;
    }

    .episode {
        font-size: 15px;
    }

    .scene-image {
        height: 200px;
        width: 100%;
    }

    .glass-card {
        padding: 16px;
    }

    .back-link {
        margin: 14px 0 0 14px;
        font-size: 14px;
    }

    .tag {
        font-size: 15px;
    }
}
