/* ====================================================================
   1. GLOBAL BASE-STYLE
   ==================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #121212;
    color: #f5f5f5;
    padding: 10px;
}
a {
    text-decoration: none;
    color: #ff3366;
    transition: color 0.2s ease;
}
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff3366;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
h2 {
    border-bottom: 2px solid #ff3366;
    padding-bottom: 8px;
    margin: 40px auto 20px auto;
    max-width: 1200px;
    color: #fff;
    font-size: 1.5rem;
}
.section-count {
    float: right;
    font-size: 1rem;
    color: #aaa;
    padding-top: 5px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-container {
    width: 100%;
    height: 280px;
    background-color: #2a2a2a;
    overflow: hidden;
    position: relative;
}

/* ====================================================================
   2. BRANDING- & INTERFACE-BAR
   ==================================================================== */
.main-header-bar {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 20px auto;
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-top: 3px solid #ff3366;
    border-bottom: 3px solid #ff3366;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 4.0rem;
    font-weight: bolder;
    letter-spacing: 2px;
    color: #ff3366;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255, 51, 102, 0.2);
}
.main-content-bar {
    width: 100%;
    max-width: 1300px;
    margin: 20px auto 20px auto;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    font-size: 1rem;
}
.main-footer-bar {
    width: 100%;
    max-width: 1300px;
    margin: 80px auto 20px auto;
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 20px auto;
    padding-bottom: 5px;
    text-align: center;
    font-size: 1rem;
}
.content-bar-spacing {
    margin-top: 30px !important;
}
.page-title {
    text-align: left !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}

/* ====================================================================
   3. GLOBAL PAGE-WRAPPER (SYMMETRY-GARANTEE)
   ==================================================================== */
.site-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.main-header-bar,
.main-content-bar,
.main-footer-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ====================================================================
   4. NAVIGATION - ELECTRONICALLY ANCHORED
   ==================================================================== */
.nav-wrapper {
    width: 100% !important;
    max-width: 1300px !important;
    margin: 25px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
}
nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
nav a {
    color: #aaa !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-bottom: 2px solid transparent !important;
    display: inline-block !important;
}
nav a:hover, nav a.active {
    color: #ff3366 !important;
    border-bottom: 2px solid #ff3366 !important;
}

/* ====================================================================
   5. BUTTON-ARCHITECTURE & GLOBAL CLICK MAGNET
   ==================================================================== */
.btn-container-left {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.btn-container-center {
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}
.btn-container-center a {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    text-decoration: none !important;
}
.btn-glow-click {
    display: inline-block !important;
    padding: 16px 35px !important;
    background: rgba(255, 51, 102, 0.1) !important;
    border: 3px solid #ff3366 !important;
    color: #ff3366 !important;
    font-weight: bold !important;
    font-size: 1.15rem !important;
    font-family: sans-serif !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.15) !important;
    transition: all 0.25s ease-in-out !important;
    width: 100% !important;
    max-width: 600px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    cursor: pointer !important;
}
.btn-container-left .btn-glow-click {
    text-align: left !important;
}
.btn-glow-click:hover {
    background: #ff3366 !important;
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.6) !important;
    transform: translateX(3px) !important;
}

/* ====================================================================
   6. FILTER- & EMPTY SIGNAL MODULES
   ==================================================================== */
