/* Huami static template — tube-style layout (original; not affiliated with any third party) */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #000;
  --bg-elev: #1b1b1b;
  --bg-panel: #222;
  --bg-hover: #2a2a2a;
  --line: #333;
  --text: #fff;
  --muted: #aaa;
  --faint: #777;
  --accent: #ff9000;
  --accent-hot: #ff5400;
  --accent-dim: #c96e00;
  --danger: #e74c3c;
  --ok: #2ecc71;
  --radius: 4px;
  --header-h: 56px;
  --nav-h: 40px;
  --max: 1280px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Oswald", Impact, sans-serif;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

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

a:hover {
  color: var(--accent);
}

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

button,
input {
  font: inherit;
}

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

/* —— Age gate (first visit) —— */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 144, 0, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.94);
  padding: 24px;
  overflow: auto;
}

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

body.age-locked {
  overflow: hidden;
}

.age-card {
  width: min(100%, 520px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: ageIn 0.35s ease both;
}

@keyframes ageIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.age-lang {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.age-lang select {
  max-width: 180px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
}

.age-brand {
  margin: 0 0 10px;
  line-height: 0;
}

.age-brand img {
  display: block;
  margin: 0 auto;
  height: 52px;
  width: auto;
  max-width: 100%;
}

.age-title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
}

.age-notice {
  text-align: left;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 20px;
  background: rgba(255, 144, 0, 0.06);
}

.age-notice-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

.age-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.age-actions {
  display: grid;
  gap: 10px;
}

.age-btn {
  min-height: 48px;
  width: 100%;
  border: 1px solid transparent;
  font-size: 1rem;
}

.age-actions .btn-ghost {
  border-color: var(--accent-dim);
  color: var(--text);
}

.age-actions .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Cookie bar (after age gate) —— */
.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1100;
  pointer-events: none;
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar-inner {
  pointer-events: auto;
  width: min(100%, 560px);
  margin: 0 auto;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  animation: cookieIn 0.3s ease both;
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.cookie-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.cookie-close:hover {
  opacity: 1;
  color: var(--accent);
}

.cookie-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 24px;
  margin-bottom: 14px;
}

.cookie-ico {
  flex: 0 0 auto;
  color: #fff;
  margin-top: 2px;
}

.cookie-msg p {
  margin: 0;
  color: #ddd;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-msg a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  background: transparent !important;
  border-radius: 6px;
}

.cookie-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

@media (max-width: 520px) {
  .cookie-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .cookie-actions {
    grid-template-columns: 1fr;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background: var(--accent);
  color: #111;
}

.btn-accent:hover {
  background: #ffb040;
  color: #111;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

.btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.875rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0d0d0d;
  border-bottom: 1px solid #1f1f1f;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 150px;
}

@media (min-width: 768px) {
  .logo img {
    height: 44px;
    max-width: 180px;
  }
}

.search {
  flex: 1;
  display: flex;
  max-width: 560px;
  margin-inline: auto;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #3a3a3a;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #151515;
  color: var(--text);
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
}

.search button {
  width: 44px;
  height: 36px;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent);
  color: #111;
  cursor: pointer;
  font-weight: 700;
}

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

.menu-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* —— Category nav —— */
.cat-nav {
  background: var(--bg-elev);
  border-bottom: 1px solid #1f1f1f;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--nav-h);
  padding-block: 4px;
}

.cat-nav a {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-radius: var(--radius);
}

.cat-nav a:hover,
.cat-nav a.is-active {
  color: var(--accent);
  background: rgba(255, 144, 0, 0.08);
}

.empty-hint {
  margin: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Hot tags —— */
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 6px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #e8e8e8;
  font-size: 0.82rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag:hover {
  color: #fff;
  background: #3a3a3a;
}

.tag-more {
  min-width: 34px;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  border: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-head .more {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* —— Home hot image rows —— */
.home-imgs {
  margin: 8px 0 28px;
}
.home-imgs-block {
  margin-bottom: 22px;
}
.home-imgs-block .section-head {
  margin-top: 8px;
}
.home-imgs-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.home-img-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.home-img-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.home-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.home-img-card:hover .home-img-thumb img {
  transform: scale(1.05);
}
.home-img-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  min-height: 2.8em;
  color: #f0f0f0;
}
.home-img-meta {
  font-size: 12px;
  color: var(--muted, #9a9a9a);
}
@media (max-width: 1100px) {
  .home-imgs-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .home-imgs-row .home-img-card:nth-child(n + 7) {
    display: none;
  }
}
@media (max-width: 760px) {
  .home-imgs-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .home-imgs-row .home-img-card:nth-child(n + 4) {
    display: none;
  }
  .home-img-title {
    font-size: 12px;
    min-height: 2.6em;
  }
}

/* —— Video grid —— */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 12px;
  margin-bottom: 28px;
}

.card {
  display: block;
  color: inherit;
}

.card:hover {
  color: inherit;
}

.card-media {
  display: block;
  color: inherit;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.card-row .uploader {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-row .uploader:hover {
  color: var(--accent);
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1da1f2;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  flex-shrink: 0;
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.eye {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.eye::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
}

.card-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: start;
}

.more-btn {
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}

.more-btn:hover {
  color: #fff;
}

.card-ad .ad-thumb {
  position: relative;
}

.ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.75));
  color: #fff;
}

.ad-overlay strong {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.ad-overlay em {
  font-style: normal;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffe566;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 4px 0 8px;
}

.ad-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
}

.ad-cta {
  margin-left: auto;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 0.75rem;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.card:hover .thumb img {
  transform: scale(1.04);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card:hover .thumb::after {
  opacity: 1;
}

.thumb .duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
}

.thumb .badge {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-meta {
  padding-top: 8px;
}

.card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* —— Ad rail placeholders —— */
.ad-rail {
  margin: 8px 0 18px;
  min-height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #121212;
}

.ad-rail:not(.ad-rail-side) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-rail:not(.ad-rail-side).ad-rail-ops {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-rail .adsbygoogle {
  display: block;
  min-height: 90px;
  width: 100%;
}

.ad-rail-side {
  margin: 0 0 16px;
  width: 100%;
  min-height: 0;
}

.ad-rail.ad-rail-side {
  min-height: 0;
  background: transparent;
  border: none;
}

.ad-rail-side .adsbygoogle {
  min-height: 250px;
}

.ad-rail-side .ad-ops-code {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.ad-rail-side .ad-side-fit-inner,
.ad-rail-side .ad-fit-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 250px;
  max-width: none;
  transform-origin: 0 0;
}

.ad-rail-side .ad-side-fit-inner iframe,
.ad-rail-side .ad-side-fit-inner [id^="container-"],
.ad-rail-side .ad-fit-inner iframe,
.ad-rail-side .ad-fit-inner [id^="container-"] {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0;
}

.ad-rail-ops {
  display: grid;
  gap: 10px;
  background: transparent;
}

.video-bottom-ad {
  margin: 4px auto 18px;
}

.video-bottom-ad .ad-rail {
  margin-bottom: 0;
}

.ad-ops-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #121212;
  border: 1px solid #222;
}

.ad-ops-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
}

.ad-rail-side .ad-ops-item img {
  max-height: 280px;
  object-fit: cover;
}

.ad-ops-code {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #121212;
}

.ad-rail:not(.ad-rail-side) .ad-ops-code {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-height: 90px;
}

.ad-rail:not(.ad-rail-side) .ad-fit-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  max-width: 100%;
  position: static;
  transform: none;
}

.ad-ops-code img,
.ad-ops-code iframe {
  max-width: 100%;
  display: block;
}

.ad-rail:not(.ad-rail-side) .ad-ops-code iframe,
.ad-rail:not(.ad-rail-side) .ad-ops-code img {
  margin: 0 auto;
}

.ad-rail:not(.ad-rail-side) .ad-ops-item {
  width: auto;
  max-width: 100%;
}

.ad-rail:not(.ad-rail-side) .ad-ops-item img {
  width: auto;
  max-width: 100%;
  max-height: 120px;
  margin: 0 auto;
}

.ad-rail-side .ad-ops-code iframe {
  max-width: none;
}

.ad-rail-side .ad-ops-item {
  width: 100%;
}

/* —— Pagination —— */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 8px 0 36px;
}

.pager a,
.pager span {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.pager a:hover,
.pager .is-active {
  background: var(--accent);
  color: #111;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid #1f1f1f;
  background: #0a0a0a;
  padding: 28px 0 40px;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 6px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  margin: 0 0 12px;
  line-height: 0;
}

.footer-logo img {
  display: block;
  width: 140px;
  height: auto;
  max-width: 100%;
}

.footer-blurb {
  margin: 0 0 10px;
  line-height: 1.5;
  color: var(--faint);
}

.footer-about {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 36em;
}

.footer-note {
  border-top: 1px solid #1a1a1a;
  padding-top: 16px;
  color: var(--faint);
}

.sitemap-page {
  padding: 24px 0 48px;
}

.sitemap-block {
  margin-bottom: 28px;
}

.sitemap-block h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--text);
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px;
}

