/* pure CSS dropdown*/
.dropdown-toggle {
    display: inline-block;
}

.dropdown-menu {
    display: none;
    max-height: 30rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-toggle:hover + .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-toggle:active + .dropdown-menu,
.dropdown-toggle:focus + .dropdown-menu {
    display: block;
}

.dropdown-menu *:active,
.dropdown-menu *:focus {
    display: block;
}

.nav-link-split {
    color: rgba(255,255,255,.55);
    text-decoration: none;
}

.nav-link-split:hover {
    color: rgba(255,255,255,.75);
}

.search-autocomplete {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.search-suggestions .list-group-item {
    padding: 0.5rem 0.75rem;
}

.search-suggestions .suggestion-title {
    display: block;
    font-weight: 600;
}

.search-suggestions .suggestion-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.navbar-brand .brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.navbar.navbar-dark.bg-dark {
    background-color: #23272a !important;
}

.card-header {
    background-color: #23272a;
    color: #fff;
    border-color: #1c1f23;
}

.theme-switch .form-check-input {
    cursor: pointer;
    width: 2.6rem;
    height: 1.4rem;
}

.theme-switch .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.theme-switch .form-check-label {
    margin-left: 0.4rem;
    color: #f8f9fa;
}

/* hide teasered thumbnails on mobile */
@media (max-width: 991.98px) {
    .teasered-thumbnails {
        display: none;
    }
}

@media (min-width: 992px) {
    .teasered-thumbnails {
        min-height: 255px;
    }
}

/* hide teasered thumbnails small on mobile */
@media (max-width: 991.98px) {
    .teasered-thumbnails-small {
        display: none;
    }
}

@media (min-width: 992px) {
    .teasered-thumbnails-small {
        min-height: 172px;
        margin-top: -1em;
    }
}

/* pure CSS cover hover popup */
td .image-preview-container {
    position: relative; /* Container für Bild und Text */
    display: inline-block;
}

td .preview-image {
    display: none;
    width: 150px;
    position: absolute;
    top: 0; /* Setzt das Bild oben im Container */
    transform: translateX(-110%); /* Positioniert das Bild links neben der Tabellenzelle */
    z-index: 100;
}

td .preview-text {
    display: none;
    width: 150px;
    background-color: rgba(0, 0, 0, 0.7); /* Dunkler Hintergrund für den Textbalken */
    color: #fff;
    text-align: center;
    padding: 2px 0;
    position: absolute;
    /*bottom: -80px; !* Positioniert den Text unter dem Bild *!*/
    transform: translateX(-110%);
    z-index: 101;
    font-size: 10px;
}

@media (min-width: 1400px) {
    td a:hover .preview-image {
        display: block;
    }

    td a:hover .preview-text {
        display: block;
    }
}

.upload-link {
    color: black;
}

.upload-link:hover {
    color: #3b5cff;
}

.upload-link-lang-image {
    vertical-align: unset;
    padding-left: 2px;
}

.cover {
    width: 100%;
    height: auto;
}

.nfo {
    white-space: pre-wrap;
    word-break: break-all;
    height: 15.4em;
    font-size: 0.75rem;
    overflow-y: hidden;
    background-image: linear-gradient(#212529 60%, white);
    position: relative;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.nfo-big {
    height: auto;
    background-image: unset;
    color: #212529;
}

.theme-dark .nfo {
    background-image: linear-gradient(#9da7b3 60%, #d0d6df);
}

.theme-dark .nfo-big {
    color: #c9d1d9;
}

.show-more {
    position: absolute;
    bottom: 0.25em;
    right: 0;
    text-decoration: underline;
    cursor: pointer;
}

.nfo > .show-more:before {
    content: "NFO komplett anzeigen...";
}

.nfo-big > .show-more:before {
    content: "Weniger anzeigen...";
}

.text-regular {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

@media (pointer: fine) {
    .table-ssm > :not(caption) > * > * {
        padding: .1rem .1rem;
    }
}

.font-size-sm {
    font-size: .875rem;
}

.button-warezkorb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #3c99e6, #2c6fba);
    color: #0a1e33;
    border: 1px solid #245c9c;
    box-shadow: 0 3px 6px rgba(44, 128, 204, 0.2);
    transition: all 0.15s ease-in-out;
    font-size: 0.8rem;
    font-weight: 600;
}

.button-warezkorb--active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #0f2918;
    border-color: #1f8a4c;
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.3);
}

.warezkorb-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #0f2918;
    border: 1px solid #1f8a4c;
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.3);
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.warezkorb-cta:hover,
.warezkorb-cta:focus {
    background: linear-gradient(135deg, #34d399, #22c55e);
    color: #0f2918;
    box-shadow: 0 12px 20px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

@media (min-width: 990px) {
    .button-warezkorb:hover {
        background: linear-gradient(135deg, #1fd2ec, #12bfd6);
        cursor: pointer;
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(25, 196, 221, 0.32);
        user-select: none;
    }

    .button-warezkorb--active:hover {
        background: linear-gradient(135deg, #34d399, #22c55e);
        box-shadow: 0 12px 20px rgba(34, 197, 94, 0.35);
    }

    .button-warezkorb-big:hover {
        /* background: rgba(0,0,0,0); */
        /* cursor: revert; */
        /* color: rgb(108, 117, 125); */
        /* user-select: none; */
        box-shadow: none;
    }

    .button-warezkorb-big:focus {
        box-shadow: none !important;
    }
}
@media (max-width: 989.98px) {
    .button-warezkorb {
        display: none;
    }
}

.badge-mirror {
    margin-left: 1px;
    display: none;
}

.background-rapidgator {
    background-color: #ff801a;
    display: inline-block;
}

.label-rapidgator::before {
    content: "RG";
}

.background-katfile {
    background-color: #0c52a8;
    display: inline-block;
}

.label-katfile::before {
    content: "K";
}

.background-ddownload {
    background-color: #153fa6;
    display: inline-block;
}

.label-ddownload::before {
    content: "D";
}

.background-drop {
    background-color: #15a6a1;
    display: inline-block;
}

.label-drop::before {
    content: "D";
}

.background-dropdownload {
    background-color: #15a6a1;
    display: inline-block;
}

.label-dropdownload::before {
    content: "D";
}

.background-uploaded {
    background-color: #17589f;
    display: inline-block;
}

.label-uploaded::before {
    content: "U";
}

.background-nitroflare {
    background-color: #006ca2;
    display: inline-block;
}

.label-nitroflare::before {
    content: "N";
}

.background-turbobit {
    background-color: rgba(242,167,4,1);
    display: inline-block;
}

.label-turbobit::before {
    content: "T";
}

.background-anonfiles {
    background-color: rgba(59,59,59,1);
    display: inline-block;
}

.label-anonfiles::before {
    content: "A";
}

.background-fastclick {
    background-color: rgba(153,83,255,1);
    display: inline-block;
}

.label-fastclick::before {
    content: "F";
}

.background-filebit\.net {
    background-color: #12cd19;
    display: inline-block;
}

.label-filebit\.net::before {
    content: "FB";
}

.background-fikper {
    background-color: #0d47a1;
    display: inline-block;
}

.label-fikper::before {
    content: "FI";
}

.background-metaraid {
    background-color: #f5656f;
    display: inline-block;
}

.label-metaraid::before {
    content: "MR";
}

.background-uploady {
    background-color: #1548a6;
    display: inline-block;
}

.label-uploady::before {
    content: "UY";
}

.background-uploadg {
    background-color: #2563eb;
    display: inline-block;
}

.label-uploadg::before {
    content: "UG";
}

.background-1fichier {
    background-color: #d38a0a;
    display: inline-block;
}

.label-1fichier::before {
    content: "1F";
}

.thumbnail-wrapper {
    width: 100%;  /* Flexibel auf 100% der Spaltenbreite */
    max-width: 164px;  /* Maximale Breite */
    height: 254px;  /* Höhe automatisch */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-wrapper-small {
    width: 100%;  /* Flexibel auf 100% der Spaltenbreite */
    max-width: 120px;  /* Maximale Breite */
    height: 172px;  /* Höhe automatisch */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-category-cover {
    margin: 0 auto;
}

.homepage-category-covers--music {
    min-height: 104px;
    align-items: flex-start;
}

.homepage-category-cover--music {
    max-width: 96px;
    height: 96px;
    border-radius: 8px;
}

.thumbnail-wrapper-small.homepage-category-cover--music::before {
    border-radius: 8px;
}

.thumbnail-img-small.homepage-category-cover-img--music {
    border-radius: 8px;
}

.thumbnail-wrapper,
.thumbnail-wrapper-small {
    transition: box-shadow 0.35s ease;
    isolation: isolate;
}

.thumbnail-wrapper::before,
.thumbnail-wrapper-small::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background:
        radial-gradient(circle at 20% 20%, rgba(79, 195, 247, 0.25), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(59, 92, 255, 0.2), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.14), transparent 55%);
    opacity: 0;
    filter: blur(14px);
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.thumbnail-img,
.thumbnail-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-wrapper:hover,
.thumbnail-wrapper-small:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 18px rgba(79, 195, 247, 0.35), 0 0 36px rgba(59, 92, 255, 0.3);
}

.thumbnail-wrapper:hover::before,
.thumbnail-wrapper-small:hover::before {
    opacity: 1;
    transform: scale(1);
}

.thumbnail-wrapper:hover .thumbnail-img,
.thumbnail-wrapper-small:hover .thumbnail-img-small {
    transform: scale(1.1);  /* Zoomt das Bild auf 110% der Originalgröße */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.homepage-category-cover--music:hover .thumbnail-img-small {
    transform: scale(1.08);
}

/* Category view switch and cover grid */
.category-layout-switch-item,
.category-sort-item {
    display: flex;
    align-items: center;
}

.category-layout-switch {
    white-space: nowrap;
}

.category-layout-switch .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 31px;
    border-radius: 6px;
    font-weight: 600;
}

.category-sort-item {
    margin-left: 0.65rem;
}

.category-cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-cover-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0.15rem 0.45rem rgba(33, 37, 41, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-cover-card:hover {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 0.6rem 1.2rem rgba(33, 37, 41, 0.15);
    transform: translateY(-2px);
}

.category-cover-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #e9ecef;
}

.category-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.category-cover-card:hover .category-cover-image {
    transform: scale(1.04);
}

.category-cover-time {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: rgba(35, 39, 42, 0.86);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.category-cover-body {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem;
}

.category-cover-title {
    display: -webkit-box;
    min-height: 2.2rem;
    overflow: hidden;
    color: #212529;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.28;
    text-decoration: none;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-cover-title:hover,
.category-cover-title:focus {
    color: #0d6efd;
}

.category-cover-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1rem;
    color: #6c757d;
    font-size: 0.75rem;
}

.category-cover-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-cover-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    color: #6c757d;
    font-size: 0.75rem;
}

.category-cover-size {
    flex: 0 0 auto;
    font-weight: 600;
}

.category-cover-hosters {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.category-cover-footer .button-warezkorb {
    flex: 0 0 auto;
}

.category-empty-state {
    grid-column: 1 / -1;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    background: #fff;
}

@media (min-width: 1400px) {
    .category-cover-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .category-layout-switch .btn span {
        display: none;
    }

    .category-layout-switch-item {
        margin-left: 0.5rem !important;
    }

    .category-cover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .category-cover-body {
        min-height: 110px;
        padding: 0.55rem;
    }

    .category-cover-title {
        font-size: 0.8rem;
    }
}

.color-warezkorb {
    font-weight: bold;
    color: #3b5cff;
}
.color-top {
    font-weight: bold;
    color: #d68c18;
}

.color-kino {
    font-weight: bold;
    color: #c30000;
}

.color-orange {
    font-weight: bold;
    color: #b86e00;
}

.color-green {
    font-weight: bold;
    color: #005a02;
}
.color-top {
    font-weight: bold;
    color: #005a02;
}

/* layout table */
.element-line {
    line-height: 1em;
}

.element-end {
    display: inline-block;
}

.element-link {
    float: left;
    padding-top: 0.1em;
}

@media (min-width: 1200px) {
    .element-genre {
        vertical-align: middle;
        display: inline-block;
        max-width: 70px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .element-icons {}
}

@media (max-width: 1199.98px) {
    .element-genre {
        display: none;
    }

    .element-icons {
        display: none;
    }
}

@media (min-width: 990px) {
    .element-size {

    }
}
@media (max-width: 989.98px) {
    .element-size {
        display: none;
    }
}

/* search navbar */
.my-search {
    margin-right: 0;
    min-width: 0;
}

.search-actions {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    min-width: 0;
}

.search-form {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

@media (min-width: 1200px) {
    .search-actions {
        flex: 0 1 360px;
        max-width: 420px;
        min-width: 240px;
        width: auto;
    }

    .search-form {
        flex: 1 1 auto;
        width: auto;
    }
}

#warezkorb-link {
    background-color: #19c4dd;
    border-color: #19c4dd;
    color: #0b2c34;
}

#warezkorb-link:hover,
#warezkorb-link:focus {
    background-color: #16adc3;
    border-color: #16adc3;
    color: #0b2c34;
}

/* xrel icon */
.xrel-icon {
    content: url('./icons/xrel.png');
    display: inline-block;
    vertical-align: middle;
    margin: 0.1em;
}

.my-overflow {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%;
}

/* Home: category links */
.category-link {
    color: #4FC3F7 !important;
    text-decoration: none !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.category-link:hover {
    color: #29B6F6 !important;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.6);
    text-decoration: none !important;
}

.category-link:focus {
    color: #0288D1 !important;
    outline: none;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.8);
}

/* Home: mobile upload list tweaks */
@media (max-width: 767.98px) {
    .homepage-main .mobile-upload-item {
        min-height: auto;
    }

    .homepage-main .mobile-preview-image {
        width: 60px;
        height: 80px;
        object-fit: cover;
    }

    .homepage-main .mobile-title {
        font-size: 0.85rem;
        line-height: 1.1;
        max-height: 2.2rem;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .homepage-main .mobile-meta {
        font-size: 0.75rem;
    }

    .homepage-main .mobile-hosters .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
        margin-right: 0.2rem;
    }

    .homepage-main .upload-link-lang-image {
        width: 16px;
        height: 12px;
    }

    .homepage-main .card-header {
        padding: 0.75rem;
    }

.homepage-main .card-header h5 {
    font-size: 1rem;
}
}

/* Dark theme overrides */
.theme-dark {
    background-color: #0d1117;
    color: #e6edf3;
}

.theme-dark .navbar.navbar-dark.bg-dark {
    background-color: #161b22 !important;
}

.theme-dark .upload-link {
    color: #e6edf3;
}

.theme-dark .upload-link:hover {
    color: #58a6ff;
}

.theme-dark .preview-text {
    background: rgba(0,0,0,0.6);
    color: #e6edf3;
}

.theme-dark .card {
    background-color: #161b22;
    border-color: #21262d;
    color: #e6edf3;
}

.theme-dark .card-header {
    background-color: #1f2630;
    border-color: #21262d;
    color: #e6edf3;
}

.theme-dark .category-layout-switch .btn-outline-secondary {
    color: #e6edf3;
    border-color: #30363d;
}

.theme-dark .category-cover-card,
.theme-dark .category-empty-state {
    background-color: #161b22;
    border-color: #21262d;
    color: #e6edf3;
}

.theme-dark .category-cover-card:hover {
    border-color: rgba(88, 166, 255, 0.45);
    box-shadow: 0 0.6rem 1.2rem rgba(1, 4, 9, 0.45);
}

.theme-dark .category-cover-image-link {
    background: #0d1117;
}

.theme-dark .category-cover-title {
    color: #e6edf3;
}

.theme-dark .category-cover-title:hover,
.theme-dark .category-cover-title:focus {
    color: #58a6ff;
}

.theme-dark .category-cover-meta,
.theme-dark .category-cover-footer,
.theme-dark .category-empty-state {
    color: #9da7b3;
}

.theme-dark .list-group-item {
    background-color: #161b22;
    border-color: #21262d;
    color: #e6edf3;
}

.theme-dark .dropdown-menu {
    background-color: #161b22;
    border-color: #21262d;
}

.theme-dark .dropdown-item {
    color: #e6edf3;
}

.theme-dark .dropdown-item:hover,
.theme-dark .dropdown-item:focus {
    background-color: #21262d;
    color: #e6edf3;
}

.theme-dark .form-control,
.theme-dark .form-select {
    background-color: #0d1117;
    border-color: #30363d;
    color: #e6edf3;
}

.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    background-color: #0d1117;
    border-color: #58a6ff;
    color: #e6edf3;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.theme-dark .badge {
    color: #e6edf3;
}

.theme-dark .table {
    color: #e6edf3;
}

.theme-dark .table > :not(caption) > * > * {
    background-color: #161b22;
}

.theme-dark .modal-content {
    background-color: #161b22;
    color: #e6edf3;
}

.theme-dark .modal-header,
.theme-dark .modal-footer {
    border-color: #21262d;
}

.theme-dark .mirror-group {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 8px;
}

.theme-dark .mirror-group-title {
    color: #e6edf3;
}

.theme-dark .mirror-group .btn-warning {
    color: #161b22;
}

.theme-dark .search-suggestions {
    background-color: #161b22;
    border-color: #21262d;
}

.theme-dark .search-suggestions .list-group-item {
    background-color: #161b22;
    color: #e6edf3;
    border-color: #21262d;
}

.theme-dark .search-suggestions .suggestion-meta {
    color: #9da7b3;
}

.top-filter .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
}

.theme-dark .top-filter .btn-outline-secondary {
    color: #e6edf3;
    border-color: #30363d;
}

.theme-dark .imdbRatingPlugin,
.theme-dark .imdbRatingPlugin a,
.theme-dark .imdbRatingPlugin span {
    color: #e6edf3 !important;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .homepage-main .mobile-preview-image {
        width: 70px;
        height: 90px;
        object-fit: cover;
    }

    .homepage-main .mobile-title {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .homepage-main .mobile-title {
        font-size: 0.8rem;
        line-height: 1.0;
        max-height: 2rem;
    }

    .homepage-main .upload-link {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .homepage-main .mobile-size-cart {
        flex-direction: column;
        align-items: flex-end;
    }

    .homepage-main .mobile-size-cart .btn {
        margin-top: 0.25rem;
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .homepage-main .mobile-upload-item {
        padding: 0.75rem !important;
    }

    .homepage-main .mobile-preview-image {
        width: 50px;
        height: 70px;
    }

    .homepage-main .flex-grow-1 {
        min-width: 0;
        width: calc(100% - 70px);
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .homepage-main .mobile-preview-image--music {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .homepage-main .mobile-preview-image--music {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 575.98px) {
    .homepage-main .mobile-preview-image--music {
        width: 50px;
        height: 50px;
    }
}

/* Home: December promo banner */
.december-promo-banner {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.35);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.december-promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.45);
    text-decoration: none;
    color: #fff;
}

.december-promo-banner.promo-blue {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
}

.december-promo-banner.promo-blue:hover {
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
}

.december-promo-banner.promo-blue .price-highlight {
    color: #1e3a8a;
}

.december-promo-banner.promo-blue .promo-cta {
    color: #1e3a8a;
}

.december-promo-banner::before,
.december-promo-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.december-promo-banner::before {
    width: 240px;
    height: 240px;
    top: -120px;
    right: -40px;
}

.december-promo-banner::after {
    width: 180px;
    height: 180px;
    bottom: -90px;
    left: -30px;
}

.december-promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.december-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.december-promo-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.december-promo-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.december-promo-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.december-promo-banner .price-highlight {
    background: #fff;
    color: #991b1b;
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.december-promo-banner .original-price {
    text-decoration: line-through;
    opacity: 0.85;
    font-weight: 600;
}

.december-promo-banner .promo-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.december-promo-banner .promo-details span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.18);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.55rem;
}

.december-promo-banner .promo-details i {
    color: #22c55e;
}

.december-promo-banner .december-promo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 1 320px;
    max-width: 380px;
    white-space: normal;
}

.december-promo-banner .december-promo-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.december-promo-banner .december-promo-countdown i {
    color: #fbbf24;
}

.december-promo-banner .promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #7f1d1d;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
}

.december-promo-banner:hover .promo-cta {
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .december-promo-layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .december-promo-body {
        max-width: 70%;
    }
}

@media (max-width: 575.98px) {
    .december-promo-banner {
        padding: 18px;
    }

    .december-promo-headline {
        font-size: 1.05rem;
    }

    .price-highlight {
        font-size: 1.2rem;
    }

    .december-promo-banner .promo-details span {
        width: 100%;
        justify-content: center;
    }

    .december-promo-banner .december-promo-actions {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        margin-left: 0;
        flex: 1 1 auto;
        white-space: normal;
        gap: 8px;
    }

    .december-promo-banner .december-promo-countdown,
    .december-promo-banner .promo-cta {
        width: 100%;
        justify-content: center;
    }
}

.wunschbox-hp,
.wunschbox-hp label,
.wunschbox-hp input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.wunschbox-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.wunschbox-download-edit {
    max-width: 36rem;
}

.wunschbox-download-edit .wunschbox-download-input {
    flex: 1 1 auto;
    min-width: 12rem;
}

.wunschbox-status-by:not(.d-none)::before {
    content: "· ";
}
