:root {
    --erocms-sidebar-boder-light-color: #ffffffcc;
    --erocms-color-light: #f8f9fa;
    --erocms-color-green: #38b138;
    --erocms-color-hover: #212529;
    --erocms-color-dark: #212529;
    --erocms-link-color: #38b138;
    --erocms-link-color-hover: #212529;
    --erocms-bg-color: #0b0f14;
    --erocms-bg-color-light: #f8f9fa;
    --erocms-sitebar-bg-hover: #f8f9fa;
    --erocms-warning-color: #ffa500;
    
    --erocms-actor-color: var(--erocms-color-dark);
    --erocms-member-color: #9f9f9f;    
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.erocms-bg-color {
    background-color: var(--erocms-bg-color);
    /* Layered gradient – neutralere Slate-Töne */
    background-image:
      radial-gradient(1000px 700px at 20% 5%, rgba(100, 60, 130, 0.08), transparent 60%),
      radial-gradient(900px 700px at 85% 80%, rgba(56, 189, 248, 0.05), transparent 60%),
      linear-gradient(180deg, #0d1117 0%, #161b22 45%, #0d1117 100%);
    background-attachment: fixed;
}

.erocms-text-light {
    color: var(--erocms-color-light);
}


a {
    text-decoration: none;
    color: var(--erocms-link-color);
}

a:hover {
    color: var(--erocms-link-color-hover);
}

.no-select, .material-symbols-outlined {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}


#own_sidebar {
    width:100%;
    max-width: 300px;
    height:100vh;
    position:absolute;
    z-index:3;
    top:0;
    right:-350px;
    display:none;    
    
    background-image: radial-gradient(900px 600px at 15% 10%, rgba(168, 50, 121, 0.10), rgba(168, 50, 121, 0) 60%), radial-gradient(700px 600px at 80% 90%, rgba(0, 180, 216, 0.10), rgba(0, 180, 216, 0) 60%), linear-gradient(180deg, #0b0f14 0%, #141829 45%, #100f17 100%) !important;
    color: #f2f2f2;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

#own_sidebar #sidebar_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(90deg, #5a0f3e 0%, #7b1b5a 60%, #8a2e7b 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#own_sidebar #sidebar_header #hide_sidebar { 
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 5px 0 6px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

#own_sidebar #sidebar_header #hide_sidebar span {
    font-size: 22px;
    color: #ffd166;
}


#own_sidebar #sidebar_header .buy_coins {
    text-align: center;
    width: 100%;
    cursor: pointer;
}

#own_sidebar #sidebar_body {
    border-radius: 14px;
    margin: 14px;
    padding: 16px 14px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03), 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    background: linear-gradient(180deg, #8a1660 0%, #703872 45%, #204b5e 100%);
}

#own_sidebar #sidebar_body #free_cam_info {cursor:pointer;}
#own_sidebar #sidebar_body #free_cam_info a {
    color: gold;
}

#own_sidebar #sidebar_body .actor_profile_picture {
    width:150px;
    height:150px;
    border-radius:50%;
    overflow:hidden;
    margin:0 auto 0.5rem auto;
}

#own_sidebar #sidebar_body .actor_profile_picture img {
    width:100%;
    height:100%;
    object-fit:cover;
}

#own_sidebar #sidebar_body ul li i.material-symbols-outlined {
    margin: 0 10px 0 5px;
    font-size: 1.5rem;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}

#own_sidebar #sidebar_body li.active,
#own_sidebar #sidebar_body li:hover {
    background-color: transparent !important;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    backdrop-filter: blur(2px);
    box-shadow: inset 2px 0 0 #a83279;   /* linke Akzentkante */
}

#own_sidebar #sidebar_body li.active a,
#own_sidebar #sidebar_body li:hover a {
    color: #fff;
    font-weight: 600;
}

#body_box, #movieplayer_box {
    height: 100vh;
    overflow: hidden;
    position:relative;
}

#livecam_box, #movieplayer_box {
    height: 100vh;
    display:none;
}    

#livecam_box video,
.livecam_stream-dimensions,
#movieplayer_box video {
    max-height: 100%;
    max-width: 100%;
    height: 100vh;
    width: 100vw;
    /* object-fit: cover; */
}

/* Allgemeiner Ansatz: Steuerelemente in verschiedenen Browsern ausblenden */
#livecam_box video::-webkit-media-controls,
#livecam_box video::-webkit-media-controls-enclosure,
#livecam_box video::-webkit-media-controls-panel,
#livecam_box video::-webkit-media-controls-start-playback-button,
#livecam_box video::-moz-full-screen-ancestor,
#livecam_box video::-moz-media-controls,

