.bookmark-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    color: #d9e8f7;
    background: #17202a;
    border: 1px solid rgba(105, 180, 255, 0.35);
    cursor: pointer;
}

.bookmark-button.saved {
    color: #f1c40f;
}

.bookmark-dialog[hidden] {
    display: none;
}

.bookmark-dialog {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.bookmark-dialog-panel {
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid rgba(105, 180, 255, 0.28);
    border-radius: 8px;
    background: #15191e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.bookmark-dialog-header,
.bookmark-new-category {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookmark-dialog-header {
    justify-content: space-between;
    margin-bottom: 18px;
}

.bookmark-dialog-header h2 {
    margin: 0;
    font-size: 19px;
}

.bookmark-dialog-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.bookmark-dialog-panel label {
    display: block;
    margin-bottom: 7px;
    color: #aeb9c4;
    font-size: 13px;
}

.bookmark-dialog-panel select,
.bookmark-dialog-panel input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: #0f1317;
    color: #fff;
}

.bookmark-new-category {
    margin-top: 10px;
}

.bookmark-new-category button,
.bookmark-save {
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 6px;
    background: #4096ff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.bookmark-save {
    width: 100%;
}

.bookmark-message {
    min-height: 34px;
    padding: 9px 0;
    color: #9fb3c8;
    font-size: 13px;
}
/* Container for the slideshow and asset info */
body {
    margin: 0;
    padding: 0;
    background-color: #101010;
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding-top: 100px; /* Reduced padding since header is removed */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.content-container {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 30px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background-color: #101010;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(64, 150, 255, 0.1);
    /* Touch-Gesten aktivieren */
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

/* Enlarged slideshow container */
.slideshow-container.enlarged {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    /* Pinch-to-zoom im Vollbildmodus ermöglichen */
    touch-action: pan-x pan-y pinch-zoom;
}

/* Mobile-optimierter Vollbildmodus */
@media (max-width: 768px) {
    .slideshow-container.enlarged {
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* Dynamische Viewport-Höhe für bessere mobile Unterstützung */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 0;
        background-color: #000;
        z-index: 9999;
        overflow: hidden;
    }
    
    .slideshow-container.enlarged .slideshow-image {
        width: 100%;
        height: calc(100% - 56px);
        max-width: 100%;
        max-height: calc(100% - 56px);
        object-fit: contain;
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
    }
}

/* Asset info container */
.asset-info {
    display: flex;
    flex-direction: column;
    flex: 0 0 420px;
    width: 420px;
    min-width: 320px;
    max-width: 420px;
    padding: 0 0 24px 20px;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    align-self: flex-start;
}

/* Download buttons container */
.download-buttons {
    min-height: 60px;
    display: flex;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(64, 150, 255, 0.2);
    width: 100%;
}

#resolution-select {
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%) !important;
    color: white !important;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 0;
    min-width: 80px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 40px;
}

#resolution-select:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(64, 150, 255, 0.3);
}

#resolution-select:focus {
    box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.5);
    outline: none;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
}

/* Custom dropdown arrow */
.download-buttons::after {
    display: none;
}

/* Style the dropdown options */
#resolution-select option {
    background-color: #2a2a2a !important;
    color: white !important;
    padding: 12px 16px;
    border: none;
    font-weight: 500;
}

#resolution-select option:hover,
#resolution-select option:checked,
#resolution-select option:focus {
    background-color: #4096ff !important;
    color: white !important;
}

#download-button {
    margin: 0;
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#download-button:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
    transform: translateY(-1px);
}

#download-button:hover::before {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

