/*
 * ux-enhancements.css
 * bodgirls.com — UX Enhancement Stylesheet
 * Dark theme with accent color, fluid typography, and progressive enhancements.
 * Font: Exo 2 (load via <link> in template head)
 */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */

:root {
  --accent:              #ea1753;
  --accent-hover:        #ff2060;
  --bg-primary:          #16171b;
  --bg-secondary:        #1e1f24;
  --bg-card:             #2e2f35;
  --bg-card-hover:       #3a3b42;
  --text-primary:        #ffffff;
  --text-secondary:      #8b8f96;
  --radius:              10px;
  --radius-sm:           6px;
  --shadow:              0 4px 20px rgba(0,0,0,0.4);
  --transition:          0.25s ease;
  --font-size-base:      clamp(13px, 1.4vw, 15px);
}

/* ===== BASE / FLUID TYPOGRAPHY ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  font-size: var(--font-size-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}


/* ===== GLASSMORPHISM HEADER ON SCROLL ===== */

/* Base header transition — always present so scroll animation is smooth */
.header {
  transition: all 0.3s ease;
}

/* Applied via JS when user scrolls down */
.header.scrolled {
  background: rgba(22, 23, 27, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(234, 23, 83, 0.15);
  transition: all 0.3s ease;
}


/* ===== CARD SKELETON LOADERS ===== */

/* Shimmer keyframe — sweeps a lighter band across the placeholder */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Shared shimmer mixin via class */
.item.skeleton .img,
.item.skeleton .title,
.item.skeleton .meta-row span {
  background: linear-gradient(
    90deg,
    #1e1f24 25%,
    #2e2f35 50%,
    #1e1f24 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
}

.item.skeleton .img {
  /* Preserve the image container's normal aspect ratio */
  border-radius: var(--radius) var(--radius) 0 0;
  min-height: 160px;
}

.item.skeleton .title {
  height: 14px;
  width: 80%;
  display: block;
  margin: 8px 8px 6px;
}

.item.skeleton .meta-row span {
  height: 11px;
  width: 40%;
  display: inline-block;
}


/* ===== QUALITY BADGES ===== */

/* Reposition duration badge to bottom-left */
.duration-badge {
  position: absolute !important;
  bottom: 6px !important;
  left: 6px !important;
  top: auto !important;
  right: auto !important;
}

/* Reposition is-hd badge to top-right */
.is-hd {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  bottom: auto !important;
  left: auto !important;
}

/* Shared badge pill styles */
.badge-4k,
.badge-hd,
.badge-vr {
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.badge-4k {
  background: #f0a500;
  color: #000;
}

.badge-hd {
  background: #22c55e;
  color: #fff;
}

.badge-vr {
  background: #8b5cf6;
  color: #fff;
}

/* Stack multiple badges when both is-hd and a custom badge are present */
.is-hd + .badge-4k,
.is-hd + .badge-vr {
  top: 28px;
}


/* ===== MODEL NAME CHIP ON VIDEO CARD ===== */

.model-chip {
  display: inline-block;
  background: rgba(234, 23, 83, 0.15);
  color: #ea1753;
  border: 1px solid rgba(234, 23, 83, 0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  text-decoration: none;
  margin-top: 3px;
  transition: background 0.2s;
  line-height: 1.6;
}

.model-chip:hover {
  background: rgba(234, 23, 83, 0.3);
  color: #ea1753;
}


/* ===== MODELS GRID — PORTRAIT CARDS ===== */

.list-models .item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-models .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Force portrait 2:3 aspect ratio via padding-bottom hack */
.list-models .item .img {
  height: 0;
  padding-bottom: 150%;
  position: relative;
  overflow: hidden;
}

.list-models .item .img img.thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.list-models .item:hover .img img.thumb {
  transform: scale(1.05);
}


/* ===== MODEL CARD HOVER STATS OVERLAY ===== */

.list-models .item .model-stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 16px 10px 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.list-models .item:hover .model-stats-overlay {
  transform: translateY(0);
}

.model-stat {
  font-size: 11px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 4px;
}


/* ===== FOLLOW / SUBSCRIBE BUTTON ON MODEL CARD ===== */

.model-follow-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.list-models .item:hover .model-follow-btn {
  opacity: 1;
}

.model-follow-btn.following {
  background: transparent;
  border: 1px solid #fff;
}

.model-follow-btn.following:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* ===== MODEL PROFILE STATS BAR ===== */

.model-stats-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid #2e2f35;
  border-bottom: 1px solid #2e2f35;
  margin: 12px 0;
}

.model-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-stat-icon {
  font-size: 18px;
  color: var(--accent);
}

.model-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.model-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
}


/* ===== RESPONSIVE VIDEO PLAYER — FORCE 16:9 ===== */
/* Admin player is set to 1280x550 (non-16:9); override everywhere with proper aspect ratio */

.block-video .player .player-wrap,
.block-video .player .embed-wrap {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  padding-bottom: 0 !important;
  position: relative;
  overflow: hidden;
}

.block-video .player .player-wrap #kt_player,
.block-video .player .player-wrap #kt_player_internal,
.block-video .player .embed-wrap iframe,
.block-video .player .embed-wrap video,
.block-video .player .embed-wrap object {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}


/* ===== FLOATING MINI-PLAYER ===== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#floating-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  overflow: hidden;
}

#floating-player.active {
  display: block;
  animation: slideInUp 0.3s ease;
}

#floating-player .fp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
}

#floating-player iframe,
#floating-player .player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}


/* ===== RELATED VIDEOS — HORIZONTAL SWIPER RAIL ===== */

.related-videos-swiper {
  width: 100%;
  overflow: hidden;
}

.related-videos-swiper .swiper-slide {
  width: 200px;
}

.related-videos-swiper .item {
  display: block;
  text-decoration: none;
}

.related-videos-swiper .item .img {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.related-videos-swiper .item .title {
  font-size: 12px;
  margin-top: 5px;
  color: #ddd;
  line-height: 1.4;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ===== TAGS AS PILLS ===== */

.tags-list a,
.tag-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
  margin: 3px;
  border: 1px solid transparent;
  line-height: 1.6;
}

.tags-list a:hover,
.tag-pill:hover {
  background: rgba(234, 23, 83, 0.15);
  color: var(--accent);
  border-color: rgba(234, 23, 83, 0.3);
}


/* ===== MODEL CHIPS ON VIDEO PAGE ===== */

.video-model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.video-model-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border-radius: 30px;
  padding: 5px 14px 5px 5px;
  text-decoration: none;
  transition: background 0.2s;
}

.video-model-chip:hover {
  background: var(--bg-card-hover);
}

.video-model-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.video-model-chip span {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}


/* ===== LIKE / DISLIKE ANIMATION ===== */

@keyframes popBounce {
  0%   { transform: scale(1);   }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1);   }
}