.sitemap-list a {
  color: var(--muted);
}

.sitemap-list a:hover {
  color: var(--accent);
}

.sitemap-list-videos {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .sitemap-list-videos {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Video page —— */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  margin: 18px 0 32px;
}

.player-layout > * {
  min-width: 0;
  max-width: 100%;
}

.player {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #222;
}

.player-stage {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 144, 0, 0.2), transparent 40%),
    linear-gradient(160deg, #1a1a1a, #050505);
  position: relative;
}

.player-stage .play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #111;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 144, 0, 0.35);
  transition: transform 0.2s ease;
}

.player-stage .play:hover {
  transform: scale(1.06);
}

/* —— Huami player chrome —— */
.hp-root {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: none;
  user-select: none;
}

.hp-root video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.hp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2;
}

.hp-root.show-overlay .hp-overlay,
.hp-root:not(.is-playing) .hp-overlay {
  opacity: 1;
  pointer-events: auto;
}

.hp-root.is-playing:not(.show-overlay) .hp-play-big {
  opacity: 0;
  pointer-events: none;
}

.hp-play-big {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(255, 144, 0, 0.4);
  transition: transform .18s ease, background .18s ease;
}

.hp-play-big:hover {
  transform: scale(1.06);
}

.hp-play-big svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.hp-root.is-playing .hp-play-big svg.hp-ico-play { display: none; }
.hp-root:not(.is-playing) .hp-play-big svg.hp-ico-pause { display: none; }
.hp-root.is-playing .hp-play-big svg.hp-ico-pause { display: block; margin-left: 0; }

