/* BigAIPorn v2 - Dark Theme */
/* Hide 720p settings button area in player iframe */
.video-player { position: relative; }
.video-player::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 60px;
  width: 50px;
  height: 40px;
  z-index: 10;
  cursor: default;
}
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-card-hover: #252525;
  --text-primary: #e8e8e8;
  --text-secondary: #999;
  --text-muted: #666;
  --accent: #ff5722;
  --accent-hover: #ff7043;
  --accent-light: rgba(255, 87, 34, 0.15);
  --border: #2a2a2a;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --max-width: 1320px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.5; min-height: 100vh; }
a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 68px; width: auto; max-width: 300px; object-fit: contain; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { background: var(--accent-light); color: var(--accent); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* Tags Bar */
.tags-bar { background: var(--bg-secondary); padding: 10px 16px; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.tags-bar::-webkit-scrollbar { height: 4px; }
.tags-bar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.tag-pill { display: inline-block; padding: 4px 12px; margin: 2px 3px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; color: var(--text-secondary); transition: all 0.2s; }
.tag-pill:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { margin: 24px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h1, .section-header h2 { font-size: 20px; font-weight: 700; color: #fff; }
.see-all { font-size: 14px; color: var(--accent); font-weight: 500; }

/* Video Grid */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--bg-card-hover); }
.video-card-link { display: block; color: inherit; }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.85); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-hd { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-private { position: absolute; top: 6px; right: 6px; background: #9c27b0; color: #fff; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.video-info { padding: 10px 12px; }
.video-title { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.video-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.video-meta span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.video-meta svg { opacity: 0.6; }

/* Album Cards */
.album-grid .album-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.album-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.album-card-link { display: block; color: inherit; }
.album-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #111; }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; }
.album-count { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.85); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.album-info { padding: 10px 12px; }
.album-title { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }

/* Gallery (album detail) */
.album-detail { margin: 24px 0; }
.album-detail h1 { font-size: 22px; margin-bottom: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 16px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 32px 0 16px; flex-wrap: wrap; }
.page-num, .page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius); font-size: 14px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); transition: all 0.2s; }
.page-num:hover, .page-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.page-num.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* Video Player Page - 2 column layout */
.video-page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin: 16px 0; }
.video-main { min-width: 0; }
.video-player-wrapper { margin-bottom: 16px; }
.video-player { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-player video, .video-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-detail { margin: 16px 0; }
.video-detail-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.video-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.video-detail-meta span { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-secondary); }
.video-detail-meta svg { opacity: 0.6; }
.video-tags { margin: 12px 0; }
.video-tags .tag-pill { margin: 2px 4px; }
.related-section { margin-top: 32px; }

/* Sidebar */
.video-sidebar { background: var(--bg-secondary); border-radius: var(--radius); padding: 16px; height: fit-content; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; }
.sidebar-heading { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar-list { display: flex; flex-direction: column; gap: 10px; }
.sidebar-video { display: flex; gap: 10px; color: var(--text-primary); transition: background 0.2s; padding: 4px; border-radius: 6px; }
.sidebar-video:hover { background: var(--bg-card-hover); }
.sidebar-thumb { position: relative; width: 140px; min-width: 140px; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #111; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-thumb .duration { font-size: 10px; padding: 1px 4px; bottom: 3px; right: 3px; }
.badge-hd-sm { position: absolute; top: 3px; left: 3px; background: var(--accent); color: #fff; padding: 0 4px; border-radius: 3px; font-size: 9px; font-weight: 700; }
.sidebar-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sidebar-title { font-size: 12px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-views { font-size: 11px; color: var(--text-muted); }

/* SEO Text */
.seo-text { margin: 32px 0 16px; padding: 20px; background: var(--bg-secondary); border-radius: var(--radius); border: 1px solid var(--border); }
.seo-text h2 { font-size: 18px; color: #fff; margin-bottom: 12px; }
.seo-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.seo-text p:last-child { margin-bottom: 0; }

/* Tags Grid */
.tags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tag-card { display: flex; flex-direction: column; align-items: center; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s; }
.tag-card:hover { background: var(--accent-light); border-color: var(--accent); }
.tag-name { font-weight: 600; font-size: 14px; color: #fff; }
.tag-count { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Static Pages */
.static-page { max-width: 800px; margin: 32px auto; }
.static-page h1 { font-size: 28px; margin-bottom: 24px; color: #fff; }
.static-content h2 { font-size: 18px; color: #fff; margin: 24px 0 12px; }
.static-content p { margin-bottom: 14px; color: var(--text-secondary); line-height: 1.7; font-size: 14px; }
.static-content ol, .static-content ul { margin: 12px 0; padding-left: 24px; color: var(--text-secondary); }
.static-content li { margin-bottom: 8px; line-height: 1.6; font-size: 14px; }
.static-content a { color: var(--accent); }

/* Footer */
.site-footer { margin-top: 48px; padding: 24px 16px; background: var(--bg-secondary); border-top: 1px solid var(--border); text-align: center; }
.footer-links { margin-bottom: 16px; }
.footer-links a { margin: 0 12px; font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 12px; color: var(--text-muted); max-width: 700px; margin: 0 auto 12px; line-height: 1.6; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-copy a { color: var(--accent); }

/* Lightbox */
#lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }
#lightbox.active { display: flex; align-items: center; justify-content: center; }
.lb-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); }
.lb-content { position: relative; max-width: 90vw; max-height: 90vh; z-index: 1; display: flex; align-items: center; justify-content: center; }
#lb-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; pointer-events: none; }
.lb-close { position: fixed; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; z-index: 2; opacity: 0.8; }
.lb-close:hover { opacity: 1; }
.lb-nav-zone { position: absolute; top: 0; width: 50%; height: 100%; cursor: pointer; z-index: 2; }
.lb-nav-left { left: 0; cursor: w-resize; }
.lb-nav-right { right: 0; cursor: e-resize; }
.lb-nav-zone:hover { background: rgba(255,255,255,0.03); }
.lb-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: 14px; z-index: 2; background: rgba(0,0,0,0.6); padding: 4px 14px; border-radius: 12px; }

/* Responsive */
@media (max-width: 1024px) {
  .video-page-layout { grid-template-columns: 1fr; }
  .video-sidebar { position: static; max-height: none; }
  .sidebar-list { flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 8px; }
  .sidebar-video { flex-direction: column; min-width: 160px; }
  .sidebar-thumb { width: 100%; min-width: unset; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 8px; gap: 2px; z-index: 99; }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: flex; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .video-title { font-size: 12px; }
  .video-info { padding: 6px 8px; }
  .section-header h1, .section-header h2 { font-size: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
