
body.dark {
    background: radial-gradient(circle at top, #0c1a2b, #02060c);
    color: #eaeaea;
}
body.light {
    background: #f6f7fb;
    color: #1a1a1a;
}

.dark .tag-card {
    background: rgba(255,255,255,0.05);
}
.light .tag-card {
    background: rgb(214, 214, 214);
}

.dark .tag-app {
    color: white;
}
.light .tag-app {
    color: #545454;
}

.dark .tag-card:hover {
    background: rgba(255,255,255,0.08);
}
.light .tag-card:hover {
    background: rgb(233, 233, 233);
}

.dark .tag-panel {
    background: rgba(255,255,255,0.04);
}
.light .tag-panel {
    background: rgb(214, 214, 214);
}

.dark .tag-group:hover {
    background: rgb(150, 150, 150);
}
.light .tag-group:hover {
    background: rgb(182, 182, 182);
}

.dark .selected-bar {
    background: rgba(0,0,0,0.6);
}
.light .selected-bar {
    background: rgba(110, 110, 110, 0);
}

.dark .tag-pill .tag-breadcrumb-mini {
    color: #777;
}
.light .tag-pill .tag-breadcrumb-mini {
    color: #9c9c9c;
}

.dark #searchbar input[type="text"] {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.dark #searchbar input:focus {
    box-shadow:
        0 0 0 2px rgba(80, 140, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(80, 140, 255, 0.35);
}

.dark .pagination-box {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}





body {
    background-attachment: fixed;
    font-family: "Inter", "Segoe UI", sans-serif;
}

h4 {
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.grid-block {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 60px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.video-tile {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    transition: all .25s ease;
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.style-netflix .video-tile {
    border-radius: 8px;
}

.style-netflix .video-tile:hover {
    transform: scale(1.15);
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.style-netflix .video-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transition: opacity .3s;
}


.style-disney .video-tile {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
}

.style-disney .video-tile:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0,150,255,0.4);
}

.style-disney .video-info {
    display: None;
}

.style-dark .video-tile {
    border: 1px solid #222;
}

.style-dark .video-info {
    padding: 8px;
    font-size: 12px;
    opacity: 0.8;
}

.style-dark .video-tile:hover {
    border-color: #6e0000;
}


/* ===== ROOT ISOLATION ===== */
.tag-app {
    font-family: Inter, sans-serif;
}

/* ===== LEVEL 1 GRID ===== */
.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.tag-card {
    position: relative;
    padding: 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.25s ease;
    overflow: hidden;
}

.tag-card:hover {
    transform: translateY(-4px);
}

/* icon */
.tag-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

/* title */
.tag-title {
    font-weight: 600;
}

/* selection dot (top right) */
.tag-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
}

.tag-card.selected .tag-dot {
    background: #2ecc71;
    border-color: #2ecc71;
}

/* ===== PANEL (EXPANDED) ===== */
.tag-panel {
    margin-top: 20px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.tag-panel.hidden {
    display: none;
}

/* breadcrumb */
.tag-breadcrumb {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 12px;
}

/* nested content */
.tag-group {
    margin-bottom: 16px;
}

.tag-group-title {
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.9;
}

.tag-group-title span  {
    margin-top: -2px;
    margin-right: 7px;;
}

/* chips */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    transition: 0.2s;
}


/* level 3+ selectable circle */
.tag-check {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(130, 130, 130, 0.4);
}

.tag-chip.selected .tag-check {
    background: #2ecc71;
    border-color: #2ecc71;
}


/* clickable breadcrumb */
.tag-breadcrumb span:hover {
    text-decoration: underline;
    opacity: 1;
}

/* group hover clearer */
.tag-group {
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}









.tag-ring {
    width: 16px;
    height: 16px;
    border: 2px solid #888;
    border-radius: 50%;
    transition: 0.2s;
    margin-left: auto;
}

.tag-ring.active {
    background: #2ecc71;
    border-color: #2ecc71;
}
.selected-bar {
    margin-top: 15px;
    position: relative; /* oder einfach entfernen */
    bottom: auto;
    left: auto;
    right: auto;

    display: flex;
    gap: 20px 5px;
    flex-wrap: wrap;
    padding: 10px;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding-top: 22px;
}

.tag-pill {
    background: #222;
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.tag-pill button {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
}

.tag-card {
    position: relative;
}

.tag-card .tag-ring {
    position: absolute;
    top: 10px;
    right: 10px;
}



.breadcrumb-item {
    cursor: pointer;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 5px;
    color: #999;
}


/* Styling für das Mini-Breadcrumb innerhalb des Tag-Pills */
.tag-pill {
    position: relative;
    padding: 5px 10px;
    background-color: #c9c9c9;
    border-radius: 15px;
    margin-right: 10px;
    display: inline-block;
}

.tag-pill .tag-breadcrumb-mini {
    font-size: 10px;  /* Sehr klein */
    position: absolute;
    top: -15px;  /* Direkt über der Tag-Pille */
    left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;  /* Limitiert die Länge */
}


#tagContent {
    display: flex;
    flex-wrap: wrap; /* Ermöglicht den Umbruch von Elementen auf mehrere Zeilen */
    gap: 10px; /* Abstand zwischen den Tags */
}

.tag-chip, .tag-group {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin: 5px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
}

.tag-chip.selected, .tag-group.selected {
    color: white;
}

.tag-group-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* =========================
   CINEMATIC SEARCHBAR FIXED
   ICON INSIDE INPUT (NO BREAK)
========================= */

#searchbar {
    margin: 20px 0;
    position: relative;

    display: flex;              /* 🔥 verhindert "untereinander bug" */
    align-items: center;
}