.small-font {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Hide the images by default */
.mySlides {
    display: none;
    width: 100%; /* Bilder passen sich der Breite des Containers an */
    height: 100%; /* Bilder passen sich der Höhe des Containers an */
    object-fit: center; /* Bilder werden skaliert, um den Container zu füllen, wobei das Seitenverhältnis beibehalten wird */
}

/* Image class for the slideshow */
.slideshow-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    display: block;
    margin: auto; /* Center the image horizontally and vertically */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Performance-Optimierung für mobile Geräte */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.slideshow-container.enlarged .slideshow-image {
    width: 100%;
    height: calc(100% - 60px);
    max-width: 100%;
    max-height: calc(100% - 60px);
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    will-change: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Mobile-optimierte Bilddarstellung */
@media (max-width: 768px) {
    .slideshow-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* GPU-beschleunigtes Rendering */
        transform: translate(-50%, -50%) translateZ(0);
    }
    
    .slideshow-container.enlarged .slideshow-image {
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        width: auto;
        height: auto;
        object-fit: contain;
        /* Optimierte Transform für mobile Performance */
        transform: translate(-50%, -50%) translateZ(0);
    }
}

@media (max-width: 480px) {
    .slideshow-image {
        /* Weitere Performance-Optimierung für kleine Bildschirme */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    color: white;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 50%;
    user-select: none;
    background: rgba(10, 10, 20, 0.55);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
}

/* Position the "next button" to the right */
.next {
    right: 14px;
}

.prev {
    left: 14px;
}

/* On hover, add enhanced styling */
.prev:hover, .next:hover {
    background: rgba(64, 150, 255, 0.35);
    border-color: rgba(64, 150, 255, 0.5);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(64, 150, 255, 0.35);
}

.prev:active, .next:active {
    transform: scale(0.95);
}

/* Mobile arrows — slightly larger tap target */
@media (max-width: 768px) {
    .prev, .next {
        width: 48px;
        height: 48px;
        margin-top: -24px;
        font-size: 22px;
        border-color: rgba(255, 255, 255, 0.20);
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    /* Fullscreen – even bigger */
    .slideshow-container.enlarged .prev,
    .slideshow-container.enlarged .next {
        width: 54px;
        height: 54px;
        margin-top: -27px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .prev, .next {
        width: 42px;
        height: 42px;
        margin-top: -21px;
        font-size: 18px;
    }

    .prev { left: 8px; }
    .next { right: 8px; }
}

/* Texture info overlay for slideshow */
.texture-info-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.texture-overlay-type {
    font-size: 12px;
    font-weight: 600;
    color: #4096ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.texture-overlay-resolution {
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Swipe-Indikator für mobile Geräte */
.swipe-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 5;
    pointer-events: none;
    animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .swipe-indicator {
        display: block;
    }
    
    /* Verstecke den Indikator nach ein paar Sekunden */
    .slideshow-container.swipe-used .swipe-indicator {
        display: none;
    }
}

/* Asset name styling */
.Asset-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px;
    text-align: left;
    line-height: 1.25;
}

.patreon-only-notice {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: -8px 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 24, 0.6);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(216, 74, 5, 0.25));
    color: #ffd5bb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Tags section styling */
.tagstitle {
    font-size: 16px;
    color: #aaa;
    text-align: left;
    margin: 20px 0 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slideshow-container.is-3d-view:not(.enlarged) {
    aspect-ratio: auto;
    height: clamp(520px, 75svh, 680px);
}

#slideshow-container.is-3d-view #iframe-3d-container {
    position: absolute;
    top: 56px;
    bottom: 56px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100% - 112px);
    z-index: 15;
}

@media (max-width: 768px) {
    .slideshow-container:not(.enlarged):not(.is-3d-view) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        aspect-ratio: auto;
        height: auto;
    }

    .slideshow-container:not(.enlarged):not(.is-3d-view) #content-container {
        position: relative;
        grid-column: 1 / -1;
        grid-row: 1;
        aspect-ratio: 1;
        min-width: 0;
    }

    .slideshow-container:not(.enlarged):not(.is-3d-view) #thumbnail-strip {
        position: static;
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        width: 100%;
    }

    .slideshow-container:not(.enlarged):not(.is-3d-view) :is(#button-3d, #enlarge-button) {
        position: static;
        grid-row: 3;
        transform: none;
        min-width: 0;
        width: 100%;
        height: 44px;
    }

    .slideshow-container:not(.enlarged):not(.is-3d-view) .swipe-indicator { display: none; }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag-item {
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.2) 0%, rgba(0, 102, 204, 0.2) 100%);
    color: #4096ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(64, 150, 255, 0.3);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.3) 0%, rgba(0, 102, 204, 0.3) 100%);
    transform: translateY(-1px);
}

