.netflix-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
    background: var(--background); 
}

.netflix-card-cat {
    background: #181818;
    border: 1px solid #252525;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease;
}

.cat-card-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 25px;
    text-decoration: none;
    box-sizing: border-box;
}

.netflix-card-cat:hover {
    transform: scale(1.04);
    border-color: var(--accent);
}

.cat-card-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.netflix-card-cat:hover .cat-card-title {
    color: var(--accent);
}

.cat-card-desc {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* !!! cut für zu langen Text nach 3 Zeilen mit ... ab */
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.cat-card-hover-effect {
    margin-top: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    transition: color 0.3s ease;
text-decoration: none;
}

.netflix-card-cat:hover .cat-card-hover-effect {
    color: #ffffff;
}

.cat-card-link:hover, 
.cat-card-link:hover *,
.netflix-card-cat a:hover {
    text-decoration: none !important;
}





/* Karrusell Test wie schreibt man karusell?! what */

.netflix-carousel-container {
    margin: 30px 0;
    padding: 0 20px;
}

.netflix-carousel-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.netflix-carousel-title a {
    color: #fff;
    text-decoration: none;
}

.netflix-carousel-title a:hover {
    color: var(--accent);
}

.netflix-carousel-table,
.netflix-carousel-table tbody {
    display: block;
    width: 100%;
}

.netflix-carousel-track {
    display: flex !important;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 0;
padding-left: 15px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #141414;
}

/* Scrollbar */
.netflix-carousel-track::-webkit-scrollbar { height: 6px; }
.netflix-carousel-track::-webkit-scrollbar-track { background: #141414; }
.netflix-carousel-track::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.netflix-carousel-track:hover::-webkit-scrollbar-thumb { background: var(--accent); }

tr.netflix-carousel-item {
    display: block !important;
    flex: 0 0 260px;
    background: #181818;
    border-radius: 6px;
    border: 1px solid #222;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

tr.netflix-carousel-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    z-index: 5;
}

td.netflix-item-inner {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.netflix-item-avatar-zone {
    height: 180px !important;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.netflix-item-avatar-zone img {
    width: 60px;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #e50914;
    object-fit: cover;
}

.netflix-item-replies {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    border: 1px solid #333;
}

.netflix-item-replies a {
    color: #fff !important;
    text-decoration: none;
}

.netflix-item-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.netflix-item-breadcrumbs {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.netflix-item-breadcrumbs a {
    color: #777 !important;
    text-decoration: none;
}

/* Titel Link Styling */
.netflix-title-link {
    color: #fff !important;
    text-decoration: none !important;
}

tr.netflix-carousel-item:hover .netflix-title-link {
    color: var(--accent) !important;
}

.netflix-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.netflix-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #555;
    border-top: 1px solid #222;
    padding-top: 8px;
    margin-top: auto;
}

.netflix-item-author a {
    color: #999 !important;
    text-decoration: none;
}

.netflix-item-time {
    color: #666;
}




/* Lastavatar test - achtung recentthreads und lastposter avatar-plugin sind nicht kompatibel, workaround blabla*/


.netflix-item-avatar-zone {
    height: 120px; 
    background: #222;
    position: relative;
    overflow: hidden;
    display: block !important;
}

.netflix-item-avatar-zone img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important; 
    border: none !important;
    object-fit: cover !important; /* Schneidet das Bild zu OHNE verzerrung diesdas, muss aber korrigiert werden weil wtf sehen die aus teilweise*/
object-position: 50% 20%;
    display: block;
    filter: brightness(0.7) contrast(1.1); 
    transition: transform 0.4s ease, filter 0.4s ease;
}

tr.netflix-carousel-item:hover .netflix-item-avatar-zone img {
    transform: scale(1.08);
    filter: brightness(1);
}

.netflix-item-replies {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.netflix-item-replies a {
    color: #fff !important;
    text-decoration: none;
}



/* Header Bild über Designkonfigurator Plugin und Inplayquote drüber gelagert durch Zitate auf Forenindex Plugin */



#logo {
    position: relative !important;
}

.netflix-index-quote-container {
    position: absolute !important;
        top: 300px;     /* Höhe von Quote so??? */
    
    left: 50%;
    transform: translateX(-50%); 
    
    width: 100%;
    max-width: 1000px;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 9999 !important;
}

.netflix-hero-content {
    max-width: 650px;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.6);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: left;
}

.netflix-hero-tag {

}

.netflix-quote-wrapper {
    color: #ffffff !important;
    font-size: 1.15rem;
    line-height: 1.5;
}

.netflix-quote-wrapper table, 
.netflix-quote-wrapper td, 
.netflix-quote-wrapper tr,
.netflix-quote-wrapper tbody,
.netflix-quote-wrapper .tborder {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
    width: 100% !important;
text-align: left;
}


.netflix-quote-wrapper h3, 
.netflix-quote-wrapper .thead,
.netflix-quote-wrapper strong {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.65rem;
    margin-bottom: 8px;
    font-size: 1rem !important;
}


/* Footer - aka Grüße mit Füße */

.netflix-footer {
    background: #141414 !important; /* Netflix-Dunkel */
    padding: 60px 20px 30px 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #808080; /* Typisches Netflix-Footer-Grau */
    text-align: center;
}

/* "Who is watching?" Überschrift */
.netflix-watching-section {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.netflix-watching-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.netflix-watching-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

.netflix-watching-users {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Profilbilder footer??? */
.netflix-watching-users img,
.netflix-watching-users .online-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 4px !important; /* Leicht abgerundet wie die Netflix-Profilbilder */
    margin: 5px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.netflix-watching-users a:hover img {
    border-color: #ffffff;
    transform: scale(1.05);
}

/* Trennlinie */
.netflix-footer-divider {
    border: 0;
    height: 1px;
    background: #222;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

/* Theme-Select und Buttons */
.netflix-footer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.netflix-footer-controls select,
.netflix-footer-controls button,
.netflix-footer-controls .button {
    background: transparent;
    border: 1px solid #666;
    color: #808080;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.netflix-footer-controls select:hover,
.netflix-footer-controls button:hover {
    color: #fff;
    border-color: #fff;
}

/* Copyright und MyBB-Links */
.netflix-copyright {
    font-size: 0.75rem;
    color: #555;
}

.netflix-copyright a {
    color: #555 !important;
    text-decoration: none;
}

.netflix-copyright a:hover {
    text-decoration: underline;
}

/* bisschen was ausblenden etc weil wir bdays und so nicht brauchen */

.netflix-stats-wrapper {
    background: #141414;
    padding: 60px 20px 20px 20px;
    margin-top: 40px;
}

.netflix-watching-section {
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.netflix-watching-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
}

.netflix-watching-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0 0 25px 0;
}

.netflix-watching-users {
    color: #aaa;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Styling für die User-Links */
.netflix-watching-users a {
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.netflix-watching-users a:hover {
    color: var(--accent) !important;
    transform: scale(1.1);
}

/*  Avatare in der Online-Liste??? */
.netflix-watching-users img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 4px !important;
    margin: 5px;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.netflix-watching-users a:hover img {
    border-color: #ffffff;
    transform: scale(1.05);
}



/* Wer ist online / Stats stuff im Footer */

.netflix-stats-wrapper {
    background: #141414 !important;
    padding: 60px 40px 20px 40px !important;
    margin-top: 60px !important;
    margin-bottom: 0 !important; 
    
    /* Dieser Trick bricht die maximale Breite von MyBB auf und macht die Box 100% breit */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

.netflix-footer {
    background: #141414 !important;
    padding: 20px 40px 40px 40px !important; 
    margin-top: 0 !important; 
        width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

.netflix-footer-divider {
    border: 0 !important;
    height: 1px !important;
    background: #252525 !important; 
    width: 100% !important;
    max-width: 1200px !important;
    margin: 30px auto !important;
}

body {
    overflow-x: hidden !important;
}


.netflix-complete-link-container {
    margin-bottom: 20px; 
    display: block;
}

.netflix-complete-link-container a {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555 !important; 
    text-decoration: none !important;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.netflix-complete-link-container a:hover {
    color: #ffffff !important;
    letter-spacing: 1.5px;
}



/* --- Sidebar Accountswitcher Pulgin --- */

/* Button im Header */
.netflix-as-trigger-li {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
}

.netflix-as-btn {
    background: var(--accent) !important; 
    color: #ffffff !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.netflix-as-btn:hover {
    background: var(--accent) !important;
    transform: scale(1.03);
}

/* bei Klick Sidebar */
.netflix-as-sidebar {
    background: #141414 !important;
    border-left: 2px solid #222 !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8) !important;
    width: 320px !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    padding: 40px 25px !important;
    box-sizing: border-box;
    
    /* ÄNDERUNG HIER: Nutzt flex (wird vom JS getriggert) */
    display: none; 
    flex-direction: column;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* Animation beim Einblenden */
    animation: netflixSlideIn 0.3s ease-out;
}

@keyframes netflixSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Sidebar Header */
.netflix-as-header {
    text-align: center;
    margin-bottom: 30px;
}

.netflix-as-header h3 {
    color: #fff !important;
    font-size: 1.6rem !important;
    font-weight: 500;
    margin: 0 0 5px 0 !important;
}

.netflix-as-header p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.netflix-as-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Profile nebeneinander */
    gap: 20px;
    overflow-y: auto;
    margin-bottom: auto; /* Schiebt den Footer nach ganz unten */
    padding: 10px 5px;
}

/* Die einzelnen Profil-Kacheln */
.netflix-profile-item {
    text-align: center;
}

.netflix-profile-link {
    text-decoration: none !important;
    display: block;
}

.netflix-profile-avatar-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 8px auto;
    border-radius: 4px; /* Leicht abgerundete Ecken wie bei Netflix */
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.2s ease;
}

.netflix-profile-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.netflix-profile-link:hover .netflix-profile-avatar-wrapper {
    border-color: #ffffff;
}

.netflix-profile-name {
    color: #808080;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.netflix-profile-link:hover .netflix-profile-name {
    color: #ffffff;
}

/* Sidebar Footer */
.netflix-as-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.netflix-as-manage-btn {
    background: transparent;
    border: 1px solid #444;
    color: #808080 !important;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: color 0.2s, border-color 0.2s;
}

.netflix-as-manage-btn:hover {
    color: #fff !important;
    border-color: #fff;
}

.netflix-as-close-btn {
    color: #555 !important;
    font-size: 0.75rem;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.netflix-as-close-btn:hover {
    color: var(--accent) !important;
}


.netflix-avatar-container img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

.netflix-as-profiles-grid li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.netflix-as-sidebar {
    background: #141414 !important;
    border-left: 2px solid #222 !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8) !important;
    width: 320px !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    padding: 40px 25px !important;
    box-sizing: border-box;
    display: none; /* Wird über JS gesteuert */
    flex-direction: column;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    animation: netflixSlideIn 0.3s ease-out;
}


.netflix-as-sidebar {
    overflow-x: hidden !important;
}

/* 2. Das Profil-Grid aufräumen, damit kein Inhalt herausragt */
.netflix-as-profiles-grid {
    overflow-x: hidden !important; /* Kein horizontales Scrollen */
    overflow-y: auto !important;   /* Vertikales Scrollen erlauben bei vielen Profilen */
    padding: 10px 0 !important; 
    margin: 0 !important;
}

.netflix-as-profiles-grid li,
.netflix-profile-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


.netflix-as-profiles-grid::-webkit-scrollbar {
    width: 6px !important; /* Schön schmal */
}

.netflix-as-profiles-grid::-webkit-scrollbar-track {
    background: #141414 !important; 
}

.netflix-as-profiles-grid::-webkit-scrollbar-thumb {
    background: #333 !important; 
    border-radius: 10px !important;
}


/* Das Haupt-Panel (Der dunkle Kasten) */
#panel {
    background-color: #141414 !important; /* Volles Footer-Mattschwarz */
    padding: 15px 0 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Trennung zwischen Willkommens-Text und Links */
#panel .upper {
    /*color: #999 !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #252525; /* Dezenter, dunkler Teiler */
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;*/
}

#panel .upper a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

#panel .upper a:hover {
    color: var(--accent, #e50914) !important;
}

/* Container für das Menü */
.netflix-nav-wrapper {
    padding-top: 5px;
}

/* Das Menü als modernes, flexibles Kachelband */
.menu.top_links.netflix-header-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* Knackige Abstände */
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

/* Jedes Listenelement wird zu einem kleinen Kachel-Button */
.menu.top_links.netflix-header-grid li {
    margin: 0 !important;
}

/* Styling aller Navigationslinks */
.menu.top_links.netflix-header-grid li a,
.netflix-nav-custom {
    display: inline-block;
    background: #1f1f1f !important; /* Leicht abgehobenes Dunkelgrau für Kachel-Look */
    border: 1px solid #2d2d2d !important;
    color: #e5e5e5 !important;
    text-decoration: none !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important; /* Schön fett wie im Footer */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Hover-Effekt: Kacheln leuchten bei Mouseover rot/weiß auf */
.menu.top_links.netflix-header-grid li a:hover,
.netflix-nav-custom:hover {
    color: #ffffff !important;
    background: #282828 !important;
    border-color: var(--accent, #e50914) !important; /* Roter Rahmen beim Hovern */
    transform: translateY(-1px);
}

/* Profil-Wechsler farblich als Highlight herausstechen lassen */
.netflix-as-btn {
    background: #1f252e !important;
    border-color: #3b4856 !important;
    color: #4fc3f7 !important;
}

.netflix-as-btn:hover {
    background: var(--accent, #e50914) !important;
    border-color: var(--accent, #e50914) !important;
    color: #ffffff !important;
}

/* Inplayszenen-Kachel bekommt direkt einen roten Akzent */
.highlight-scene {
    border-left: 3px solid var(--accent, #e50914) !important;
}

/* Headerbild nahtlos andocken lassen */
.headerbild {
    margin-top: 25px;
}