/* 
==============================================================================
  FULL UPDATED STYLESHEET
  Organized by sections for clarity
==============================================================================
*/


/*------------------------------------------------------------------------------
  1. GLOBAL RESET & BOX-SIZING
------------------------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Open Sans", sans-serif;
}

h4 {
  margin-top: 0;
}


/*------------------------------------------------------------------------------
  2. LAZY LOADING STYLES
------------------------------------------------------------------------------*/
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img.lazy-loading {
  opacity: 0.5;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

img.lazy-loaded {
  opacity: 1;
}

img.lazy-error {
  opacity: 0.3;
  background-color: #444;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/*------------------------------------------------------------------------------
  3. BASE THEME (Dark)
------------------------------------------------------------------------------*/
body.dark-theme {
  background: #040404;
  color: #fff;
}

.highlighted-heading {
  color: #FC5895;
}


/*------------------------------------------------------------------------------
  3. HEADER & NAV MENU
------------------------------------------------------------------------------*/
header {
  position: fixed;
  width: 100%;
  z-index: 8999;
  background: #000;
}

.header-content {
  margin: 0 auto;
  max-width: 1366px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

/* LOGO */
.logo {
  font-weight: bold;
  font-size: 0rem;
}

.logo img {
  max-width: 100px;
}

@media (max-width: 768px) {
  .logo img {
    max-width: 80px;
  }
  .header-content {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .header-content {
    margin: 0 15px;
    padding: 5px 10px;
  }
}

/* When searching on mobile, hide logo/hamburger, expand search. */
.header-content.search-active .logo,
.header-content.search-active .hamburger-menu {
  display: none !important;
}

.header-content.search-active .search-form {
  flex: 1;
  width: 100%;
  margin: 0;
  justify-content: flex-start;
  padding: 0 1rem;
}


/*------------------------------------------------------------------------------
  4. SEARCH FORM (HEADER)
------------------------------------------------------------------------------*/
.search-form {
  position: relative;
  display: flex;
  flex: 1;
  justify-content: center;
}

.search-field-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.search-icon {
  font-size: 20px;
  color: #ccc;
  margin-right: 6px;
}

.back-button {
  font-size: 20px;
  color: #ccc;
  margin-right: 8px;
  display: none; 
  cursor: pointer;
}

.search-tags-container {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  color: #fff;
  width: 400px;
  border-radius: 30px;
  padding: 8px 15px;
  position: relative;
}

.tag-ghost-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  flex: 1;
  font-size: 1rem;
  min-width: 70px;
}

.tag-bubble {
  display: inline-flex;
  align-items: center;
  border: 1px solid #FC5895;
  color: #fff;
  padding: 6px 10px;
  margin-right: 5px;
  border-radius: 16px;
  font-size: 0.8rem;
}

/* Style for actor bubbles - different color to differentiate from tags */
.actor-bubble {
  border: 1px solid #4B9CD3;
  background-color: rgba(75, 156, 211, 0.2);
}

.tag-bubble .tag-close {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
}

.tag-buttons {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .header-content.search-active .hamburger-menu,
  .header-content.search-active .logo {
    display: none !important;
  }

  .back-button {
    display: none;
    font-size: 24px;
  }

  .search-form {
    flex: 1;
    justify-content: flex-start;
  }
}

/* Autocomplete suggestions */
.autocomplete-suggestions {
  display: none;
  background: rgba(0, 0, 0);
  box-shadow: 0px 5px 18px rgba(204, 204, 204, 0.15);
  max-height: 350px;
  overflow-y: auto;
  width: 100%;
  border-radius: 8px;
  position: absolute;
  top: 100%;
  z-index: 9999;
  margin-top: 15px;
  padding: 5px;
  max-width: 500px;
}

.suggestion-title {
  padding: 10px;
  font-weight: bold;
  color: #FC5895;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
}

/* Style for actor suggestion items */
.actor-item {
  color: #4B9CD3;
}

.suggestion-item:hover {
  background-color: rgba(56, 56, 56, 0.8);
}

/* On smaller devices, space for the search field is narrower */
@media (max-width: 480px) {
  .autocomplete-suggestions {
    left: 0;
  }
  .tag-ghost-input {
    font-size: 0.8rem;
  }
  .search-tags-container {
    padding: 5px;
  }
}

/* RESPONSIVE HEADER SEARCH */
@media (max-width: 768px) {
  .search-tags-container {
    width: 100%;
    border-radius: 30px;
    margin-right: 0;
    padding: 8px 10px;
  }
  .tag-ghost-input {
    min-width: 0;
    width: 100%;
    padding-left: 0;
  }
}


/*------------------------------------------------------------------------------
  5. HAMBURGER MENU
------------------------------------------------------------------------------*/
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3000;  
  position: static; /* on desktop */
}

.hamburger-menu:focus {
  outline: none;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Cross transformation when active */
.hamburger-menu.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* On mobile, we absolutely position the hamburger top-right */
@media (max-width: 768px) {
  .hamburger-menu {
    top: 14px;
    right: 10px;
    order: 1;
  }
}


/*------------------------------------------------------------------------------
  6. SIDE MENU & OVERLAY
------------------------------------------------------------------------------*/
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 70%;
  max-width: 300px;
  z-index: 2000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  background: #000;
  border-left: 1px solid rgb(31, 31, 31);
}

.side-menu.open {
  right: 0;
}

.side-menu .menu-links {
  list-style: none;
  padding: 0;
  margin: 60px 0 0 20px;
  display: flex; 
  flex-direction: column;
}

.side-menu .menu-links li {
  margin: 0;
}

.side-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 4px;
}
.side-menu a:hover {
  background-color: #333;
}

/* Overlay for side menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.menu-overlay.open {
  display: block;
  opacity: 1;
}


/*------------------------------------------------------------------------------
  7. PAGE CONTAINER & MAIN
------------------------------------------------------------------------------*/
.container {
  display: flex;
  margin: 0 auto;
  flex-direction: row;
  min-height: 100vh;
  max-width: 1366px;
  overflow-x: hidden;
}

main {
  flex: 1;
  margin-top: 70px;
  padding: 10px 20px;
  box-sizing: border-box;
}
/*------------------------------------------------------------------------------
  8. SIMILAR VIDEO GRID & PREVIEWS
------------------------------------------------------------------------------*/
.similar-videos-container {
  width: 100%;
  margin: 0 auto;
}

.similar-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;  
    gap: 20px 20px; 
    margin-bottom: 20px;
}