#livecam_stream::-webkit-media-controls,
#livecam_stream::-webkit-media-controls-enclosure,
#livecam_stream::-webkit-media-controls-panel,
#livecam_stream::-webkit-media-controls-start-playback-button,
#livecam_stream::-moz-full-screen-ancestor,
#livecam_stream::-moz-media-controls {
    display: none !important;
}


#icon_nav_bar {
    position: absolute;
    width: 54px;
    height: auto;
    /* bottom: 2rem; */
    top: 0;
    right: 2rem;
    z-index: 3;
}

#icon_nav_bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#icon_nav_bar ul li {
    padding: 0.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    width: 2rem;
    height: 2rem;
    box-sizing: content-box;
    cursor: pointer; 
    margin-top: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
}

#icon_nav_bar ul li:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
}

#icon_nav_bar ul li span {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

#icon_nav_bar ul li#toggle_video_muted span {
    color:red;
}

#icon_nav_bar ul li#toggle_webcam,
#icon_nav_bar ul li#toggle_webcam_sound {
    display:none;
}

#icon_nav_bar #toggle_messenger_textarea {
    position: relative;
}

#icon_nav_bar #toggle_messenger_textarea #number_new_messages {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #121212;
    display: none;
}

#webcam_alert_info {
    bottom: -300px;
    position: absolute;
    right: 1rem;
    z-index: 2;
    margin-left:1rem;
}

#webcam_alert_info img {
    max-height: 95px;
    max-width: 95px;
    width:100%;
    height: auto;
}

/* ======================================== 
 * Lightbox
 * ======================================== 
 */

.lightbox {
  /* Default to hidden */
  display: none;

  /* Overlay entire screen */
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* A bit of padding around image */
  padding: 1em;

  /* Translucent background */
  background: rgba(0, 0, 0, 0.8);
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
  display: block;
}

.lightbox span {
  /* Full width and height */
  display: block;
  width: 100%;
  height: 100%;

  /* Size and position background image */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}


/* ======================================== 
 * Modals
 * ======================================== 
 */

#attach_file_modal,
#gifts_modal,
#webcam_waiting_for_activation_modal,
#webcam_is_displayed_on_another_device_modal,
#not_enough_coins,
#webcam_price_modal,
#signin_modal,
#signup_modal {display: none;}

#attach_file_modal modal-dialog,
#gifts_modal modal-dialog,
#webcam_waiting_for_activation_modal .modal-dialog,
#webcam_is_displayed_on_another_device_modal .modal-dialog,
#webcam_price_modal .modal-dialog,
#not_enough_coins .modal-dialog,
#signin_modal .modal-dialog,

#signup_modal .modal-dialog,
#attach_file_modal .modal-dialog {z-index: 3;}

#signin_modal #signin_modal_error,
#signup_modal #signup_modal_success,
#signup_modal #signup_modal_error{display:none;}

#signin_modal.bg-secondary,
#signup_modal.bg-secondary {
    --bs-bg-opacity: 0.6;
}

#signup_modal .modal-body ,
#signup_modal .modal-body  {
    padding:0rem 3rem 3rem 3rem;
}

#attach_file_modal .material-symbols-outlined,
#gifts_modal .material-symbols-outlined {
    font-size:4rem;
}

#attach_file_modal #select_file #select_file_pdf .material-symbols-outlined { 
    transform: rotate(-45deg);
}

#attach_file_modal #select_file #select_file_pdf,
#attach_file_modal #select_file #select_file_image {
    cursor: pointer;
}

#attach_file_modal #select_file,
#gifts_modal #select_gift,
#gifts_modal #gift_payed {
    align-items: center;
}

#attach_file_modal .file_error {
    display:none;
}

#attach_file_modal #file_sent {
    color: var(--erocms-color-green);
    font-size: 1.2rem;
    align-items: center;
}

.modal_header {
  background: linear-gradient(135deg, #6f42c1 0%, #d63384 100%);
}


#select_file_pdf,
#select_file_image {
  display: inline-block;
  position: relative;
}

#select_file_pdf input[type="file"],
#select_file_image input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}


#gifts_modal #gift_payed .material-symbols-outlined {
    color: var(--erocms-color-green);
}

#gifts_modal .gift_error {
    display:none;
}

#loading_spinner {
    position: absolute;
    z-index: 1;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    font-size: 1.3rem;
    display:none;
}

#loading_spinner .spinner-border {
    width: 4rem;
    height: 4rem;
    --bs-spinner-animation-speed: 1s;
}