/* INPUT */
#searchbar input[type="text"] {
    width: 100%;
    max-width: 520px;

    padding: 14px 16px; 

    border-radius: 14px;

    background: rgba(20, 20, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #fff;
    font-size: 15px;
    font-family: "Inter", sans-serif;

    outline: none;

    transition: all 0.25s ease;
}

/* HOVER */
#searchbar input:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

/* FOCUS */
#searchbar input:focus {
    border-color: rgba(120, 180, 255, 0.85);

    transform: translateY(-2px) scale(1.01);
}


/* =========================
   CINEMATIC PAGINATION BOX
========================= */

.pagination-box {
    margin: 20px 0;
    padding: 16px;

    border-radius: 14px;

    background: rgba(20, 20, 25, 0.55);
    border: 1px solid rgba(255,255,255,0.08);

    color: #fff;
    font-family: "Inter", sans-serif;
}

/* TITLE */
.pagination-title {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* ROW */
.pagination-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* FIELD */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* LABEL */
.field label {
    font-size: 12px;
    opacity: 0.7;
}

/* INPUTS */
.field input {
    width: 120px;

    padding: 10px 12px;

    border-radius: 10px;

    background: rgba(10,10,15,0.6);
    border: 1px solid rgba(255,255,255,0.08);

    color: #fff;
    outline: none;

    transition: 0.2s ease;
}

/* FOCUS */
.field input:focus {
    border-color: rgba(120,180,255,0.8);
    box-shadow: 0 0 0 2px rgba(80,140,255,0.15);
}

/* STATUS (Page X of Y) */
.pagination-status {
    margin-top: 12px;

    font-size: 13px;
    opacity: 0.85;

    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}





/* =========================
   MODERN PAGE STEPPER
========================= */

.page-stepper {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 6px;
    border-radius: 12px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

/* BUTTONS */
.page-stepper button {
    width: 36px;
    height: 36px;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    background: rgba(255,255,255,0.06);
    color: #fff;

    font-size: 14px;
    transition: all 0.2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover effect */
.page-stepper button:hover {
    background: rgba(120,180,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(120,180,255,0.25);
}

/* active click */
.page-stepper button:active {
    transform: scale(0.95);
}

/* INPUT inside stepper */
.page-stepper input {
    width: 70px;
    text-align: center;

    padding: 10px 8px;

    border-radius: 10px;

    background: rgba(10,10,15,0.6);
    border: 1px solid rgba(255,255,255,0.08);

    color: #fff;
    outline: none;

    transition: 0.2s ease;
}

/* focus glow */
.page-stepper input:focus {
    border-color: rgba(120,180,255,0.9);
    box-shadow: 0 0 0 2px rgba(80,140,255,0.2);
}

.pagination-box {
    margin: 20px 0;
    padding: 18px;

    border-radius: 16px;

    background: linear-gradient(
        145deg,
        rgba(25,25,30,0.65),
        rgba(10,10,15,0.4)
    );

    border: 1px solid rgba(255,255,255,0.08);

}

/* =========================
   MODERN SELECT DROPDOWN
========================= */

.field select {
    width: 140px;

    padding: 10px 36px 10px 12px;

    border-radius: 10px;

    background: rgba(10,10,15,0.6);
    border: 1px solid rgba(255,255,255,0.08);

    color: #fff;
    font-size: 14px;

    outline: none;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: 0.2s ease;

    /* custom arrow */
    background-image: linear-gradient(45deg, transparent 50%, #aaa 50%),
                      linear-gradient(135deg, #aaa 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px),
                         calc(100% - 13px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    margin-top: 7px;
}

/* hover */
.field select:hover {
    border-color: rgba(120,180,255,0.4);
    transform: translateY(-1px);
}

/* focus glow */
.field select:focus {
    border-color: rgba(120,180,255,0.9);
    box-shadow: 0 0 0 2px rgba(80,140,255,0.2);
}

/* dropdown options (limited browser support) */
.field select option {
    background: #111;
    color: #fff;
}

/* =========================
   REMOVE DEFAULT NUMBER SPINNERS
========================= */

/* Chrome, Safari, Edge */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}










@media (max-width: 700px) {
    .tag-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }

    .tag-icon {
        font-size: 15px;
    }

    .tag-card {
        position: relative;
        padding: 8px;
    }

    #tagContent {
        gap: 0px;
    }

    .tag-chip, .tag-group {
        font-size: 14px;
    }
}




