/* Body Background - matching 7kRebirth theme */
        body {
            background: #23232a !important;
            margin: 0;
            padding: 0;
        }

        /* Character Effects Table Styles - ähnlich wie PVE TierList */

        .effects-table-container {
            margin-top: 20px;
            
            overflow-y: visible;
            width: 100%;
            position: relative;
        }

        .effects-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 2px 2px;
            background: #1A1A1D;
            border-radius: 12px;
            overflow: visible;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            min-width: 1400px;
        }

        .effects-table thead {
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .effects-table thead tr {
            position: sticky;
            top: 0;
            z-index: 101;
            background: #1A1A1D;
        }

        /* Effect Header Column */
        .effect-header {
            background: rgba(255, 255, 255, 0.1);
            color: rgb(230, 230, 230);
            padding: 15px 10px;
            text-align: center;
            font-weight: bold;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #3c3c3f;
            vertical-align: middle;
            white-space: nowrap;
            position: sticky;
            left: 0;
            z-index: 102;
            background: rgba(255, 255, 255, 0.15);
            border-right: 2px solid #3c3c3f;
            width: 250px;
            min-width: 250px;
            max-width: 250px;
        }

        /* Characters Header Column */
        .characters-header {
            background: rgba(255, 255, 255, 0.1);
            color: rgb(230, 230, 230);
            padding: 15px 10px;
            text-align: center;
            font-weight: bold;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #3c3c3f;
            vertical-align: middle;
        }

        /* Effect Row */
        .effect-row {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .effect-cell {
            position: sticky;
            left: 0;
            z-index: 10;
            background: #1A1A1D;
            border-right: 2px solid #3c3c3f;
            padding: 12px;
            vertical-align: middle;
            min-height: 80px;
        }

        /* Characters Cell */
        .characters-cell {
            padding: 12px;
            vertical-align: top;
            min-height: 188px; /* Höhe für die 160px Cards + Padding */
        }

        .characters-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: flex-start;
        }

        .no-characters {
            color: rgba(255, 255, 255, 0.5);
            font-style: italic;
            text-align: center;
        }

        .effect-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .effect-icon-large {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.9);
            padding: 3px;
        }

        .effect-icon-large img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .effect-details {
            flex: 1;
        }

        .effect-name {
            color: #e0e0e0;
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 4px;
        }

        .effect-meta {
            color: #7a5af8a1;
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Character Cell Content (for character images) - matching characterlist.html */
        .character-cell-content {
            width: 112px;
            height: 160px;
            border-radius: 4px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .character-cell-content:hover {
            transform: scale(1.05);
        }

        .character-cell-content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* Type Icons oben links auf den Cards */
        .character-type-icon {
            position: absolute;
            top: 0px;
            left: 0px;
            width: 24px;
            height: 24px;
            z-index: 24;
            border-radius: 4px 0px 4px 0px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            padding: 2px;
        }

        .character-type-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* Border-Verzierungen für Character Karten */
        .character-cell-content.rarity-l-plus::after,
        .character-cell-content.rarity-s-plus::after {
            content: '';
            position: absolute;
            top: 0px;
            right: 0px;
            width: 64px;
            height: 64px;
            background-image: url('https://ik.imagekit.io/frnrxcqkq/7krebirth/LPlusBorder.png');
            background-size: contain;
            background-repeat: no-repeat;
            z-index: 30;
            pointer-events: none;
        }

        .character-cell-content.rarity-l-plus-plus::after {
            content: '';
            position: absolute;
            top: 0px;
            right: 0px;
            width: 64px;
            height: 64px;
            background-image: url('https://ik.imagekit.io/frnrxcqkq/7krebirth/LPlusPlusBorder.png');
            background-size: contain;
            background-repeat: no-repeat;
            z-index: 30;
            pointer-events: none;
        }

        /* Rarity Backgrounds for Character Cell Content - matching pve-tierlist.html */
        .character-cell-content.rarity-r {
            background: linear-gradient(135deg, #9370DB, #8A2BE2);
        }

        .character-cell-content.rarity-l {
            background: linear-gradient(135deg, #FFD700, #FFA500);
        }

        .character-cell-content.rarity-l-plus {
            background: linear-gradient(135deg, #FFA500, #FF8C00);
        }

        .character-cell-content.rarity-l-plus-plus {
            background: linear-gradient(135deg, #FF4500, #FF6347);
        }

        .character-cell-content.rarity-s-plus {
            background: linear-gradient(135deg, #FFA500, #FF8C00);
        }

        /* Filter System */
        .filter-system {
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .filter-row {
            display: flex;
            gap: 30px;
            align-items: flex-start;
            flex-wrap: wrap;
        }

        /* Search Function */
        .search-container {
            position: relative;
            display: flex;
            align-items: center;
            max-width: 300px;
        }

        .search-input {
            width: 100%;
            padding: 10px 40px 10px 15px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
            color: #e0e0e0;
            border-radius: 8px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #7a5af8a1;
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 0 3px rgba(122, 90, 248, 0.1);
        }

        .search-input::placeholder {
            color: rgba(224, 224, 224, 0.6);
        }

        .search-icon {
            position: absolute;
            right: 35px;
            color: rgba(224, 224, 224, 0.6);
            font-size: 0.9rem;
            pointer-events: none;
        }

        .clear-search-btn {
            position: absolute;
            right: 10px;
            background: none;
            border: none;
            color: rgba(224, 224, 224, 0.6);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            display: none;
            transition: all 0.2s ease;
        }

        .clear-search-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #e0e0e0;
        }

        .search-input:not(:placeholder-shown) + .search-icon + .clear-search-btn {
            display: block;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .filter-group label {
            color: #e0e0e0;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .filter-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 8px 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
            color: #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .filter-btn.active {
            background: linear-gradient(135deg, #7a5af8a1, #5a3fb8);
            border-color: #7a5af8a1;
            color: white;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .effects-table-container {
                font-size: 0.9rem;
            }

            .effect-header {
                padding: 10px 5px;
                font-size: 12px;
                width: 200px;
                min-width: 200px;
                max-width: 200px;
            }

            .characters-header {
                padding: 10px 5px;
                font-size: 12px;
            }

            .search-container {
                max-width: 250px;
            }

            .effect-icon-large {
                width: 40px;
                height: 40px;
            }

            .effect-name {
                font-size: 1rem;
            }

            .effect-meta {
                font-size: 0.8rem;
            }

            .character-cell-content {
                width: 84px;
                height: 120px;
            }

            .character-type-icon {
                width: 18px;
                height: 18px;
                padding: 1.5px;
            }

            /* Kleinere Border-Bilder für Mobile */
            .character-cell-content.rarity-l-plus::after,
            .character-cell-content.rarity-s-plus::after,
            .character-cell-content.rarity-l-plus-plus::after {
                width: 48px;
                height: 48px;
            }
        }

        /* Übergangsbereich für kleine Tablets und große Mobile */
        @media (max-width: 1024px) {
            .effects-table-container {
                width: 100vw; /* Volle Viewport-Breite auch in diesem Bereich */
                max-width: 100vw;
                margin: 0;
                padding: 0 15px;
                box-sizing: border-box;
            }
        }

        @media (max-width: 768px) {
            .filter-row {
                flex-direction: column;
                gap: 20px;
            }

            .search-container {
                max-width: 100%;
            }

            /* Mobile: Neue Layout-Struktur - volle Bildschirmbreite nutzen */
            .effects-table-container {
                width: 100vw; /* Volle Viewport-Breite */
                max-width: 100vw; /* Keine maximale Breite */
                margin: 0;
                padding: 0;
                overflow-x: visible;
                box-sizing: border-box;
            }

            .effects-table {
                display: block;
                width: 100%;
                border-collapse: collapse;
            }

            .effects-table thead,
            .effects-table tbody {
                display: block;
                width: 100%;
            }

            .effects-table thead {
                display: none; /* Hide table headers on mobile */
            }

            /* Neue Layout-Struktur für mobile - kein tabellarisches Layout */
            .effect-row {
                display: block;
                width: 100%;
                margin: 20px 0;
                padding: 0;
                border: none;
                background: none;
                box-sizing: border-box;
            }

            .effect-cell {
                display: block;
                width: 100%;
                padding: 0;
                margin: 0;
                border: none;
                position: static;
            }

            /* Effekt-Header oben */
            .effect-info {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 15px;
                padding: 12px 15px;
                background: rgba(255, 255, 255, 0.05);
                border-radius: 8px;
                border-left: 4px solid #7a5af8a1;
                width: 100%;
                box-sizing: border-box;
            }

            .effect-icon-large {
                width: 45px;
                height: 45px;
                flex-shrink: 0;
            }

            .effect-details {
                flex: 1;
            }

            .effect-name {
                font-size: 1.1rem;
                font-weight: 600;
                color: #e0e0e0;
                margin-bottom: 4px;
            }

            .effect-meta {
                font-size: 0.85rem;
                color: #7a5af8a1;
                font-weight: 500;
            }

            /* Characters darunter in flexibler Reihe */
            .characters-cell {
                display: block;
                width: 100%;
                padding: 0;
                margin: 0;
                border: none;
                min-height: auto;
            }

            .characters-container {
                display: grid;
                grid-template-columns: repeat(4, 1fr); /* Explizit 4 Spalten */
                gap: 8px;
                width: 100%;
                padding: 15px;
                background: rgba(255, 255, 255, 0.02);
                border-radius: 8px;
                border: 1px solid rgba(255, 255, 255, 0.1);
                box-sizing: border-box;
            }

            /* Responsive Character Cards - maximal 4 pro Reihe */
            .character-cell-content {
                width: 100%; /* Volle Spaltenbreite nutzen */
                aspect-ratio: 140/200; /* Ursprüngliches Seitenverhältnis beibehalten */
                max-height: 100px; /* Maximale Höhe für mobile Cards */
                min-width: 0; /* Erlaube schmalere Cards */
            }

            .character-cell-content img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center top;
                border-radius: 4px;
                border: 1px solid rgba(255, 255, 255, 0.3);
            }

            .character-type-icon {
                width: 18px;
                height: 18px;
                padding: 1.5px;
            }

            .character-type-icon img {
                width: 100%;
                height: 100%;
                object-fit: contain;
            }

            .no-characters {
                text-align: left;
                padding: 10px 0;
                font-size: 0.8rem;
                width: 100%;
                box-sizing: border-box;
            }
        }

        /* Mittlere mobile Geräte */
        @media (max-width: 650px) {
            /* Mittlere Bildschirme: Volle Breite nutzen */
            .effects-table-container {
                width: 100vw;
                max-width: 100vw;
                margin: 0;
                padding: 0 5px;
            }

            .characters-container {
                gap: 7px;
                padding: 14px;
                width: 100%;
            }

            .character-cell-content {
                /* Grid übernimmt die Breite, Seitenverhältnis beibehalten */
                aspect-ratio: 140/200; /* Ursprüngliches Seitenverhältnis beibehalten */
                max-height: 95px; /* Mittlere Höhe für 650px */
                min-width: 0;
            }

            .effect-icon-large {
                width: 42px;
                height: 42px;
            }

            .effect-name {
                font-size: 1rem;
            }

            .effect-meta {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            /* Kleinere Bildschirme: Volle Breite nutzen */
            .effects-table-container {
                width: 100vw;
                max-width: 100vw;
                margin: 0;
                padding: 0 3px;
            }

            .characters-container {
                gap: 6px;
                padding: 12px;
                width: 100%;
            }

            .character-cell-content {
                /* Grid übernimmt die Breite, Seitenverhältnis beibehalten */
                aspect-ratio: 140/200; /* Ursprüngliches Seitenverhältnis beibehalten */
                max-height: 85px; /* Maximale Höhe für 480px */
                min-width: 0;
            }

            .character-type-icon {
                width: 16px;
                height: 16px;
                padding: 1px;
            }

            .characters-container {
                gap: 6px;
                padding: 12px;
            }

            .effect-row {
                margin: 18px 0;
            }

            .effect-info {
                padding: 10px 12px;
                margin-bottom: 12px;
            }

            .effect-icon-large {
                width: 40px;
                height: 40px;
            }

            .effect-name {
                font-size: 1rem;
            }

            .effect-meta {
                font-size: 0.8rem;
            }

            .filter-system {
                padding: 15px;
            }

            .filter-row {
                gap: 15px;
            }
        }

        /* Extra kleine Bildschirme */
        @media (max-width: 360px) {
            /* Sehr kleine Bildschirme: Volle Breite nutzen */
            .effects-table-container {
                width: 100vw;
                max-width: 100vw;
                margin: 0;
                padding: 0 2px;
            }

            .characters-container {
                gap: 4px;
                padding: 10px;
                width: 100%;
            }

            .character-cell-content {
                /* Grid übernimmt die Breite, Seitenverhältnis beibehalten */
                aspect-ratio: 140/200; /* Ursprüngliches Seitenverhältnis beibehalten */
                max-height: 70px; /* Maximale Höhe für 360px */
                min-width: 0;
            }

            .character-type-icon {
                width: 14px;
                height: 14px;
                padding: 0.5px;
            }

            .characters-container {
                gap: 4px;
                padding: 10px;
            }

            .effect-row {
                margin: 15px 0;
            }

            .effect-info {
                padding: 8px 10px;
                margin-bottom: 10px;
            }

            .effect-icon-large {
                width: 35px;
                height: 35px;
            }

            .effect-name {
                font-size: 0.9rem;
            }

            .effect-meta {
                font-size: 0.75rem;
            }

            .filter-system {
                padding: 10px;
            }

            .filter-row {
                gap: 10px;
            }

            .search-container {
                max-width: 200px;
            }

            .filter-btn {
                padding: 6px 10px;
                font-size: 0.8rem;
            }
        }

/* Desktop Layout - Content with fixed left margin and responsive right margin */
        /* Mobile responsive fixes */
        @media (max-width: 768px) {
            /* Removed - using external guide-base.css */
        }


