/* Desktop Layout - Content with fixed left margin and responsive right margin */
        /* Mobile responsive fixes for character page */
        /* Character Header Styles */
        .character-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            margin-bottom: 40px;
            padding: 30px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .character-main-info {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .character-name-row {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 10px;
        }

        .character-name-row h1 {
            margin: 0;
        }

        .character-tiers {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 200px;
        }

        .tier-badge {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 0.9rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }


        /* Tier value colors matching the tier list */
        .tier-ss { background-color: #ec6563 !important; color: white !important; }
        .tier-s { background-color: #ff7f7f !important; color: white !important; }
        .tier-a { background-color: #ffbf7f !important; color: white !important; }
        .tier-b { background-color: #6bcf7f !important; color: white !important; }
        .tier-c { background-color: #4d96ff !important; color: white !important; }
        .tier-d { background-color: #9c88ff !important; color: white !important; }

        .tier-label {
            font-weight: bold;
        }

        .character-portrait-container {
            position: relative;
            border-radius: 4px;
            overflow: hidden;
        }

        /* S+ characters: container size matches image size */
        .character-portrait-container.rarity-s-plus {
            width: 150px;
            height: 200px;
        }

        .character-portrait {
            width: 150px;
            height: 200px;
            border-radius: 4px;
            object-fit: cover;
            position: relative;
            z-index: 2;
        }

        .character-info h1 {
            color: #e0e0e0;
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .rarity-stars {
            display: flex;
            gap: 5px;
            margin-bottom: 15px;
        }

        .rarity-star {
            width: 24px;
            height: 24px;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .rarity-star.active {
            color: #ffd700;
        }

        .rarity-star svg {
            width: 100%;
            height: 100%;
        }

        .character-type {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .character-type img {
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        /* Section Styles */
        .character-section {
            margin-bottom: 50px;
            padding: 30px;
            background: transparent;
            border-radius: 4px;
            border: none;
            width: 100%;
            box-sizing: border-box;
        }

        .character-section h2 {
            color: #e0e0e0;
            font-size: 1.8rem;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .character-section h2::before {
            content: '';
            width: 4px;
            height: 24px;
            background: linear-gradient(135deg, #7a5af8a1, #5a3fb8);
            border-radius: 4px;
        }

        /* Skills Grid */
        .skills-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .skill-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .skill-header {
            margin-bottom: 15px;
        }


        .skill-info {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .skill-info h3 {
            color: #e0e0e0;
            margin: 0 0 5px 0;
            font-size: 1.3rem;
        }

        .skill-type {
            color: #7a5af8a1;
            font-size: 0.9rem;
            font-weight: bold;
            text-transform: uppercase;
        }

        .skill-description {
            color: #cccccc;
            line-height: 1.6;
            margin-bottom: 15px;
            min-height: 150px;
        }

        .skill-enhancement,
        .transcendence-effects,
        .effect-descriptions {
            margin-top: 0px;
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .skill-enhancement h4,
        .transcendence-effects h4,
        .effect-descriptions h4 {
            color: #e0e0e0;
            margin: 0 0 8px 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .enhancement-content,
        .transcendence-content,
        .effects-content {
            color: #cccccc;
            line-height: 1.5;
            font-size: 0.9rem;
        }

        /* Build Section */
        .build-section {
            width: 100%;
        }

        .build-grid {
            display: flex;
            flex-direction: column;
            gap: 40px;
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 0;
        }

        .build-container {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 20px;
        }

        .build-title {
            color: #ffffff;
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 12px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            background: linear-gradient(135deg, rgba(122, 90, 248, 0.1), rgba(90, 63, 184, 0.1));
            padding: 15px 20px;
            border-radius: 8px;
            border: 2px solid rgba(122, 90, 248, 0.3);
        }

        .build-title::before {
            content: '';
            width: 6px;
            height: 32px;
            background: linear-gradient(135deg, #7a5af8a1, #5a3fb8);
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(122, 90, 248, 0.5);
        }

        .build-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .equipment-category {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            box-sizing: border-box;
            min-height: 200px;
        }

        .equipment-category h3 {
            color: #e0e0e0;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .equipment-slots {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .equipment-slot {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            padding: 15px;
            min-height: 80px;
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 10px;
        }

        .equipment-icon {
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            background-size: contain, cover !important;
            background-position: center, center !important;
            background-repeat: no-repeat, no-repeat !important;
            border: 1px solid rgba(255, 255, 255, 0.2);
            flex-shrink: 0;
            position: relative;
        }

        .gear-type-icon {
            position: absolute;
            bottom: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            z-index: 10;
        }

        .equipment-info {
            flex: 1;
        }

        .equipment-info h4 {
            color: #e0e0e0;
            margin: 0 0 8px 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .equipment-info p {
            color: #cccccc;
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .main-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
        }

        .main-stat {
            background: rgba(76, 175, 80, 0.2);
            color: #81c784;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .stat-icon {
            width: 16px;
            height: 16px;
            vertical-align: middle;
            font-weight: 600;
        }

        .special-stat {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
            border: 1px solid rgba(255, 193, 7, 0.3);
        }

        .special-stats {
            margin-top: 10px;
        }

        .special-stats h5 {
            color: #e0e0e0;
            font-size: 0.9rem;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .special-stats-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .sub-stat-priority {
            grid-column: 1 / -1;
            margin-top: 20px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            box-sizing: border-box;
        }

        .sub-stat-priority h3 {
            color: #e0e0e0;
            margin: 0 0 15px 0;
            font-size: 1.3rem;
        }

        .priority-list {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 15px;
            width: 100%;
        }

        .priority-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            flex: 0 0 auto;
            box-sizing: border-box;
        }

        .priority-rank {
            color: #ffffff;
            font-weight: bold;
            font-size: 1.1rem;
            min-width: 20px;
        }

        .priority-rank:empty {
            min-width: 0;
        }

        .priority-stat {
            color: #cccccc;
            font-size: 0.95rem;
        }

        /* Team Comps Section */
        .team-comps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .team-comp-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .team-comp-header h3 {
            color: #e0e0e0;
            margin-bottom: 10px;
        }

        .team-members {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .team-member {
            width: 40px;
            height: 50px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Skins Gallery */
        .skins-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .skin-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .skin-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .skin-info {
            padding: 15px;
        }

        .skin-info h3 {
            color: #e0e0e0;
            margin: 0;
            font-size: 1.1rem;
        }

        /* Loading and Error States */
        .loading {
            text-align: center;
            color: #cccccc;
            padding: 50px;
        }

        .error {
            text-align: center;
            color: #ff6b6b;
            padding: 50px;
        }



        /* Character Portrait Rarity Backgrounds */
        .character-portrait-container.rarity-r { background: linear-gradient(135deg, #8A2BE2, #4B0082); }
        .character-portrait-container.rarity-l { background: linear-gradient(135deg, #FFD700, #FFA500); }
        .character-portrait-container.rarity-l-plus { background: linear-gradient(135deg, #FFA500, #FF8C00); }
        .character-portrait-container.rarity-l-plus-plus { background: linear-gradient(135deg, #FF4500, #FF6347); }
        .character-portrait-container.rarity-s-plus { background: linear-gradient(135deg, #FFA500, #FF8C00); }

        /* Rarity Border Images */
        .character-portrait-container.rarity-l-plus::after,
        .character-portrait-container.rarity-s-plus::after {
            content: '';
            position: absolute;
            top: 0px;
            right: 0px;
            width: 60px;
            height: 60px;
            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-portrait-container.rarity-l-plus-plus::after {
            content: '';
            position: absolute;
            top: 0px;
            right: 0px;
            width: 60px;
            height: 60px;
            background-image: url('https://ik.imagekit.io/frnrxcqkq/7krebirth/LPlusPlusBorder.png');
            background-size: contain;
            background-repeat: no-repeat;
            z-index: 30;
            pointer-events: none;
        }

        /* Skill Description Formatting */
        .skill-bracket {
            color: #ff6b6b;
            font-weight: 600;
        }

        .skill-percentage {
            color: #ff9800;
            font-weight: 600;
        }

        .skill-grants {
            color: #4caf50;
            font-weight: 600;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .character-header {
                flex-direction: column;
                text-align: center;
                gap: 20px;
            }

            .character-main-info {
                flex-direction: column;
                gap: 20px;
            }

            .character-tiers {
                min-width: unset;
                width: 100%;
            }

            .tier-badge {
                justify-content: center;
                text-align: center;
            }

            .character-name-row {
                justify-content: center;
            }

            .character-portrait {
                width: 120px;
                height: 160px;
            }

            .character-info h1 {
                font-size: 2rem;
            }

            .skills-grid {
                grid-template-columns: 1fr;
            }

            .build-grid {
                grid-template-columns: 1fr;
            }

            .team-comps-grid {
                grid-template-columns: 1fr;
            }

            .skins-gallery {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }
        }