@media (max-width: 920px) {
  .similar-video-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr); 
  }
}

@media (max-width: 480px) {
  .similar-video-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr); 
  }
  main {
    padding: 10px 10px;
  }
}

.similar-video-grid-header {
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid #333;
  margin-bottom: 20px;
  margin-top: 20px;
}

/*------------------------------------------------------------------------------
  8. VIDEO GRID & PREVIEWS
------------------------------------------------------------------------------*/
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

.video-item {
  /* background: rgb(13, 13, 13); */
  /* background: radial-gradient(circle, rgb(37, 37, 37) 0%,rgba(13, 13, 13,1)  100%); */
  border-radius: 8px;
}

.video-item img {
  display: block;
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.video-title {
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: bold;
}

.video-item p {
  margin-top: 5px;
  font-size: 0.8rem;
  color: rgb(150, 150, 150);
}

.video-link {
  color: #fff;
  text-decoration: none;
}

.video-item-text {
  padding: 10px 10px 0 10px;
}

.video-stats {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #aaa;
  border-radius: 0 0 8px 8px;
}

.video-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.actors-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.actor-link {
  color: #FC5895;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.actor-icon {
  font-size: 1.1em;
  flex-shrink: 0;
}

.actor-link:hover {
  color: #ff80af;
  text-decoration: none;
}

.like-container {
  display: flex;
  gap: 10px;
}

.heart-icon {
  font-size: 24px;
  color: #FC5895;
  cursor: pointer;
  user-select: none;
}
.heart-icon.liked {
  color: #FC5895;
}
.heart-icon:hover {
  color: #FC5895;
}

.sweat-icon {
  font-size: 20px;
  color: #2196F3;
  cursor: pointer;
  user-select: none;
  margin-right: 5px;
}

@media (max-width: 480px) {
  .video-title {
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: bold;
  }
  .video-item p {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #969696;
  }
}

/* Video preview on hover */
.video-preview-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  /* background: #000; */
}