/* Textures section styling */
.textures-section {
    margin: 30px 0;
}

.textures-title {
    font-size: 16px;
    color: #aaa;
    text-align: left;
    margin: 20px 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.textures-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.texture-resolution-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
}

.texture-resolution-title {
    font-size: 14px;
    color: #4096ff;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.textures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.texture-item {
    display: flex;
    flex-direction: column;
    background: rgba(64, 150, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(64, 150, 255, 0.2);
    transition: all 0.3s ease;
}

.texture-item:hover {
    background: rgba(64, 150, 255, 0.15);
    transform: translateY(-1px);
}

.texture-type {
    font-size: 10px;
    color: #4096ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.texture-name {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    word-break: break-all;
}

/* Models section styling */
.models-section {
    margin: 30px 0;
}

.models-title {
    font-size: 16px;
    color: #aaa;
    text-align: left;
    margin: 20px 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.models-list {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.model-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
}

.model-item:hover {
    background: rgba(255, 140, 0, 0.15);
    transform: translateY(-1px);
}

.model-type {
    font-size: 10px;
    color: #ff8c00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.model-name {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    word-break: break-all;
}

/* Textures list container */
#textures-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Assets Grid - For selectable texture maps */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.asset-item {
    display: flex;
    flex-direction: column;
    background: rgba(64, 150, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(64, 150, 255, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.asset-item.selectable-map {
    cursor: pointer;
    user-select: none;
}

.asset-item.selectable-map:hover {
    background: rgba(64, 150, 255, 0.2);
    transform: translateY(-1px);
}

.asset-item.selectable-map.selected {
    background: #007acc;
    border-color: #007acc;
}

.asset-item.selectable-map.selected:hover {
    background: #005a9e;
}

.asset-type {
    font-size: 10px;
    color: #4096ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.asset-item.selectable-map.selected .asset-type {
    color: white;
}

.asset-name {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    word-break: break-all;
}

.asset-item.selectable-map.selected .asset-name {
    color: white;
}

/* Download Graph Styling - Modern design */
.download-graph-container {
    position: relative;
    margin-top: 20px;
    width: 100%;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 20px 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.graph-title {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.graph-svg {
    width: 100%;
    height: auto;
}

.graph-axis {
    stroke: rgba(64, 150, 255, 0.3);
    stroke-width: 1;
}

.graph-line {
    stroke: #4096ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(64, 150, 255, 0.3));
}

.graph-point {
    fill: #4096ff;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(64, 150, 255, 0.4));
}

.graph-point:hover {
    fill: #00aaff;
    r: 5;
    filter: drop-shadow(0 4px 8px rgba(64, 150, 255, 0.6));
}

.graph-label-text {
    fill: #888;
    font-size: 9px;
    font-weight: 500;
}

.graph-tooltip {
    position: fixed;
    display: none;
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.95) 0%, rgba(0, 102, 204, 0.95) 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    z-index: 100;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(64, 150, 255, 0.4);
    backdrop-filter: blur(10px);
}

/* Patrons wall above Other Assets */
.patron-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 20px 12px;
}

.patron-wall-item {
    background: linear-gradient(145deg, #1e1e24 0%, #17171d 100%);
    border: 1px solid rgba(64, 150, 255, 0.15);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    transition: none;
}

.patron-wall-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.patron-wall-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patron-wall-name {
    color: #f0f0f0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.patron-wall-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #7f7f7f;
    padding: 18px 10px;
}

.patreon-support-cta-wrap {
    margin: 8px 20px 24px;
    display: flex;
    justify-content: center;
}

.patreon-support-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    border: 1px solid rgba(64, 150, 255, 0.4);
    box-shadow: 0 8px 24px rgba(64, 150, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.patreon-support-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(64, 150, 255, 0.45);
    filter: brightness(1.06);
}

.patreon-support-cta:active {
    transform: translateY(0);
}

/* Other assets container */
.other-assets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 20px;
    padding: 0;
}

/* Other asset item */
.other-asset-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid rgba(64, 150, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.other-asset-item:hover {
    transform: translateY(-8px) scale(1.02);
    border: 1px solid rgba(64, 150, 255, 0.5);
    box-shadow: 0 20px 60px rgba(64, 150, 255, 0.2);
}

/* Other asset image */
.other-asset-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 16px 16px 0 0;
}

.other-asset-item:hover .other-asset-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Other asset name */
.other-asset-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 0 0 16px 16px;
    transition: all 0.3s ease;
}

.other-asset-item:hover .other-asset-name {
    background: linear-gradient(180deg, transparent 0%, rgba(64, 150, 255, 0.9) 100%);
}

/* Patreon badge on Other Assets cards */
.other-asset-patreon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.9), rgba(216, 74, 5, 0.9));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 24, 0.5);
    pointer-events: none;
    z-index: 5;
}