.btn-like,
.btn-dislike {
  transition: transform 0.2s;
}

.btn-like.pop,
.btn-dislike.pop {
  animation: popBounce 0.4s ease;
}


/* ===== MASONRY PHOTO GRID ===== */

.album-images .images {
  columns: 3;
  column-gap: 8px;
}

.album-images .images a,
.album-images .images img {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 6px;
  break-inside: avoid;
  transition: opacity 0.2s;
}

.album-images .images a:hover img {
  opacity: 0.85;
}


/* ===== PHOTOSWIPE CUSTOM DARK THEME ===== */

/* PhotoSwipe v5 CSS custom properties */
.pswp {
  --pswp-bg:         #0a0a0a;
  --pswp-icon-color: #fff;
  touch-action: none;
  -ms-touch-action: none;
}

.pswp__container {
  touch-action: none;
}

.pswp__item {
  touch-action: none;
}

.pswp__button--close {
  background: rgba(234, 23, 83, 0.8) !important;
  border-radius: 50% !important;
}


/* ===== ALBUM CARD — 4-PHOTO CONTACT STRIP ===== */

.album-preview-strip {
  display: flex;
  height: 36px;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
  margin-top: -4px;
}

.album-preview-strip img {
  flex: 1;
  object-fit: cover;
  min-width: 0;
  display: block;
}