.video-preview-container img.video-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emote-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px!important;
  z-index: 10;
}

.emote-tooltip {
  position: absolute;
  z-index: 15;
  right: 70px;
  bottom: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.emote-overlay:hover + .emote-tooltip {
  opacity: 1;
}

/* Admin panel emote selector styles */
.emote-selector {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.emote-option {
  width: 50px;
  height: 50px;
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.emote-option.selected {
  border-color: #FC5895;
}

.emote-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.emote-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  color: white;
  font-size: 20px;
}

.video-preview-container .video-duration {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  z-index: 10;
}

.featured-badge {
  position: absolute !important;
  top: -15px !important;
  left: -20px !important;
  width: 205px !important;
  height: 65px !important;
  z-index: 10 !important;
}

.featured-badge-bottom {
  position: absolute !important;
  bottom: -15px !important;
  right: -20px !important;
  width: 100px !important;
  height: 100px !important;
  z-index: 10 !important;
}

/* Ensure the featured image is behind the overlay stickers */
.featured-component {
  position: relative;
  z-index: 1;
}

/*------------------------------------------------------------------------------
  9. VIDEO DETAIL PAGE
------------------------------------------------------------------------------*/
.video-layout-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.video-main-column {
  flex: 2;
}

.video-info-column {
  flex: 1;
}

.video-description-box {
  background: #1a1a1a;
  padding: 10px 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.watch-button-container {
  margin-top: auto;
}

@media (max-width: 992px) {
  .video-layout-container {
    flex-direction: column;
    gap: 0;
  }
  
  .video-info-column {
    order: 2;
  }
}

.video-container {
  max-width: 820px;
  margin: 0 auto;
}

.video-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-detail video {
  width: 100%;
  max-width: 800px;
  height: auto;
}
.video-detail img {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 65.5%;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .iframe-container {
    padding-top: 75.5%;
  }
}

.video-embed {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .video-embed {
    height: 300px;
  }
}

.video-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.video-views {
  font-size: 1rem;
  font-weight: 500;
}

/* share + like alignment */
.stats-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.share-button {
  color: #FC5895;
  cursor: pointer;
}
.share-like-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.copy-message {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 80px;
  padding: 6px 10px;
  background-color: #FC5895;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  display: none;
}
.copy-message::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #FC5895;
}


/*------------------------------------------------------------------------------
  10. FOOTER
------------------------------------------------------------------------------*/
.site-footer {
  background: #000;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.footer-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 30%;
  text-align: center;
  min-width: 200px;
}

.footer-heading {
  color: #FC5895;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 0;
}

.footer-logo img {
  max-width: 200px;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 10px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: #FC5895;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

.footer-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px 0;
  transition: background 0.2s ease;
}

.footer-discord-btn:hover {
  background: #4854c7;
}

.discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #bbbbbb;
  border-top: 1px solid #333;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .footer-column {
    flex: 1 1 100%;
  }
}


/*------------------------------------------------------------------------------
  11. PAGINATION
------------------------------------------------------------------------------*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 6px;
}
.page-icon {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  background: #2a2a2a;
  border-radius: 4px;
  color: #ddd;
  text-decoration: none;
  font-size: 16px;
}
.page-icon .material-icons {
  font-size: 20px;
  vertical-align: middle;
}
.page-icon:hover {
  background: #444;
}
.page-icon.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.page-number {
  padding: 6px 10px;
  background: #2a2a2a;
  border-radius: 4px;
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
}
.page-number:hover {
  background: #444;
}
.page-number.active {
  background: #FC5895;
  color: #fff;
  pointer-events: none;
}
.page-ellipsis {
  padding: 6px 10px;
  color: #999;
  font-size: 14px;
}


/*------------------------------------------------------------------------------
  12. ACTORS / TAGS / ETC. 
------------------------------------------------------------------------------*/
/* Actor button style */
.actor-btn {
  display: inline-block;
  background: #FC5895;
  color: #fff;
  padding: 10px 20px;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}
