/*
Theme Name: Video VIP Theme
Theme URI: https://19j.xianmaodu.com
Author: 19J Video
Description: Independent video membership theme for an English video VIP platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: video-vip-theme
*/

:root {
  --bg: #08090b;
  --panel: #111318;
  --panel-soft: #171a21;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f1e8;
  --muted: #a7a093;
  --accent: #f64f2a;
  --accent-2: #15c8a6;
  --gold: #f5b84b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.site-wrap {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(246,79,42,0.13), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(21,200,166,0.18), transparent 30%),
    var(--bg);
}

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #120705;
}

.brand img { max-height: 42px; width: auto; }

.nav-menu { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.nav-menu a { color: var(--muted); font-size: 14px; }
.nav-menu a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.account-link { white-space: nowrap; }

.search-form {
  display: flex;
  align-items: center;
  width: min(280px, 30vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
}

.search-form button,
.button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary { background: rgba(255,255,255,0.1); color: var(--text); border: 1px solid var(--line); }

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.eyebrow { color: var(--accent-2); text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }

h1, h2, h3 { line-height: 1.05; letter-spacing: 0; margin: 0; }

.hero h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(44px, 7vw, 86px);
  text-transform: uppercase;
}

.hero p { max-width: 620px; color: var(--muted); font-size: 18px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.hero-screen {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(246,79,42,0.85), rgba(17,19,24,0.68) 42%, rgba(21,200,166,0.62)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 9px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-screen:before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8,9,11,0.86);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--text);
  font-size: 34px;
}

.hero-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-weight: 800;
}

.section { padding: 38px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 { font-size: clamp(24px, 3vw, 38px); text-transform: uppercase; }
.section-head p { color: var(--muted); margin: 6px 0 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.video-card:hover { transform: translateY(-3px); border-color: rgba(246,79,42,0.55); }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(140deg, rgba(246,79,42,0.82), rgba(21,200,166,0.58)),
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.26), transparent 30%),
    #252831;
}

.video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(8,9,11,0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-thumb .badge { position: absolute; left: 10px; top: 10px; }
.duration { position: absolute; right: 10px; bottom: 10px; }

.video-body { padding: 14px; }
.video-body h3 { font-size: 16px; min-height: 40px; }
.video-body p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.video-stats { display: flex; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 12px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--panel), rgba(246,79,42,0.18));
}

.category-tile strong { display: block; font-size: 18px; }
.category-tile span { color: var(--muted); font-size: 12px; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 44px 0;
}

.player {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050607;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player video, .player iframe { width: 100%; height: 100%; border: 0; }

.locked-message {
  width: min(520px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid rgba(245,184,75,0.34);
  border-radius: var(--radius);
  background: rgba(245,184,75,0.12);
  text-align: center;
}

.locked-message .hero-actions { justify-content: center; }

.video-detail h1 { margin: 22px 0 12px; font-size: clamp(32px, 5vw, 58px); }
.video-description { color: var(--muted); font-size: 17px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; color: var(--muted); }

.favorite-form { margin: 16px 0 4px; }

.ad-slot {
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  overflow: hidden;
  text-align: center;
}

.ad-slot img { width: 100%; max-height: 180px; object-fit: cover; }
.ad-slot p { margin: 0; padding: 16px; }
.ad-slot-video_detail_top,
.ad-slot-video_detail_bottom { width: 100%; margin: 0 0 18px; }
.ad-slot-video_detail_bottom { margin: 22px 0 0; }
.ad-slot-mobile_bottom { display: none; }

.sidebar-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
}

.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
}

.age-gate[hidden] { display: none; }

.age-gate-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(245,184,75,0.36);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow);
}

.age-gate-panel h2 { margin-top: 10px; font-size: 34px; text-transform: uppercase; }
.age-gate-panel p { color: var(--muted); }

.account-page { padding: 48px 0; }

.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-side,
.account-main,
.account-form,
.account-summary,
.plan-card,
.account-notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.account-side { padding: 14px; position: sticky; top: 96px; }
.account-main { padding: 24px; }

.account-nav { display: grid; gap: 8px; }
.account-nav a {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.account-nav a:hover { color: var(--text); background: rgba(246,79,42,0.16); }

.account-intro { margin-bottom: 22px; }
.account-intro h1 { margin-top: 8px; font-size: clamp(32px, 5vw, 58px); text-transform: uppercase; }
.account-intro p { color: var(--muted); max-width: 760px; }

.account-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  max-width: 560px;
}

.account-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
.account-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.account-form .checkline { display: flex; align-items: center; gap: 8px; }
.account-form .checkline input { width: auto; }
.form-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--accent-2); }

.account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 20px;
}
.account-summary div { padding: 16px; background: rgba(255,255,255,0.035); }
.account-summary span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 900; }
.account-summary strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.plan-card { padding: 18px; }
.plan-card h3 { font-size: 22px; min-height: 48px; }
.plan-card strong { display: block; margin: 12px 0; color: var(--gold); }
.plan-card p, .plan-card li { color: var(--muted); }
.plan-card ul { padding-left: 18px; }
.plan-card form { margin-top: 16px; }
.plan-card button { width: 100%; }

.order-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--panel);
}

.order-table th,
.order-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.order-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.account-notice { padding: 14px 16px; margin: 12px 0; }
.account-notice.error { border-color: rgba(246,79,42,0.7); }
.account-notice.success { border-color: rgba(21,200,166,0.7); }
.account-notice.info { border-color: rgba(245,184,75,0.45); }

.inline-action { margin: 0 0 18px; }
.account-video-grid { margin-top: 18px; }
.mini-remove { margin: -6px 0 16px; }
.mini-remove .button { width: 100%; border-radius: 8px; }

.archive-header { padding: 52px 0 18px; }
.archive-header h1 { font-size: clamp(34px, 6vw, 68px); text-transform: uppercase; }
.archive-header p { color: var(--muted); max-width: 700px; }

.video-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.video-filters a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  font-weight: 800;
}

.video-filters a.active,
.video-filters a:hover {
  color: #fff;
  border-color: rgba(246,79,42,0.65);
  background: rgba(246,79,42,0.24);
}

.pagination { margin-top: 28px; color: var(--muted); }
.pagination .nav-links { display: flex; gap: 10px; }
.pagination a, .pagination span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr; padding: 14px 0; }
  .nav-menu { justify-content: flex-start; overflow-x: auto; }
  .header-actions { justify-content: space-between; }
  .search-form { width: 100%; }
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, var(--max)); }
  .hero { padding-top: 38px; }
  .hero-copy, .hero-screen { min-height: 330px; }
  .video-grid, .category-grid { grid-template-columns: 1fr; }
  .plan-grid, .account-summary { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .hero-actions .button { width: 100%; text-align: center; }
  .ad-slot-mobile_bottom {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
}