.album-preview-strip img + img {
  border-left: 1px solid rgba(0, 0, 0, 0.3);
}


/* ===== PROFILE COVER PHOTO BANNER ===== */

.profile-cover {
  position: relative;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1b21, #2e2f35);
  margin-bottom: 16px;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-cover .cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

.profile-cover-avatar {
  position: absolute;
  bottom: 10px;
  left: 16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.profile-cover-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-cover-name {
  position: absolute;
  bottom: 18px;
  left: 108px;
  right: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ===== MEMBER PROFILE VIEW SECTIONS ===== */

.member-profile-view h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.member-profile-view .buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.member-profile-view .buttons .submit {
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.member-profile-view .buttons .submit:hover {
  opacity: 0.85;
}


/* ===== CREATORS PAGE ===== */

.creators-page-header {
  margin-bottom: 24px;
}

.creators-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.creators-subheading {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.creator-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.creator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.creator-card-avatar-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-card);
}

.creator-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.creator-card:hover .creator-avatar {
  transform: scale(1.04);
}

.creator-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  text-transform: uppercase;
}

.creator-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-name:hover {
  color: var(--accent);
}

.creator-verified {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.creator-verified svg {
  width: 100%;
  height: 100%;
}

.creator-stats {
  font-size: 12px;
  color: var(--text-secondary);
}

.creator-bio {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.creator-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.social-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.social-btn svg {
  width: 14px;
  height: 14px;
}

.social-x   { background: #000; }
.social-ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-of  { background: #00aff0; }
.social-sb  { background: #ff3e3e; }
.social-web { background: #555; }

.creator-videos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: auto;
  align-self: flex-start;
}

.creator-videos-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.creators-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 48px;
  font-size: 16px;
}

@media (max-width: 1024px) {
  .creators-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .creators-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .creator-info  { padding: 10px; }
  .creator-name  { font-size: 13px; }
}


/* ===== SEARCH FACETED SIDEBAR ===== */

.search-facets {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.search-facets h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
  font-weight: 600;
}

.facet-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
}

.facet-option input {
  accent-color: var(--accent);
  cursor: pointer;
}

.facet-option label {
  font-size: 13px;
  color: #ddd;
  cursor: pointer;
  line-height: 1.4;
}


/* ===== SEARCH AUTOCOMPLETE WITH THUMBNAIL ===== */

/* Augments the existing autocomplete dropdown items */
.autocomplete-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
}

.autocomplete-suggestion img {
  width: 48px;
  height: 27px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.autocomplete-suggestion .ac-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

.autocomplete-suggestion .ac-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}


/* ===== MOBILE BOTTOM NAVIGATION BAR ===== */

#mobile-bottom-nav {
  display: none; /* shown only on mobile via media query below */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(22, 23, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}

#mobile-bottom-nav a,
#mobile-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

#mobile-bottom-nav a.active,
#mobile-bottom-nav a:hover,
#mobile-bottom-nav button:hover {
  color: var(--accent);
}

#mobile-bottom-nav .nav-icon {
  font-size: 20px;
  line-height: 1;
}


/* ===== PULL-TO-REFRESH INDICATOR ===== */

#ptr-indicator {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 0 0 20px 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9998;
  transition: top 0.3s ease;
  white-space: nowrap;
}

#ptr-indicator.visible {
  top: 0;
}


/* ===== CSS CONTENT-VISIBILITY FOR CARDS (PERFORMANCE) ===== */