.actor-btn:hover {
  background: #c93c70;
}
.actor-btn-menu {
  display: inline-block;
  background: #FC5895;
  color: #fff;
  padding: 8px 14px;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}
.actor-btn-menu:hover {
  background: #c93c70;
}

/* Tag button style */
.tag-btn {
  display: inline-block;
  border: 1px solid #FC5895;
  color: #fff;
  padding: 6px 10px;
  margin-right: 5px;
  border-radius: 16px;
  margin-bottom: 6px;
  text-decoration: none;
  font-size: 0.8rem;
}
.tag-btn:hover {
  background: #FC5895;
  color: #000;
}

/* "Watch video" button style */
.watch-video-btn {
  display: inline-flex;
  align-items: center;
  background: #FC5895;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}
.watch-video-btn:hover {
  background: #c93c70;
}
.watch-video-btn .material-icons {
  margin-right: 4px;
}


/*------------------------------------------------------------------------------
  13. SITE COMPONENT (CREATORS, ETC.)
------------------------------------------------------------------------------*/


.site-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.7);
  border-radius: 50%;
  padding: 5px;
}

.onlyfans-icon,
.fansly-icon {
  z-index: 10;
  object-fit: contain;
}

/* The name and description */
.creator-name {
  font-size: 1.1em;
  margin: 8px 0 4px 0;
  color: #FC5895;
  text-align: center;
}

.creator-description {
  font-size: 0.9em;
  text-align: center;
  color: #ccc;
  margin-bottom: 5px;
}

/* Responsive adjustments */

/* Medium screens: 2 columns */
@media (max-width: 768px) {
  .creators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .creator-image-container {
    width: 120px;
    height: 120px;
  }
}

/*------------------------------------------------------------------------------
  14. MESSAGES, BANNERS, ETC.
------------------------------------------------------------------------------*/
.banner {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.banner img {
  max-width: 600px;
  width: 100%;
}

.site-message-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-message {
  max-width: 600px;
  padding: 10px 30px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}
.site-message-pink {
  background-color: rgba(252, 88, 149, 0.6);
  border: 1px solid #FC5895;
}
.site-message-red {
  background-color: rgba(228, 66, 75, 0.6);
  border: 1px solid #e4424b;
}
.site-message-green {
  background-color: rgba(118, 228, 75, 0.6);
  border: 1px solid #76e44b;
}

@media (max-width: 768px) {
  .site-message {
    padding: 10px 15px;
    margin: 5px 20px;
  }
}
@media (max-width: 480px) {
  .site-message {
    padding: 4px 5px;
    font-size: 0.7rem;
    margin: 5px 10px;
  }
}


/*------------------------------------------------------------------------------
  15. AGE VERIFICATION OVERLAY
------------------------------------------------------------------------------*/
.age-verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Shown in JS if needed */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.age-verification-bg {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.6);
}
.age-verification-popup {
  position: relative;
  background-color: #000;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.age-verification-popup h2 {
  margin-top: 0;
}
.verify-button {
  background-color: #161616;
  border: 0px solid #3a3a3a;
  border-radius: 8px;
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin: 1rem 0.5rem 0;
  cursor: pointer;
  font-size: 1.5rem;
}
#ageVerifyYes {
  background-color: #d82794;
  font-weight: bold;
}
#ageVerifyYes:hover {
  background-color: #FE2DAF;
}
.verify-button:hover {
  background-color: #3d3d3d;
}


/*------------------------------------------------------------------------------
  16. NANAMI & RANDOM EMOTES (IF ANY)
------------------------------------------------------------------------------*/
.nanami-emote {
  position: fixed;
  bottom: -4px;
  right: 20px;
  z-index: 9000;
}
.nanami-emote img {
  width: 60px;
  height: auto;
  cursor: pointer;
}
.random-emote {
  position: fixed;
  bottom: 25px;
  right: 75px;
  width: 70px;
  height: auto;
}


/*------------------------------------------------------------------------------
  17. GROUP SECTIONS / ACTORS (LIST PAGES) - UPDATED
------------------------------------------------------------------------------*/
.group-section {
  margin-bottom: 2rem;
  max-width: 100%;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2a2a2a;
}