.hp-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background: rgba(0,0,0,.25);
  pointer-events: none;
}

.hp-root.is-loading .hp-loader { display: flex; }

.hp-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: hp-spin .7s linear infinite;
}

@keyframes hp-spin {
  to { transform: rotate(360deg); }
}

.hp-error {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 4;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 20px;
  text-align: center;
}

.hp-root.has-error .hp-error { display: flex; }
.hp-root.has-error .hp-overlay { display: none; }

.hp-error-msg {
  margin: 0;
  font-size: .95rem;
  color: #ddd;
}

.hp-retry {
  min-width: 110px;
}

.hp-resume-tip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .8rem;
  pointer-events: none;
}

.hp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.hp-root.show-chrome .hp-bar,
.hp-root:not(.is-playing) .hp-bar,
.hp-root:focus-within .hp-bar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hp-seek {
  position: relative;
  height: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  touch-action: none;
}

.hp-seek-track,
.hp-seek-buf,
.hp-seek-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  border-radius: 99px;
  transform: translateY(-50%);
}

.hp-seek-track {
  right: 0;
  background: rgba(255,255,255,.22);
}

.hp-seek-buf {
  width: 0;
  background: rgba(255,255,255,.38);
}

.hp-seek-fill {
  width: 0;
  background: var(--accent);
}

.hp-seek::after {
  content: "";
  position: absolute;
  left: var(--hp-thumb, 0%);
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}

.hp-root.show-chrome .hp-seek::after,
.hp-seek:hover::after {
  opacity: 1;
}

.hp-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hp-btn:hover {
  background: rgba(255,255,255,.12);
}

.hp-btn svg {
  width: 20px;
  height: 20px;
}

.hp-time {
  margin-left: 4px;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}

.hp-spacer { flex: 1; }

