:root {
  --bg: #080809;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1f1f24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(229, 9, 32, 0.45);
  --text: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #6e6e77;
  --red: #e50920;
  --red-hover: #ff1e36;
  --red-dark: #a80718;
  --red-tint: rgba(229, 9, 32, 0.14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
  --topbar-h: 68px;
  --sidebar-w: 242px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 8, 9, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(229, 9, 32, 0.28);
}

.logo-mark svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
  margin-left: 2px;
}

.logo-accent {
  color: var(--red);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-search {
  height: 40px;
  width: min(340px, 36vw);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text-secondary);
  transition: border-color 0.2s, background 0.2s;
}

.global-search:focus-within {
  border-color: var(--border-accent);
  background: var(--surface-2);
  color: var(--text);
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.global-search input::placeholder {
  color: var(--text-muted);
}

.tool-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s;
}

.tool-btn:hover,
.tool-btn.active {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.tool-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.tool-badge[hidden] {
  display: none;
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.notif-dot[hidden] {
  display: none;
}

/* App Shell & Sidebar */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 18px 14px 24px;
  background: #0a0a0c;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px 6px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: 0.16s;
}

.side-link:hover {
  color: var(--text);
  background: var(--surface);
}

.side-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(229, 9, 32, 0.2), rgba(229, 9, 32, 0.04));
  border-color: rgba(229, 9, 32, 0.26);
  font-weight: 600;
}

.side-link.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--red);
}

.side-link.active svg.icon {
  color: var(--red);
}


.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 70;
}

.sidebar-backdrop.open {
  display: block;
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 28px 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: 0.18s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-3);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-outline-red {
  background: transparent;
  border-color: rgba(229, 9, 32, 0.5);
  color: #fff;
}