.filter-bar-container {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 15px;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}
.filter-input-group {
    flex: 1;
    min-width: 180px;
}
.filter-form input[type="text"],
.filter-form select {
    width: 100%;
    padding: 10px 15px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.filter-form input[type="text"]:focus,
.filter-form select:focus {
    border-color: #ff3366;
}
.filter-button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn-filter {
    background-color: #ff3366;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}
.btn-filter:hover {
    background-color: #e02454;
}
.btn-reset {
    background-color: #333;
    color: #aaa;
    border: 1px solid #444;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
}
.btn-reset:hover {
    background-color: #ff3366;
    color: #fff;
    border-color: #ff3366;
}
.grid-empty-notice {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    color: #aaaaaa !important;
    padding: 40px 15px !important;
    box-sizing: border-box !important;
    font-style: italic !important;
}
.grid-empty-notice p {
margin:30px auto;
}
/* ====================================================================
   7. TILE GRID SYSTEM (INDEX / VIDEOS / TAGS)
   ==================================================================== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    width: 100%;
}
.grid-container > a {
    display: block;
    flex: 0 0 calc(25% - 15px); /* 4 Spalten auf dem PC */
    box-sizing: border-box;
}
.card-main-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

/* Profil-Karten */
.profile-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #2d2d2d;
    height: 100%;
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
}
.profile-image-container {
    width: 100%;
    height: 280px;
    background-color: #2a2a2a;
    overflow: hidden;
    position: relative;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-details {
    padding: 15px;
    text-align: left;
}
.username {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}
.meta-info {
    font-size: 0.9rem;
    color: #aaa;
}

/* Video-Cards */
.video-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #2d2d2d;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.2);
}
.video-thumb-box {
    width: 100%;
    height: 150px;
    background-color: #000;
    overflow: hidden;
    position: relative;
}
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-card:hover .video-thumb {
    transform: scale(1.05);
}
.video-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.video-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.video-excerpt {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
    margin-top: auto;
}
.video-duration-badge {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
    padding: 2px 6px !important;
    font-size: 0.75rem !important;
    border-radius: 3px !important;
    font-family: monospace !important;
    z-index: 2 !important;
}

.video-author { font-size: 0.85rem; margin-top: 8px; color: #666; }
.video-author a { color: #ff3366; font-weight: bold; text-decoration: none; }
.video-author a:hover { color: #ffffff; }

/* Badges & Additions */
.online-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #00cc66;
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 204, 102, 0.5);
    z-index: 10;
}
.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 3px 7px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
}
.blur-normal { filter: blur(0px); }
.blur-heavy { filter: blur(5px); }

/* ====================================================================
   8. SPECIFIC LAYOUT MODULES (PROFIL / PLAYER / TAG PAGES)
   ==================================================================== */
/* Profil-Details */
.profile-header {
    display: flex;
    gap: 30px;
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #2d2d2d;
    flex-wrap: wrap;
}
.profile-avatar-box {
    width: 220px;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}
.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-info {
    flex: 1;
    min-width: 300px;
}
.profile-info h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.online-dot {
    width: 12px;
    height: 12px;
    background: #00cc66;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00cc66;
}
.real-name {
    font-size: 1.1rem;
    color: #ff3366;
    margin-bottom: 15px;
    font-weight: bold;
}
.real-name a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.real-name a:hover {
    color: #ff3366 !important;
    text-decoration: underline !important;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 15px;
}
.info-item {
    background: #2a2a2a;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 3px solid #ff3366;
}
.info-item strong {
    color: #aaa;
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.biografie {
    margin-top: 20px;
    line-height: 1.6;
    color: #ddd;
    background: #181818;
    padding: 20px;
    border-radius: 6px;
    border: 1px dashed #333;
}

/* Gallery - Fluid Layout */
.profile-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    width: 100%;
}
.gallery-item-box {
    flex: 0 0 auto;
    width: 280px;
    height: 210px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d2d2d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.gallery-item-box a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.gallery-item-box:hover .gallery-img {
    transform: scale(1.04);
}

/* Video Detail Texts & Player */
.video-author-box, .video-description-title, .video-description-text {
    margin: 20px auto !important;
}
.hashtag-link {
    color: #ff3366 !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    transition: color 0.2s ease-in-out !important;
}
.hashtag-link:hover {
    color: #fff !important;
}
.player-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    background: transparent !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.player-img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}


/*  css for profiles */
.profile-title-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.profile-title-link:hover {
    text-decoration: underline !important;
}

.profile-title {
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 8px !important;
}
.profile-title a {
    text-decoration: none !important;
    color: #fff !important;
    transition: color 0.2s !important;
}
.profile-title a:hover {
    color: #ff3366 !important;
}
.profile-excerpt {
    font-size: 0.85rem !important;
    color: #aaa !important;
    line-height: 1.4 !important;
    max-height: 4.2em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    font-style: italic !important;
    margin-top: auto !important;
}
.profile-empty-text {
    font-size: 0.85rem !important;
    color: #666 !important;
    font-style: italic !important;
    margin-top: auto !important;
}

