        body {
            background-image: url('../assets/www/bg-texture.png'), linear-gradient(to bottom, #0c0e1a, #1a1d2a);
            background-blend-mode: overlay;
            background-size: cover;
            margin: 0;
            padding: 0;
            font-family: 'Acme', sans-serif !important;
            background-color: rgba(44, 44, 59, 0.4);
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"></feTurbulence></filter><rect width="100%" height="100%" filter="url(#noiseFilter)" /></svg>'), linear-gradient(to bottom left, #3060DD, #00020e);
            background-blend-mode: overlay;
            background-size: cover;
            color: #f0f0f0;
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        body::-webkit-scrollbar {
            width: 10px;
        }

        body::-webkit-scrollbar-track {
            background: var(--color-dropdown-bg);
        }

        body::-webkit-scrollbar-thumb {
            background: var(--color-primary);
            border-radius: 4px;
        }

        body::-webkit-scrollbar-thumb:hover {
            background: var(--color-primary-light);
        }

        .icicles {
            position: absolute;
            top: -140px;
            left: 0;
            width: 100%;
            height: 300px;
            background-image: url('../assets/eiszapfen.png');
            background-repeat: repeat-x;

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

        .main-content {
            display: flex;
            margin-top: 0;
            height: 100vh;
            overflow: hidden;
            margin-top: 100px;
            font-family: 'Acme', sans-serif !important;
        }

        .logo {
            height: 40px;
            margin-bottom: -10px;
            align-self: flex-end;
        }

        .sidebar {
            flex: 0 0 30%;
            padding: 20px;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            background-color: rgba(44, 44, 59, 0.8);
            background-image: url('../assets/coldrock-rock-trans.png'), linear-gradient(to bottom right, #3060DD, #00020e);
            background-blend-mode: soft-light;
            background-size: cover;
            background-position: center;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }

        .folder-list-container {
            margin-top: 10px;
            padding-bottom: 20px;
            /* overflow-y: auto; */
            max-height: calc(100vh - 150px);
        }

        .folder-list-container {
            scrollbar-width: thin;
            scrollbar-color: #4080FF rgba(44, 44, 59, 0.5);
        }

        @media screen and (max-height: 800px) {
            .folder-list-container {
                max-height: calc(100vh - 130px);
            }
        }


        .folder-list-container::-webkit-scrollbar {
            width: 10px;
        }

        .folder-list-container::-webkit-scrollbar-track {
            background: rgba(44, 44, 59, 0.3);
        }

        .folder-list-container::-webkit-scrollbar-thumb {
            background-color: #4080FF;
            border-radius: 10px;
            border: 2px solid rgba(44, 44, 59, 0.5);
        }

        .folder-list-container::-webkit-scrollbar-thumb:hover {
            background-color: #60AAFF;
        }

        .treeview {
            list-style: none;
            padding-left: 0;
        }

        .treeview li {
            position: relative;
            margin: 5px 0;
            cursor: pointer;
            padding-left: 25px;
        }

        .treeview li .toggle {

            left: 7%;
            margin-right: 10px;
            cursor: pointer;
            display: inline-block;
            width: 12px;
            height: 12px;

            background-position: center;
            background-repeat: no-repeat;
        }

        .treeview li ul {
            padding-left: 20px;
        }

        .folder {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            border-radius: 10px;
            transition: background-color 0.3s, transform 0.2s;
            color: #f0f0f0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            padding-left: 45px;
        }

        .folder:hover,
        .folder.selected {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: var(--white);
            box-shadow: 0 0 12px rgba(96, 170, 255, 0.6), 0 0 24px rgba(96, 170, 255, 0.3);
            opacity: 1;
            transition: all 0.3s ease;
        }


        .folder-icon {
            width: 24px;
            height: 24px;
            background-image: url('../assets/FrozenComicFolder.png');
            background-size: cover;
            display: inline-block;
            margin-right: 10px;
        }

        .toggle {
            width: 14px;
            height: 14px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            flex-shrink: 0;
            cursor: pointer;
        }

        .folder-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .folder-row {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
        }

        .folder-label {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


        .content {
            flex: 1;
            padding: 20px;
            background-color: rgba(44, 44, 59, 0.4);
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
            overflow: auto;
        }

        .video-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;

        }

        .card {
            position: relative;
            background: rgba(255, 255, 255, 0.1);
            align-items: center;
            border-radius: 10px;
            padding: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s, background-color 0.3s;
            text-align: center;
            cursor: pointer;
            margin-top: 16px;
            margin-bottom: 16px;
            display: flex;
            /* vertikale Aufteilung innerhalb der Card */
            flex-direction: column;
            height: 100%;
        }


        .card:hover {
            transform: translateY(-5px);
            background-color: rgba(96, 170, 255, 0.2);
        }

        .folder-thumbnail {
            width: 100%;
            height: 100px;
            /* fixe Höhe statt 100x100px */
            background-image: url('../assets/FrozenComicFolder.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            margin: 40px auto 0 auto;
            /* mittig */
        }

        .video-thumbnail {
            aspect-ratio: 16 / 9;
            width: 100%;
            height: auto;
            object-fit: cover;
            /* oder 'contain' wenn du schwarze Balken willst */
            border-radius: 10px;
        }

        .video-name,
        .folder-name {
            margin-top: 10px;
            font-size: 14px;
            color: #f0f0f0;
            text-align: center;

            /* auf 2 Zeilen clampen */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: calc(1.2em * 2);
            /* reserviert Platz für 2 Zeilen */
        }

        .empty-message {
            color: #8080FF;
            font-size: 16px;
            text-align: center;
            margin-top: 20px;
        }

        #dropOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            font-size: 24px;
            text-align: center;
            line-height: 100vh;
            z-index: 9999;
            pointer-events: none;
        }

        #progressContainer {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 500px;
            background-color: rgba(0, 0, 0, 0.7);
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            z-index: 10000;
        }

        #progressBar {
            width: 100%;
            background-color: #ddd;
            height: 40px;
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            margin-top: 10px;
        }

        #progress {
            height: 100%;
            width: 0%;
            background-color: #4080FF;
            border-radius: 10px;
            position: absolute;
            top: 0;
            left: 0;
            transition: none;
        }

        #raptor {
            width: 40px;
            height: 40px;
            background-image: url('../assets/Raptor.png');
            background-size: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: left 0.1s linear;
        }

        .coin {
            width: 30px;
            height: 30px;
            background-image: url('../assets/ColdrockCoin.png');
            background-size: cover;
            position: absolute;
            top: 5px;
            opacity: 1;
            animation: none;
        }

        #coin1 {
            left: 33%;
        }

        #coin2 {
            left: 66%;
        }

        #coin3 {
            left: 99%;
        }

        @keyframes popAndExplode {
            0% {
                transform: scale(1);
                opacity: 1;
                top: 5px;
            }

            50% {
                transform: scale(1.5);
                top: -20px;
            }

            100% {
                transform: scale(0);
                opacity: 0;
            }
        }

        #notificationPopup {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #4080FF;
            color: white;
            padding: 15px;
            border-radius: 8px;
            z-index: 10000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .folder.dragover-highlight {
            background-color: #60AAFF;
            color: white;
            border: 2px dashed #ffffff;
        }

        #accessModal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #2c2c3b;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
            z-index: 10000;
            width: 320px;
            color: #f0f0f0;
        }

        #accessModal h3 {
            margin-bottom: 20px;
            text-align: center;
            color: #8080FF;
            font-size: 18px;
            font-weight: 600;
        }

        #accessModal input {
            width: calc(100% - 20px);
            padding: 12px;
            margin-bottom: 15px;
            border: none;
            border-radius: 8px;
            background-color: rgba(128, 128, 255, 0.1);
            color: black;
            font-size: 14px;
            transition: background-color 0.3s, box-shadow 0.3s;
        }

        #accessModal input::placeholder {
            color: #aaa;
        }

        #accessModal input:focus {
            outline: none;
            background-color: rgba(128, 128, 255, 0.2);
            box-shadow: 0 0 8px rgba(128, 128, 255, 0.5);
        }

        #accessModal button {
            width: 100%;
            background-color: #8080FF;
            color: white;
            padding: 12px 0;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: background-color 0.3s, transform 0.3s;
        }

        #accessModal button:hover {
            background-color: #60AAFF;
            transform: translateY(-2px);
        }

        #contentList {
            flex: 1;
            padding-bottom: 30px;
            max-height: calc(100vh - 150px);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            /* was du schon nutzt */
            gap: 15px;
            /* optional: bisschen Standard-Padding unten, falls der Footer mal nicht overlayt */
            padding-bottom: 16px;
        }

        #contentList {
            scrollbar-width: thin;
            scrollbar-color: #4080FF rgba(44, 44, 59, 0.5);
        }

        #contentList::after {
            content: "";
            grid-column: 1 / -1;
            /* über alle Spalten */
            height: 96px;
            /* Abstand nach unten – nach Bedarf anpassen */
            pointer-events: none;
            /* klickt durch */
        }

        #contentList::-webkit-scrollbar {
            width: 10px;
        }

        #contentList::-webkit-scrollbar-track {
            background: rgba(44, 44, 59, 0.3);
        }

        #contentList::-webkit-scrollbar-thumb {
            background-color: #4080FF;
            border-radius: 10px;
            border: 2px solid rgba(44, 44, 59, 0.5);
        }

        #contentList::-webkit-scrollbar-thumb:hover {
            background-color: #60AAFF;
        }

        @keyframes shimmer {
            0% {
                background-position: -400%;
            }

            100% {
                background-position: 400%;
            }
        }

        .shimmer-effect {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.2) 100%);
            background-size: 200% 200%;
            animation: shimmer 2s infinite linear;
            color: #ffffff;
            font-weight: bold;
            font-size: 18px;
            text-align: center;
        }

        .delete-button {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            cursor: pointer;
            width: 18px;
            height: 18px;
            background-image: url('../assets/close.png');
            background-size: cover;
        }

        .delete-button:hover {
            opacity: 0.7;
        }

        .folder-delete {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            color: red;
            font-size: 20px;
            background: none;
            border: none;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: white;
            color: black;
            padding: 20px;
            border-radius: 10px;
            width: 300px;
            text-align: center;
            position: relative;
            margin: auto;
            opacity: 0.9;
            margin-top: 35vh;
        }

        .modal-content h3 {
            color: black;
        }

        .close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 18px;
            cursor: pointer;
            color: black;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .confirm-btn,
        .cancel-btn {
            background-color: #4080FF;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            margin: 10px;
            border-radius: 5px;
        }

        .confirm-btn:hover {
            background-color: #3060DD;
        }

        .cancel-btn:hover {
            background-color: #ff4c4c;
        }

        #newFolderModal .modal-content {
            background-color: #f8f8f8;
            color: #333;
            padding: 30px;
            border-radius: 8px;
            width: 400px;
            text-align: left;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            font-family: 'Acme', sans-serif;
        }

        #newFolderModal h3 {
            color: #3060DD;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
        }

        #newFolderModal input {
            width: calc(100% - 20px);
            padding: 12px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            background-color: #fff;
            font-size: 16px;
            color: #333;
            transition: border-color 0.3s;
        }

        #newFolderModal input:focus {
            outline: none;
            border-color: #3060DD;
        }

        #newFolderModal .button-group {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        #newFolderModal .confirm-btn,
        #newFolderModal .cancel-btn {
            background-color: #3060DD;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 15px;
            transition: background-color 0.3s ease;
            width: 48%;
            text-align: center;
        }

        #newFolderModal .confirm-btn:hover {
            background-color: #204b99;
        }

        #newFolderModal .cancel-btn {
            background-color: #ff4c4c;
        }

        #newFolderModal .cancel-btn:hover {
            background-color: #d43f3f;
        }

        #deleteModal .cancel-btn {
            background-color: #ff4c4c;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            margin: 10px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        #deleteModal .cancel-btn:hover {
            background-color: #d43f3f;
        }

        .watermark {
            position: fixed;
            bottom: 10px;
            right: 10px;
            opacity: 0.5;
            z-index: 9999;
            pointer-events: none;
        }

        .watermark img {
            max-width: 300px;
            height: auto;
        }

        .pip-button {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            background-color: rgba(0, 0, 0, 0.5);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s ease-in-out;
        }

        .pip-button:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .pip-button img {
            width: 20px;
            height: 20px;
            filter: invert(1);
        }

        .login-modal {
            display: flex;
            justify-content: center;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
        }

        .login-box {
            background: #2c2c3b;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
            width: 320px;
            color: #f0f0f0;
            text-align: center;
        }

        .login-box h3 {
            margin-bottom: 20px;
            color: rgb(249, 249, 255);
            font-size: 18px;
            font-weight: 600;
        }

        .login-box input {
            width: calc(100% - 20px);
            padding: 12px;
            margin-bottom: 15px;
            border: none;
            border-radius: 8px;
            color: black;
            font-size: 14px;
        }

        .login-box input:focus {
            outline: none;

        }

        .login-box button {
            width: 100%;
            background-color: #8080FF;
            color: white;
            padding: 12px 0;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: background-color 0.3s, transform 0.3s;
        }

        .login-box button:hover {
            background-color: #60AAFF;
            transform: translateY(-2px);
        }

        .hidden {
            display: none;
        }

        #permissionsModal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 450px;
            background: linear-gradient(135deg, #2c2c3b, #1e1e2e);
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
            text-align: center;
            color: #f0f0f0;
        }

        #permissionsModal h3 {
            margin-bottom: 15px;
            font-size: 20px;
            font-weight: bold;
            color: #60AAFF;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        #permissionsModal textarea {
            width: calc(100% - 24px);
            height: 180px;
            padding: 12px;
            border: none;
            border-radius: 6px;
            background-color: rgba(255, 255, 255, 0.1);
            color: #f0f0f0;
            font-size: 14px;
            font-family: 'Acme', sans-serif;
            resize: none;
            outline: none;
            transition: all 0.3s ease-in-out;
            box-sizing: border-box;
        }

        #permissionsModal textarea:focus {
            background-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 10px rgba(96, 170, 255, 0.5);
        }

        #permissionsModal .button-group {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        #permissionsModal button {
            flex: 1;
            margin: 0 5px;
            padding: 10px 0;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease-in-out;
        }

        #permissionsModal .confirm-btn {
            background-color: #60AAFF;
            color: white;
        }

        #permissionsModal .confirm-btn:hover {
            background-color: #4080FF;
            transform: translateY(-2px);
        }

        #permissionsModal .cancel-btn {
            background-color: #ff4c4c;
            color: white;
        }

        #permissionsModal .cancel-btn:hover {
            background-color: #d43f3f;
            transform: translateY(-2px);
        }

        #permissionsModal .close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 22px;
            cursor: pointer;
            color: #f0f0f0;
            transition: color 0.3s ease-in-out;
        }

        #permissionsModal .close:hover {
            color: #60AAFF;
        }

        .close-button {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 20px;
            font-weight: bold;
            color: #fff;
            cursor: pointer;
            background: none;
            border: none;
        }

        .close-button:hover {
            color: #60AAFF;
        }


        #sortSelect {
            background: linear-gradient(135deg, #3060DD, #00020e);
            color: #f0f0f0;
            border: none;
            padding: 10px 15px;
            font-size: 14px;
            border-radius: 8px;
            outline: none;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
            font-family: 'Acme', sans-serif;
            appearance: none;
            background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');

            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 12px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            min-width: 190px;
        }

        #sortSelect:hover {
            background-color: #4080FF;
        }

        #sortBar {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 10px;
            margin: 1%;
        }



        :root {
            --primary: #60AAFF;
            --secondary: #4080FF;
            --primary-dark: #3060DD;
            --overlay-bg: rgba(0, 0, 0, 0.7);
            --overlay-border: rgba(96, 170, 255, 0.7);
            --text-light: #ddd;
            --white: #fff;
        }

        body {
            font-family: 'Acme', sans-serif;
            background: linear-gradient(to bottom left, #000010, #002060);
            color: var(--text-light);
        }

        h2,
        h3 {
            font-family: 'Stoneage', sans-serif;
            color: var(--primary);
            /* text-shadow: 0 0 12px var(--secondary);
            animation: neonPulse 2.5s ease-in-out infinite; */
        }


        .folder {
            border-radius: 16px;
            background: rgba(0, 0, 0, 0.6);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .card:hover,
        .folder:hover {

            box-shadow: 0 10px 24px rgba(96, 170, 255, 0.5);
        }

        @keyframes neonPulse {

            0%,
            100% {
                text-shadow: 0 0 8px var(--primary), 0 0 16px var(--secondary);
            }

            50% {
                text-shadow: 0 0 16px var(--secondary), 0 0 24px var(--primary);
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-40px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-dark);
            border-radius: 8px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }


        .card:hover {
            transform: scale(1.05) rotate(-0.5deg);
            box-shadow: 0 0 16px var(--primary), 0 0 24px var(--secondary);
            background: rgba(96, 170, 255, 0.1);
        }

        .empty-message {
            font-family: 'Stoneage', sans-serif;
            color: var(--primary);
            font-size: 1.4rem;
            text-shadow: 0 0 6px rgba(96, 170, 255, 0.5);
            animation: pulse 1.5s infinite alternate;
        }

        @keyframes pulse {
            0% {
                opacity: 0.6;
                transform: scale(1);
            }

            100% {
                opacity: 1;
                transform: scale(1.05);
            }
        }

        .login-modal {
            animation: blurIn 0.4s ease-out;
        }

        @keyframes blurIn {
            from {
                opacity: 0;
                filter: blur(8px);
            }

            to {
                opacity: 1;
                filter: blur(0);
            }
        }



        .folder {
            display: flex;
            align-items: center;
            border-radius: 10px;
            transition: background-color 0.3s, transform 0.2s;
            color: #f0f0f0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            background-color: rgba(0, 0, 0, 0.4);
        }

        .toggle {
            width: 14px;
            height: 14px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            flex-shrink: 0;
            margin-right: 10px;
            margin-left: 0;
            /* wichtig */
        }







        .folder-row {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
        }

        .toggle {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            margin-left: 4px;
        }

        .folder-icon {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            background-image: url('../assets/FrozenComicFolder.png');
            background-size: cover;
            background-position: center;
        }

        .folder-label {
            flex-grow: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


        .folder .delete-button {
            margin-left: auto;
            margin-right: 6px;
            background-color: transparent;
        }

        .video-grid {
            display: grid;
            /* responsive Spaltenbreite, passt sich an den Platz an */
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 16px;

            /* WICHTIG: alle Grid-Zeilen gleich hoch machen */
            grid-auto-rows: 250px;
            /* <— gewünschte Card-Höhe hier einstellen */
            align-items: stretch;
            /* Cards füllen die Zelle komplett */
        }


        .video-item {
            width: 300px;
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 10px;
            background-color: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease;
        }

        .video-item:hover {
            transform: scale(1.02);
        }

        .video-item video {
            width: 100%;
            height: auto;
        }

        .video-item p {
            font-size: 14px;
            margin-top: 8px;
            text-align: center;
            color: #333;
        }

        /* ---------- Toast Stack ---------- */
        #toastStack {
            position: fixed;
            right: 18px;
            bottom: 18px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 99999;
            pointer-events: none;
            /* Klicks gehen durch außer auf die Toasts selbst */
        }

        /* ---------- Einzelner Toast ---------- */
        .toast {
            position: relative;
            min-width: 260px;
            max-width: 420px;
            padding: 14px 16px 14px 44px;
            border-radius: 12px;
            background: #0f172a;
            /* fallback */
            color: #fff;
            box-shadow: 0 10px 24px rgba(0, 0, 0, .25), 0 2px 8px rgba(0, 0, 0, .12);
            font: 500 14px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
            pointer-events: auto;
            /* damit man schließen kann */
            overflow: hidden;
            transform: translateY(12px);
            opacity: 0;
            animation: toast-in .25s ease-out forwards,
                toast-life var(--toast-life, 3200ms) linear both;
            /* <— Dauer via CSS-Var */

        }

        /* Schimmernder Verlauf */
        .toast::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg,
                    rgba(64, 128, 255, .18),
                    rgba(96, 170, 255, .14),
                    rgba(255, 255, 255, .08),
                    rgba(64, 128, 255, .18));
            background-size: 250% 250%;
            animation: shimmer 2.4s linear infinite;
            pointer-events: none;
        }

        /* Funkelnde Partikel */
        .toast::after {
            content: "";
            position: absolute;
            inset: -40%;
            background:
                radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, .55), transparent 60%),
                radial-gradient(2px 2px at 65% 15%, rgba(255, 255, 255, .45), transparent 60%),
                radial-gradient(2.5px 2.5px at 85% 70%, rgba(255, 255, 255, .5), transparent 60%),
                radial-gradient(1.8px 1.8px at 40% 80%, rgba(255, 255, 255, .4), transparent 60%);
            animation: twinkle 2.2s ease-in-out infinite;
            pointer-events: none;
            mix-blend-mode: screen;
        }

        /* Statusleisten-Akzent links */
        .toast .bar {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 5px;
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
            opacity: .95;
        }

        .toast.success {
            background: #0b1f3a;
        }

        .toast.success .bar {
            background: linear-gradient(180deg, #34d399, #22c55e, #16a34a);
        }

        .toast.error {
            background: #2a0f14;
        }

        .toast.error .bar {
            background: linear-gradient(180deg, #fb7185, #f43f5e, #e11d48);
        }

        /* Icon links */
        .toast .icon {
            position: absolute;
            left: 12px;
            top: 12px;
            width: 20px;
            height: 20px;
            display: grid;
            place-items: center;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
        }

        /* Close */
        .toast .close {
            position: absolute;
            right: 8px;
            top: 6px;
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, .8);
            font-size: 18px;
            line-height: 1;
            cursor: pointer;
        }

        /* Textbereich */
        .toast .msg {
            white-space: pre-wrap;
        }

        /* Hover pausiert Lebenszeit */
        .toast:hover {
            animation-play-state: paused;
        }

        .toast:hover::before {
            animation-play-state: paused;
        }

        .toast:hover::after {
            animation-play-state: paused;
        }

        /* Animations */
        @keyframes shimmer {
            0% {
                background-position: 0% 50%
            }

            100% {
                background-position: 200% 50%
            }
        }

        @keyframes twinkle {

            0%,
            100% {
                opacity: .45;
                transform: scale(1)
            }

            50% {
                opacity: .8;
                transform: scale(1.02)
            }
        }

        @keyframes toast-in {
            from {
                opacity: 0;
                transform: translateY(12px) scale(.98)
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1)
            }
        }

        /* Lebenszeit + Ausblendung (Dauer per CSS-Var) */
        @keyframes toast-life {
            0% {
                opacity: 1
            }

            90% {
                opacity: 1
            }

            100% {
                opacity: 0;
                filter: blur(1px)
            }
        }

        .logout-button {
            background-color: #f44336;
            color: white;
            border: none;
            padding: 8px 14px;
            cursor: pointer;
            border-radius: 4px;
            font-weight: bold;
            display: none;
        }

        .logout-button:hover {
            background-color: #d32f2f;
        }

        .toggle {
            background-image: url('../assets/add.png');
        }

        .toggle.is-open {
            background-image: url('../assets/minus.png');
        }

        .toggle.dummy {
            visibility: hidden;
            background-image: none !important;
        }

        .card-btnwrap {
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: flex;
            gap: 8px;
        }


        .card-btnwrap {
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: flex;
            gap: 8px;
        }

        .card .pip-button,
        .card .loop-button {
            position: static;
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.5);
            transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }

        .card .pip-button:hover,
        .card .loop-button:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .card .pip-button img {
            width: 20px;
            height: 20px;
            filter: invert(1);
        }

        .loop-button {
            color: #fff;
            font-weight: 800;
            font-size: 18px;
            line-height: 1;
            padding: 0;
        }

        .loop-button.active {
            background-color: rgba(96, 170, 255, 0.85);
            box-shadow: 0 0 0 2px rgba(96, 170, 255, 0.55) inset;
        }