.hp-vol {
  width: 72px;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.hp-speed {
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .78rem;
  cursor: pointer;
}

.hp-root.is-muted .hp-ico-vol { display: none; }
.hp-root:not(.is-muted) .hp-ico-muted { display: none; }
.hp-root.is-playing .hp-ico-cplay { display: none; }
.hp-root:not(.is-playing) .hp-ico-cpause { display: none; }

.hp-root.is-fs {
  border-radius: 0;
}

@media (max-width: 720px) {
  .hp-vol { display: none; }
  .hp-time { font-size: .72rem; }
  .hp-play-big { width: 64px; height: 64px; }
}

.video-info {
  padding: 14px 0 0;
}

.video-info h1 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.video-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 4px;
}
.video-adj {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  background: rgba(255,255,255,.03);
}
.video-adj:hover {
  border-color: var(--accent, #e85d4c);
}
.video-adj-label {
  font-size: .75rem;
  color: var(--muted);
}
.video-adj-title {
  font-size: .9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-adj-next {
  text-align: right;
}
.video-adj.is-empty {
  visibility: hidden;
  pointer-events: none;
  border: 0;
  background: transparent;
}
@media (max-width: 640px) {
  .video-adjacent { grid-template-columns: 1fr; }
  .video-adj-next { text-align: left; }
  .video-adj.is-empty { display: none; }
}

.footer-latest {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-latest h3 {
  margin: 0 0 10px;
  font-size: .95rem;
}
.footer-latest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-latest-list a {
  display: block;
  font-size: .82rem;
  color: var(--muted, #9aa);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-latest-list a:hover {
  color: var(--text, #fff);
}
.footer-latest-more {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
}

.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.video-actions .act-num {
  margin-left: 6px;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

/* Icon action buttons: play / like / fav */
.va-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  transition: color .15s ease, background .15s ease, transform .12s ease;
}

.va-ico:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.va-ico:active {
  transform: scale(0.96);
}

.va-ico svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.va-ico.is-on {
  color: var(--accent);
}

.va-ico.is-on svg.va-heart {
  fill: currentColor;
  stroke: currentColor;
}

.va-ico.is-on svg.va-like {
  fill: currentColor;
  stroke: currentColor;
}

.va-ico .va-num {
  min-width: 1.2em;
  opacity: 0.9;
}

.va-ico-share {
  margin-left: 2px;
}

/* Friendly login tip modal */
.login-tip {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}

.login-tip[hidden] {
  display: none !important;
}

.login-tip-card {
  width: min(360px, 100%);
  padding: 22px 20px 18px;
  border-radius: 14px;
  background: #1a2230;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.login-tip-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.login-tip-msg {
  margin: 0 0 18px;
  color: #b8c0cc;
  font-size: 0.95rem;
  line-height: 1.45;
}

.login-tip-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.login-tip-actions .btn {
  min-width: 100px;
}

.share-tip {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--accent);
}

body.share-open {
  overflow: hidden;
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.share-overlay[hidden] {
  display: none !important;
}

.share-dialog {
  width: min(440px, 100%);
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

.share-dialog-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.share-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #888;
  cursor: pointer;
}

.share-dialog-close:hover {
  background: #f2f2f2;
  color: #333;
}

.share-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.share-preview-thumb {
  position: relative;
  flex: 0 0 148px;
  width: 148px;
  height: 84px;
  border-radius: 6px;
  overflow: hidden;
  background: #e8e8e8;
}

.share-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.share-preview-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.share-preview-title {
  flex: 1;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-socials {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}

.share-social {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #444;
  font-size: 0.72rem;
  text-decoration: none;
}

.share-social:hover {
  color: #111;
}

.share-social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
}

.share-social-ico svg {
  width: 22px;
  height: 22px;
}

.share-ico-x { background: #1a1a1a; }
.share-ico-wa { background: #25d366; }
.share-ico-tg { background: #2aabee; }
.share-ico-rd { background: #ff4500; }
.share-ico-tb { background: #001935; }

.share-copy-label {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}

.share-copy-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.share-copy-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  color: #333;
  font-size: 0.88rem;
  outline: none;
}

.share-copy-row input:focus {
  border-color: #ccc;
  background: #fff;
}

.share-copy-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #f3f3f3;
  color: #444;
  cursor: pointer;
}

.share-copy-btn:hover {
  background: #eaeaea;
  color: #111;
}

.share-copy-tip {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #2a9d4a;
}

@media (max-width: 480px) {
  .share-dialog {
    padding: 18px 16px 16px;
  }

  .share-preview-thumb {
    flex-basis: 120px;
    width: 120px;
    height: 68px;
  }

  .share-social-ico {
    width: 42px;
    height: 42px;
  }

  .share-social {
    font-size: 0.65rem;
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--muted);
  font-size: 0.8rem;
}

.chip.is-active {
  color: var(--accent, #e85d4c);
  border: 1px solid currentColor;
}

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

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

.side-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 10px;
}

.side-item .thumb {
  aspect-ratio: 16 / 9;
}

.side-item h3 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-item:hover h3 {
  color: var(--accent);
}

.side-item p {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
}

/* —— Categories —— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 36px;
}

.cat-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #121212 center/cover no-repeat;
  display: grid;
  place-items: end start;
  padding: 12px;
  border: 1px solid #2a2a2a;
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.cat-card strong {
  position: relative;
  font-size: 1.05rem;
}

.cat-card span {
  position: relative;
  color: var(--muted);
  font-size: 0.8rem;
}

.cat-card:hover {
  border-color: var(--accent-dim);
}

.cat-card:hover strong {
  color: var(--accent);
}

/* —— Filters —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.filter {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  color: #111;
  background: var(--accent);
}

/* —— Empty / misc —— */
.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 144, 0, 0.08);
  border: 1px solid rgba(255, 144, 0, 0.25);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .card .thumb {
    transition: transform 0.25s ease;
  }
  .card:hover .thumb {
    transform: translateY(-2px);
  }
  .age-card {
    animation: rise 0.35s ease;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .video-grid,
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .player-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }
  .video-grid,
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search {
    display: none;
  }
  .search.is-open {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 4px);
    max-width: none;
    z-index: 60;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-actions .btn-ghost {
    display: none;
  }
  .side-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .side-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  .side-item .thumb {
    width: 100%;
  }
  .side-item h3 {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }
  .side-item p {
    font-size: 0.72rem;
  }
}

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

/* —— Member center —— */
.member-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 24px 0 48px;
}
.member-auth {
  display: grid;
  place-items: center;
  padding: 48px 0;
  min-height: 60vh;
}
.member-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.member-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
}
.member-nav a:hover,
.member-nav a.is-active {
  background: var(--bg-hover);
  color: var(--accent);
}
.member-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.member-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  letter-spacing: 0.04em;
}
.member-card label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.member-card input,
.member-card textarea,
.member-card select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  color: var(--text);
}
.auth-card {
  width: min(100%, 420px);
}
.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.member-stats div {
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.member-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent);
}
.member-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.member-table th,
.member-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.pkg-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  cursor: pointer;
}
.pkg-item:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 144, 0, 0.08);
}
.pkg-item input {
  width: auto;
  margin: 0;
}
.form-msg {
  margin-top: 10px;
  color: var(--accent);
}
.lock-gate {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}
.lock-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  justify-items: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.85));
}
.msg-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.msg-reply {
  margin-top: 8px;
  padding: 8px 10px;
  background: #111;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.lang-dd {
  position: relative;
  z-index: 80;
}
.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.lang-dd-btn:hover {
  border-color: var(--accent);
}
.lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  background: #333;
}
.lang-dd-label {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-dd-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  margin-left: 2px;
}
.lang-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  max-height: 320px;
  overflow: auto;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
}
.lang-dd-item,
.lang-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.lang-dd-item:hover,
.lang-list-item:hover,
.lang-dd-item.is-active,
.lang-list-item.is-active {
  background: rgba(255, 144, 0, 0.12);
  color: var(--accent);
}
.lang-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.lang-list-item {
  border: 1px solid var(--line);
  background: #111;
}
.avatar-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 8px;
}
.avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  border: 2px solid var(--line);
}
.muted { color: var(--muted); }

@media (max-width: 800px) {
  .member-wrap {
    grid-template-columns: 1fr;
  }
  .member-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .member-stats {
    grid-template-columns: 1fr;
  }
}
