/**
 * XVideos-style theme overrides for dazhongchuanmei.com
 * Active when body.xv-layout is set.
 */

body.xv-layout {
  --xv-red: #de2600;
  --xv-red-dark: #c02100;
  --xv-header: #000;
  --xv-bg: #ececec;
  --xv-text: #000;
  --xv-muted: #555;
  --xv-border: #d6d6d6;
  background: var(--xv-bg);
  color: var(--xv-text);
}

body.xv-layout .sidebar,
body.xv-layout .menu-btn,
body.xv-layout .mood-switcher,
body.xv-layout .ad-btn,
body.xv-layout #uploadBtn,
body.xv-layout .upload-btn {
  display: none !important;
}

/* Language switcher — always visible in header */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
}

.lang-btn + .lang-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-btn.active {
  background: var(--xv-red, #de2600);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.xv-layout .lang-switcher {
  display: inline-flex !important;
}

/* My Videos still needs upload */
body.xv-layout.my-videos-page #uploadBtn,
body.xv-layout.my-videos-page .upload-btn {
  display: inline-flex !important;
}

/* Kill theme-2026 ambient glow / overlays under XV layout */
body.xv-layout::before,
body.xv-layout::after {
  display: none !important;
  content: none !important;
  background: none !important;
  animation: none !important;
}

body.xv-layout .navbar {
  height: 48px;
  background: var(--xv-header);
  border-bottom: 2px solid var(--xv-red);
  box-shadow: none;
  padding: 0 12px;
}

body.xv-layout .logo-text {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: none;
  -webkit-text-fill-color: #fff;
  background: none;
}

body.xv-layout .logo-mark {
  display: none;
}

body.xv-layout .logo-text::before {
  content: none;
}

body.xv-layout .search-form {
  max-width: 520px;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}

body.xv-layout .search-form input {
  color: #000;
  background: #fff;
}

body.xv-layout .search-form button {
  background: var(--xv-red);
  color: #fff;
  border: none;
}

body.xv-layout .btn-login,
body.xv-layout .btn-signup {
  background: transparent;
  border: 1px solid #666;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
}

body.xv-layout .btn-signup {
  background: var(--xv-red);
  border-color: var(--xv-red);
}

body.xv-layout .main-content {
  margin-left: 0 !important;
  margin-top: 88px;
  padding: 12px 16px 32px;
  max-width: 1400px;
}

body.xv-layout .xv-topbar {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 999;
  background: #111;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 8px;
  height: 40px;
}

body.xv-layout .xv-topbar a {
  color: #ddd;
  text-decoration: none;
  font-size: 13px;
  padding: 10px 12px;
  display: inline-block;
}

body.xv-layout .xv-topbar a:hover,
body.xv-layout .xv-topbar a.active {
  color: #fff;
  background: #222;
}

body.xv-layout .xv-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

body.xv-layout .xv-sort-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

body.xv-layout .xv-sort-tabs button {
  border: 1px solid var(--xv-border);
  background: #fff;
  color: #333;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
}

body.xv-layout .xv-sort-tabs button.active {
  background: var(--xv-red);
  border-color: var(--xv-red);
  color: #fff;
}

body.xv-layout .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 8px;
}

body.xv-layout .video-card {
  background: transparent;
  text-decoration: none;
}

body.xv-layout .video-card:hover {
  transform: none;
  box-shadow: none;
}

body.xv-layout .video-thumbnail {
  border-radius: 0;
  padding-bottom: 56.25%;
  background: #111;
  margin-bottom: 0 !important;
}

body.xv-layout .video-thumbnail > img.thumb-img {
  display: block !important;
  padding: 0 !important;
  z-index: 1;
}

body.xv-layout .external-link-badge {
  opacity: 0.55;
  transform: scale(0.85);
  transform-origin: top right;
}

body.xv-layout .video-duration {
  bottom: 4px;
  right: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 11px;
  padding: 2px 5px;
}

body.xv-layout .video-info {
  padding: 6px 2px 0;
}

body.xv-layout .video-title {
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 4px;
}

body.xv-layout .video-card:hover .video-title {
  color: var(--xv-red);
}

body.xv-layout .video-meta,
body.xv-layout .video-stats,
body.xv-layout .video-author {
  color: var(--xv-muted);
  font-size: 12px;
}

body.xv-layout .video-author {
  color: #777;
}

body.xv-layout .video-author::after {
  content: ' • ';
}

/* Watch page: player left, related right */
body.xv-layout.watch-page .main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

body.xv-layout.watch-page #videoPlayerContainer {
  grid-column: 1;
}

