/* Pornhub-like site chrome */
.ph-page {
  background: #000;
  color: #e6e6e6;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.ph-util {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  /* Match .ph-shell (max 1280px + 16px gutters) so header aligns with page content */
  padding: 8px max(16px, calc((100% - 1280px) / 2 + 16px));
  background: #1b1b1b;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.72em;
  color: #888;
  box-sizing: border-box;
}
.ph-util a {
  color: #aaa;
  text-decoration: none;
  margin-right: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ph-util a:hover { color: #ff9900; }

.ph-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px max(16px, calc((100% - 1280px) / 2 + 16px));
  background: #000;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.ph-header .dh-logo { font-size: 1.85rem; flex-shrink: 0; }

.ph-search {
  flex: 1 1 280px;
  display: flex;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 22px;
  overflow: hidden;
}
.ph-search input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  padding: 11px 18px !important;
  margin: 0 !important;
  font-size: 0.95em;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.ph-search input:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}
.ph-search button {
  border: none;
  background: transparent;
  color: #aaa;
  padding: 0 16px;
  cursor: pointer;
  margin: 0;
  border-radius: 0;
}
.ph-search button:hover { color: #ff9900; background: transparent; }

.ph-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.ph-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.ph-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1b1b1b;
  border: 1px solid #2c2c2c;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 14px 0 18px;
  color: #bbb;
  font-size: 0.88em;
}
.ph-notice strong { color: #ff9900; }
.ph-notice .x {
  color: #777;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.1em;
  padding: 0 4px;
  margin: 0;
}

/* —— Expanded home —— */
.ph-hero-copy {
  margin: 18px 0 16px;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #141414 0%, #0c0c0c 60%, rgba(255,153,0,0.08) 100%);
  border: 1px solid #2c2c2c;
  border-radius: 10px;
}
.ph-hero-copy h1 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  color: #fff;
  border: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ph-hero-copy p {
  margin: 0;
  color: #bbb;
  font-size: 0.95em;
  line-height: 1.55;
  max-width: 920px;
}
.ph-hero-copy .ph-hero-meta {
  margin-top: 12px;
  color: #888;
  font-size: 0.82em;
  font-weight: 600;
}

.ph-warn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.ph-warn {
  background: #141414;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 14px 14px 12px;
}
.ph-warn-hot {
  border-color: rgba(231,76,60,0.45);
  background: rgba(231,76,60,0.08);
}
.ph-warn strong {
  display: block;
  color: #ff9900;
  font-size: 0.82em;
  font-weight: 800;
  margin-bottom: 6px;
}
.ph-warn-hot strong { color: #ef9a9a; }
.ph-warn p {
  margin: 0;
  color: #aaa;
  font-size: 0.8em;
  line-height: 1.45;
}

.ph-section-note {
  color: #777;
  font-size: 0.78em;
  font-weight: 600;
}
.ph-section-lead {
  margin: -4px 0 14px;
  color: #888;
  font-size: 0.88em;
  line-height: 1.45;
}

.ph-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.ph-news-card {
  background: #141414;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 16px 16px 14px;
}
.ph-news-card:hover { border-color: #3a3a3a; }
.ph-news-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ph-news-tag {
  background: rgba(255,153,0,0.14);
  color: #ff9900;
  font-size: 0.65em;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
}
.ph-news-stamp { color: #666; font-size: 0.72em; font-weight: 600; }
.ph-news-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  border: none;
}
.ph-news-card p {
  margin: 0;
  color: #999;
  font-size: 0.84em;
  line-height: 1.5;
}

.ph-about {
  margin-top: 34px;
  padding: 22px 22px 18px;
  background: #121212;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
}
.ph-about h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.15rem;
  border: none;
}
.ph-about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ph-about-grid h3 {
  margin: 0 0 6px;
  color: #ff9900;
  font-size: 0.88rem;
  border: none;
}
.ph-about-grid p {
  margin: 0;
  color: #999;
  font-size: 0.82em;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .ph-warn-grid,
  .ph-about-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ph-warn-grid,
  .ph-about-grid,
  .ph-news-grid { grid-template-columns: 1fr; }
  .ph-hero-copy h1 { font-size: 1.35rem; }
}

.ph-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}
.ph-section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  border: none;
  font-weight: 700;
}
.ph-section-head a {
  color: #ff9900;
  font-size: 0.85em;
  font-weight: 700;
  text-decoration: none;
}

.ph-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}
.ph-tags a {
  flex: 0 0 auto;
  padding: 7px 12px;
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 16px;
  color: #ccc !important;
  text-decoration: none !important;
  font-size: 0.78em;
  font-weight: 600;
  white-space: nowrap;
}
.ph-tags a:hover {
  border-color: #ff9900;
  color: #fff !important;
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 12px;
}

.ph-thumb {
  display: block;
  text-decoration: none !important;
  color: inherit;
}
.ph-thumb:hover .ph-thumb-media { outline: 1px solid #ff9900; }
.ph-thumb-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #222 0%, #111 50%, #1a1208 100%);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

/* Category / market pagination */
.cat-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 12px;
  padding: 14px 0;
  border-top: 1px solid #2a2a2a;
}
.cat-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 18px;
  background: #ff9900;
  color: #000 !important;
  font-weight: 800;
  font-size: 0.85em;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: 1px solid #ff9900;
}
.cat-pager-btn:hover { background: #ffb000; }
.cat-pager-btn.disabled {
  background: #1a1a1a;
  border-color: #333;
  color: #555 !important;
  cursor: not-allowed;
  pointer-events: none;
}
.cat-pager-btn.decoy {
  background: #ff9900;
  border-color: #ff9900;
  color: #000 !important;
  cursor: default;
  pointer-events: none;
  user-select: none;
}
.cat-pager-meta {
  color: #888;
  font-size: 0.85em;
  font-weight: 600;
}
.ph-thumb-media .ph-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-thumb-media .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff9900;
  color: #000;
  font-size: 0.65em;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
.ph-thumb-media .dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
}
.ph-thumb-media .mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,153,0,0.25);
  letter-spacing: 2px;
  user-select: none;
}
.ph-thumb-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #888;
  font-size: 0.75em;
  margin-bottom: 4px;
}
.ph-thumb-meta .seller { color: #ccc; font-weight: 700; }
.ph-thumb-title {
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ph-thumb-price {
  margin-top: 4px;
  color: #ff9900;
  font-weight: 800;
  font-size: 0.95em;
}

.ph-sellers-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.ph-seller-chip {
  background: #1b1b1b;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 12px;
}
.ph-seller-chip .n { color: #fff; font-weight: 700; }
.ph-seller-chip .s { color: #ff9900; font-size: 0.8em; margin-top: 4px; }
.ph-seller-chip .m { color: #777; font-size: 0.75em; margin-top: 2px; }

@media (max-width: 720px) {
  .ph-header { padding: 10px 12px; }
  .ph-util { padding: 8px 12px; }
  .ph-shell { padding: 0 10px 36px; }
  .ph-header .dh-logo { font-size: 1.45rem; }
  .ph-search { max-width: none; order: 3; flex-basis: 100%; border-radius: 18px; }
}
