/* Single Video Page styles - clean, elegant, consistent with members-videos-page.css */
:root {
  --mv-primary: #00312d;
  --mv-primary-600: #171a1d;
  --mv-bg: #0b0f14;
  --mv-surface: #131a22;
  --mv-text: #e6eef7;
  --mv-muted: #9fb3c8;
  --mv-border: #1f2a36;
  --mv-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure all containers respect viewport width */
* {
  box-sizing: border-box;
}

/* Prevent overflow in main containers */
.video-page .container,
.video-page .row,
.main.video-page,
.main.video-page .container {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

/* Ensure container padding doesn't cause overflow */
/* Use 100% instead of 100vw to prevent overflow */
.video-page .container {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure flex containers don't overflow */
.video-page .video-two-col,
.video-page .left-meta,
.video-page .right-player {
  max-width: 100%;
  box-sizing: border-box;
}

/* Add gap between child elements in left-meta */
.video-page .left-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Ensure gap is applied to all direct children */
.video-page .left-meta > * {
  margin-bottom: 0; /* Reset margin, gap handles spacing */
}

/* Ensure page-content wrapper doesn't overflow */
.page-content.video-page,
.page-content.video-page > .container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  padding-left: 0;
  padding-right: 0;
}

/* Responsive container padding that doesn't cause overflow */
@media (min-width: 576px) {
  .page-content.video-page > .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .page-content.video-page > .container {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Title bar */
.video-page .page-title.fluid-title {
  background: none !important;
  border: 0 !important;
  padding-top: 6px;
  padding-bottom: 0;
}

/* Single column centering */
.video-page .page-title.fluid-title { text-align: center; }
.video-page .page-title.fluid-title .container { display: flex; justify-content: center; }
.video-page .page-title.fluid-title .title-wrapper { width: 100%; display: flex; justify-content: center; }
.video-page .title-wrapper { text-align: center; }
.video-page .video-main-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-align: left;
}
@media (min-width: 768px) {
  .video-page .video-main-title {
    font-size: 32px;
    font-weight: 600;
  }
}
@media (max-width: 819.98px) {
  .video-page .video-main-title {
    text-align: center;
  }
  .video-page .video-main-title::after {
    display: none;
  }
}
.video-page .video-main-title::after { 
  display: none; 
  content: none; 
}

/* Player card */
.card.card-video { background: var(--mv-surface); border: 1px solid var(--mv-border); box-shadow: var(--mv-shadow); }

/* Ensure video player is always visible */
.video-page .right-player {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  max-width: 100%;
}

.player-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
  display: block !important;
  visibility: visible !important;
  border-radius: 0 !important; /* Square corners */
}

.player-wrapper .player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.player-wrapper .lazy-player,
.player-wrapper video,
.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 !important; /* Square corners */
}

.player-wrapper .lazy-player {
  padding: 0;
  border-radius: 0 !important; /* Square corners */
}

.lazy-player {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: block !important;
  visibility: visible !important;
  border-radius: 0 !important; /* Square corners */
  overflow: hidden;
  transform: none !important; /* Remove any scale effects */
  transition: none !important; /* Remove transitions */
}

.lazy-player:hover {
  transform: none !important; /* Remove hover scale effect */
}

.lazy-player:focus-visible {
  outline: 2px solid var(--mv-primary);
  outline-offset: 2px;
}

.lazy-player-thumb {
  width: 100%;
  height: 100%;
  display: block !important;
  visibility: visible !important;
  object-fit: cover;
}

.lazy-player-overlay {
  display: none !important; /* Hide play button overlay */
}

.lazy-player:hover .lazy-player-overlay,
.lazy-player:focus-visible .lazy-player-overlay {
  display: none !important; /* Hide on hover too */
}

/* Meta sections */
.video-meta-bar { display: grid; gap: 8px; justify-items: center; margin-bottom: 8px; }
.video-meta-bar .meta-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.video-info-card .video-meta { display: flex; flex-direction: column; gap: 14px; }
.video-info-card .meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.video-info-card .meta-section { display: flex; flex-direction: column; gap: 8px; }
.video-info-card .meta-label { color: var(--mv-muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px;
  color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.06);
  text-decoration: none !important;
}
.video-desc { color: var(--mv-muted); line-height: 1.45; }


/* Gallery grid */
.video-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.video-gallery .gallery-item { overflow: hidden; border-radius: 10px; }
.video-gallery .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.video-gallery .gallery-item:hover img { transform: scale(1.03); }

/* Dark stripe links refinement */
.dark-stripe a { display: inline-flex; align-items: center; gap: 8px; }
.dark-stripe svg { height: 16px; width: 16px; }

/* Rating block spacing */
.block-rating { margin-top: 12px; }

/* Actions */
.video-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.video-actions .btn { padding: 8px 14px; border-radius: 10px; font-weight: 800; }

/* More scenes full-width section */
.more-scenes-wrap { 
  margin: 14px 0 18px; 
  padding-left: 0; 
  padding-right: 0; 
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.more-scenes-row { 
  background: var(--mv-surface); 
  border: 1px solid var(--mv-border); 
  border-radius: 14px; 
  overflow: hidden; 
  box-shadow: var(--mv-shadow); 
  margin-bottom: 14px;
  max-width: 100%;
  box-sizing: border-box;
}
.more-scenes-row > [class^="col-"], .more-scenes-row > [class*=" col-"] { 
  padding: 0; 
  max-width: 100%;
  box-sizing: border-box;
}
.more-scenes-row .preview-col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.more-scenes-row .preview-col { min-height: 220px; max-width: 100%; box-sizing: border-box; }
@media (min-width: 768px) { .more-scenes-row .preview-col { min-height: 260px; } }
.more-scenes-row .content-col { padding: 16px 18px; max-width: 100%; box-sizing: border-box; }
.more-scenes-title { color: var(--mv-text); margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.more-scenes-desc { color: var(--mv-muted); margin: 0 0 12px; }
.btn.btn-cta { background: linear-gradient(135deg, var(--mv-primary), #6aa8ff); color: #fff; font-weight: 900; border: 0; box-shadow: 0 8px 16px rgba(30,144,255,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.btn.btn-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Scene header layout */
.scene-info {
  display: flex;
  flex-direction: column;
  color: #d0d8e3;
  align-items: flex-start;
}
.scene-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.scene-label:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #ffffff;
}
.scene-models {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.scene-model-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.scene-model-link:hover {
  color: #ffffff;
}
.scene-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.scene-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #00312d;
  color: #ffffff;
  background: #00312d;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
}
.scene-button i {
  font-size: 16px;
  color: #ffffff;
}
.scene-button:hover {
  filter: brightness(1.1);
}
.scene-button.scene-button--ghost {
  background: transparent;
  color: #ffffff;
}
.scene-button.scene-button--ghost:hover {
  background: rgba(0,49,45,0.15);
}
.scene-button.primary {
  background: linear-gradient(0deg, #00b89f 0%, #00f5d4 100%);
  border-color: #00b89f;
  color: #051016;
  font-size: 16px;
  padding: 12px 26px;
  text-transform: capitalize;
}
.scene-button.primary i {
  font-size: 18px;
  color: #051016;
}
.scene-button.primary:hover {
  filter: brightness(1.05);
}
.scene-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  color: #9fb3c8;
  margin-bottom: 5px;
}
.scene-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scene-meta-item i {
  color: #ffffff;
}
.quality-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
}
.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.scene-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  background: #00312d;
  border: 1px solid #00312d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.2s ease;
  border-radius: 0;
}
.scene-tag:hover {
  filter: brightness(1.15);
}
.scene-description {
  display: none !important; /* Hide scene description on all devices */
  font-size: 14px;
  line-height: 1.6;
  color: #d0d8e3;
}
.scene-description-toggle {
  margin-top: 6px;
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.scene-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-top: 10px;
}
.scene-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.scene-icon-btn--message {
  padding: 12px;
  gap: 0;
}
.scene-icon-only {
  width: 28px;
  height: 28px;
  display: inline-block;
  background-color: #ffffff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.scene-icon-btn i {
  font-size: 24px;
  color: #ffffff;
  line-height: 1;
}
.scene-icon-btn .scene-icon-label {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}
.scene-icon-btn .scene-icon-svg {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scene-icon-mask {
  width: 100%;
  height: 100%;
  display: inline-block;
  background-color: #ffffff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.scene-icon-mask--comment {
  mask-image: url('https://kosmos-assets-prod.react.gammacdn.com/site/adulttime/icon/Comment.svg');
}
.scene-icon-btn:hover {
  filter: brightness(1.1);
}
.scene-icon-btn--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.scene-like-group {
  display: flex;
  gap: 12px;
}

/* remove rating styles (no longer used) */
.block-rating { display: none; }

/* Mobile */
@media (max-width: 575.98px) {
  .video-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 819.98px) {
  .video-page .video-main-title {
    font-size: 26px;
    line-height: 1.2;
  }
  
  .video-page .video-two-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin: 0;
    width: 100%;
  }
  .video-page .left-meta,
  .video-page .right-player,
  .video-page .video-meta-bar,
  .video-page .video-meta-bar .meta-row,
  .video-page .video-actions,
  .video-page .block-rating,
  .video-page .video-tabs,
  .video-page .video-tabs .tab-nav,
  .video-page .video-tabs .tab-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .video-page .left-meta .meta-cluster,
  .video-page .left-meta .rating-cluster,
  .video-page .left-meta .actions-cluster {
    align-items: center;
  }
  .video-page .right-player {
    order: -1;
  }
  
  /* When video is expanded on mobile - ensure full width, centered, and FIRST */
  .video-page .video-two-col.video-expanded {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .video-page .video-two-col.video-expanded .right-player {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1 !important; /* Force video to be first */
  }
  
  .video-page .video-two-col.video-expanded .left-meta {
    order: 2 !important; /* Force content to be after video */
  }
  
  .video-page .video-two-col.video-expanded .right-player .player-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .video-page .video-tabs .tab-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .video-page .video-tabs .tab-nav .tab-link {
    width: 100%;
    text-align: center;
  }
  .video-actions {
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }
  .video-actions .action {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
  .video-actions .action + .action {
    margin-left: 0;
  }
  .block-rating {
    margin: 16px 0;
    text-align: center;
  }
  .block-rating .unit-rating li a {
    font-size: 14px;
    width: 26px !important;
    height: 26px !important;
  }
  .block-rating .unit-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  .block-rating .unit-rating li a::before {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
  .block-rating p {
    text-align: center;
  }
  body,
  html {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .main.video-page,
  .main.video-page .container,
  .main.video-page .row.video-two-col,
  .main.video-page .col-md-12,
  .main.video-page .col-lg-5,
  .main.video-page .col-lg-7,
  .main.video-page .card.card-video {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .main.video-page .row.video-two-col {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-y: visible !important;
    overflow-x: hidden;
    height: auto !important;
    max-height: none !important;
  }
  .main.video-page .row.video-two-col > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .video-page .right-player {
    order: -1;
    margin-bottom: 24px;
  }
  .player-wrapper {
    border-radius: 0;
  }
  .player-wrapper .lazy-player,
  .player-wrapper video,
  .player-wrapper iframe {
    border-radius: 0;
  }
  .scene-info {
    align-items: center;
    text-align: center;
    gap: 3px;
  }
  .scene-info > * {
    margin: 0;
  }
  .scene-models,
  .scene-primary-actions,
  .scene-meta-row,
  .scene-tags,
  .scene-secondary-actions {
    justify-content: center;
  }
  .scene-primary-actions {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .scene-button {
    flex: 0 1 auto;
    min-width: auto;
    padding: 8px 16px;
    font-size: 13px;
    height: auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .scene-button i {
    font-size: 14px;
    flex-shrink: 0;
  }
  .scene-button.scene-button--ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
  }
  .scene-button.scene-button--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
  }
  .scene-button:not(.scene-button--ghost) {
    background: #00312d;
    border: 1px solid #00312d;
    color: #ffffff;
  }
  .scene-button:not(.scene-button--ghost):hover {
    background: #004a44;
    border-color: #004a44;
  }
  .scene-meta-row {
    gap: 12px;
  }
  .scene-tags {
    gap: 6px;
  }
  .scene-secondary-actions {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  .scene-icon-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 4px 6px;
    background: transparent !important;
    border: none !important;
    font-size: 11px;
    gap: 2px;
  }
  .scene-icon-btn i {
    font-size: 16px;
  }
  .scene-icon-btn span {
    font-size: 11px;
    white-space: nowrap;
  }
  .scene-like-group {
    width: 100%;
    justify-content: center;
  }
}

/* Layout adjustments for 820px-999px: description and secondary actions span full width */
@media (min-width: 820px) and (max-width: 999.98px) {
  .video-page .video-two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible !important;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    min-height: 0;
  }

  /* Account for gap: Total width = 100%, gap = 24px, so columns = (100% - 24px) * percentage */
  .video-page .left-meta {
    flex: 0 0 calc((100% - 24px) * 0.3);
    max-width: calc((100% - 24px) * 0.3);
    display: flex;
    flex-direction: column;
    gap: 3px; /* Gap between child elements */
    position: relative; /* Changed from static to relative for absolutely positioned children */
    min-width: 0;
    overflow: visible !important;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    height: auto !important;
    max-height: none !important;
  }

  .video-page .right-player {
    flex: 1 0 calc((100% - 24px) * 0.7);
    max-width: calc((100% - 24px) * 0.7);
    min-width: 0;
    order: 0;
    margin-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Break out description and secondary actions to full width below columns */
  /* Position absolutely relative to .video-two-col, but calculate exact height needed */
  .video-page .left-meta .scene-description {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 100%;
    top: 100%;
    margin-top: 24px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    z-index: 1;
  }

  .video-page .left-meta .scene-secondary-actions {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 100%;
    top: 100%;
    margin-top: calc(24px + 1em + 18px);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    justify-content: flex-start;
    flex-wrap: wrap;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* No padding-bottom needed - elements are in normal flow or absolutely positioned outside container */
  .video-page .video-two-col {
    padding-bottom: 0 !important;
    margin-bottom: 0;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* Remove padding-bottom when video is expanded (playing) */
  .video-page .video-two-col.video-expanded {
    padding-bottom: 0;
  }
  
  /* When video is expanded on tablet - ensure full width, centered, and FIRST */
  .video-page .video-two-col.video-expanded {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch; /* Changed from center to stretch for full width */
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
  }
  
  .video-page .video-two-col.video-expanded .right-player {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1 !important; /* Force video to be first */
  }
  
  .video-page .video-two-col.video-expanded .left-meta {
    order: 2 !important; /* Force content to be after video */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
    align-items: flex-start;
    text-align: left;
  }
  
  /* Ensure all content inside left-meta takes full width */
  .video-page .video-two-col.video-expanded .left-meta > * {
    width: 100%;
    max-width: 100%;
  }
  
  .video-page .video-two-col.video-expanded .right-player .player-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Ensure absolutely positioned elements have proper spacing */
  .video-page .left-meta .scene-description {
    margin-bottom: 0; /* No extra margin needed */
  }
  
  .video-page .left-meta .scene-secondary-actions {
    margin-bottom: 0; /* No extra margin needed */
  }
  

  .video-page .left-meta .meta-cluster,
  .video-page .left-meta .rating-cluster,
  .video-page .left-meta .actions-cluster {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .video-page .left-meta .video-meta-bar,
  .video-page .left-meta .video-meta-bar .meta-row,
  .video-page .left-meta .video-meta-bar .models-row,
  .video-page .left-meta .video-actions {
    justify-content: flex-start;
  }

  .player-wrapper {
    border-radius: 0 !important; /* Square corners */
  }

  .player-wrapper .lazy-player,
  .player-wrapper video,
  .player-wrapper iframe {
    border-radius: 0 !important; /* Square corners */
  }
}

@media (min-width: 1000px) {
  .video-page .video-two-col {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Account for gap: reduce columns proportionally */
  .video-page .left-meta {
    flex: 0 0 calc((100% - 24px) * 0.3);
    max-width: calc((100% - 24px) * 0.3);
    box-sizing: border-box;
  }

  .video-page .right-player {
    flex: 1 0 calc((100% - 24px) * 0.7);
    max-width: calc((100% - 24px) * 0.7);
    order: 0;
    margin-bottom: 0;
    box-sizing: border-box;
  }

  .video-page .left-meta .meta-cluster,
  .video-page .left-meta .rating-cluster,
  .video-page .left-meta .actions-cluster {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .video-page .left-meta .video-meta-bar,
  .video-page .left-meta .video-meta-bar .meta-row,
  .video-page .left-meta .video-meta-bar .models-row,
  .video-page .left-meta .video-actions {
    justify-content: flex-start;
  }
}

/* ===========================
   Video Expanded Layout (All Devices)
   When video plays, expand to full width and move content below
   =========================== */
/* When video is expanded (playing) - applies to all devices */
.video-page .video-two-col.video-expanded {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch; /* Changed from center to stretch for full width */
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Video player expands to full width and is centered - ALWAYS FIRST */
.video-page .video-two-col.video-expanded .right-player {
  flex: 1 0 100%;
  max-width: 100%;
  width: 100%;
  order: 1 !important; /* Force video to be first */
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Left meta content - ALWAYS AFTER VIDEO - FULL WIDTH */
.video-page .video-two-col.video-expanded .left-meta {
  order: 2 !important; /* Force content to be after video */
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

/* Ensure player wrapper is centered and full width */
.video-page .video-two-col.video-expanded .right-player .player-wrapper {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1000px) {

  /* Left meta content moves below video in two-column layout using CSS Grid */
  .video-page .video-two-col.video-expanded .left-meta {
    flex: 1 0 100%;
    max-width: 100%;
    width: 100%;
    order: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
    gap: 24px 32px;
    align-items: start;
    margin-top: 24px;
    text-align: left;
    position: relative;
  }

  /* Left column: All info elements (scene-info, meta-row, tags, description) - stack vertically */
  .video-page .video-two-col.video-expanded .left-meta > .scene-info,
  .video-page .video-two-col.video-expanded .left-meta > .scene-meta-row,
  .video-page .video-two-col.video-expanded .left-meta > .scene-tags,
  .video-page .video-two-col.video-expanded .left-meta > .scene-description {
    grid-column: 1;
    min-width: 0;
    margin-bottom: 3px; /* Gap between elements */
  }
  
  /* Remove margin from last element in left column */
  .video-page .video-two-col.video-expanded .left-meta > .scene-tags:last-of-type,
  .video-page .video-two-col.video-expanded .left-meta > .scene-description:last-of-type {
    margin-bottom: 0;
  }

  /* Keep scene-info as flex column */
  .video-page .video-two-col.video-expanded .left-meta > .scene-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  /* Right column: Secondary actions (Favorites, Save, etc.) - horizontal row on first row */
  .video-page .video-two-col.video-expanded .left-meta .scene-secondary-actions {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap;
  }

  /* Style secondary action buttons horizontally when expanded (icon above text, but in a row) */
  .video-page .video-two-col.video-expanded .left-meta .scene-secondary-actions .scene-icon-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    min-width: auto;
    width: auto;
    text-align: center;
    flex: 0 0 auto;
  }
  
  /* Icon styling for expanded buttons */
  .video-page .video-two-col.video-expanded .left-meta .scene-secondary-actions .scene-icon-btn i {
    font-size: 20px;
    margin-bottom: 2px;
  }
  
  /* Text label styling */
  .video-page .video-two-col.video-expanded .left-meta .scene-secondary-actions .scene-icon-btn span {
    font-size: 12px;
    white-space: nowrap;
  }

  /* Keep left-aligned for all info elements */
  .video-page .video-two-col.video-expanded .left-meta .scene-label {
    text-align: left;
  }

  .video-page .video-two-col.video-expanded .left-meta .title-wrapper {
    width: 100%;
    text-align: left;
  }

  .video-page .video-two-col.video-expanded .left-meta .video-main-title {
    text-align: left;
  }

  .video-page .video-two-col.video-expanded .left-meta .scene-models {
    justify-content: flex-start;
    text-align: left;
  }

  .video-page .video-two-col.video-expanded .left-meta .scene-primary-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .video-page .video-two-col.video-expanded .left-meta .scene-meta-row {
    justify-content: flex-start;
    text-align: left;
  }

  .video-page .video-two-col.video-expanded .left-meta .scene-tags {
    justify-content: flex-start;
    text-align: left;
  }

  .video-page .video-two-col.video-expanded .left-meta .scene-description {
    position: static;
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin-top: 24px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Remove absolute positioning when expanded */
  .video-page .video-two-col.video-expanded .left-meta .scene-description {
    position: static !important;
    top: auto !important;
    left: auto !important;
  }

  /* Keep left-aligned for meta clusters */
  .video-page .video-two-col.video-expanded .left-meta .meta-cluster,
  .video-page .video-two-col.video-expanded .left-meta .rating-cluster,
  .video-page .video-two-col.video-expanded .left-meta .actions-cluster {
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

/* ===========================
   Model page small tweaks
   =========================== */
/* Make creator image smaller (50% width) and limit height, center it */
.model-page .model-thumb img {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Remove the rating block on the model page (stars + prompt text) */
.model-page .block-rating {
  display: none !important;
}

/* Simple divider used on model page */
.model-page .section-divider {
  border-top: 1px solid var(--mv-border);
  margin: 24px 0;
}

/* ===========================
   Large Screens (1401px+)
   Only when video is expanded (playing) - takes full available width from menu to right edge, centered
   Thumbnail state remains unchanged
   =========================== */
@media (min-width: 1401px) {
  /* When video is expanded (playing) - full width layout */
  .video-page .video-two-col.video-expanded {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 24px;
    align-items: stretch;
  }
  
  /* Video player takes full available width when expanded - FIRST */
  .video-page .video-two-col.video-expanded .right-player {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 1 !important;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Player wrapper centered and full width when expanded */
  .video-page .video-two-col.video-expanded .right-player .player-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Video element itself takes full width when expanded */
  .video-page .video-two-col.video-expanded .right-player .player-wrapper video,
  .video-page .video-two-col.video-expanded .right-player .player-wrapper iframe,
  .video-page .video-two-col.video-expanded .right-player .player-wrapper .lazy-player {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  
  /* Left meta content - full width below video when expanded - SECOND */
  .video-page .video-two-col.video-expanded .left-meta {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 2 !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