/* Defers rendering of off-screen cards; hint size prevents layout shift */
.list-videos .item,
.list-albums .item,
.list-models .item {
  content-visibility: auto;
  contain-intrinsic-size: 0 280px;
}


/* ===== CATEGORY QUICK-FILTER STRIP ===== */

.category-filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;          /* Firefox */
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.category-filter-strip::-webkit-scrollbar {
  display: none;
}

.cat-filter-pill {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: #ddd;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}

.cat-filter-pill:hover,
.cat-filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ===== CONTENT AREA TOP SPACING ===== */

/* Push page content down from the nav bar on all pages */
.content {
  padding-top: 20px;
}

/* ===== HOMEPAGE HERO SWIPER ===== */

#hero-swiper {
  width: 100%;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: #111;
}

#hero-swiper .swiper-slide {
  position: relative;
  aspect-ratio: 16 / 7;
}

#hero-swiper .hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#hero-swiper .hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

#hero-swiper .hero-slide-content {
  max-width: 60%;
}

#hero-swiper .hero-title {
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

#hero-swiper .hero-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#hero-swiper .hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

#hero-swiper .hero-play-btn:hover {
  background: var(--accent-hover);
}

/* Swiper pagination dots */
#hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

#hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}


/* ===== HOMEPAGE TAB SWITCHER ===== */

.home-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.home-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  /* Reset button defaults */
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.home-tab.active,
.home-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ===== LOAD-MORE BUTTON ===== */

.load-more a {
  display: block;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 14px;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  margin: 16px 0;
}

.load-more a:hover {
  background: var(--bg-card-hover);
  border-color: rgba(234, 23, 83, 0.3);
  color: var(--accent);
}


/* ===== IMPROVED VIDEO CARD ===== */

.list-videos .item {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-card);
}

.list-videos .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.list-videos .item .img {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  position: relative;
}

.list-videos .item .title {
  padding: 8px 8px 4px;
  color: #e8e8e8;
  font-size: 13px;
  line-height: 1.4;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-videos .item .meta-row {
  padding: 0 8px 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Play overlay inside card image wrapper */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.list-videos .item:hover .play-overlay {
  opacity: 1;
}


/* ===== ALPHABET FILTER STRIP ===== */

.alphabet-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 0;
}

.alphabet-strip a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.alphabet-strip a:hover,
.alphabet-strip a.active {
  background: var(--accent);
  color: #fff;
}


/* ===== MOBILE RESPONSIVE FIXES ===== */

@media (max-width: 640px) {
  /* Show the mobile bottom nav on small screens */
  #mobile-bottom-nav {
    display: flex;
  }

  /* Push page content above the fixed bottom nav */
  body {
    padding-bottom: 64px;
  }

  /* Hero slide mobile */
  #hero-swiper .swiper-slide {
    aspect-ratio: 16 / 9;
  }

  #hero-swiper .swiper-button-next,
  #hero-swiper .swiper-button-prev {
    display: none;
  }

  #hero-swiper .hero-slide-overlay {
    padding: 12px 14px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.2) 60%,
      transparent 100%
    );
    align-items: flex-end;
  }

  #hero-swiper .hero-slide-content {
    max-width: 100%;
  }

  #hero-swiper .hero-title {
    font-size: 14px;
    margin: 0 0 8px 0;
  }

  #hero-swiper .hero-play-btn {
    padding: 7px 16px;
    font-size: 13px;
  }

  /* Albums: 2-column masonry on mobile */
  .album-images .images {
    columns: 2;
  }

  /* Tighten chip and stats spacing on mobile */
  .video-model-chips {
    gap: 4px;
  }

  .model-stats-bar {
    gap: 10px;
  }

  /* Reduce related swiper slide width on mobile */
  .related-videos-swiper .swiper-slide {
    width: 160px;
  }

  /* Profile cover shorter on mobile */
  .profile-cover {
    height: 140px;
  }

  /* Floating player goes full-width on very small screens */
  #floating-player {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 76px; /* above mobile bottom nav */
  }

}