.btn-outline-red:hover,
.btn-outline-red.is-active {
  background: var(--red-tint);
  border-color: var(--red);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

/* Page Headings & Section Headers */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kicker-red {
  color: var(--red);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-subtitle {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.section-block {
  margin-top: 34px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: 0.16s;
}

.view-all-link:hover {
  color: var(--red);
}

/* Featured Hero Banner (Homepage) */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 9, 32, 0.25);
  background:
    radial-gradient(ellipse at 82% 45%, rgba(229, 9, 32, 0.22), transparent 52%),
    linear-gradient(115deg, #141417 0%, #0e0c0d 58%, #09090b 100%);
  padding: 36px 40px;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-copy h1 span {
  color: var(--red);
}

.hero-copy p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 480px;
}

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

.hero-visual {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(229, 9, 32, 0.18), rgba(17, 17, 19, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.hero-play-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(229, 9, 32, 0.4);
}

.hero-visual span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Quick Links Grid */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.quick-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--surface);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.quick-tile:hover {
  border-color: var(--border-accent);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.quick-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quick-tile-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.quick-tile-text small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Filter & Toolbar Controls */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: 0.16s;
}

.pill-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.pill-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.control-input,
.control-select {
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.control-input:focus,
.control-select:focus {
  border-color: var(--border-accent);
}

/* Grids & Media Cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--surface);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.poster-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
}

.poster-tone-1 {
  background: radial-gradient(circle at 25% 30%, rgba(229, 9, 32, 0.34), transparent 58%), linear-gradient(145deg, #1d1416, #0d0d0f);
}

.poster-tone-2 {
  background: radial-gradient(circle at 75% 25%, rgba(229, 9, 32, 0.24), transparent 55%), linear-gradient(145deg, #1b1b20, #0c0c0e);
}

.poster-tone-3 {
  background: radial-gradient(circle at 50% 75%, rgba(229, 9, 32, 0.28), transparent 60%), linear-gradient(145deg, #181316, #0b0b0d);
}

.poster-tone-4 {
  background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08), transparent 55%), linear-gradient(145deg, #1c1c21, #0b0b0d);
}

.poster-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.badge-top-left,
.badge-top-right,
.badge-bottom-left,
.badge-bottom-right {
  position: absolute;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.badge-top-left {
  top: 10px;
  left: 10px;
}

.badge-top-right {
  top: 10px;
  right: 10px;
}

.badge-bottom-left {
  bottom: 10px;
  left: 10px;
}

.badge-bottom-right {
  bottom: 10px;
  right: 10px;
}

.badge-red {
  background: var(--red);
  color: #fff;
}

.badge-dark {
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
}

.play-circle {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  transition: 0.18s;
}

.media-card:hover .play-circle {
  background: var(--red);
  border-color: var(--red);
}

.card-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.card-title a:hover {
  color: var(--red);
}

.price-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-pill.is-paid {
  background: var(--red-tint);
  color: #ff6b7a;
  border: 1px solid rgba(229, 9, 32, 0.3);
}

.card-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

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

.card-meta a:hover {
  color: var(--text);
  text-decoration: underline;
}

.card-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions .btn {
  flex: 1 1 auto;
}

/* Detail & Player Layouts */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #050506;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.player-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(229, 9, 32, 0.22), transparent 60%), #09090b;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(12, 12, 14, 0.94);
  border-top: 1px solid var(--border);
}

.progress-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.progress-fill {
  width: 28%;
  height: 100%;
  background: var(--red);
  transition: width 0.3s;
}

.detail-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.detail-header-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
}

.entity-chip:hover {
  border-color: var(--border-accent);
}

/* Profile & Channel Headers */
.profile-banner {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 90% 20%, rgba(229, 9, 32, 0.18), transparent 55%),
    var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* Panels, Wallet, Notifications, Account */
.panel-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.list-row.unread {
  border-color: rgba(229, 9, 32, 0.35);
  background: linear-gradient(90deg, rgba(229, 9, 32, 0.08), transparent), var(--surface);
}

.empty-state {
  padding: 44px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 17px;
}

.empty-state p {
  margin: 0 0 16px;
  font-size: 13px;
}

/* Lightbox Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 22px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lightbox-stage {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 120;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  background: #16161a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: #070708;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .media-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .media-grid,
  .media-grid-4,
  .quick-links-grid,
  .two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-header-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 80;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    padding: 18px 16px 48px;
  }

  .topbar {
    padding: 0 14px;
  }

  .global-search {
    width: auto;
    flex: 1;
    max-width: 240px;
  }
}

@media (max-width: 540px) {
  .media-grid,
  .media-grid-4,
  .quick-links-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 24px 20px;
  }

  .global-search {
    display: none;
  }
}

/* XPlayHub Foundation pass — responsive refinements */
@media (max-width: 540px) {
  .media-grid,
  .media-grid-4,
  .quick-links-grid,
  .two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-content { padding-left: 12px; padding-right: 12px; }
  .topbar { gap: 8px; }
  .topbar-left { gap: 8px; min-width: 0; }
  .logo { font-size: 20px; gap: 7px; }
  .logo-mark { width: 29px; height: 29px; }
  .topbar-tools { gap: 6px; }
  .tool-btn { width: 34px; height: 34px; border-radius: 9px; }
}

@media (max-width: 380px) {
  .media-grid,
  .media-grid-4,
  .quick-links-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .logo { font-size: 18px; }
  .topbar-tools .tool-btn:nth-child(2) { display: none; }
}

/* XPlayHub custom uploaded-video player */
.xh-player{position:relative;width:100%;height:100%;min-height:240px;aspect-ratio:16/9;background:#050506;overflow:hidden;display:flex;align-items:center;justify-content:center;outline:none;isolation:isolate}
.xh-blur-bg{position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;filter:blur(24px) brightness(.38);opacity:.65;pointer-events:none;z-index:-1}
.xh-video{width:100%;height:100%;max-height:75vh;object-fit:contain;background:transparent;z-index:1}
.xh-center-play{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);width:76px;height:76px;border:0;border-radius:50%;background:rgba(229,9,32,.92);color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .18s,opacity .2s}
.xh-center-play svg{width:30px;height:30px;fill:currentColor}.xh-center-play:hover{transform:translate(-50%,-50%) scale(1.08)}.xh-center-play[hidden]{display:none}
.xh-controls{position:absolute;z-index:4;left:0;right:0;bottom:0;padding:18px 18px 12px;background:linear-gradient(transparent,rgba(0,0,0,.88) 42%);opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none}
.xh-player.controls-visible .xh-controls,.xh-player:hover .xh-controls,.xh-player:focus-within .xh-controls{opacity:1;transform:none;pointer-events:auto}
.xh-progress{--xh-progress:0%;display:block;width:100%;height:5px;margin:0 0 12px;appearance:none;background:linear-gradient(to right,#e50920 var(--xh-progress),rgba(255,255,255,.38) var(--xh-progress));border-radius:99px;cursor:pointer;outline:none}
.xh-progress::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#e50920;box-shadow:0 0 0 2px rgba(229,9,32,.15)}.xh-progress::-moz-range-thumb{width:13px;height:13px;border:0;border-radius:50%;background:#e50920}
.xh-control-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;color:#fff}.xh-controls-center{justify-self:center}.xh-controls-right{justify-self:end}.xh-controls-left,.xh-controls-center,.xh-controls-right{display:flex;align-items:center;gap:10px}.xh-btn{border:0;background:transparent;color:#fff;min-width:34px;height:34px;padding:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:20px;border-radius:6px}.xh-btn:hover{color:#e50920;background:rgba(255,255,255,.08)}.xh-btn:disabled{opacity:.28;cursor:not-allowed}.xh-btn svg{width:24px;height:24px;fill:currentColor}.xh-main-play{font-size:24px;font-weight:700}.xh-time{font-size:12px;color:#f1f1f1;white-space:nowrap;font-variant-numeric:tabular-nums}.xh-volume-slider{width:76px;height:4px;accent-color:#e50920}.xh-skip{position:relative;font-size:24px}.xh-skip-mark{font-size:9px;position:absolute;top:2px;font-weight:700}.xh-player:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border-radius:0}.xh-player:fullscreen .xh-video{max-height:none}
@media(max-width:620px){.xh-controls{padding:12px 10px 8px}.xh-control-row{gap:4px}.xh-controls-left,.xh-controls-center,.xh-controls-right{gap:3px}.xh-volume-slider{width:48px}.xh-time{font-size:10px}.xh-btn{min-width:30px;height:30px;font-size:17px}.xh-progress{height:4px;margin-bottom:8px}.xh-center-play{width:58px;height:58px}.xh-skip-mark{top:1px}}

/* Uploaded-card metadata alignment */
.badge-duration { position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }

/* Uploaded video grid — compact, thumbnail-led cards */
.xh-upload-video-card{min-width:0;overflow:hidden;background:#111214;border:1px solid #292a2e;border-radius:10px;display:flex;flex-direction:column;color:var(--text);}
.xh-upload-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#1a1b1e;}
.xh-upload-thumb>img{width:100%;height:100%;object-fit:cover;display:block;}
.xh-upload-video-info{padding:9px 10px 11px;min-width:0;}
.xh-upload-video-info h3{font-size:13px;line-height:1.35;margin:0 0 7px;font-weight:700;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.xh-upload-video-info h3 a{color:inherit;text-decoration:none;}
.xh-upload-video-info h3 a:hover{color:#fff;}
.xh-upload-video-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:var(--text-muted);font-size:10.5px;line-height:1.3;}
.xh-upload-video-meta span{white-space:nowrap;}
@media(min-width:1200px){#videos-catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}}
@media(min-width:760px) and (max-width:1199px){#videos-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}}
@media(max-width:759px){#videos-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}}

/* Models directory toolbar: clean search row + functional controls, no idle glow */
.models-toolbar{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);align-items:center;gap:10px;margin:18px 0 22px;width:100%}
.models-toolbar input,.models-toolbar select{background:#111014;border:1px solid #3a343b;color:#f5eaf1;border-radius:28px;padding:13px 17px;outline:none;box-shadow:none;font:inherit;min-width:0;min-height:46px}
.models-toolbar input{grid-column:1/-1;width:100%;max-width:none}
.models-toolbar input:focus,.models-toolbar select:focus{border-color:#a94b80;box-shadow:0 0 0 2px rgba(169,75,128,.12)}
.models-sort,.models-all{border:1px solid #454047;background:#151317;color:#e6e6e6;border-radius:28px;padding:12px 20px;font-weight:700;cursor:pointer;white-space:nowrap;min-height:44px;box-shadow:none;transition:background .18s,border-color .18s,color .18s}
.models-sort:hover,.models-all:hover{border-color:#8b536f;background:#1b161b}
.models-sort.active{background:linear-gradient(120deg,#b90060,#ec238c);color:#fff;border-color:#f04b9e;box-shadow:0 0 10px rgba(255,0,140,.16)}
.models-all{font-size:14px;font-weight:700}
.models-toolbar select{grid-column:auto;min-width:150px;cursor:pointer}
.models-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.model-card{overflow:hidden;background:#120e12;border:1px solid #a83d78;border-radius:16px;box-shadow:0 0 10px rgba(255,0,140,.12);transition:transform .18s,box-shadow .18s;min-width:0}
.model-card:hover{transform:translateY(-3px);box-shadow:0 0 18px rgba(255,0,140,.24)}
.model-portrait{aspect-ratio:4/3;position:relative;display:grid;place-items:center;background:radial-gradient(circle at 35% 20%,#7c385b,#2c1827 50%,#110d12);overflow:hidden;color:#f7d3e6}
.model-portrait .portrait-initials{font-size:clamp(32px,4vw,58px);font-weight:900;opacity:.7;text-shadow:0 4px 20px #000}
.model-rank{position:absolute;top:8px;left:8px;background:#d00071;color:#fff;font-weight:900;padding:5px 9px;border-radius:0 0 9px 0}
.model-info{display:flex;align-items:center;gap:8px;padding:10px 11px;min-width:0}.model-name{font-size:14px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.model-meta{font-size:11px;color:#c2b5be;display:flex;gap:9px;padding:0 11px 11px}.model-fav{background:none;border:0;color:#ff2b98;font-size:22px;cursor:pointer;padding:0;line-height:1}
.model-card[hidden]{display:none}
@media(max-width:1100px){.models-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){.models-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){
 .models-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .models-toolbar{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 18px}
 .models-toolbar input.models-search-control{grid-column:1/-1;width:100%;max-width:none;min-width:0}
 .models-toolbar button,.models-toolbar select{width:100%;min-width:0;padding:10px 5px;font-size:clamp(10px,2.8vw,13px);text-align:center}
 .models-toolbar select{grid-column:auto}
 .models-all{font-size:clamp(10px,2.8vw,13px);padding:10px 5px}
 .model-info{padding:8px}.model-meta{padding:0 8px 9px}.model-name{font-size:12px}
}

/* Homepage mobile refresh: compact navigation + two-column feed */
.home-mobile-nav { display:none; }
.home-media-card { border-radius:12px; overflow:hidden; }
.home-uploader-strip { display:flex; align-items:center; gap:8px; padding:8px 9px; border:1px solid rgba(255,255,255,.12); border-radius:10px; margin:0 2px 2px; min-width:0; background:#080809; }
.home-uploader-logo { width:38px; height:38px; flex:0 0 38px; border:1px solid rgba(255,255,255,.18); border-radius:9px; display:grid; place-items:center; background:#101012; }
.home-uploader-logo .logo-mark { width:25px; height:25px; }
.home-uploader-logo .logo-mark svg { width:13px; height:13px; fill:#fff; }
.home-uploader-text { display:flex; flex-direction:column; min-width:0; line-height:1.15; }
.home-uploader-text strong { font-size:14px; font-weight:750; white-space:nowrap; }
.home-uploader-text strong span { color:var(--red); }
.home-uploader-text small { color:var(--text-secondary); font-size:11px; }
.home-upload-date { margin-left:auto; border-left:1px solid rgba(255,255,255,.22); padding-left:8px; color:var(--text-secondary); font-size:11px; white-space:nowrap; }
@media (max-width: 768px) {
  .home-mobile-nav { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; padding:10px 8px 15px; margin:0 -4px 3px; }
  .home-nav-item { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:8px 2px; border:1px solid var(--border); border-radius:13px; background:#0b0b0d; color:var(--text); text-decoration:none; }
  .home-nav-item span { color:var(--red); font-size:25px; line-height:1; font-weight:500; }
  .home-nav-item small { font-size:10.5px; line-height:1.1; text-align:center; }
  .home-nav-item.active { border-color:var(--red); background:linear-gradient(180deg,rgba(229,9,32,.24),rgba(229,9,32,.07)); box-shadow:0 0 14px rgba(229,9,32,.17); }
  .main-content { padding-top:7px; }
  .home-media-card .card-desc, .home-media-card .card-meta, .home-media-card .card-actions, .home-media-card .price-pill { display:none !important; }
  .home-media-card .card-body { padding:7px 5px 6px; gap:4px; }
  .home-media-card .card-title-row { display:block; }
  .home-media-card .card-title { font-size:13px; line-height:1.28; }
  .home-media-card .card-thumb, .home-media-card .xh-upload-thumb { aspect-ratio:16/9; border-radius:12px; }
  #home-featured-videos, #home-featured-photos { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 9px; }
  .home-uploader-strip { gap:6px; padding:6px; }
  .home-uploader-logo { width:34px; height:34px; flex-basis:34px; }
  .home-uploader-text strong { font-size:12px; }
  .home-uploader-text small { font-size:10px; }
  .home-upload-date { font-size:10px; padding-left:6px; }
  .section-block { margin-top:20px; }
  .section-head { align-items:center; gap:8px; margin-bottom:12px; }
  .section-head h2 { font-size:21px; }
  .section-head p, .section-head .kicker { display:none; }
  .view-all-link { font-size:12px; white-space:nowrap; }
}
@media (max-width: 380px) {
  .home-mobile-nav { gap:4px; padding-left:2px; padding-right:2px; }
  .home-nav-item { border-radius:10px; }
  .home-nav-item small { font-size:9px; }
  .home-uploader-strip { gap:4px; padding:5px; }
  .home-upload-date { font-size:9px; }
}

/* Modern search + sort toolbar for Videos and Photos pages */
.media-toolbar-modern{display:flex;flex-direction:column;gap:14px;margin:18px 0 24px;width:100%}
.media-toolbar-modern .media-search{width:100%;max-width:100%;min-height:44px;border-radius:28px;padding:12px 18px}
.media-sort-pills{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.media-sort-pills .pill-btn{border-radius:24px;min-height:38px;padding:9px 16px;white-space:nowrap}
.media-sort-pills .pill-btn.active{background:linear-gradient(135deg,#e50920,#ff299b);color:#fff;border-color:#ff299b;box-shadow:0 5px 18px rgba(229,9,32,.18)}
@media(max-width:600px){.media-toolbar-modern{gap:11px;margin:14px 0 18px}.media-sort-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}.media-sort-pills .pill-btn{width:100%;padding:8px 3px;font-size:clamp(10px,3vw,12px);min-height:35px}.media-toolbar-modern .media-search{min-height:40px;font-size:14px;padding:10px 14px}}

/* CMS channel cards: banner crop with rounded outer frame and profile avatar overlay */
.cms-channel-card{border-radius:16px;overflow:hidden;}
.cms-channel-thumb{position:relative;overflow:hidden;border-radius:0;aspect-ratio:16/9;}
.cms-channel-banner{display:block;width:100%;height:100%;object-fit:cover;border-radius:0;}
.cms-channel-avatar{position:absolute;left:14px;bottom:14px;width:58px;height:58px;object-fit:cover;border-radius:50%;border:3px solid var(--surface,#111);background:#161616;z-index:2;}
.cms-channel-avatar-fallback{display:grid;place-items:center;color:#eee;font-weight:800;font-size:24px;}
.models-toolbar #models-all.active{background:#160e15;color:#fff;border-color:#8c3465;box-shadow:none;}
.models-toolbar .models-all{box-shadow:none;}

/* Models page empty state and neutral controls */
.models-empty-state{grid-column:1/-1;min-height:220px;border:1px dashed #383838;border-radius:16px;background:#101010;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#ddd}
.models-empty-state strong{font-size:16px;margin-top:10px}
.models-empty-state p{color:#999;font-size:13px;margin:7px 0 0}
.models-empty-icon{font-size:28px;color:#aaa}
.models-sort:not(.active),.models-all{box-shadow:none!important}
.models-toolbar select{box-shadow:none!important}

/* Channel directory: use the uploaded profile image as the large card artwork; no banner or avatar overlay. */
.cms-channel-thumb{position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:12px 12px 0 0;background:#111;}
.cms-channel-profile-large{display:block;width:100%;height:100%;object-fit:cover;border-radius:0;}
.cms-channel-profile-fallback{display:grid;place-items:center;color:#eee;font-size:clamp(48px,8vw,84px);font-weight:900;background:linear-gradient(135deg,#242027,#111);} 
.cms-channel-avatar,.cms-channel-banner{display:none!important;}


/* Models toolbar mirrors the Videos toolbar visual system; model-specific labels/actions remain unchanged. */
.models-toolbar.media-toolbar-modern{display:flex;flex-direction:column;gap:14px;margin:18px 0 24px;width:100%;}
.models-toolbar .media-search{width:100%;max-width:100%;min-height:44px;border-radius:28px;padding:12px 18px;}
.models-toolbar .models-sort-pills{display:flex;flex-wrap:wrap;gap:10px;align-items:center;width:100%;}
.models-toolbar .models-sort-pills .pill-btn{border-radius:24px;min-height:38px;padding:9px 16px;white-space:nowrap;}
.models-toolbar .models-sort-pills .pill-btn.active{background:linear-gradient(135deg,#e50920,#ff299b);color:#fff;border-color:#ff299b;box-shadow:0 5px 18px rgba(229,9,32,.18);}
.models-toolbar .models-category-select{appearance:none;-webkit-appearance:none;cursor:pointer;color:var(--text,#f5f5f5);background-color:#111114;padding-right:30px;}
.models-toolbar .models-category-select:focus{outline:2px solid rgba(229,9,32,.22);outline-offset:1px;}
@media(max-width:600px){
 .models-toolbar.media-toolbar-modern{gap:11px;margin:14px 0 18px;}
 .models-toolbar .models-sort-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;}
 .models-toolbar .models-sort-pills .pill-btn{width:100%;min-width:0;padding:8px 3px;font-size:clamp(10px,3vw,12px);min-height:35px;text-align:center;}
 .models-toolbar .media-search{min-height:40px;font-size:14px;padding:10px 14px;}
 .models-toolbar .models-category-select{padding-left:5px;padding-right:5px;}
}

/* XPlayHub thumbnail standard: 16:9 display crop for every video card. */
.card-thumb,.xh-upload-thumb{aspect-ratio:16/9;overflow:hidden;}
.card-thumb img,.xh-upload-thumb img{width:100%;height:100%;object-fit:cover;display:block;}


/* XPlayHub responsive video details final layout */
#video-details-root{max-width:1500px;margin:0 auto}
#player-stage{width:100%;margin:0 0 14px}
.xh-player{position:relative;width:100%;aspect-ratio:16/9;max-height: min(68vh,760px);background:#000;border:1px solid rgba(255,255,255,.12);border-radius:16px;overflow:hidden}
.xh-video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.xh-blur-bg{display:none}
.xh-controls{position:absolute;left:0;right:0;bottom:0;padding:12px 16px 14px;background:linear-gradient(transparent,rgba(0,0,0,.88));opacity:1}
.xh-progress{display:block;width:100%;height:5px;margin:0 0 10px;accent-color:#e50920;cursor:pointer}
.xh-control-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.xh-controls-left,.xh-controls-center,.xh-controls-right{display:flex;align-items:center;gap:10px}
.xh-btn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:5px 8px;border:0;background:transparent;color:#fff;font-size:17px;border-radius:8px}
.xh-btn:hover{background:rgba(255,255,255,.14)}
.xh-btn:disabled{opacity:.35;cursor:not-allowed}
.xh-time{font-size:13px;color:#fff;white-space:nowrap}
.xh-volume-slider{width:74px;accent-color:#e50920}
.xh-skip{font-size:21px;gap:2px}
.xh-skip-mark{font-size:11px;font-weight:800}
.xh-center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:72px;height:72px;border-radius:50%;border:0;background:rgba(0,0,0,.62);color:#fff;font-size:27px}
.xh-player.is-playing .xh-center-play{opacity:0;pointer-events:none}
.detail-panel{display:block;padding:18px 20px;margin:0 0 20px;background:linear-gradient(145deg,#121214,#0d0d0f);border:1px solid rgba(255,255,255,.12);border-radius:16px}
.detail-panel h1{font-size:clamp(22px,2.4vw,34px);line-height:1.15;margin:0 0 14px}
.detail-panel .video-channel-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.detail-panel .video-channel-row a{color:#fff;font-weight:700}
.detail-panel .video-channel-row img{width:48px;height:48px;object-fit:cover;border-radius:50%}
.detail-panel .video-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.detail-panel .video-actions button{background:#1b1b1e;border:1px solid #3a3a40;border-radius:999px;padding:9px 14px;color:#fff}
.detail-panel .video-description{padding-top:12px;color:#e5e5e7}
#related-videos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#related-videos-grid .media-card{min-width:0}
@media(max-width:760px){
 #video-details-root{width:100%}
 #player-stage{margin:0 0 10px}
 .xh-player{border-radius:0;border-left:0;border-right:0;max-height:none}
 .xh-controls{padding:7px 9px 9px}
 .xh-control-row{gap:3px}
 .xh-controls-left,.xh-controls-center,.xh-controls-right{gap:3px}
 .xh-volume-slider{display:none}
 .xh-btn{min-width:29px;min-height:30px;padding:3px 5px;font-size:15px}
 .xh-time{font-size:11px}
 .xh-center-play{width:58px;height:58px}
 .detail-panel{border-radius:0;padding:12px 14px;margin-bottom:16px}
 .detail-panel h1{font-size:22px}
 .detail-panel .video-channel-row{gap:9px}
 #related-videos-grid{grid-template-columns:1fr;gap:12px}
 #related-videos-grid .media-card{display:grid;grid-template-columns:minmax(112px,42%) 1fr;align-items:center}
 #related-videos-grid .media-card .card-thumb{aspect-ratio:16/9}
}

/* XPlayHub unified responsive repair: player controls, social counts, profiles and category cards */
.xh-control-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:12px!important;width:100%}
.xh-controls-center{justify-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;position:absolute;left:50%;transform:translateX(-50%);bottom:10px}
.xh-controls-left{justify-self:start!important;display:flex!important;align-items:center!important;gap:8px!important}
.xh-controls-right{justify-self:end!important;display:flex!important;align-items:center!important}
.xh-progress{display:block!important;width:100%!important;margin:0 0 12px!important;accent-color:#ed1235;cursor:pointer}
.detail-panel .video-actions button,.xh-photo-reactions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px}
.detail-panel .video-actions button.is-active,.xh-photo-reactions button.is-active,.xh-follow-profile.is-active{background:#35101a!important;border-color:#ed1235!important;color:#fff!important}
#xh-like-count,#xh-dislike-count,#xh-photo-like-count,#xh-photo-dislike-count{font-size:12px;font-weight:700;color:#c7c7ce;min-width:10px}
.xh-follow-profile{align-self:center;white-space:nowrap}
.category-card-open{display:inline-flex;margin-top:10px;padding:9px 13px;border:1px solid var(--border-color,#333);border-radius:9px;color:var(--text-primary,#fff);text-decoration:none;font-weight:650}
.category-card-open:hover{border-color:#ed1235;color:#ff526b}
#categories-directory-grid .media-card{overflow:hidden;border-radius:16px;transition:transform .18s,border-color .18s}
#categories-directory-grid .media-card:hover{transform:translateY(-3px);border-color:#ed1235}
#categories-directory-grid .card-thumb{display:block;aspect-ratio:16/9;overflow:hidden}
#categories-directory-grid .card-thumb img{width:100%;height:100%;object-fit:cover}
#categories-directory-grid .card-body{padding:16px}
#categories-directory-grid .card-desc{color:var(--text-secondary);line-height:1.55}
#collection-header-card{display:grid;grid-template-columns:minmax(180px,32%) 1fr;gap:20px;align-items:center;padding:18px;border:1px solid var(--border-color,#292d35);border-radius:16px;background:linear-gradient(145deg,#171216,#101114 65%)}
#collection-header-card .card-thumb{aspect-ratio:4/3;overflow:hidden}
#collection-header-card .card-thumb img{width:100%;height:100%;object-fit:cover}
.xh-photo-attribution{font-size:13px;color:var(--text-secondary);margin:8px 0 14px}
.xh-photo-attribution a{color:#fff;font-weight:700;text-decoration:none}
.xh-photo-reactions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.xh-photo-reactions button{background:#1b1b1e;border:1px solid #3a3a40;border-radius:999px;padding:9px 14px;color:#fff;cursor:pointer}
#collection-items-grid .photo-viewer-tile{width:100%;border:0;background:transparent;text-align:left;cursor:zoom-in}
#collection-items-grid .photo-viewer-tile img{max-height:78vh;object-fit:contain;background:#050506}
#actor-profile-header,#channel-profile-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px;border:1px solid rgba(237,18,53,.25);border-radius:18px;background:linear-gradient(120deg,rgba(237,18,53,.12),rgba(20,20,23,.98) 60%)}
#actor-profile-header .profile-identity,#channel-profile-header .profile-identity{display:flex;align-items:center;gap:18px;min-width:0}
@media(max-width:700px){
 .xh-controls{padding:8px 8px 9px!important}
 .xh-control-row{display:flex!important;justify-content:space-between!important;gap:4px!important;position:relative;padding-top:2px}
 .xh-controls-center{position:static!important;transform:none!important;left:auto!important;bottom:auto!important;gap:1px!important;flex:1;justify-content:center!important}
 .xh-controls-left{gap:3px!important;min-width:0}
 .xh-controls-left .xh-volume-slider{display:none!important}
 .xh-controls-right{gap:0!important}
 .xh-time{font-size:10px!important}
 .xh-btn{min-width:28px!important;height:30px!important;padding:2px!important;font-size:16px!important}
 #collection-header-card{grid-template-columns:1fr;gap:14px;padding:14px}
 #collection-header-card .card-thumb{max-height:300px;aspect-ratio:16/10}
 #actor-profile-header,#channel-profile-header{align-items:flex-start;flex-direction:column;padding:16px;gap:14px}
 #actor-profile-header .profile-identity,#channel-profile-header .profile-identity{align-items:flex-start;gap:12px}
 #actor-profile-header .profile-identity img,#channel-profile-header .profile-identity img{width:76px!important;height:76px!important;flex:0 0 76px}
 .xh-follow-profile{width:100%}
 .xh-photo-reactions button{flex:1}
}
.xh-upload-video-card .xh-upload-video-info,.media-card .card-body{min-width:0}
#photo-collections-grid .media-card{overflow:hidden;border-radius:14px;background:var(--card-bg,#111318)}
#photo-collections-grid .card-thumb{display:block;aspect-ratio:4/5;overflow:hidden}
#photo-collections-grid .card-thumb img{width:100%;height:100%;object-fit:cover}
#photo-collections-grid .card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#photo-collections-grid .card-meta a{font-weight:700;color:var(--text-primary,#fff)}
/* Keep the desktop transport controls mathematically centered in the control row. */
@media(min-width:701px){.xh-controls-center{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;justify-self:center!important}}


/* XPlayHub November 25 UI consolidation */
.xh-upload-photo-card,.xh-upload-video-card{min-width:0;overflow:hidden;border:1px solid var(--border-color,#292d35);border-radius:16px;background:linear-gradient(160deg,#15171c,#0d0e11);box-shadow:0 8px 24px #0002}
.xh-upload-photo-link{display:block;position:relative;aspect-ratio:4/3;overflow:hidden;background:#090a0c}
.xh-upload-photo-link img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.xh-upload-photo-card:hover .xh-upload-photo-link img{transform:scale(1.035)}
.xh-photo-open-hint{position:absolute;inset:auto 10px 10px auto;background:#08090bd9;color:#fff;border:1px solid #ffffff24;border-radius:20px;padding:5px 10px;font-size:11px;opacity:0;transition:opacity .2s}
.xh-upload-photo-card:hover .xh-photo-open-hint,.xh-upload-photo-card:focus-within .xh-photo-open-hint{opacity:1}
.xh-upload-photo-info{padding:12px 14px 14px}
.xh-upload-photo-info h3{margin:0 0 9px;font-size:16px;font-weight:750}
.xh-photo-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;color:var(--text-secondary,#9ca3af);font-size:12px}
.xh-photo-card-meta a{color:#fff;font-weight:700}
.xh-photo-channel{color:#f0f0f2;font-weight:650}
.xh-uploader-attribution{display:flex;align-items:center;gap:9px;margin-top:10px;padding:9px 10px;border:1px solid #ffffff14;border-radius:11px;background:#090a0d}
.xh-uploader-attribution strong{display:block;color:#f4f4f5;font-size:12px}
.xh-uploader-attribution small{display:block;color:#8f96a3;font-size:11px;margin-top:2px}
.xh-uploader-mark{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:8px;background:#e5092b;color:white;font-size:12px}
#home-featured-videos,#home-featured-photos,#photo-collections-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;align-items:start}
.xh-photo-post-head{padding:20px;background:linear-gradient(160deg,#17191f,#0e0f12);border:1px solid #292d35;border-radius:0 0 16px 16px}
.xh-photo-source-line{margin:0 0 12px;color:#aeb4c0;font-size:13px}
.xh-photo-source-line a{color:#fff;font-weight:750}
.xh-photo-description{margin:12px 0;color:#aeb4c0}
.xh-photo-detail-image{background:#050607;min-height:240px}
.xh-photo-detail-image img{object-fit:contain!important}
.xh-photo-attribution{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #343943;border-radius:12px;background:#121419}
.xh-photo-attribution strong{display:block;color:#fff;font-size:13px}
.xh-photo-attribution small{display:block;color:#9ca3af;font-size:11px;margin-top:3px}
.xh-photo-reactions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.xh-category-open{display:inline-flex;margin-top:12px;color:#f3f4f6;font-weight:650;text-decoration:none;border-bottom:1px solid #e5092b;padding-bottom:3px}
.xh-video-profile-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 10px}
.xh-video-profile-card{min-width:0;display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;border:1px solid #38313a;background:linear-gradient(135deg,#19151a,#101115);color:#fff;text-decoration:none;box-shadow:inset 3px 0 0 #e5092b}
.xh-video-profile-card img{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #e5092b;flex:0 0 48px}
.xh-profile-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.xh-profile-copy small{font-size:9px;letter-spacing:.13em;color:#ef5269;font-weight:800}
.xh-profile-copy strong{font-size:14px;overflow-wrap:anywhere}
.xh-channel-profile-card{box-shadow:inset 3px 0 0 #8d5cf6;border-color:#40334f}
.xh-channel-profile-card img{border-color:#8d5cf6}
.xh-channel-profile-card #xh-subscribe{margin-left:auto;flex:0 0 auto}
.xh-video-views-line{font-size:12px;color:var(--text-secondary,#a0a5af);margin:8px 0 14px}
.xh-settings-menu{position:absolute;right:14px;bottom:64px;z-index:30;width:min(250px,calc(100% - 28px));padding:14px;border:1px solid #3a3d46;border-radius:13px;background:#15171c;box-shadow:0 12px 35px #000b}
.xh-settings-menu[hidden]{display:none}
.xh-settings-menu label{display:grid;gap:6px;color:#e5e7eb;font-size:12px;margin:0 0 12px}
.xh-settings-menu label:last-child{margin-bottom:0}
.xh-settings-menu select{width:100%;min-height:38px;border:1px solid #393d47;border-radius:8px;background:#090a0d;color:#fff;padding:7px 9px}
.xh-controls{position:absolute;left:0;right:0;bottom:0}
.xh-control-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.xh-controls-left,.xh-controls-center,.xh-controls-right{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0}
.xh-controls-left{justify-content:flex-start}.xh-controls-right{justify-content:flex-end}
.xh-controls-center{justify-self:center;grid-column:2}
.xh-controls-right{grid-column:3}
.xh-btn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px}
@media(max-width:700px){
 #home-featured-videos,#home-featured-photos,#photo-collections-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .xh-upload-photo-info{padding:10px}
 .xh-upload-photo-info h3{font-size:14px}
 .xh-photo-card-meta{font-size:11px;gap:5px 7px}
 .xh-video-profile-strip{grid-template-columns:1fr;gap:8px}
 .xh-video-profile-card{padding:10px}
 .xh-video-profile-card img{width:42px;height:42px;flex-basis:42px}
 .xh-channel-profile-card #xh-subscribe{font-size:11px;padding:7px 9px}
 .xh-control-row{grid-template-columns:1fr auto;gap:6px}
 .xh-controls-left{grid-column:1;grid-row:1;gap:6px}
 .xh-controls-center{grid-column:1/-1;grid-row:2;justify-self:center}
 .xh-controls-right{grid-column:2;grid-row:1}
 .xh-volume-slider{max-width:66px}
 .xh-time{font-size:10px;white-space:nowrap}
 .xh-photo-detail-image{min-height:180px}
}
@media(max-width:390px){#home-featured-videos,#home-featured-photos,#photo-collections-grid{grid-template-columns:1fr}}

/* Profile headers and player control responsive polish */
#actor-profile-header,#channel-profile-header{border:1px solid #34303a!important;border-radius:18px!important;background:linear-gradient(120deg,#1b1117,#111318 62%,#11131a)!important;padding:22px!important;display:flex;align-items:center;justify-content:space-between;gap:18px}
#actor-profile-header .profile-identity,#channel-profile-header .profile-identity{display:flex;align-items:center;gap:18px;min-width:0}
#actor-profile-header .profile-identity img,#channel-profile-header .profile-identity img{box-shadow:0 0 0 4px #e5092b22}
.xh-follow-profile{flex:0 0 auto;border-radius:999px!important;padding:10px 18px!important}
.xh-follow-profile.is-active{background:#24262c!important;border:1px solid #e5092b!important;color:#fff!important}
#xh-player{position:relative;isolation:isolate}
#xh-player .xh-controls{padding:8px 12px 10px;background:linear-gradient(transparent,#000b 35%,#000d)}
#xh-player .xh-progress{display:block;width:100%;margin:0 0 8px}
#xh-player .xh-controls-center{justify-self:center}
#xh-player .xh-controls-right{justify-self:end}
#xh-player .xh-settings-menu{bottom:76px}
@media(max-width:700px){
 #actor-profile-header,#channel-profile-header{align-items:flex-start;flex-direction:column;padding:15px!important}
 #actor-profile-header .profile-identity,#channel-profile-header .profile-identity{align-items:flex-start;gap:12px}
 #actor-profile-header .profile-identity img,#channel-profile-header .profile-identity img{width:76px!important;height:76px!important}
 .xh-follow-profile{align-self:stretch}
 #xh-player .xh-controls{padding:5px 7px 7px}
}


/* Final requested homepage/catalog card and detail-page refinements */
#home-featured-videos,#videos-catalog-grid{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));
  gap:20px;
  align-items:start;
}
#home-featured-photos,#photo-collections-grid{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));
  gap:20px;
  align-items:start;
}
.xh-upload-video-card,.xh-upload-photo-card{
  width:100%;
  max-width:440px;
  border-radius:17px;
  background:#101115;
  border:1px solid #30333b;
}
.xh-upload-thumb{
  aspect-ratio:16/9;
  min-height:190px;
  border-radius:16px 16px 0 0;
}
.xh-upload-thumb>img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.xh-upload-video-info,.xh-upload-photo-info{padding:13px 14px 15px}
.xh-upload-video-info h3,.xh-upload-photo-info h3{
  margin:0 0 10px;
  font-size:17px;
  font-weight:800;
}
.xh-upload-video-info h3 a,.xh-upload-photo-info h3 a{color:#f7f7f8;text-decoration:none}
.xh-upload-video-meta,.xh-photo-card-meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  margin:0 0 12px;color:#c2c7d0;font-size:12px;
}
.xh-views-pill,.xh-time-pill{
  display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;
  border-radius:999px;background:#1d2027;border:1px solid #383d48;
  color:#f0f1f4;font-weight:650;font-variant-numeric:tabular-nums;
}
.xh-time-pill{color:#ffb6c2;border-color:#63303b;background:#24151a}
.xh-card-profile-strip{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  margin-top:10px;
}
.xh-card-profile{
  min-width:0;display:flex;align-items:center;gap:9px;padding:9px;
  border-radius:12px;background:linear-gradient(135deg,#1b171c,#14151a);
  border:1px solid #3a3038;color:#fff;text-decoration:none;
  box-shadow:inset 3px 0 0 #e5092b;
}
.xh-card-channel-profile{box-shadow:inset 3px 0 0 #7b61c9;border-color:#3b3450}
.xh-card-profile img,.xh-mini-avatar{
  width:38px;height:38px;flex:0 0 38px;border-radius:50%;object-fit:cover;
  border:2px solid #e5092b;
}
.xh-card-channel-profile img,.xh-channel-mini-avatar{border-color:#9270ed}
.xh-mini-avatar{display:grid;place-items:center;background:#2b1b23;color:#fff;font-weight:800}
.xh-card-profile>span:not(.xh-mini-avatar){min-width:0;display:flex;flex-direction:column;gap:3px}
.xh-card-profile small{font-size:9px;letter-spacing:.12em;color:#f06b80;font-weight:850}
.xh-card-profile strong{font-size:13px;line-height:1.25;color:#fff;overflow-wrap:anywhere}
.xh-uploader-date{margin-top:9px;color:#9da4b1;font-size:11px}
.xh-upload-photo-link{
  display:block;width:100%;height:auto;aspect-ratio:auto;overflow:hidden;
  background:#07080a;border-radius:16px 16px 0 0;
}
.xh-upload-photo-link img{
  display:block;width:100%;height:auto;max-height:none;object-fit:contain;
}
.xh-upload-photo-info h3{margin-bottom:10px}
.xh-upload-photo-info .xh-photo-card-meta{margin:11px 0 0}
.xh-photo-card-meta .xh-views-pill{color:#f5f5f5}
.video-back-nav{display:flex;align-items:center;margin:0 0 14px}
.video-back-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:38px;padding:8px 15px;border:1px solid #3a3d45;
  border-radius:10px;background:#15171c;color:#f5f5f6;
  font-size:13px;font-weight:700;text-decoration:none;
  transition:background .18s,border-color .18s,transform .18s;
}
.video-back-button:hover{background:#241319;border-color:#e5092b;transform:translateY(-1px)}
.xh-video-profile-card .xh-profile-copy strong{font-size:16px}
.xh-channel-profile-card #xh-subscribe{
  min-height:40px;padding:9px 17px;border:1px solid #f32649;
  border-radius:10px;background:linear-gradient(135deg,#ed1237,#b80c2b);
  color:#fff!important;font-size:14px;font-weight:800;line-height:1;
  box-shadow:0 5px 16px #e5092b33;white-space:nowrap;
}
.xh-channel-profile-card #xh-subscribe:hover{filter:brightness(1.12)}
.xh-channel-profile-card #xh-subscribe[aria-pressed="true"]{
  background:#24262d;border-color:#8d94a3;color:#fff!important;
}
@media(max-width:700px){
  #home-featured-videos,#videos-catalog-grid,#home-featured-photos,#photo-collections-grid{
    grid-template-columns:minmax(0,1fr);gap:15px;
  }
  .xh-upload-video-card,.xh-upload-photo-card{max-width:none}
  .xh-upload-thumb{min-height:0}
  .xh-card-profile-strip{gap:7px}
  .xh-card-profile{padding:8px;gap:7px}
  .xh-card-profile img,.xh-mini-avatar{width:34px;height:34px;flex-basis:34px}
  .xh-card-profile strong{font-size:12px}
  .xh-video-profile-card .xh-profile-copy strong{font-size:16px}
  .xh-channel-profile-card #xh-subscribe{min-height:40px;padding:9px 13px;font-size:13px}
}
@media(max-width:360px){
  .xh-card-profile-strip{grid-template-columns:1fr}
}

.xh-channel-profile-link{min-width:0;display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;flex:1}
.xh-channel-profile-link img{width:48px;height:48px;flex:0 0 48px;border-radius:50%;object-fit:cover;border:2px solid #9270ed}
@media(max-width:700px){.xh-channel-profile-link{gap:9px}.xh-channel-profile-link img{width:42px;height:42px;flex-basis:42px}}


/* XPlayHub 2026-11-25 responsive finishing pass */
.xh-back-box,.video-back-button{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
  min-height:38px;padding:0 15px!important;border:1px solid #34343c!important;
  border-radius:10px!important;background:#141419!important;color:#f5f5f7!important;
  text-decoration:none!important;font-weight:650!important;transition:.18s ease;
}
.xh-back-box:hover,.video-back-button:hover{border-color:#ed1232!important;background:#211116!important}
.breadcrumb{margin:0 0 16px!important;display:flex;align-items:center}
.breadcrumb span{display:none!important}
.xh-live-profile{
 display:flex;align-items:center;gap:18px;width:100%;padding:18px 20px;
 border:1px solid #34303a;border-radius:18px;
 background:linear-gradient(110deg,rgba(237,18,50,.10),rgba(20,20,26,.96) 45%,rgba(110,60,190,.08));
}
.xh-live-avatar{width:96px;height:96px;flex:0 0 96px;border-radius:50%;overflow:hidden;border:3px solid #5a2435;box-shadow:0 0 0 4px rgba(237,18,50,.10)}
.xh-live-avatar img{width:100%;height:100%;object-fit:cover}
.xh-live-profile-copy{min-width:0;flex:1}
.xh-live-profile-copy>small{color:#ff3150;font-size:11px;font-weight:800;letter-spacing:1.5px}
.xh-live-profile-copy h1{margin:5px 0 7px!important;font-size:30px!important;font-weight:800}
.xh-live-profile-copy p{margin:0;color:#aeb0bc;font-size:13px}
.xh-live-profile-copy p span{padding:0 6px;color:#f13a59}
.xh-follow-button{flex:0 0 auto;border:0;border-radius:999px;background:#ed092c;color:white;font-weight:800;padding:13px 22px;min-height:44px;cursor:pointer}
.xh-follow-button:hover{background:#ff3150}
.xh-channel-tabs,.xh-channel-sort{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}
.xh-channel-video-card{width:min(100%,260px);overflow:hidden;border:1px solid #2d2d35;border-radius:14px;background:#111116}
.xh-channel-video-thumb{height:150px;display:block;position:relative;background:#050505}
.xh-channel-video-thumb img{width:100%;height:100%;object-fit:cover}
.xh-channel-video-thumb span{position:absolute;right:8px;bottom:8px;background:#08080bdc;color:white;padding:3px 7px;border-radius:6px;font-size:12px}
.xh-channel-video-copy{padding:10px 12px;display:grid;gap:6px}
.xh-channel-video-copy strong{font-size:15px;color:#f7f7f9}
.xh-channel-video-copy small{color:#a7a8b2;font-size:12px}
.xh-channel-photo-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:8px;border:1px solid #2d2d35;border-radius:14px;background:#111116;color:#f6f6f8;text-decoration:none}
.xh-channel-photo-card img{width:100%;height:auto;max-height:340px;object-fit:contain;border-radius:9px;background:#08080b}
.xh-channel-photo-card strong{font-size:14px}.xh-channel-photo-card small{color:#b3b3bd}
#photo-collections-grid{display:block!important;columns:5 190px;column-gap:14px}
#photo-collections-grid>.xh-upload-photo-card{display:inline-block;width:100%;margin:0 0 14px;break-inside:avoid;vertical-align:top}
.xh-upload-photo-card{overflow:hidden;border:1px solid #303039;border-radius:15px;background:#111116}
.xh-upload-photo-link{display:block;width:100%;background:#08080a}
.xh-upload-photo-link img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.xh-upload-photo-info{padding:11px}
.xh-upload-photo-info h3{margin:0 0 9px;font-size:15px}
.xh-photo-directory-card .xh-upload-photo-info .xh-card-profile-strip{display:none}
.xh-upload-photo-info .xh-photo-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.xh-upload-photo-info .xh-photo-card-meta .xh-views-pill{color:#ff5a72;background:#241018;border:1px solid #572032;border-radius:999px;padding:4px 8px}
.xh-upload-video-card{width:min(100%,320px);overflow:hidden}
.xh-upload-thumb{height:auto;aspect-ratio:16/9}
.xh-upload-video-info{padding:12px}
.xh-upload-video-info h3{font-size:16px;margin:0 0 8px}
.xh-upload-video-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.xh-views-pill,.xh-time-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#1b1b22;border:1px solid #353540;color:#d8d8e0;font-size:12px}
.xh-card-profile-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.xh-card-profile{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #37313d;border-radius:12px;background:#17151b;color:#fff;text-decoration:none}
.xh-card-profile img,.xh-mini-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;object-fit:cover}
.xh-card-profile small{display:block;color:#ff3b5b;font-size:9px;font-weight:800;letter-spacing:1px}
.xh-card-profile strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xh-uploader-date{font-size:11px;color:#a9a9b4;margin-top:8px}
.xh-video-profile-card{min-height:76px}
.xh-video-profile-card .xh-profile-copy strong{font-size:18px!important}
#xh-subscribe{background:#ed092c!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:12px 20px!important;font-weight:800!important;min-width:125px}
#xh-subscribe:hover{background:#ff3150!important}
.xh-controls{left:12px!important;right:12px!important}
.xh-controls-center{position:absolute!important;left:50%!important;transform:translateX(-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.xh-controls-right{margin-left:auto!important}
.xh-settings-menu{z-index:30}
#channel-videos-grid,#channel-photos-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
@media(max-width:700px){
 #photo-collections-grid{columns:2 145px;column-gap:9px}
 #photo-collections-grid>.xh-upload-photo-card{margin-bottom:9px}
 .xh-live-profile{padding:13px;gap:11px;flex-wrap:wrap}
 .xh-live-avatar{width:68px;height:68px;flex-basis:68px}
 .xh-live-profile-copy h1{font-size:23px!important}
 .xh-live-profile-copy p{font-size:11px}
 .xh-follow-button{margin-left:auto;padding:10px 15px;min-height:40px}
 .xh-card-profile-strip{gap:6px}
 .xh-card-profile{padding:6px;gap:6px}
 .xh-card-profile img,.xh-mini-avatar{width:28px;height:28px;flex-basis:28px}
 .xh-card-profile strong{font-size:11px}
 .xh-upload-video-card{width:100%}
 .xh-channel-video-card{width:100%}
 .xh-channel-video-thumb{height:auto;aspect-ratio:16/9}
 .xh-controls{left:6px!important;right:6px!important}
 .xh-controls-center{gap:1px!important}
 .xh-controls-center .xh-btn{min-width:30px!important;padding:4px!important}
 .xh-controls-left{gap:4px!important}
 .xh-volume-slider{width:48px!important}
 .xh-time{font-size:10px!important}
 .xh-controls-right .xh-btn{min-width:30px!important}
}

.xh-photo-directory-byline{display:flex;flex-direction:column;gap:3px;margin:0 0 8px;font-size:12px}
.xh-photo-directory-byline strong{color:#f3f3f6;font-size:13px}
.xh-photo-directory-byline span{color:#a7a7b2;font-size:11px}

.xh-control-row{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:40px}
.xh-controls-center{top:50%!important;transform:translate(-50%,-50%)!important}
.xh-video{display:block;width:100%;height:100%;object-fit:contain}


/* XPlayHub final YouTube-style video card pass */
#home-featured-videos,
#videos-catalog-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px 20px!important;
  align-items:start;
}
.xh-youtube-video-card{
  display:block;
  min-width:0;
  width:100%;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
}
.xh-youtube-thumbnail{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  background:#090a0e;
  text-decoration:none;
}
.xh-youtube-thumbnail img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.xh-youtube-duration{
  position:absolute;
  right:9px;
  bottom:9px;
  padding:3px 6px;
  border-radius:5px;
  background:rgba(0,0,0,.88);
  color:#fff;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.xh-youtube-no-thumbnail{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#242630,#090a0e);
  color:#fff;
  font-size:28px;
}
.xh-youtube-card-content{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:9px;
  padding:11px 2px 4px;
}
.xh-youtube-title{
  display:-webkit-box;
  overflow:hidden;
  color:#f1f1f1;
  font-size:15px;
  line-height:1.42;
  font-weight:750;
  text-decoration:none;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.xh-youtube-title:hover{color:#fff}
.xh-youtube-channel-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
.xh-youtube-channel-avatar{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  overflow:hidden;
  border-radius:50%;
  background:#20232a;
  text-decoration:none;
}
.xh-youtube-channel-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.xh-youtube-avatar-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  border-radius:50%;
  color:#fff;
  background:#292d36;
  font-size:14px;
  font-weight:800;
}
.xh-youtube-text-meta{
  display:grid;
  min-width:0;
  gap:3px;
}
.xh-youtube-channel-name{
  display:block;
  overflow:hidden;
  color:#e5e5e5;
  font-size:13px;
  font-weight:700;
  line-height:1.25;
  text-decoration:none;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.xh-youtube-channel-name:hover{color:#fff}
.xh-youtube-model-name{
  color:#aeb1ba;
  font-size:11px;
  line-height:1.2;
}
.xh-youtube-stats{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  color:#aeb1ba;
  font-size:12px;
  line-height:1.25;
  font-variant-numeric:tabular-nums;
}
.xh-profile-video-card{
  max-width:none!important;
  width:100%;
  border:0!important;
  background:transparent!important;
}
#actor-videos-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(280px,380px));
  gap:22px!important;
}
#channel-videos-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(280px,380px));
  gap:22px!important;
}
#home-featured-videos .xh-youtube-video-card,
#videos-catalog-grid .xh-youtube-video-card{
  max-width:none;
}

/* Keep photo tiles genuinely open: no tile/card panel, border or forced crop. */
#home-featured-photos,
#photo-collections-grid,
#actor-photos-grid,
#channel-photos-grid,
.xh-photo-masonry{
  display:block!important;
  width:100%;
  columns:6 170px;
  column-gap:15px;
}
.xh-photo-masonry-tile,
.xh-upload-photo-card,
.xh-profile-photo-tile{
  display:inline-block;
  width:100%;
  margin:0 0 15px;
  padding:0!important;
  break-inside:avoid;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
  vertical-align:top;
}
.xh-photo-masonry-image,
.xh-upload-photo-link{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  line-height:0;
}
.xh-photo-masonry-image img,
.xh-upload-photo-link img{
  display:block;
  width:100%;
  height:auto!important;
  max-height:none!important;
  object-fit:initial!important;
  border-radius:9px;
}
.xh-photo-masonry-caption{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:7px;
  padding:6px 1px 0;
  color:#d7d7dc;
  font-size:12px;
  line-height:1.3;
}
.xh-photo-model-name{
  min-width:0;
  color:#f1f1f1;
  font-weight:750;
  overflow-wrap:anywhere;
}
.xh-photo-masonry-caption>span:last-child{
  flex:0 0 auto;
  color:#bfc1c8;
  font-size:11px;
  white-space:nowrap;
}
.xh-channel-controls{
  margin:18px 0 22px;
  padding:12px;
  border:1px solid #2d3039;
  border-radius:14px;
  background:#111318;
}
.xh-channel-tabs,.xh-channel-sort{display:flex;flex-wrap:wrap;gap:8px}
.xh-channel-sort{margin-top:10px;padding-top:10px;border-top:1px solid #292c34}
.xh-channel-tab,.xh-sort-button{
  min-height:36px;
  padding:8px 14px;
  border:1px solid #373a44;
  border-radius:999px;
  background:#191b21;
  color:#dddfe5;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.xh-channel-tab.is-active,.xh-sort-button.is-active{
  border-color:#ed092c;
  background:#ed092c;
  color:#fff;
}
.section-block[hidden]{display:none!important}

/* One Back control only; the detail loader rebuilds exactly one boxed control. */
.xh-detail-back{
  display:flex!important;
  align-items:center;
  margin:0 0 16px!important;
}
.xh-detail-back .xh-back-box{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 15px;
  border:1px solid #3b3e48;
  border-radius:10px;
  background:#15171d;
  color:#f4f5f7;
  font-size:13px;
  font-weight:750;
  text-decoration:none;
}
.xh-detail-back .xh-back-box:hover{border-color:#ed092c;background:#211319}

/* Video details: title, corrected 18+ marker, views/date then model/channel profiles. */
.xh-detail-video-title{
  margin:0 0 9px!important;
  color:#f5f5f7;
  font-size:24px!important;
  line-height:1.25;
  font-weight:850;
}
.xh-detail-video-stats{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 16px;
  color:#b6b9c2;
  font-size:13px;
  font-variant-numeric:tabular-nums;
}
.xh-age-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 8px;
  border:1px solid #e5092b;
  border-radius:7px;
  background:#3a1019;
  color:#ffb8c3;
  font-size:11px;
  font-weight:900;
}
.xh-video-profile-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
}
.xh-video-profile-card{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  min-height:82px;
  padding:11px;
  border:1px solid #3c303b;
  border-radius:14px;
  background:linear-gradient(135deg,#1a151c,#111318);
  box-shadow:inset 3px 0 0 #ed092c;
}
.xh-video-profile-card img{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:50%;
  border:2px solid #ed092c;
  object-fit:cover;
}
.xh-channel-profile-card{
  border-color:#443951;
  box-shadow:inset 3px 0 0 #8b67df;
}
.xh-channel-profile-card img{border-color:#8b67df}
.xh-profile-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.xh-profile-copy small{color:#ff4965;font-size:9px;font-weight:900;letter-spacing:1.2px}
.xh-profile-copy strong{color:#fff;font-size:17px;font-weight:850;overflow-wrap:anywhere}
.xh-channel-profile-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1;
  color:#fff;
  text-decoration:none;
}
#xh-subscribe{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:44px;
  flex:0 0 auto;
  padding:0 18px!important;
  border:0!important;
  border-radius:999px!important;
  background:#ed092c!important;
  color:#fff!important;
  font-size:14px;
  font-weight:850;
  white-space:nowrap;
  box-shadow:0 5px 15px rgba(237,9,44,.24);
}
#xh-subscribe:hover{background:#ff3150!important}
#xh-subscribe.is-active{border:1px solid #ed092c!important;background:#24262d!important;color:#fff!important}

/* Avoid age/duration, play glyphs or metadata overlapping the thumbnail. */
.xh-upload-thumb .play-circle{display:none!important}
.badge-duration,.xh-youtube-duration{font-variant-numeric:tabular-nums}
@media(max-width:1100px){
  #home-featured-videos,#videos-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #home-featured-photos,#photo-collections-grid,#actor-photos-grid,#channel-photos-grid{columns:4 160px}
}
@media(max-width:700px){
  #home-featured-videos,#videos-catalog-grid{grid-template-columns:minmax(0,1fr);gap:18px!important}
  .xh-youtube-card-content{padding-top:9px}
  .xh-youtube-thumbnail{border-radius:10px}
  .xh-youtube-title{font-size:15px}
  #home-featured-photos,#photo-collections-grid,#actor-photos-grid,#channel-photos-grid{columns:2 135px;column-gap:9px}
  .xh-photo-masonry-tile,.xh-upload-photo-card,.xh-profile-photo-tile{margin-bottom:10px}
  .xh-video-profile-strip{grid-template-columns:minmax(0,1fr)}
  .xh-video-profile-card{min-height:70px;padding:9px}
  .xh-video-profile-card img{width:40px;height:40px;flex-basis:40px}
  .xh-profile-copy strong{font-size:16px}
  .xh-channel-profile-card{flex-wrap:wrap}
  .xh-channel-profile-link{min-width:160px}
  #xh-subscribe{min-height:40px;padding:0 15px!important}
  .xh-detail-video-title{font-size:21px!important}
  .xh-channel-controls{padding:9px}
  .xh-channel-tab,.xh-sort-button{min-height:34px;padding:7px 11px;font-size:11px}
}


/* XPlayHub account sign-in and registration */
.auth-mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:0 0 16px;
  padding:5px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#0b0c10;
}
.auth-mode-tab{
  min-height:40px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:var(--text-secondary);
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}
.auth-mode-tab.is-active{
  border-color:rgba(229,9,43,.45);
  background:linear-gradient(120deg,rgba(229,9,43,.22),rgba(115,52,130,.13));
  color:#fff;
}
.auth-form{display:flex;flex-direction:column;gap:13px}
.auth-form[hidden],#auth-form-view[hidden],#auth-session-view[hidden]{display:none!important}
.auth-field{display:flex;flex-direction:column;gap:6px}
.auth-field>span{font-size:12px;color:#c6c8d0;font-weight:650}
.auth-field .control-input{width:100%;min-height:44px}
.auth-submit{width:100%;min-height:44px;font-weight:800}
.auth-form-message{min-height:18px;margin:0;font-size:12px;color:#9fa5b2}
.auth-form-message.is-error{color:#ff7184}
.auth-form-message.is-success{color:#78d6a2}
.auth-security-note{margin:13px 0 0;color:#9096a3;font-size:11px;line-height:1.55}
.auth-user-card{
  display:flex;align-items:center;gap:13px;padding:14px;
  border:1px solid #3c303b;border-radius:13px;
  background:linear-gradient(115deg,rgba(229,9,43,.13),#15161c 60%,rgba(121,83,175,.10));
}
.auth-user-avatar{
  display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;
  border:2px solid #ed1237;border-radius:50%;background:#28141d;
  color:#fff;font-size:20px;font-weight:850;
}
.auth-user-card>div:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}
.auth-user-card strong{font-size:15px;color:#fff}
.auth-user-card span{font-size:12px;color:#aeb4c0;overflow-wrap:anywhere}
.auth-signed-in-note{margin:14px 0;color:var(--text-secondary);font-size:13px;line-height:1.6}
.xh-auth-prompt{
  position:fixed;inset:0;z-index:9999;display:grid;place-items:center;
  padding:18px;background:rgba(0,0,0,.72);backdrop-filter:blur(5px);
}
.xh-auth-prompt-card{
  position:relative;width:min(100%,390px);padding:24px;
  border:1px solid #39323e;border-radius:18px;background:#121319;
  box-shadow:0 20px 70px #000b;
}
.xh-auth-prompt-card h3{margin:0 0 8px;color:#fff;font-size:20px}
.xh-auth-prompt-card p{margin:0 0 18px;color:#aeb4c0;font-size:13px;line-height:1.55}
.xh-auth-prompt-card .btn{width:100%;justify-content:center}
.xh-auth-prompt-close{
  position:absolute;top:10px;right:12px;width:32px;height:32px;
  border:1px solid #383943;border-radius:50%;background:#1b1d24;color:#fff;
  font-size:20px;cursor:pointer;
}
a.tool-btn.is-authenticated{border-color:rgba(229,9,43,.55)}
@media(max-width:700px){
  .auth-mode-tabs{margin-bottom:13px}
  .auth-field .control-input{min-height:46px}
  .auth-user-card{padding:12px}
}