.group-section h3 {
  color: #FC5895;
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.group-count {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.group-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.group-item {
  transition: transform 0.2s ease;
}

.group-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  background: #2a2a2a;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.group-link:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 1px 10px rgba(252, 88, 149, 0.15);
}

.group-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #FC5895;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.group-link:hover::before {
  opacity: 1;
}

.group-link i {
  color: #FC5895;
  font-size: 1.2rem;
  min-width: 24px;
}

.group-link span {
  flex-grow: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.popularity-badge {
  background: rgba(252, 88, 149, 0.2);
  color: #FC5895;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(252, 88, 149, 0.3);
}

@media (max-width: 768px) {
  .group-section {
    padding: 1rem;
  }
  
  .group-list {
    grid-template-columns: 1fr;
  }
  
  .group-link {
    padding: 0.75rem;
  }
}

/* Optional horizontal menu style (if you have it) */
.horizontal-menu {
  padding: 5px 10px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}
.menu-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 768px) {
  .menu-links {
    flex-direction: column;
    gap: 10px;
  }
}
.menu-links li {
  position: relative;
}
.menu-links li span {
  display: block;
  margin-bottom: 5px; /* Space between text and switch */
  color: #fff; /* Ensure text is visible */
}
.menu-links a {
  text-decoration: none;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.menu-links a:hover {
  background-color: #333;
}

/* Dropdown menus (if used) */
.dropdown .dropdown-btn {
  cursor: pointer;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  background-color: #0D0D0D;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px;
  margin: 0;
  display: none;
  z-index: 1000;
  min-width: 200px;
}
.dropdown-menu li {
  padding: 0;
}
.dropdown-menu a {
  padding: 8px 15px;
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  transition: background-color 0.2s ease;
}
.dropdown-menu a:hover {
  background-color: #333;
}
.dropdown:hover .dropdown-menu {
  display: block; 
}
.see-all-btn {
  color: #00bfff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
}
.see-all-btn:hover {
  text-decoration: underline;
}
.arrow-icon {
  font-size: 1rem;
  margin-left: 5px;
}

.video-grid-header {
  margin-bottom: 20px;
}

.video-grid-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 50px;
}

@media (max-width: 768px) {
  .video-grid-links {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .video-grid-links {
    gap: 0;
    font-size: 0.8rem;
  }
}

.video-grid-link {
  color: #fff;
  text-decoration: none;
  padding-bottom: 4px; /* Space for border */
  border-bottom: 2px solid transparent; /* Default transparent border */
  transition: border-color 0.3s ease;
}

.video-grid-link:hover {
  border-bottom-color: #777; /* Hover border color */
}

.video-grid-link.active {
  border-bottom-color: #FC5895; /* Pink border for active link */
  font-weight: bold; /* Make active link bolder */
}

/* Video grid header links */
.video-grid-links .material-icons {
  font-size: 18px; /* Reduce icon size */
  vertical-align: middle;
  margin-right: 6px;
}

.video-grid-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
}

/*------------------------------------------------------------------------------ 
  18. TOGGLE SWITCH 
------------------------------------------------------------------------------*/
.show-hentai {
  margin-bottom: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  left: 12px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #FC5895;
}

input:focus + .slider {
  box-shadow: 0 0 1px #FC5895;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.menu-switch-container {
  position: absolute;
  bottom: 20px; /* Adjust as needed */
  left: 20px; /* Adjust as needed */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #FC5895;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: #db437b;
}

.back-to-top .material-icons {
  color: white;
  font-size: 24px;
}

/* Add after existing video-grid styles */
.pubimage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}

.pubimage-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.pubimage-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #2a2a2a;
  min-height: 300px;
}

@media (max-width: 768px) {
  .pubimage-grid {
    grid-template-columns: 1fr;
  }
  
  .pubimage-item img {
    min-height: 400px;
  }
}

.image-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.loading {
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sort-buttons,
.filter-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-btn {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.sort-btn.active,
.sort-btn:hover {
  background: #FC5895;
  color: #fff;
  border-color: #FC5895;
}

.filter-buttons label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #555;
}

.filter-buttons input[type="checkbox"] {
  accent-color: rgb(252, 88, 149);
  transform: scale(1.2);
}

/* --------------------------------------------------
   Gallery Grid – 1 Column Layout on All Devices
   and Limited Width on Desktop
--------------------------------------------------- */
.pubimage-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 20px;
  padding: 10px;
  margin: 0 auto;
  max-width: 800px;
}

