/* ===== ZetaHub – 1:1 Pornhub layout with blue tint ===== */
:root {
  --ph-orange: #ff9900;          /* original PH accent – we replace */
  --accent: #00b4e4;             /* Zeta blue */
  --accent-dark: #0090b8;
  --accent-hover: #33c5ea;
  --bg: #000000;
  --bg-elevated: #1b1b1b;
  --bg-card: #1b1b1b;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #777777;
  --header-h: 52px;
  --cat-h: 40px;
  --font: 'Roboto', Arial, Helvetica, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header {
  background: #000;
  height: var(--header-h);
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 16px;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}
.logo-text span {
  color: var(--accent);
}

.search-box {
  flex: 1;
  max-width: 520px;
  display: flex;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  height: 34px;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  color: #111;
}

.search-btn {
  background: var(--accent);
  color: #000;
  padding: 0 14px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.search-btn:hover { background: var(--accent-hover); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header-link {
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
}
.header-link:hover { color: var(--accent); }

.btn-login {
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
}
.btn-login:hover { color: #fff; }

.btn-signup {
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 3px;
  transition: background 0.15s;
}
.btn-signup:hover { background: var(--accent-hover); }
.btn-signup.full { width: 100%; margin-top: 8px; }

/* ===== CATEGORY BAR ===== */
.category-bar {
  background: #1b1b1b;
  height: var(--cat-h);
  border-bottom: 1px solid #2a2a2a;
  overflow: hidden;
}

.category-scroll {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  white-space: nowrap;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.cat:hover { color: #fff; background: #2a2a2a; }
.cat.active { color: var(--accent); }
.cat.highlight {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  margin-left: 8px;
}
.cat.highlight:hover { background: var(--accent-hover); color: #000; }

/* ===== MAIN LAYOUT ===== */
.main {
  padding: 16px 0 40px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}
.container.full-width {
  grid-template-columns: 1fr;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--cat-h) + 16px);
  align-self: start;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2a2a;
}

.cat-list li a {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #ccc;
  transition: color 0.15s;
}
.cat-list li a:hover { color: var(--accent); }
.cat-list li a.active-cat {
  color: var(--accent);
  font-weight: 600;
}
.cat-list li a span {
  color: #666;
  font-size: 12px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
}

.see-all-cats {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
}
.see-all-cats:hover { text-decoration: underline; }

/* CONTENT */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-head h1 {
  font-size: 18px;
  font-weight: 700;
}

.sort-tabs {
  display: flex;
  gap: 4px;
}

.sort {
  padding: 5px 10px;
  font-size: 12px;
  color: #aaa;
  border-radius: 3px;
  background: #1b1b1b;
}
.sort:hover { color: #fff; }
.sort.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

/* ===== VIDEO GRID (classic PH style) ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 12px;
}

.video-card {
  cursor: pointer;
  transition: opacity 0.15s;
}
.video-card:hover { opacity: 0.92; }

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(145deg, #0d1a2e, #1a2d4a 50%, #0d1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px;
  line-height: 1.4;
}

.hd-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
  min-height: 34px;
}
.video-card:hover .card-title { color: var(--accent); }

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-meta .uploader {
  color: #ccc;
}
.card-meta .uploader:hover { color: var(--accent); }

.card-meta .views::after {
  content: ' views';
}

.card-meta .rating {
  color: var(--accent);
  font-weight: 600;
}

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

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: #1b1b1b;
  color: #ccc;
  font-size: 13px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { background: #2a2a2a; color: #fff; }
.page-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.page-dots { color: #666; padding: 0 4px; }

/* ===== FOOTER ===== */
.footer {
  background: #111;
  border-top: 1px solid #222;
  padding: 32px 0 20px;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.footer-bottom .disclaimer {
  margin-top: 6px;
  font-size: 11px;
  color: #555;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 28px;
  width: 100%;
  max-width: 360px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  color: #888;
  line-height: 1;
}
.modal-close:hover { color: #fff; }

.modal h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.modal-sub {
  color: #888;
  font-size: 13px;
  margin-bottom: 20px;
}

.modal-input {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.modal-input:focus { border-color: var(--accent); }

.modal-note {
  margin-top: 14px;
  font-size: 11px;
  color: #666;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .container {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
}

@media (max-width: 700px) {
  .header-link { display: none; }
  .menu-btn { display: flex; }
  .logo-text { font-size: 18px; }
  .search-box { max-width: none; }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px 8px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btn-login { display: none; }
}

/* ===== Full categories grid ===== */
.cats-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.cat-tile {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 20px 14px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.cat-tile:hover {
  border-color: var(--accent);
  background: #222;
}
.cat-tile-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.cat-tile-name { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cat-tile-count { font-size: 12px; color: #888; }

/* ===== Zetastars ===== */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.star-card {
  display: flex;
  gap: 14px;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 16px;
  align-items: center;
  transition: border-color 0.15s;
}
.star-card:hover { border-color: var(--accent); }
.star-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.star-info h3 { font-size: 15px; margin-bottom: 2px; }
.star-role { font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.star-stats { font-size: 12px; color: #888; }

/* ===== Community ===== */
.community-box {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 32px;
  max-width: 700px;
}
.community-box h2 { font-size: 22px; margin-bottom: 8px; }
.community-box > p { color: #aaa; margin-bottom: 24px; }
.community-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}
.community-stats div { text-align: center; }
.community-stats strong { display: block; font-size: 22px; color: var(--accent); }
.community-stats span { font-size: 12px; color: #888; }
.community-topics { display: flex; flex-direction: column; gap: 10px; }
.topic {
  background: #111;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== Photos ===== */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.photo-card {
  background: #1b1b1b;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
.photo-thumb {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #0d1a2e, #1a2d4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 6px;
}
.photo-card span { display: block; padding: 0 8px 10px; }

/* ===== Premium ===== */
.premium-box {
  background: linear-gradient(135deg, #1b1b1b, #0d2240);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 40px;
  max-width: 520px;
  text-align: center;
}
.premium-box h2 { font-size: 26px; margin-bottom: 10px; }
.premium-box > p { color: #aaa; margin-bottom: 24px; }
.premium-features {
  list-style: none;
  text-align: left;
  margin: 0 auto 28px;
  max-width: 280px;
}
.premium-features li {
  padding: 6px 0;
  font-size: 14px;
  color: #ccc;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}

/* ===== Video detail page ===== */
.video-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .video-detail { grid-template-columns: 1fr; }
}
.player-wrap {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
.player-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
}
.player-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}
.vd-title {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 8px;
  line-height: 1.3;
}
.vd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 14px;
}
.vd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.vd-btn {
  background: #1b1b1b;
  border: 1px solid #333;
  color: #ccc;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.vd-btn:hover { border-color: var(--accent); color: #fff; }
.vd-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.vd-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 18px;
  cursor: pointer;
}
.vd-uploader:hover .up-name { color: var(--accent); }
.up-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1b1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid #333;
}
.up-name { font-weight: 600; font-size: 15px; }
.up-subs { font-size: 12px; color: #888; }
.vd-desc {
  color: #bbb;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.comments-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.comment-form input {
  flex: 1;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.comment-form input:focus { border-color: var(--accent); }
.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1b1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-user {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}
.comment-user span {
  font-weight: 400;
  color: #666;
  font-size: 12px;
  margin-left: 8px;
}
.comment-text { font-size: 13px; color: #ccc; line-height: 1.4; }
.comment-likes {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.related-col h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #aaa;
}
.related-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}
.related-item:hover .related-title { color: var(--accent); }
.related-thumb {
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.related-meta { font-size: 12px; color: #888; }

/* ===== Profile page ===== */
.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 3px solid #333;
  flex-shrink: 0;
}
.profile-info h2 { font-size: 22px; margin-bottom: 4px; }
.profile-role { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.profile-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}
.profile-stats strong { color: #fff; }
.profile-bio { font-size: 13px; color: #999; max-width: 500px; }
.back-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
}
.back-btn:hover { text-decoration: underline; }

.uploader { cursor: pointer; }
.uploader:hover { color: var(--accent); }
.star-card { cursor: pointer; }