/* Video category scrolling bar (videos.php) */
.video-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}
.video-item-box {
    display: block;
    flex: 0 0 calc(33.333% - 14px); /* 3 cols PC */
    box-sizing: border-box;
}
.video-item-box .video-thumb-box {
    width: 100%;
    height: 200px;
    background-color: #000;
    overflow: hidden;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.video-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    margin: 0 auto 40px auto !important;
    padding: 0 !important;
}
.video-wrapper {
    display: flex !important;
    width: calc(33.333% - 11px) !important; /* 3 Spalten PC */
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
}
.video-card {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #1e1e1e !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    height: 100% !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.video-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.2) !important;
}
.video-thumb-container {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    background: #000 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.suggestion-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: rgba(0, 123, 255, 0.9) !important;
    color: #fff !important;
    padding: 2px 6px !important;
    font-size: 0.7rem !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    z-index: 2 !important;
}

.video-thumb-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}
.video-card:hover .video-thumb-container img {
    transform: scale(1.05) !important;
}
.video-content {
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex-grow: 1 !important;
}
.video-title {
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 8px !important;
}
.video-title a {
    text-decoration: none !important;
    color: #fff !important;
    transition: color 0.2s !important;
}
.video-title a:hover {
    color: #ff3366 !important;
}
.video-excerpt {
    font-size: 0.85rem !important;
    color: #aaa !important;
    line-height: 1.4 !important;
    max-height: 4.2em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    font-style: italic !important;
    margin-top: auto !important;
}
.video-empty-text {
    font-size: 0.85rem !important;
    color: #666 !important;
    font-style: italic !important;
    margin-top: auto !important;
}

/* Signup-Widget (signup.php) */
.signup-widget-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.signup-text-top {
    text-align: center;
    margin-bottom: 25px;
}
.signup-text-top h2 {
    font-size: 1.4rem;
    color: #fff;
    border: none;
    margin: 0 0 10px 0;
    padding: 0;
}
.signup-text-top p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 15px;
}
.signup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 400px;
    text-align: left;
}
.signup-benefits li {
    font-size: 0.9rem;
    color: #ff3366;
    font-weight: 600;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}
.signup-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00cc66;
    font-weight: bold;
}
.signup-text-bottom {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid #2d2d2d;
    padding-top: 20px;
}
.discretion-notice {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 12px;
}
.age-notice {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Banner-Container */
.banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    overflow: hidden;
    box-sizing: border-box;
}
.banner-img {
    max-width: 100% !important;
    width: auto;
    height: auto !important;
    display: block;
}