.pubimage-item {
  width: 100%;
}

/* Updated Gallery Controls Styling */
.gallery-controls {
  margin-bottom: 1rem;
}

.sort-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-container,
.filter-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-container label,
.filter-container span {
  font-size: 0.9rem;
  color: #fff;
}

.sort-select {
  padding: 5px 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #fff;
}

.filter-chip {
  background: #444;
  border-radius: 20px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
}

.filter-chip input {
  margin-right: 5px;
}

/* ---- Gallery Like Styles (consolidated) ---- */
.pubimage-item {
  position: relative;
}

.pubimage-item .like-container {
  position: absolute;
  bottom: 20px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; /* Spacing between the heart and the like count */
}

.pubimage-item .gallery-heart {
  color: white !important;
  cursor: pointer;
  user-select: none;
  font-size: 24px;
  color: rgb(13, 13, 13);
}

.pubimage-item .gallery-heart[data-liked="true"] {
  color: #FC5895 !important;
}

.pubimage-item .gallery-like-count {
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 2px 12px rgba(0, 0, 0);
}

/* Featured Page Specific Styles */
.featured-component {
  box-shadow: 0 0 15px rgba(252, 88, 149,0.4);
  padding: 0 !important;
}

.featured-component .video-preview-container {
  padding-top: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 560px) {
  .featured-component .video-preview-container {
    height: 300px;
  }
}

.featured-component .video-image {
  object-fit: cover;
}

.featured-page .video-layout-container {
  display: flex;
  gap: 2rem;
}

.featured-main-column {
  flex: 2;
}

.featured-hero-badges {
  position: relative;
}

.featured-hero-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.featured-hero {
  width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 8px;
  object-fit: cover;
}

.featured-info-column {
  flex: 1;
}

.featured-info-column h1 {
  margin-top: 0;
}

.featured-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.featured-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.featured-social-link:hover {
  background: rgba(255,255,255,0.15);
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-text {
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Similar Videos Section */
.featured-videos-section {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.featured-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;  
  gap: 20px 20px; 
  margin-bottom: 20px;
}

@media (max-width: 920px) {
.featured-videos-grid {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr); 
}
}

@media (max-width: 480px) {
.featured-videos-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 1fr); 
}
}

@media (max-width: 992px) {
  .featured-page .video-layout-container {
    flex-direction: column;
  }

  .featured-hero-container {
    width: 100%;
  }
  
  .featured-info-column {
    flex: none;
    width: 100%;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .featured-hero {
    max-height: 50vh;
  }
  
  .featured-social-links {
    gap: 0.75rem;
  }
  
  .featured-social-link {
    padding: 0.6rem 1rem;
  }
}

/*------------------------------------------------------------------------------
  WEBP IMAGE SUPPORT AND ERROR HANDLING
------------------------------------------------------------------------------*/
.video-image {
  /* Ensure WebP images display properly */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  
  /* Better fallback handling */
  background-color: #000;
  background-image: linear-gradient(45deg, #333 25%, transparent 25%),
                    linear-gradient(-45deg, #333 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #333 75%),
                    linear-gradient(-45deg, transparent 75%, #333 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  
  /* Animation for failed images */
  transition: opacity 0.3s ease;
}

.video-image[style*="display: none"] {
  /* When image fails to load and is hidden */
  opacity: 0;
}

/* Specific handling for high-resolution images */
.video-image[src*=".webp"] {
  /* WebP specific optimizations */
  image-rendering: auto;
  object-fit: cover;
  background: #000;
}

/* Admin thumbnail specific styles */
.video-thumbnail {
  max-width: 120px;
  max-height: 80px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.video-thumbnail[style*="display: none"] {
  /* Show placeholder for failed admin thumbnails */
  display: block !important;
  background: #f0f0f0;
  color: #666;
  text-align: center;
  line-height: 80px;
  font-size: 12px;
}

.video-thumbnail[style*="display: none"]::after {
  content: "Image failed to load";
}