body.xv-layout.watch-page .recommendations,
body.xv-layout.watch-page #recommendations {
  grid-column: 2;
  grid-row: 1 / span 3;
  background: #fff;
  border: 1px solid var(--xv-border);
  padding: 8px;
}

body.xv-layout.watch-page .video-player-section {
  background: #fff;
  border: 1px solid var(--xv-border);
  padding: 8px;
}

body.xv-layout.watch-page .video-title-large {
  color: #000;
  font-size: 18px;
  font-weight: 600;
}

body.xv-layout.watch-page .video-description,
body.xv-layout.watch-page .video-stats-text {
  color: #444;
}

body.xv-layout.watch-page .recommendations .video-grid,
body.xv-layout.watch-page #recommendations .video-grid {
  grid-template-columns: 1fr;
}

body.xv-layout .hot-search-wrap {
  display: none;
}

/* Modals — XVideos login/signup */
body.xv-layout .modal {
  background: rgba(0, 0, 0, 0.65);
}

body.xv-layout .modal-content,
body.xv-layout .xv-modal {
  background: #fff;
  color: #222;
  border: 1px solid var(--xv-border);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

body.xv-layout .modal-content h2,
body.xv-layout .xv-modal h2 {
  color: #000;
  font-size: 20px;
  margin-bottom: 16px;
}

body.xv-layout .form-group label {
  color: #444;
  font-size: 13px;
}

body.xv-layout .form-group input,
body.xv-layout .form-group textarea {
  background: #fff;
  border: 1px solid #ccc;
  color: #000;
}

body.xv-layout .btn-primary,
body.xv-layout .xv-btn-primary {
  background: var(--xv-red);
  border: none;
  color: #fff;
  border-radius: 2px;
}

body.xv-layout .btn-primary:hover {
  background: var(--xv-red-dark);
}

body.xv-layout .modal-footer a {
  color: var(--xv-red);
}

body.xv-layout .close {
  color: #666;
}

/* Pagination — XVideos numbered pages */
body.xv-layout #paginationContainer {
  margin: 20px 0;
}

body.xv-layout .pagination-wrapper {
  gap: 2px;
}

body.xv-layout .pagination-btn,
body.xv-layout .pagination-num {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 0;
  color: #333;
  min-width: 32px;
  height: 32px;
  font-size: 13px;
}

body.xv-layout .pagination-num.active {
  background: var(--xv-red);
  border-color: var(--xv-red);
  color: #fff;
}

body.xv-layout .pagination-btn:hover:not(:disabled),
body.xv-layout .pagination-num:hover:not(.active) {
  background: #f5f5f5;
  border-color: #999;
  color: #000;
}

body.xv-layout .pagination-info {
  color: #666;
  font-size: 12px;
}

/* Categories / Pornstars pages */
body.xv-layout .xv-page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

body.xv-layout .xv-page-sub {
  color: #666;
  font-size: 13px;
  margin-bottom: 16px;
}

body.xv-layout .xv-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

body.xv-layout .xv-category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--xv-border);
  padding: 12px;
  text-decoration: none;
  color: #000;
}

body.xv-layout .xv-category-card:hover {
  border-color: var(--xv-red);
}

body.xv-layout .xv-category-card:hover .xv-category-name {
  color: var(--xv-red);
}

body.xv-layout .xv-category-count {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

body.xv-layout .xv-pornstar-list {
  background: #fff;
  border: 1px solid var(--xv-border);
}

body.xv-layout .xv-pornstar-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #000;
}

body.xv-layout .xv-pornstar-row:hover {
  background: #fafafa;
}

body.xv-layout .xv-pornstar-row:hover .xv-pornstar-name {
  color: var(--xv-red);
}

body.xv-layout .xv-pornstar-count {
  color: #888;
  font-size: 12px;
}

body.xv-layout .xv-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid var(--xv-border);
  margin-top: 24px;
  background: #e0e0e0;
}

body.xv-layout .xv-footer a {
  color: #333;
  text-decoration: none;
}

body.xv-layout .xv-footer a:hover {
  color: var(--xv-red);
}

body.xv-layout .my-videos-header {
  background: #fff;
  border: 1px solid var(--xv-border);
  padding: 12px;
  margin-bottom: 12px;
}

body.xv-layout .my-videos-header h1 {
  color: #000;
  font-size: 20px;
}

body.xv-layout .toast {
  background: #222;
  color: #fff;
}

@media (max-width: 960px) {
  body.xv-layout.watch-page .main-content {
    grid-template-columns: 1fr;
  }

  body.xv-layout.watch-page .recommendations,
  body.xv-layout.watch-page #recommendations {
    grid-column: 1;
    grid-row: auto;
  }

  body.xv-layout .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