/* Paging-Styles */
.pagination-container {
    text-align: center;
    margin: 40px auto;
    max-width: 1200px;
    padding: 10px;
}
.pagination-link {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: #ccc;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}
.pagination-link:hover {
    background-color: #ff3366;
    color: #fff;
    border-color: #ff3366;
}
.pagination-active {
    background-color: #ff3366;
    color: #fff;
    border-color: #ff3366;
    font-weight: bold;
}
.pagination-dots {
    display: inline-block;
    padding: 10px 10px;
    color: #666;
}

/* Comments */
.comment { margin:10px 0px; padding:5px; background-color:#222222; }
.comment .autor { padding-left:5px; border-bottom:solid 1px #000000; color:#ff0000; }
.comment .text { padding:5px; color:#ffffff; }
.comment .reply { margin-left:20px;background:#333333;padding:5px; }

/* ====================================================================
   Responsive protective advertising bar
   ==================================================================== */
.main-footer-bar p {
    margin: 20px auto !important;
    color: #666666 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

.banner-wrapper div[id^="mms_frv_"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
}

.banner-wrapper div[id^="mms_frv_"] img,
.banner-wrapper div[id^="mms_frv_"] iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* ====================================================================
   FOOTER COPYRIGHT- & LEGAL TEXTS (BASE-STYLING)
   ==================================================================== */
.footer-copyright-zone {
    color: #666666 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    margin-top: 25px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer-copyright-zone p {
    margin-bottom: 5px !important;
}

.footer-legal-links {
    margin-top: 12px !important;
    display: block !important;
}

.footer-legal-links a {
    color: #666666 !important;
    margin: 0 12px !important;
    display: inline-block !important;
    transition: color 0.2s ease-in-out !important;
    padding: 5px 0 !important; /* Erhöht die Touch-Usability auf Smartphones */
}

.footer-legal-links a:hover {
    color: #ff3366 !important;
    text-decoration: underline !important;
}

/* ====================================================================
   TOPLIST-ARCHITECTURE (PC-MODUS)
   ==================================================================== */
.toplist-wrapper {
    max-width: 900px !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}
.toplist-container {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toplist-item { 
    display: flex !important; 
    flex-direction: row !important; /* Bild und Text nebeneinander */
    align-items: flex-start !important; 
    gap: 20px !important; 
    background: #1e1e1e !important; 
    border: 1px solid #2d2d2d !important;
    border-radius: 8px !important; 
    padding: 15px !important; 
    margin-bottom: 15px !important; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    position: relative !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.toplist-item:hover {
    transform: translateX(4px) !important;
    border-color: #ff3366 !important;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2) !important;
}

.toplist-item.text-only { 
    gap: 10px !important; 
    padding: 12px 15px !important; 
    background: #161a1a !important; 
}

.chart-number {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #ff3366 !important;
    min-width: 50px !important;
    text-align: center !important;
    line-height: 1 !important;
    align-self: center !important;
    font-family: monospace !important;
}
.toplist-item.text-only .chart-number { 
    font-size: 1.6rem !important; 
    min-width: 55px !important; 
}

/* Thumbnail Box */
.toplist-thumb-box { 
    width: 140px !important; 
    aspect-ratio: 16/9 !important; 
    background: #000 !important; 
    border-radius: 4px !important; 
    overflow: hidden !important; 
    flex-shrink: 0 !important; 
    position: relative !important;
}
.toplist-thumb-box img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
}

/* Content-Area */
.toplist-content { 
    flex-grow: 1 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 4px !important; 
}
.toplist-title { 
    font-size: 1.1rem !important; 
    font-weight: bold !important; 
    margin: 0 !important; 
}
.toplist-title a { 
    color: #fff !important; 
    text-decoration: none !important; 
    transition: color 0.2s !important; 
}
.toplist-title a:hover { 
    color: #ff3366 !important; 
    text-decoration: underline !important; 
}
.toplist-excerpt { 
    font-size: 0.85rem !important; 
    color: #aaa !important; 
    line-height: 1.4 !important; 
    font-style: italic !important; 
}
.toplist-meta { 
    font-size: 0.75rem !important; 
    color: #777 !important; 
    margin-top: 2px !important; 
}
.toplist-badge { 
    font-weight: bold !important; 
    color: #ffb700 !important; 
    margin-left: 8px !important; 
}

.gallery-img, .video-thumb, .player-img {
    min-height: 150px;
    background-color: #222;
}

.gallery-img:broken, 
.video-thumb:broken, 
.player-img:broken {
    content: url("../img/nopic.webp");
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Sitemap Footer Bar */
.index-sitemap-bar {
    max-width: 1200px;
    margin: 50px auto 20px auto;
    padding: 30px 20px;
    border-top: 1px solid #2d2d2d;
    font-family: Arial, sans-serif;
}

.sitemap-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.sitemap-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: #1e1e1e;
    padding: 20px;
    border: 1px solid #252525;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sitemap-card:hover {
    border-color: #353535;
}

.sitemap-card h4 {
    color: #00cc66;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

.sitemap-card p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sitemap-card a {
    display: inline-block;
    color: #fff;
    background: #2a2a2a;
    text-decoration: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #444;
    transition: background 0.2s, border-color 0.2s;
}

.sitemap-card a:hover {
    background: #333333;
    border-color: #555;
}

/* ====================================================================
   9. RESPONSIVE MEDIAS
   ==================================================================== */

/* BREAKING POINT 1: UNDER 1300PX (Wrapper - Full Width) */
@media screen and (max-width: 1300px) {
    .site-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }
}

/* BREAKING POINT 1: UNDER 1000PX (Wrapper - Full Width) */
@media screen and (max-width: 1000px) {
    .video-item-box {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
    }
    .video-item-box .video-thumb-box { 
        height: auto !important;
        aspect-ratio: 16 / 9 !important; /* Cinema Format 16:9 */
    } 
    .video-title { font-size: 1.05rem !important; }
    
    .video-wrapper {
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
}

/* BREAKING POINT 3: UNDER 970PX (Switch to 3 columns) */
@media screen and (max-width: 970px) {
    .main-header-bar { font-size: 2.2rem; padding: 15px; }
    .main-content-bar { padding: 15px; }

    .grid-container { gap: 15px !important; width: 100% !important; }
    .grid-container > a {
        flex: 0 0 calc(33.333% - 10px) !important; 
    }

    .filter-form { justify-content: center; }
    .filter-input-group { flex: 1 1 calc(50% - 15px); min-width: 140px; }
    .filter-button-group { flex: 1 1 100%; justify-content: center; }
}

/* BREAKING POINT 4: UNDER 760PX (Switch to 2 columns) */
@media screen and (max-width: 760px) {
    .main-header-bar { font-size: 1.6rem; padding: 10px !important; }
    .main-content-bar { padding: 10px !important; }

    .filter-form { flex-direction: column !important; gap: 10px !important; }
    .filter-input-group, .filter-button-group, .btn-filter, .btn-reset {
        width: 100% !important;
    }

    .grid-container { 
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important; 
        width: 100% !important; 
    }
    .grid-container > a {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
    }
    
    .image-container { height: 210px !important; }
    .username { font-size: 1.05rem !important; }

    .profile-gallery-grid { justify-content: center !important; gap: 8px !important; }
    .gallery-item-box { width: calc(50% - 4px) !important; height: auto !important; aspect-ratio: 4 / 3 !important; }
}

/* BREAKING POINT 5: UNDER 650PX (Smartphone switcher for navigation, buttons & top lists) */
@media screen and (max-width: 650px) {
    /* 1. Save Menue */
    .nav-wrapper {
        margin: 15px auto !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }
    nav {
        display: block !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    nav a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        background: #1e1e1e !important;
        border: 1px solid #2d2d2d !important;
        border-radius: 6px !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    }
    nav a:last-child {
        margin-bottom: 0 !important;
    }
    nav a:hover, nav a.active {
        background: rgba(255,51,102,0.1) !important;
        border-color: #ff3366 !important;
        border-bottom: 1px solid #ff3366 !important;
    }

    /* 2. Centered close button expands to 100% width. */
    .btn-container-center {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        display: block !important;
    }
    .btn-container-center a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .btn-container-center .btn-glow-click {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1.05rem !important;
        text-align: center !important;
    }

    /* 3. Video category gallery becomes a 100% column (videos.php) */
    .video-flex-container { gap: 15px !important; }
    .video-item-box {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .video-thumb-box { height: 250px !important; }

    /* 4. 📱 Top-list layout: Number and image remain on the left. */
    .toplist-item {
        align-items: flex-start !important; /* Forces ALL elements (including the number) to the left! */
    }
    
    .toplist-item:not(.text-only) {
        flex-direction: column !important; /* Force the text below the image! */
        gap: 12px !important;
    }
    
    .toplist-item:not(.text-only) .chart-number {
        align-self: flex-start !important;  /* Safeguard: Number remains strictly left-aligned. */
        text-align: left !important;
        min-width: auto !important;
    }
    
    .toplist-item:not(.text-only) .toplist-thumb-box {
        width: 140px !important; 
        max-width: 50% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

}

/* BREAKING POINT 6: UNDER 550PX (💡 SWITCH TO 100% SINGLE-FEED!) */
@media screen and (max-width: 550px) {
    .main-header-bar { font-size: 1.2rem; }
    .main-content-bar { padding: 8px !important; }
    
    .video-item-box {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .video-item-box .video-thumb-box { height: auto !important; aspect-ratio: 16 / 9 !important; }

    .grid-container { gap: 15px !important; }
    .grid-container > a {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .image-container { height: 260px !important; }
    
    .video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .gallery-item-box { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; }
    .pagination-link { padding: 8px 10px !important; margin: 0 1px !important; font-size: 0.85rem !important; }
    
    .banner-wrapper { margin: 15px auto; padding: 0 5px; }
    .banner-wrapper img { max-width: 100%; }
}

/* ====================================================================
   10. Elastic Headline Rescue in Medias
   ==================================================================== */
@media screen and (max-width: 600px) {
    .main-content-bar h1 {
        font-size: calc(1.5rem + 1vw) !important;
        letter-spacing: 0.5px !important;
    }
}

@media screen and (max-width: 600px) {
    .toplist-row-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 15px !important;
    }
    
    .toplist-badge-number {
        text-align: left !important;
        min-width: auto !important;
        font-size: 1.5rem !important;
        border-bottom: 2px solid #ff3366 !important;
        padding-bottom: 4px !important;
        width: 100% !important;
    }
    
    .toplist-thumb-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
    
    .toplist-content-side {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .toplist-title-text {
        font-size: 1.1rem !important;
    }
}
