/* ==========================================================
   PORNOM.NET — Premium Design v2
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0a0a0a;
  --bg2:     #111111;
  --bg3:     #191919;
  --bg4:     #222222;
  --bg5:     #2a2a2a;
  --red:     #e8173a;
  --red2:    #c0102d;
  --red-rgb: 232,23,58;
  --gold:    #f5a623;
  --text:    #efefef;
  --text2:   #888;
  --text3:   #4a4a4a;
  --border:  #1d1d1d;
  --cr:      8px;
  --cr2:     12px;
  --t:       .2s ease;
  --shadow:  0 4px 24px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: -apple-system,'Segoe UI',Roboto,Arial,sans-serif; line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
a { color: var(--red); text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }

/* ===== AGE GATE ===== */
#age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#age-gate.hidden { display: none; }
.age-gate-box {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 48px 52px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(232,23,58,.08), 0 24px 60px rgba(0,0,0,.9);
  position: relative; overflow: hidden;
}
.age-gate-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.age-gate-logo { font-size: 2.8rem; font-weight: 900; color: #fff; letter-spacing: -2px; font-family: 'Arial Black',Impact,sans-serif; margin-bottom: 8px; }
.age-gate-logo span { color: var(--red); }
.age-gate-box h2 { font-size: 1rem; color: #aaa; font-weight: 500; margin-bottom: 12px; }
.age-gate-box p { color: #555; font-size: 13px; line-height: 1.7; margin-bottom: 28px; }
.age-gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-enter {
  background: var(--red); color: #fff; padding: 14px 40px; border-radius: 30px;
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,23,58,.4); transition: all var(--t);
}
.btn-enter:hover { background: #ff1f40; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,23,58,.5); }
.btn-leave {
  background: transparent; color: #3a3a3a; padding: 14px 24px; border-radius: 30px;
  font-size: 13px; border: 1px solid #222; cursor: pointer; transition: all var(--t);
}
.btn-leave:hover { color: #666; border-color: #333; }
.age-gate-warning { font-size: 11px; color: #2e2e2e; margin-top: 22px; line-height: 1.6; }

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 200;
  height: 58px;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid #181818;
}
.header-inner { max-width: 1600px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 16px; height: 100%; }

.logo {
  font-size: 1.65rem; font-weight: 900; color: #fff; letter-spacing: -1.8px;
  text-decoration: none; font-family: 'Arial Black',Impact,sans-serif; flex-shrink: 0;
  transition: opacity var(--t);
}
.logo:hover { opacity: .85; color: #fff; }
.logo-net { color: var(--red); }

.search-form { flex: 1; max-width: 480px; position: relative; }
.search-input {
  width: 100%; background: #181818; border: 1.5px solid #242424;
  border-radius: 50px; padding: 0 48px 0 18px;
  height: 38px; color: var(--text); font-size: 13px;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.search-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb),.08); }
.search-input::placeholder { color: #3e3e3e; }
.search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: var(--red); border: none; border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background var(--t), transform var(--t);
}
.search-btn:hover { background: #ff1f40; transform: translateY(-50%) scale(1.1); }

.header-links { display: flex; gap: 2px; flex-shrink: 0; }
.header-links a {
  color: #666; font-size: 12.5px; font-weight: 500; padding: 6px 13px;
  border-radius: 18px; text-decoration: none; transition: all var(--t); white-space: nowrap;
}
.header-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.header-links .hl-hot { color: #e07a45; }
.header-links .hl-hot:hover { background: rgba(255,120,60,.1); color: #ff9060; }

/* ===== CATEGORY NAV ===== */
.cat-nav {
  background: #0d0d0d; border-bottom: 1px solid #161616;
  overflow-x: auto; scrollbar-width: none; position: sticky; top: 58px; z-index: 100;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner { max-width: 1600px; margin: 0 auto; padding: 0 22px; display: flex; gap: 5px; height: 46px; align-items: center; }
.cat-btn {
  background: transparent; color: #555; border: 1.5px solid #1e1e1e;
  border-radius: 18px; padding: 5px 15px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; transition: all var(--t); flex-shrink: 0;
}
.cat-btn:hover { color: #bbb; border-color: #2e2e2e; background: #161616; }
.cat-btn.active {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 2px 14px rgba(var(--red-rgb),.35);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: #0d0d0d;
  border-bottom: 1px solid #141414;
}
.stats-inner {
  max-width: 1600px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: center; height: 36px; gap: 0;
}
.stat-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #444; padding: 0 20px; }
.stat-num { color: var(--red); font-weight: 700; font-size: 13px; }
.stat-label { color: #444; }
.stat-divider { width: 1px; height: 14px; background: #1e1e1e; flex-shrink: 0; }
.stat-live { gap: 8px; }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.2); flex-shrink: 0;
  animation: pulse-live 2.5s ease infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,.05); }
}
#stat-update-text { color: #444; }

/* ===== MAIN ===== */
.main-wrap { max-width: 1600px; margin: 0 auto; padding: 28px 22px 60px; min-height: 100vh; }

.search-info {
  background: #111; border: 1px solid #1e1e1e; border-radius: var(--cr);
  padding: 11px 16px; margin-bottom: 20px; font-size: 13px; color: #666;
}
.search-info span { color: #fff; font-weight: 600; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title {
  font-size: 1rem; font-weight: 700; color: #e0e0e0;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: ''; display: block; width: 3px; height: 16px;
  background: var(--red); border-radius: 2px; margin-left: 2px;
}
.see-all { font-size: 12px; color: #3e3e3e; text-decoration: none; transition: color var(--t); white-space: nowrap; }
.see-all:hover { color: var(--red); }

/* ===== TRENDING SECTION ===== */
.trending-wrap { margin-bottom: 40px; }
.trending-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.trending-strip::-webkit-scrollbar { display: none; }

.trending-card {
  flex: 0 0 185px; background: var(--bg2); border-radius: var(--cr);
  overflow: hidden; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease;
  border: 1px solid var(--border);
}
.trending-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.8), 0 0 0 1px rgba(var(--red-rgb),.12); }
.trending-thumb { position: relative; aspect-ratio: 16/9; background: #0d0d0d; overflow: hidden; }
.trending-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.trending-card:hover .trending-thumb img { transform: scale(1.07); }
.trending-thumb .play-overlay { opacity: 0; transition: opacity .2s; }
.trending-card:hover .trending-thumb .play-overlay { opacity: 1; }
.trending-thumb .play-overlay svg { width: 34px; height: 34px; }
.trending-rank {
  position: absolute; top: 6px; left: 6px; z-index: 4;
  background: rgba(0,0,0,.9); color: var(--red);
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .5px;
}
.trending-info { padding: 8px 10px 10px; }
.trending-title {
  font-size: 11.5px; font-weight: 600; color: #aaa; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px; transition: color var(--t);
}
.trending-card:hover .trending-title { color: #eee; }
.trending-meta { font-size: 10.5px; color: #3e3e3e; }

/* ===== SORT BAR ===== */
.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.sort-bar h2 { font-size: 1.1rem; font-weight: 700; color: #e0e0e0; letter-spacing: -.2px; }
.sort-tabs {
  display: flex; gap: 2px; background: #111; border-radius: 22px;
  padding: 3px; border: 1px solid #1d1d1d;
}
.sort-tab {
  background: transparent; color: #555; border: none; border-radius: 18px;
  padding: 6px 16px; font-size: 12.5px; font-weight: 600; transition: all var(--t);
}
.sort-tab.active { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(var(--red-rgb),.35); }
.sort-tab:hover:not(.active) { color: #aaa; background: rgba(255,255,255,.04); }

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; min-height: 600px; align-content: start;
}

/* ===== VIDEO CARD ===== */
.video-card {
  background: var(--bg2); border-radius: var(--cr2); overflow: hidden;
  cursor: pointer; transition: transform .22s ease, box-shadow .22s ease;
  border: 1px solid transparent;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0,0,0,.85), 0 0 0 1px rgba(var(--red-rgb),.1);
  border-color: rgba(var(--red-rgb),.07);
}

.video-thumb-wrap { position: relative; aspect-ratio: 16/9; background: #0d0d0d; overflow: hidden; }
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.video-card:hover .video-thumb-wrap img { transform: scale(1.07); }

.video-thumb-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 50%, transparent 70%);
  opacity: 0; transition: opacity .22s ease; pointer-events: none;
}
.video-card:hover .video-thumb-wrap::after { opacity: 1; }

.play-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s ease;
}
.play-overlay svg { width: 50px; height: 50px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.8)); }
.video-card:hover .play-overlay { opacity: 1; }

.v-duration {
  position: absolute; bottom: 7px; right: 7px; z-index: 3;
  background: rgba(0,0,0,.9); color: #ddd;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
}
.v-quality {
  position: absolute; top: 7px; left: 7px; z-index: 3;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; letter-spacing: .5px;
}
.v-new {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  background: #16a34a; color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px;
}

.video-info { padding: 11px 12px 13px; }
.video-title {
  font-size: 12.5px; font-weight: 600; color: #ccc;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 7px; line-height: 1.45; transition: color var(--t);
}
.video-card:hover .video-title { color: #fff; }
.video-meta { display: flex; gap: 10px; color: #404040; font-size: 11px; margin-bottom: 7px; }
.video-cat-badge {
  display: inline-block; background: rgba(var(--red-rgb),.07); color: #c0405a;
  font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 10px;
  border: 1px solid rgba(var(--red-rgb),.1); transition: all var(--t);
}
.video-cat-badge:hover { background: rgba(var(--red-rgb),.15); color: var(--red); }

/* ===== SKELETON ===== */
.skeleton-card { background: var(--bg2); border-radius: var(--cr2); overflow: hidden; animation: sk-pulse 1.6s ease-in-out infinite; }
.skeleton-thumb { aspect-ratio: 16/9; background: var(--bg3); }
.skeleton-info { padding: 11px 12px 13px; }
.skeleton-title { height: 12px; background: var(--bg3); border-radius: 4px; margin-bottom: 8px; }
.skeleton-title2 { height: 12px; background: var(--bg3); border-radius: 4px; width: 65%; margin-bottom: 10px; }
.skeleton-meta { height: 10px; background: var(--bg4); border-radius: 4px; width: 48%; }
@keyframes sk-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }

.no-results { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: #444; }
.no-results h3 { font-size: 1.1rem; color: #666; margin-bottom: 8px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  background: #111; color: #555; border: 1.5px solid #1d1d1d;
  border-radius: var(--cr); width: 40px; height: 40px; font-size: 13px; font-weight: 600;
  transition: all var(--t);
}
.page-btn:hover { color: #ddd; border-color: #2e2e2e; background: #1a1a1a; }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 2px 12px rgba(var(--red-rgb),.35); }
.page-ellipsis { color: #333; line-height: 40px; padding: 0 2px; font-size: 15px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { max-width: 1600px; margin: 0 auto; padding: 12px 22px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: #3a3a3a; flex-wrap: wrap; }
.breadcrumb a { color: #444; transition: color var(--t); }
.breadcrumb a:hover { color: var(--red); }
.sep { color: #2a2a2a; }

/* ===== VIDEO PAGE ===== */
.player-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 24px; max-width: 1600px; margin: 0 auto; padding: 18px 22px;
}
@media(max-width: 1060px) { .player-layout { grid-template-columns: 1fr; } }

.player-wrap {
  background: #000; border-radius: var(--cr2); overflow: hidden;
  position: relative; aspect-ratio: 16/9;
  box-shadow: 0 8px 40px rgba(0,0,0,.8);
}
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.player-info { padding: 16px 0 0; }
.player-title { font-size: 1.2rem; font-weight: 700; color: #eee; line-height: 1.4; margin-bottom: 13px; }
.player-stats { display: flex; gap: 14px; color: #555; font-size: 12.5px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.player-stats a { color: #b0304a; transition: color var(--t); }
.player-stats a:hover { color: var(--red); }

.action-btns { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.btn-like, .btn-share {
  border: 1.5px solid #1e1e1e; border-radius: 22px; padding: 8px 20px;
  font-size: 13px; font-weight: 600; transition: all var(--t); background: #111; color: #777;
}
.btn-like:hover, .btn-like.liked { background: rgba(var(--red-rgb),.1); border-color: rgba(var(--red-rgb),.3); color: var(--red); }
.btn-share:hover { background: #1a1a1a; color: #ddd; border-color: #2a2a2a; }

.player-desc { font-size: 13px; color: #666; line-height: 1.75; margin-bottom: 14px; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.video-tag {
  background: #141414; color: #666; font-size: 11px; padding: 4px 12px;
  border-radius: 12px; border: 1px solid #1e1e1e; transition: all var(--t);
}
.video-tag:hover { color: #bbb; border-color: #2a2a2a; background: #1a1a1a; }

.sidebar h3 {
  font-size: 13.5px; font-weight: 700; color: #ddd; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--red);
}
.related-card {
  display: flex; gap: 10px; padding: 7px; border-radius: var(--cr);
  text-decoration: none; color: inherit; transition: background var(--t); margin-bottom: 3px;
}
.related-card:hover { background: #141414; }
.related-thumb { position: relative; flex-shrink: 0; width: 115px; height: 65px; background: #0d0d0d; border-radius: 6px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-dur { position: absolute; bottom: 3px; right: 4px; background: rgba(0,0,0,.9); color: #ccc; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.related-info { flex: 1; min-width: 0; }
.related-title { font-size: 12px; font-weight: 600; color: #aaa; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; margin-bottom: 5px; }
.related-meta { font-size: 11px; color: #3a3a3a; }

/* ===== FOOTER ===== */
footer { background: #080808; border-top: 1px solid #141414; margin-top: 60px; }
.footer-inner { max-width: 1600px; margin: 0 auto; padding: 40px 22px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 10px; display: inline-block; color: #fff; }
.footer-brand p { font-size: 12px; color: #363636; line-height: 1.75; max-width: 240px; }
.footer-col h4 { font-size: 10px; font-weight: 700; color: #3a3a3a; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-col a { display: block; color: #363636; font-size: 12.5px; margin-bottom: 8px; transition: color var(--t); }
.footer-col a:hover { color: #888; }
.footer-bottom { border-top: 1px solid #111; padding-top: 18px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-copy { font-size: 11.5px; color: #2e2e2e; }
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { font-size: 11.5px; color: #2e2e2e; transition: color var(--t); }
.footer-legal a:hover { color: #666; }
.disclaimer { font-size: 11px; color: #242424; line-height: 1.7; margin-top: 14px; padding-top: 14px; border-top: 1px solid #0f0f0f; }
.disclaimer a { color: #303030; }

/* ===== RESPONSIVE ===== */
@media(max-width: 1280px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
}
@media(max-width: 960px) {
  .header-inner { padding: 0 14px; }
  .cat-nav-inner { padding: 0 14px; }
  .stats-inner { padding: 0 14px; }
  .main-wrap { padding: 20px 14px 50px; }
  .footer-inner { padding: 32px 14px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .player-layout { padding: 14px; }
}
@media(max-width: 768px) {
  .header-links { display: none; }
  .search-form { max-width: unset; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trending-card { flex: 0 0 155px; }
  .sort-bar h2 { font-size: 1rem; }
}
@media(max-width: 480px) {
  .header-inner { padding: 0 10px; gap: 8px; }
  .logo { font-size: 1.35rem; }
  .search-input { height: 36px; font-size: 12.5px; }
  .main-wrap { padding: 14px 10px 40px; }
  .cat-nav-inner { padding: 0 8px; gap: 4px; }
  .stats-inner { padding: 0 10px; }
  .stat-item { padding: 0 10px; }
  .cat-btn { padding: 4px 11px; font-size: 12px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .video-info { padding: 8px 9px 10px; }
  .video-title { font-size: 11.5px; }
  .trending-card { flex: 0 0 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-inner { padding: 24px 10px 14px; }
  .player-layout { padding: 10px; }
  .breadcrumb { padding: 10px; }
  .btn-like, .btn-share { padding: 7px 14px; font-size: 12px; }
  .action-btns { gap: 6px; }
  .sort-tab { padding: 5px 12px; font-size: 12px; }
}