/* Asset category label in the right sidebar */
#asset-category {
    text-align: left;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 6px;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
    overflow-wrap: anywhere;
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #4096ff;
    order: -1;
}

/* Center and style the "Other Assets" text */
h2 {
    text-align: center;
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin: 60px 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4096ff 0%, #0066cc 100%);
    border-radius: 2px;
}

/* Separator */
.separator {
    height: 80px;
    background: linear-gradient(90deg, transparent 0%, rgba(64, 150, 255, 0.1) 50%, transparent 100%);
    margin: 40px 0;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4096ff 50%, transparent 100%);
}

/* Modern button styling for 3D, enlarge, and close buttons */
.button-3d, .enlarge-button, .close-button {
    background: rgba(10, 10, 20, 0.60);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    position: absolute;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 20;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.button-3d:hover, .enlarge-button:hover {
    background: rgba(64, 150, 255, 0.30);
    border-color: rgba(64, 150, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(64, 150, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button-3d:active, .enlarge-button:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.close-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    background: rgba(220, 30, 30, 0.65);
    border-color: rgba(255, 80, 80, 0.4);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(200, 0, 0, 0.35);
}

.close-button:active {
    transform: scale(0.94);
}

.button-3d {
    bottom: 14px;
    right: 165px;
}

.enlarge-button {
    bottom: 14px;
    right: 14px;
}

.close-button {
    top: 12px;
    right: 12px;
}

/* 3D close button sits on the LEFT so it never overlaps the fullscreen close */
#close-3d-button {
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 21;
}

/* Mobile Button Design — Frosted Glass Pill Buttons */
@media (max-width: 768px) {
    /* Centered frosted glass pill design */
    .button-3d, .enlarge-button {
        background: rgba(10, 10, 20, 0.70) !important;
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        border-radius: 50px;
        height: 42px;
        padding: 0 18px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.92);
        bottom: 14px;
        transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
        white-space: nowrap;
    }

    /* 3D button — left of center, blue tint */
    .button-3d {
        right: auto;
        left: 50%;
        transform: translateX(calc(-100% - 8px));
        border-color: rgba(64, 150, 255, 0.45) !important;
        color: #90caff;
    }

    .button-3d:hover, .button-3d:active {
        background: rgba(64, 150, 255, 0.28) !important;
        box-shadow: 0 4px 20px rgba(64, 150, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: translateX(calc(-100% - 8px)) scale(0.96);
    }

    /* Fullscreen button — right of center */
    .enlarge-button {
        left: calc(50% + 8px);
        right: auto;
    }

    .enlarge-button:hover, .enlarge-button:active {
        background: rgba(255, 255, 255, 0.18) !important;
        transform: scale(0.96);
    }

    /* Close button — circular, top-right */
    .close-button {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        font-size: 15px;
        letter-spacing: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(10, 10, 20, 0.70) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    }

    /* Close button in fullscreen — red, larger tap target */
    .slideshow-container.enlarged .close-button {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 18px;
        z-index: 10001;
        background: rgba(175, 20, 20, 0.78) !important;
        border-color: rgba(255, 80, 80, 0.4) !important;
    }

    /* 3D close button stays as normal top-right X */
    .slideshow-container.enlarged #close-3d-button {
        top: 15px;
        right: 15px;
        left: auto;
        z-index: 10001;
    }

    .slideshow-container.enlarged .close-button:hover,
    .slideshow-container.enlarged .close-button:active {
        background: rgba(220, 30, 30, 0.92) !important;
    }
}

@media (max-width: 480px) {
    .button-3d, .enlarge-button {
        height: 38px;
        padding: 0 14px;
        font-size: 10px;
        bottom: 10px;
    }

    .button-3d {
        transform: translateX(calc(-100% - 6px));
    }

    .button-3d:hover, .button-3d:active {
        transform: translateX(calc(-100% - 6px)) scale(0.96);
    }

    .enlarge-button {
        left: calc(50% + 6px);
    }

    .close-button {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .slideshow-container.enlarged .close-button {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 3D Viewer iframe container */
.iframe-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 15;
    border-radius: 16px;
    overflow: hidden;
    /* Performance-Optimierung */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* When slideshow is enlarged, iframe container should also be fullscreen */
.slideshow-container.enlarged .iframe-3d-container {
    border-radius: 0;
}

.iframe-3d {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Performance-Optimierung für iframe */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Mobile-optimierte 3D-Viewer-Darstellung */
@media (max-width: 768px) {
    .iframe-3d-container {
        border-radius: 12px;
    }
    
    .slideshow-container.enlarged .iframe-3d-container {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        z-index: 9999;
    }
    
    .slideshow-container.enlarged .iframe-3d {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .iframe-3d-container {
        border-radius: 8px;
    }
}

.tags {
    font-size: 14px;
    color: #aaa;
    text-align: left;
    margin-top: 10px; /* Add margin to create space below the asset name */
    position: relative; /* Change position to relative */
    bottom: auto; /* Reset bottom property */
    left: 0; /* Ensure the tags are aligned to the left */
}

.tagstitle {
    font-size: 20px;
    color: #aaa;
    text-align: left;
    margin-top: 10px; /* Add margin to create space below the asset name */
    position: relative; /* Change position to relative */
    bottom: auto; /* Reset bottom property */
    left: 0; /* Ensure the tag title is aligned to the left */
}

/* Download Statistics Styling */
.stats-title {
    font-size: 20px;
    color: #aaa;
    text-align: left;
    margin-top: 20px;
    position: relative;
    left: 0;
}

.download-stats {
    font-size: 14px;
    color: #aaa;
    text-align: left;
    margin-top: 20px;
    position: relative;
    left: 0;
}

.download-stats-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(64, 150, 255, 0.1);
    margin-bottom: 15px;
}

.stats-text {
    margin: 8px 0;
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
}

.stats-text strong {
    color: #4096ff;
    font-weight: 600;
}

/* Download Graph Styling - PolyHaven inspired */
.download-graph-container {
    position: relative;
    margin-top: 30px;
    margin-bottom: 15px;
    width: 85%;
    height: auto;
    background-color: #1d1d1d;
    border-radius: 5px;
    padding: 15px 10px;
    overflow: hidden;
}

.download-graph {
    width: 100%;
    height: 100%;
}

.graph-title {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    margin-bottom: 5px;
}

.graph-svg {
    width: 100%;
    height: auto;
}

.graph-axis {
    stroke: #444;
    stroke-width: 1;
}

.graph-line {
    stroke: #0056b3;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.graph-point {
    fill: #0088ff;
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.2s;
}

.graph-point:hover {
    fill: #00aaff;
    r: 4;
}

.graph-label-text {
    fill: #888;
    font-size: 8px;
}

.graph-tooltip {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 100;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .content-container {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .slideshow-container {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0;
        border-radius: 12px;
        order: 1;
        touch-action: pan-y pinch-zoom;
    }

    .asset-info {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: auto;
        padding: 16px 0 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        order: 2;
        box-sizing: border-box;
    }

    .download-buttons {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        box-sizing: border-box;
    }

    #resolution-select {
        border-radius: 8px 8px 0 0;
        min-height: 50px;
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
    }

    #download-button {
        border-radius: 0 0 8px 8px;
        min-height: 60px;
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
    }

    .Asset-name {
        font-size: 22px;
        text-align: center;
        margin-bottom: 15px;
    }

    #asset-category {
        font-size: 1.25rem;
        margin: 0 0 4px;
    }

    .tagstitle {
        font-size: 16px;
        margin: 15px 0 8px 0;
        text-align: center;
    }

    .tags {
        justify-content: center;
        margin-bottom: 20px;
    }

    .tag-item {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* 4K Assets Grid - Auf Mobile ausgeblendet */
    #textures-title,
    #textures-list {
        display: none !important;
    }

    .assets-grid {
        display: none !important;
    }

    .asset-item {
        display: none !important;
    }

    .asset-type {
        display: none !important;
    }

    .asset-name {
        display: none !important;
    }

    /* Download Statistics */
    .download-stats {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .download-stats-content {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .stats-text {
        font-size: 12px;
        margin: 6px 0;
    }

    /* Download Graph */
    .download-graph-container {
        margin: 15px 0;
        padding: 12px 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .graph-title {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .graph-svg {
        max-width: 100%;
        width: 100%;
    }

    /* Other Assets */
    .patron-wall {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
        margin: 20px 10px 10px;
    }

    .patron-wall-item {
        padding: 12px 8px;
    }

    .patron-wall-avatar {
        width: 48px;
        height: 48px;
    }

    .patron-wall-name {
        font-size: 12px;
    }

    .patreon-support-cta-wrap {
        margin: 8px 10px 18px;
    }

    .patreon-support-cta {
        width: 100%;
        max-width: 320px;
        font-size: 13px;
        padding: 11px 18px;
    }

    .other-assets {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
        margin: 20px 10px;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .other-asset-image {
        height: 180px;
        /* Performance-Optimierung */
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .other-asset-name {
        font-size: 14px;
        padding: 15px;
    }

    h2 {
        font-size: 26px;
        margin: 30px 0 20px;
        color: white !important;
    }

    h2::after {
        width: 60px;
    }

    /* Button styles handled in dedicated button media query above */
}

@media (max-width: 1600px) {
    /* No overrides needed — flex layout handles sizing naturally */
}

/* Custom styling for select dropdown when opened */
#resolution-select:focus {
    box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.5);
    outline: none;
}

/* Webkit specific styling for select */
#resolution-select::-webkit-scrollbar {
    width: 8px;
}

#resolution-select::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

#resolution-select::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    border-radius: 4px;
}

#resolution-select::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

/* Tablet Breakpoint — start stacking at 900px */
@media (max-width: 900px) and (min-width: 769px) {
    .content-container {
        flex-direction: column;
        gap: 16px;
        padding: 15px;
    }

    .slideshow-container {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .asset-info {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 16px 0 0;
    }
}

@media (max-width: 1024px) and (min-width: 901px) {
    .content-container {
        gap: 20px;
        padding: 20px 15px;
    }

    .asset-info {
        flex: 0 0 360px;
        width: 360px;
        min-width: 280px;
        max-width: 360px;
    }

    .button-3d {
        right: 100px;
        padding: 10px 14px;
        font-size: 11px;
    }

    .enlarge-button {
        padding: 10px 14px;
        font-size: 11px;
    }
}

/* Small Mobile Devices (unter 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .content-container {
        padding: 12px;       /* matches 480px asset-info side padding */
        gap: 12px;
    }

    .slideshow-container {
        border-radius: 10px; /* rounded to match asset-info */
        width: 100%;
        margin: 0;
    }

    .asset-info {
        padding: 15px 12px;
        border-radius: 10px;
    }

    .Asset-name {
        font-size: 18px;
    }

    #asset-category {
        font-size: 1.25rem;
    }

    /* 4K Assets Grid - Auch auf sehr kleinen Bildschirmen ausgeblendet */
    #textures-title,
    #textures-list {
        display: none !important;
    }

    .assets-grid {
        display: none !important;
    }

    .asset-item {
        display: none !important;
    }

    .asset-type {
        display: none !important;
    }

    .asset-name {
        display: none !important;
    }

    .tag-item {
        font-size: 10px;
        padding: 4px 8px;
    }

    .download-stats-content {
        padding: 10px;
    }

    .stats-text {
        font-size: 11px;
    }

    .other-assets {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    h2 {
        font-size: 22px;
    }

    /* Button styles handled in dedicated button media query above */

    .download-buttons {
        margin-bottom: 15px;
    }

    #resolution-select,
    #download-button {
        font-size: 14px;
    }
}