:root {
  --bg: #1b1b1b;
  --bg2: #252525;
  --bg3: #2e2e2e;
  --bg4: #3a3a3a;
  --accent: #cc2200;
  --accent-hover: #e62800;
  --red: #d4190c;
  --text: #f5f5f5;
  --text2: #b0b0b0;
  --text3: #777;
  --border: #3a3a3a;
  --header-h: 56px;
  --nav-h: 44px;
  --network-h: 28px;
  --font: 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
img { display: block; max-width: 100%; }

/* AGE GATE */
#age-gate {
  display: none;
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.agegate-inner {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.agegate-logo {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 32px;
}
.agegate-logo span { color: var(--accent); }
.agegate-warning {
  background: #1a0000;
  border: 1px solid #500;
  color: #ff6b6b;
  padding: 12px 16px;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.agegate-text {
  color: var(--text2);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.agegate-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-enter {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}
.btn-enter:hover { background: var(--accent-hover); }
.btn-leave {
  color: var(--text3);
  font-size: 12px;
  padding: 8px;
  transition: color 0.15s;
}
.btn-leave:hover { color: var(--text2); }

/* NETWORK BAR */
.network-bar {
  background: #111;
  height: var(--network-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.network-bar::-webkit-scrollbar { display: none; }
.network-label {
  color: var(--text3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.network-links { display: flex; gap: 2px; }
.network-links a {
  color: var(--text2);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 0.15s;
}
.network-links a:hover { color: var(--text); }
.network-links a.active { color: var(--accent); font-weight: 500; }

/* MAIN HEADER */
.main-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrap {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 16px;
  gap: 12px;
}
.header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* HAMBURGER */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 3px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}
.hamburger:hover span { background: var(--accent); }

/* LOGO */
.site-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }

/* SEARCH */
.header-search { flex: 1; max-width: 560px; }
.search-form {
  display: flex;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.search-form:focus-within { border-color: var(--accent); }
.search-form input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  padding: 0 14px;
  height: 36px;
  font-size: 14px;
  outline: none;
}
.search-form input::placeholder { color: var(--text3); }
.search-form button {
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  height: 36px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.search-form button:hover { background: var(--accent-hover); }

/* HEADER RIGHT */
.header-right { display: flex; gap: 8px; flex-shrink: 0; }
.btn-login {
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.15s;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }
.btn-signup {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 3px;
  transition: background 0.15s;
}
.btn-signup:hover { background: var(--accent-hover); }

/* MAIN NAV */
.main-nav {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.nav-wrap {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-wrap::-webkit-scrollbar { display: none; }
.nav-wrap a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0 16px;
  height: var(--nav-h);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
}
.nav-wrap a:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav-wrap a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* SIDE DRAWER */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
}
.drawer-overlay.open { display: block; }
.side-drawer {
  position: fixed;
  top: 0; left: -280px;
  width: 280px; height: 100vh;
  background: var(--bg2);
  z-index: 210;
  transition: left 0.25s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.side-drawer.open { left: 0; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-header button { color: var(--text2); padding: 4px; }
.drawer-header button:hover { color: var(--text); }
.drawer-nav { padding: 8px 0; }
.drawer-nav a {
  display: block;
  padding: 11px 20px;
  color: var(--text2);
  font-size: 14px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.drawer-nav a:hover {
  background: var(--bg3);
  color: var(--text);
  border-left-color: var(--accent);
}
.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* SITE CONTENT */
.site-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
}

/* AD BANNER */
.ad-banner {
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ad-banner.leaderboard { height: 90px; }
.ad-banner.rectangle { width: 300px; height: 250px; }
.ad-banner.skyscraper { width: 160px; height: 600px; }

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title span { color: var(--accent); }
.section-more {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.section-more:hover { color: var(--accent-hover); }

/* FILTER TABS */
.filter-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  padding: 3px;
  border-radius: 3px;
}
.filter-tabs a {
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 2px;
  transition: all 0.15s;
}
.filter-tabs a:hover { color: var(--text); background: var(--bg4); }
.filter-tabs a.active { background: var(--accent); color: #000; }

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

/* VIDEO CARD */
.video-card {
  display: block;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-3px); }
.video-card:hover .video-title { color: var(--accent); }

.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--bg4);
  overflow: hidden;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 2px;
}
.video-hd {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(0,0,0,0.8);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.source-pill {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.8);
  color: var(--text2);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 2px;
}

.video-info { padding: 8px 10px 10px; }
.video-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.video-views {
  color: var(--text3);
  font-size: 11px;
}
.video-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text3);
  font-size: 11px;
}
.rating-bar {
  width: 40px;
  height: 3px;
  background: var(--bg4);
  border-radius: 2px;
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* HOMEPAGE LAYOUT */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}
.home-main {}
.home-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* VIDEO PAGE LAYOUT */
.video-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
.player-section {}
.player-wrapper {
  background: #000;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 12px;
}
.player-wrapper iframe,
.player-wrapper video,
.player-wrapper .video-js {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.video-page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.4;
}
.video-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text3);
}
.video-page-meta span { display: flex; align-items: center; gap: 4px; }
.video-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 3px;
  transition: all 0.15s;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.like { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  transition: all 0.15s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* SIDEBAR - RELATED */
.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text2);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-card {
  display: flex;
  gap: 8px;
  transition: opacity 0.15s;
}
.related-card:hover { opacity: 0.85; }
.related-thumb {
  width: 130px;
  min-width: 130px;
  position: relative;
  padding-bottom: 0;
  height: 74px;
  background: var(--bg4);
  overflow: hidden;
  border-radius: 2px;
  flex-shrink: 0;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; min-width: 0; }
.related-title {
  font-size: 12px;
  color: var(--accent);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.related-meta { font-size: 11px; color: var(--text3); }

/* COMMENTS */
.comments-section { margin-top: 24px; }
.comments-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.comment-form { margin-bottom: 20px; }
.comment-form textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font);
  resize: vertical;
  min-height: 80px;
  border-radius: 3px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.comment-form textarea:focus { border-color: var(--accent); }
.btn-comment {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 3px;
  transition: background 0.15s;
}
.btn-comment:hover { background: var(--accent-hover); }
.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.comment-body {}
.comment-author { font-size: 12px; font-weight: 500; color: var(--accent); margin-bottom: 3px; }
.comment-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
.comment-date { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.category-card {
  position: relative;
  padding-bottom: 60%;
  background: var(--bg4);
  border-radius: 3px;
  overflow: hidden;
}
.category-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.category-card:hover img { transform: scale(1.05); }
.category-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 20px 10px 8px;
  text-align: center;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #000; }

/* FOOTER */
.site-footer {
  background: #111;
  border-top: 1px solid var(--border);
  padding: 32px 20px 24px;
  text-align: center;
  margin-top: 40px;
}
.footer-top { margin-bottom: 16px; }
.footer-logo {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text3);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 16px;
}
.footer-nav a { color: var(--text3); font-size: 12px; transition: color 0.15s; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { color: var(--text3); font-size: 11px; }

/* LOADING SKELETON */
.skeleton {
  background: var(--bg3);
  border-radius: 3px;
  animation: shimmer 1.5s infinite;
}
.skeleton-thumb { padding-bottom: 56.25%; }
.skeleton-line { height: 12px; margin-bottom: 6px; }
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { display: none; }
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .video-page-layout { grid-template-columns: 1fr; }
  .header-right .btn-signup { display: none; }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .site-content { padding: 10px; }
  .header-right { display: none; }
  .network-bar { display: none; }
  .main-nav .nav-wrap a { padding: 0 10px; font-size: 11px; }
}
@media (max-width: 400px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