@media only screen and (max-width: 776px) {
    #icon_nav_bar {
        position: fixed; /* Ändere von 'absolute' auf 'fixed' */
        right: 1rem;
        /* bottom: 1rem; */ 
        max-height: 100vh; /* Verwende '100vh' für den sichtbaren Bereich des Viewports */
        width: 54px; /* Setze die Breite auf 54px, damit sie in dieser Ansicht gleich bleibt */
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    
    #signup_modal .modal-header,
    #signup_modal .modal-header {
        padding:1.5rem 1.5rem 1.5rem 1.5rem;
    }

    #signup_modal .modal-body ,
    #signup_modal .modal-body  {
        padding:0rem 1.5rem 1.5rem 1.5rem;
    }
}

/* EroCall Button: Ausblenden im Landscape Modus auf kleinen Bildschirmen */
@media screen and (max-width: 991px) and (orientation: landscape) {
    .d-portrait-only {
        display: none !important;
    }
}


/* EroCall Button Status */
.erocall-available-btn {
    background-color: var(--erocms-color-green) !important;
    color: #fff !important;
    animation: erocall-pulse-animation 2s infinite;
    box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0.7);
}

.erocall-unavailable-btn {
    background-color: var(--bs-danger) !important;
    color: #fff !important;
    animation: none !important;
}

@keyframes erocall-pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(var(--bs-success-rgb), 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0); }
}

/* ==========================================================================
   Videothek (Netflix-Style) CSS Styles
   ========================================================================== */

#videothek_box {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow-y: auto;
    background-color: #111111;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

#videothek_controls {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
}

#videothek_controls input::placeholder {
    color: rgba(255,255,255,0.4);
}

#video_filter_popover {
    right: 0;
    top: 100%;
    background-color: #1c1c1e !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.video-row-container {
    position: relative;
    margin-bottom: 2rem;
}

.video-row-list {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.video-row-list::-webkit-scrollbar {
    display: none;
}

.video-item {
    flex: 0 0 calc(20% - 0.8rem);
    min-width: 200px;
    aspect-ratio: 16/9;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    z-index: 10;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
}

.video-duration {
    align-self: flex-end;
    background-color: rgba(0,0,0,0.75);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.video-title-container {
    width: 100%;
}

.video-title {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-lock-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    font-size: 2rem;
    transition: background-color 0.3s ease;
}

.video-item:hover .video-lock-overlay {
    background-color: rgba(0,0,0,0.2);
}

.video-price-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: rgba(255, 193, 7, 0.95);
    color: #000000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Navigationspfeile für Desktop */
.video-row-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.video-row-nav-arrow span {
    font-size: 24px;
    margin-top: 1px;
}

.video-row-nav-arrow.left-arrow span {
    margin-left: 6px;
}

.video-row-nav-arrow:hover {
    background-color: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.video-row-container:hover .video-row-nav-arrow {
    opacity: 1;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Responsive Anpassungen */
@media (max-width: 991px) {
    .video-item {
        flex: 0 0 calc(33.33% - 0.7rem);
        min-width: 170px;
    }
}

@media (max-width: 768px) {
    .video-row-nav-arrow {
        display: none !important;
    }
    .video-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 145px;
    }
}

/* Custom Scrollbar für die Filmbeschreibung im Modal */
#movie_detail_description::-webkit-scrollbar {
    width: 6px;
}
#movie_detail_description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
#movie_detail_description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
#movie_detail_description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

#movie_detail_modal .modal-content {
    background-color: #141414 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#movie_detail_modal .btn-close-white {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.8;
}

#movie_detail_modal .btn-close-white:hover {
    opacity: 1;
}

#movie_detail_modal .buy-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#movie_detail_modal .buy-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-video-toggle {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
}

.btn-video-toggle:hover, .btn-video-toggle:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Onboarding Chat Toggle Tooltip */
.chat-toggle-hint-popover {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #1c1c1e;
    color: #ffffff;
    border: 1px solid var(--erocms-color-green);
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    width: 250px;
    max-width: 80vw;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.chat-toggle-hint-popover.show {
    opacity: 1;
    pointer-events: auto;
    animation: hintPulse 2s ease-in-out infinite;
}

.chat-toggle-hint-popover .hint-arrow {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #1c1c1e;
    border-right: 1px solid var(--erocms-color-green);
    border-top: 1px solid var(--erocms-color-green);
}

@keyframes hintPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 0 0px rgba(0, 230, 118, 0.5);
        border-color: rgba(0, 230, 118, 0.6);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(0, 230, 118, 0.15);
        border-color: rgba(0, 230, 118, 1);
    }
}


