/* ==========================================================================
   SEXQMH.XYZ - THEME STYLESHEET
   Clean Dark Charcoal Theme | Cyan #00bcd4 Accents | 4-Column Grid | Sidebar
   ========================================================================== */

:root {
  --bg-main: #151515;
  --bg-header: #1b1b1b;
  --bg-nav: #202020;
  --bg-bar: #252525;
  --bg-card: #1c1c1c;
  --border-color: #2c2c2c;
  --border-light: #383838;
  --text-main: #ffffff;
  --text-body: #d1d5db;
  --text-muted: #888888;
  --accent-cyan: #00bcd4;
  --accent-cyan-hover: #00acc1;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-stack);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 50px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ================= 1. HEADER & SEARCH ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid #101010;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.header-main {
  border-bottom: 1px solid #282828;
  padding: 14px 0 12px 0;
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-box {
  display: flex;
  flex-direction: column;
}

.site-logo {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: baseline;
}
.logo-accent {
  color: var(--accent-cyan);
}
.logo-main {
  color: #ffffff;
}
.logo-domain {
  color: #ffffff;
}

.site-tagline {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.header-search {
  max-width: 380px;
  width: 100%;
}

.search-form {
  display: flex;
  width: 100%;
  height: 38px;
}

.search-input {
  flex: 1;
  background: #222222;
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 8px 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}
.search-input::placeholder {
  color: #777777;
}
.search-input:focus {
  border-color: var(--accent-cyan);
  background: #282828;
}

.search-submit-btn {
  width: 44px;
  background: var(--accent-cyan);
  color: #ffffff;
  border: 1px solid var(--accent-cyan);
  border-radius: 0 3px 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s ease;
}
.search-submit-btn:hover {
  background: var(--accent-cyan-hover);
}

/* ================= 2. NAVIGATION BAR ================= */
.nav-bar {
  background: var(--bg-nav);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.nav-link {
  color: #c2c2c2;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 12px;
  display: inline-block;
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.03);
}

/* ================= 3. MAIN TWO-COLUMN LAYOUT ================= */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px;
}

.main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.main-content-col {
  flex: 1;
  min-width: 0;
}

.sidebar-col {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }
  .sidebar-col {
    width: 100%;
  }
}

/* Section Header Bar */
.section-head-bar {
  background: var(--bg-bar);
  border-left: 4px solid var(--accent-cyan);
  padding: 9px 14px;
  margin-bottom: 14px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-badge-count {
  font-size: 11px;
  font-weight: 600;
  color: #888888;
  background: #191919;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ================= 4. VIDEO GRID (LEFT COLUMN - 4 COLUMNS) ================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 12px;
}

@media (max-width: 1150px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 3px;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.video-card:hover .card-thumb {
  transform: scale(1.03);
}

.thumb-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.card-thumb-wrap.is-previewing .thumb-preview-video {
  opacity: 1;
}

/* Badges on Top-Left of Thumbnail */
.badges-overlay {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  z-index: 2;
  pointer-events: none;
}

.badge-tag-cyan {
  background: var(--accent-cyan);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-info {
  padding: 6px 0 2px 0;
}

.card-title {
  color: var(--text-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.video-card:hover .card-title {
  color: var(--accent-cyan);
}

/* ================= 5. SIDEBAR ITEMS (RIGHT COLUMN) ================= */
.sidebar-video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar-thumb-wrap {
  position: relative;
  width: 110px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #000000;
}

.sidebar-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.sidebar-item:hover .sidebar-thumb {
  transform: scale(1.03);
}

.sidebar-info {
  flex: 1;
  min-width: 0;
}

.sidebar-title {
  color: var(--text-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.sidebar-item:hover .sidebar-title {
  color: var(--accent-cyan);
}

/* ================= 6. PAGINATION ================= */
.pagination-wrapper {
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: #202020;
  border: 1px solid var(--border-color);
  color: #bbbbbb;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.page-btn:hover {
  background: #2c2c2c;
  color: #ffffff;
}
.page-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* ================= 7. VIDEO DETAIL PLAYER PAGE ================= */
.player-theater-target {
  margin: 0 auto 20px auto;
}

.theater-mode-active .player-theater-target {
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.7);
}
.player-box iframe, .player-box video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.server-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.server-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.btn-server {
  padding: 5px 12px;
  border-radius: 3px;
  background: #222222;
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-server.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.player-extra-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-action-tool {
  background: #222222;
  border: 1px solid var(--border-color);
  color: #94a3b8;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.btn-action-tool:hover {
  color: #ffffff;
  background: #2e2e2e;
}
.btn-action-report {
  color: #f87171;
}

.video-detail-header {
  margin-top: 14px;
}
.video-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 6px;
}
.video-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.video-desc-box {
  background: #1c1c1c;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  margin: 12px 0;
}
.video-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag-pill {
  background: #242424;
  border: 1px solid var(--border-color);
  color: #a0a0a0;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.tag-pill:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* ================= 8. SEO TAGS CLOUD ================= */
.seo-tags-block {
  margin: 28px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
}
.seo-block-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.seo-block-title .title-prefix {
  color: var(--accent-cyan);
  font-weight: 900;
}
.seo-block-title .title-arrow {
  color: var(--accent-cyan);
  font-size: 12px;
}

.tags-cloud-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud-item {
  display: inline-block;
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  color: #b5b5b5;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.tag-cloud-item:hover {
  background: #282828;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* ================= 9. FOOTER ================= */
.site-footer {
  background: #111111;
  border-top: 1px solid var(--border-color);
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.footer-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 220px 140px 1fr;
  }
}

.footer-col-title {
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links-list a {
  color: #c2c2c2;
  transition: color 0.15s ease;
}
.footer-links-list a:hover {
  color: var(--accent-cyan);
}

.footer-desc-text {
  line-height: 1.6;
  color: #999999;
}
.footer-desc-text strong {
  color: #ffffff;
}

.dmca-badge {
  display: inline-flex;
  align-items: center;
  background: #000;
  border: 1px solid #333;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 12px;
  overflow: hidden;
}
.dmca-tag {
  background: #00bcd4;
  color: #000000;
  padding: 2px 7px;
}
.dmca-label {
  background: #000000;
  color: #ffffff;
  padding: 2px 7px;
}

/* ================= 10. MODAL & POPUPS ================= */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-dialog {
  background: #1c1c1c;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
.modal-close-btn {
  position: absolute;
  top: 12px; right: 12px;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.modal-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  background: #252525;
  margin-bottom: 7px;
  border-radius: 3px;
  cursor: pointer;
  color: #d1d5db;
}
.modal-submit-btn {
  width: 100%;
  background: var(--accent-cyan);
  color: #ffffff;
  padding: 10px;
  border-radius: 3px;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-submit-btn:hover {
  background: var(--accent-cyan-hover);
}

/* Telegram notice */
.telegram-notice-bar {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 7px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.telegram-notice-bar a {
  color: var(--accent-cyan);
  text-decoration: underline;
}
