/* =========================================================
   xxxrussian.co — Premium Theme
   ========================================================= */

:root {
  --bg:          #000000;   /* xHamster-style pure black */
  --bg-soft:     #0b0b0b;
  --surface:     #141414;
  --surface-2:   #1c1c1c;
  --border:      #262626;
  --text:        #ffffff;
  --text-dim:    #999999;
  --accent:      #e34449;   /* xHamster exact brand red */
  --accent-hover:#d42025;   /* xHamster hover */
  --accent-dark: #ba1c20;   /* xHamster pressed */
  --gold:        #ffc857;
  --green:       #2ee6a8;
  --radius:      6px;
  --radius-sm:   4px;
  --shadow:      0 8px 30px rgba(0,0,0,.6);
  --header-h:    64px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.hidden { display: none !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate.hidden { display: none; }
.age-gate__box {
  max-width: 440px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.age-gate__box .logo { justify-content: center; margin-bottom: 20px; }
.age-gate__box h1 { font-size: 22px; margin-bottom: 12px; }
.age-gate__box p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.age-gate__btns { display: flex; gap: 12px; justify-content: center; }
.age-gate__legal { margin-top: 20px; font-size: 12px; color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* header actions — xHamster style: plain Login link + flat red Sign up pill */
.header-actions .btn-ghost {
  border: none;
  padding: 10px 8px;
  font-weight: 500;
}
.header-actions .btn-ghost:hover { color: var(--accent); background: transparent; }
.header-actions .btn-primary {
  border-radius: 999px;          /* flat red pill */
  padding: 0 22px;
  height: 40px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
}
.header-actions .btn-primary:hover { background: var(--accent-hover); transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(0,0,0,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #fff;           /* xHamster-style monochrome mark */
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: #000;
  letter-spacing: -.5px;
}
.logo__text span { color: #fff; }

/* search */
.header-search {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 46px 0 18px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: .2s;
}
.header-search input:focus { border-color: var(--accent); background: var(--surface-2); }
.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

/* category nav */
.cat-nav {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav__inner {
  display: flex;
  gap: 6px;
  padding: 10px 0;
}
.cat-nav__inner.expanded { flex-wrap: wrap; }
.chip {
  padding: 7px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: .18s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Ad slots ---------- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #0d0d0d, #0d0d0d 12px, #111111 12px, #111111 24px);
  border: 1px dashed #2a2a2a;
  border-radius: var(--radius-sm);
  color: #4a4a4a;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}
.ad-slot--leader { height: 92px; margin: 18px 0; }
.ad-slot--rect { height: 252px; }
.ad-slot--strip { height: 100px; margin: 24px 0; }
.ad-slot--under { height: 110px; margin-top: 16px; }
.ad-slot--float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 300px;
  height: 250px;
  z-index: 400;
  box-shadow: var(--shadow);
}
.ad-slot__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(0,0,0,.6);
  border: none;
  color: #aaa;
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 7px;
  cursor: pointer;
}

/* ---------- Page top / hero ---------- */
.page-top { padding: 24px 0 0; }

.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
.page-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }

/* ---------- Section heads ---------- */
.section { padding: 26px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head .see-all {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.section-head .see-all:hover { color: var(--accent-hover); }

/* ---------- Video grid (dense, xHamster-style speed layout) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 16px 14px;
}
.video-card { display: block; position: relative; }

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.thumb__art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: transform .25s ease;
}
.video-card:hover .thumb__art { transform: scale(1.06); }

/* decorative abstract art for placeholder thumbs */
.thumb__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.22), transparent 42%),
    radial-gradient(circle at 78% 70%, rgba(0,0,0,.35), transparent 55%);
}
.thumb__art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 74px;
  height: 74px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: rgba(0,0,0,.32);
  border: 2px solid rgba(255,255,255,.35);
}
.thumb__play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%,-50%);
  color: #fff;
  font-size: 26px;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}

/* gradients — dark, moody, mature (photo-like placeholders) */
.grad-1  { background: linear-gradient(135deg,#2b0f14,#5c1a24); }
.grad-2  { background: linear-gradient(135deg,#14161c,#263241); }
.grad-3  { background: linear-gradient(135deg,#1d1030,#3c2352); }
.grad-4  { background: linear-gradient(135deg,#0d2320,#1e4a43); }
.grad-5  { background: linear-gradient(135deg,#3a0f14,#7a2530); }
.grad-6  { background: linear-gradient(135deg,#1a1214,#432024); }
.grad-7  { background: linear-gradient(135deg,#2a1408,#6b3416); }
.grad-8  { background: linear-gradient(135deg,#0f172a,#1e293b); }
.grad-9  { background: linear-gradient(135deg,#33151f,#6b3347); }
.grad-10 { background: linear-gradient(135deg,#2e2109,#5f4a1d); }
.grad-11 { background: linear-gradient(135deg,#320a12,#701c2b); }
.grad-12 { background: linear-gradient(135deg,#101820,#2c3e50); }
.grad-13 { background: linear-gradient(135deg,#1f0a0d,#4a121a); }
.grad-14 { background: linear-gradient(135deg,#131316,#2c2c33); }

.thumb__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  z-index: 3;
}
.thumb__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 3px 8px;
  border-radius: 5px;
  z-index: 3;
}
.thumb__badge--gold { background: var(--gold); color: #1a1a1a; }

.video-card__meta { padding: 10px 2px 0; }
.video-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.video-card:hover .video-card__title { color: var(--accent); }
.video-card__sub {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.video-card__sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.video-card__sub .verified { color: var(--green); font-weight: 700; }

/* ---------- Filter / sort bar (like tube-site sorting) ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 18px;
}
.filter-bar .tab {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
  border-bottom: none;
  margin-bottom: 0;
}
.filter-bar .tab.active {
  background: var(--accent);
  color: #fff;
  border-bottom-color: transparent;
}
.filter-bar select {
  margin-left: auto;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* ---------- Sidebar layout ---------- */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.side-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-card h3::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

.mini-list { display: flex; flex-direction: column; gap: 14px; }
.mini-item { display: flex; gap: 12px; align-items: center; }
.mini-item .thumb {
  width: 118px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.mini-item .thumb__art::after { width: 34px; height: 34px; }
.mini-item .thumb__play { font-size: 13px; }
.mini-item .thumb__dur { font-size: 10px; right: 5px; bottom: 5px; }
.mini-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-item:hover .mini-item__title { color: var(--accent); }
.mini-item__sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Video player page ---------- */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 26px;
  align-items: start;
  padding-top: 20px;
}

.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* pre-roll ad overlay */
.preroll {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.preroll.hidden { display: none; }
.preroll__label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.preroll__box {
  width: min(720px, 92%);
  height: min(300px, 52%);
  background: repeating-linear-gradient(45deg,#0d0d0d,#0d0d0d 14px,#111 14px,#111 28px);
  border: 1px dashed #2e2e2e;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #4e4e4e;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.preroll__row { display: flex; align-items: center; gap: 14px; }
.preroll__count {
  font-size: 13px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.video-info { padding: 14px 0 4px; }
.video-info h1 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; line-height: 1.3; }
.video-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.video-stats { display: flex; gap: 14px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.video-stats b { color: var(--text); font-weight: 700; }
.video-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s;
}
.pill-btn:hover, .pill-btn.active { border-color: var(--accent); color: var(--accent); }

.video-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Description (collapsed by default — click to read) ---------- */
.desc {
  position: relative;
  font-size: 14px;
  color: #c9c9d8;
  line-height: 1.65;
  cursor: pointer;
}
.desc.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc-more {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0 0;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 20px;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.author-box__name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.author-box__name .verified { color: var(--green); font-size: 13px; }
.author-box__sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.author-box .btn { margin-left: auto; }

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-top: 26px;
}
.tab {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .15s;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* comments */
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 15px; flex-shrink: 0;
}
.comment__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment__name { font-size: 13.5px; font-weight: 700; }
.comment__time { font-size: 12px; color: var(--text-dim); }
.comment__text { font-size: 14px; color: #d6d6e2; margin-top: 5px; }
.comment__actions { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-dim); }
.comment__actions button { background: none; border: none; color: inherit; cursor: pointer; font-size: 12.5px; }
.comment__actions button:hover { color: var(--accent); }

.comment-form { display: flex; gap: 12px; margin-top: 20px; }
.comment-form textarea {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  min-height: 84px;
  resize: vertical;
  outline: none;
}
.comment-form textarea:focus { border-color: var(--accent); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 10px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.pagination button:hover { color: var(--text); border-color: var(--accent); }
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Auth page ---------- */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(227,68,73,.10), transparent 50%),
    #000;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

.auth-tabs { display: flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: .15s;
}
.auth-tabs button.active { background: var(--accent); color: #fff; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-dim); }
.form-group input {
  width: 100%;
  height: 46px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: .18s;
}
.form-group input:focus { border-color: var(--accent); }
.form-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.form-row a { color: var(--accent); }
.auth-note { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 18px; }
.auth-note a { color: var(--accent); font-weight: 600; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); margin: 4px 0 18px; }
.checkbox-row input { margin-top: 3px; accent-color: var(--accent); }

/* ---------- Static pages ---------- */
.prose {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.prose h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.5px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.prose p, .prose li { color: #c9c9d8; font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent); }
.prose .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 44px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--text-dim); font-size: 13.5px; margin-top: 14px; max-width: 320px; line-height: 1.65; }
.footer-col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; color: var(--text-dim); }
.footer-col a { display: block; font-size: 14px; color: #c2c2d2; padding: 5px 0; transition: .15s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-bottom .badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-bottom .badges span {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .5px;
}
.rra { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 80px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9000;
  opacity: 0;
  transition: .3s ease;
  box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- User chip (logged-in header) ---------- */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  cursor: pointer;
  transition: .18s;
  color: var(--text);
}
.user-chip:hover { border-color: var(--accent); }
.user-chip__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent) center/cover;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}
.user-chip__name { font-size: 13.5px; font-weight: 700; }
.user-chip__role {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(227,68,73,.12);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- Google sign-in ---------- */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #fff;
  color: #1f1f1f;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s;
  margin-bottom: 16px;
}
.google-btn:hover { background: #f1f1f1; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.google-btn svg { width: 19px; height: 19px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 4px 0 18px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Role picker (viewer / creator) ---------- */
.role-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: .18s;
}
.role-card:hover { border-color: #3a3a50; }
.role-card.selected { border-color: var(--accent); background: rgba(227,68,73,.08); }
.role-card input { display: none; }
.role-card__icon { font-size: 22px; display: block; margin-bottom: 6px; }
.role-card__title { font-size: 14px; font-weight: 800; display: block; }
.role-card__desc { font-size: 11.5px; color: var(--text-dim); display: block; margin-top: 3px; line-height: 1.4; }

/* ---------- Shorts chip ---------- */
.chip--shorts {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.chip--shorts:hover { color: #fff; filter: brightness(1.1); }

/* ---------- Shorts feed (TikTok-style vertical) ---------- */
.shorts-page { display: flex; gap: 24px; padding-top: 20px; align-items: flex-start; }
.shorts-feed {
  flex: 1;
  height: calc(100vh - var(--header-h) - 76px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #050507;
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}
.shorts-feed::-webkit-scrollbar { display: none; }
.short-slide {
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  position: relative;
}
.short-art {
  position: relative;
  height: min(100%, 78vh);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.short-art__bg { position: absolute; inset: 0; transition: transform .4s; }
.short-art:hover .short-art__bg { transform: scale(1.04); }
.short-art__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 35%);
}
.short-art__play {
  position: absolute;
  left: 50%; top: 45%;
  transform: translate(-50%,-50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.45);
  display: grid; place-items: center;
  font-size: 26px; color: #fff;
  z-index: 2;
}
.short-art__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.65);
  color: #ff6b70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 3;
}
.short-art .thumb__dur { right: 12px; bottom: auto; top: 12px; }
.short-art__info {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 3;
}
.short-art__info strong { font-size: 15px; display: block; margin-bottom: 5px; color: #fff; }
.short-art__info p { font-size: 14px; color: #e8e8f2; line-height: 1.45; }

.short-rail { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.short-rail__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 14px;
  padding: 13px 15px;
  min-width: 74px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: .18s;
}
.short-rail__btn:hover { border-color: var(--accent); color: var(--text); }
.short-rail__btn.active { background: rgba(227,68,73,.15); border-color: var(--accent); color: var(--accent); }
.short-rail__icon { font-size: 22px; line-height: 1; }
.short-rail__views {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}

.shorts-side { width: 300px; flex-shrink: 0; }
.shorts-side .progress {
  height: 5px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
.shorts-side .progress i {
  display: block;
  height: 100%;
  width: 10%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .3s;
}
.shorts-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.8; }
.shorts-hint kbd {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: inherit;
}

/* ---------- Upload (creator) page ---------- */
.upload-page { max-width: 820px; margin: 0 auto; padding: 34px 20px 60px; }
.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 22px;
}
.upload-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.upload-card .hint { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.drop-zone {
  border: 2px dashed #33334a;
  border-radius: 12px;
  padding: 38px 20px;
  text-align: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: .18s;
  margin-bottom: 18px;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--accent); background: rgba(227,68,73,.05); color: var(--text); }
.drop-zone__icon { font-size: 34px; display: block; margin-bottom: 10px; }
.drop-zone strong { color: var(--text); }
.file-name { font-size: 13px; color: var(--green); margin-top: 8px; font-weight: 600; }
textarea.form-textarea {
  width: 100%;
  min-height: 110px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14.5px;
  outline: none;
  resize: vertical;
  font-family: inherit;
}
textarea.form-textarea:focus { border-color: var(--accent); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Scrollbar & selection ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: rgba(227,68,73,.35); }

/* ---------- Theme polish (xHamster-grade, flat) ---------- */
.btn-primary {
  background: var(--accent);
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: none; }
.btn-primary:active { transform: none; background: var(--accent-dark); }

.logo__mark { box-shadow: none; }
.logo:hover .logo__mark { transform: none; }

.section-head h2::before { background: var(--accent); }

.thumb { transition: box-shadow .25s ease, transform .25s ease; }
.video-card:hover .thumb { box-shadow: 0 12px 30px rgba(0,0,0,.55); transform: translateY(-3px); }
.video-card:hover .thumb__art::after { border-color: rgba(255,255,255,.75); background: rgba(0,0,0,.2); }
.thumb__art::after, .thumb__play { transition: .25s; }
.video-card:hover .thumb__play { transform: translate(-50%,-50%) scale(1.2); }
.video-card .thumb__badge { box-shadow: 0 3px 10px rgba(0,0,0,.4); }

.chip:hover { transform: translateY(-1px); }
.chip.active { box-shadow: 0 4px 14px rgba(227,68,73,.35); }

.filter-bar .tab:hover { color: var(--text); background: var(--surface-2); }
.filter-bar .tab.active { box-shadow: 0 4px 14px rgba(227,68,73,.3); }

.pill-btn:active { transform: scale(.96); }
.side-card { transition: border-color .2s; }
.side-card:hover { border-color: #2e2e40; }

/* ---------- Mobile bottom navigation (app-style) ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(0,0,0,.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 700;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  min-height: 54px;
  transition: .15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav a .ic { font-size: 20px; line-height: 1; }
.mobile-nav a.active { color: var(--accent); }
.mobile-nav a:active { transform: scale(.92); }

/* ---------- Mobile search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.98);
  z-index: 900;
  display: none;
  flex-direction: column;
  padding: 18px 16px;
}
.search-overlay.open { display: flex; }
.search-overlay__row { display: flex; gap: 10px; align-items: center; }
.search-overlay input {
  flex: 1;
  height: 52px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--text);
  font-size: 16px; /* 16px = no iOS zoom */
  outline: none;
}
.search-overlay__close {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
}
.search-overlay__hint { color: var(--text-dim); font-size: 13.5px; margin-top: 18px; text-align: center; }
.search-overlay__quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* ---------- Mobile sticky ad (above bottom nav) ---------- */
.ad-mobile {
  display: none;
  position: fixed;
  left: 8px; right: 8px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0));
  height: 54px;
  z-index: 650;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
}
.ad-mobile .ad-slot__close { font-size: 14px; padding: 4px 9px; }

/* ---------- Responsive extras ---------- */
@media (max-width: 900px) {
  .shorts-page { flex-direction: column; }
  .shorts-side { width: 100%; }
  .shorts-feed { height: calc(100vh - var(--header-h) - 140px); }
}
@media (max-width: 760px) {
  .user-chip__name, .user-chip__role { display: none; }
  .user-chip { padding: 5px; }
  .short-rail { position: absolute; right: 12px; bottom: 90px; z-index: 5; }
  .short-slide { padding: 10px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .player-layout { grid-template-columns: 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ad-slot--float { display: none; }
}
@media (max-width: 760px) {
  .header-search { display: none; }
  .header-search.mobile-open {
    display: block;
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(var(--header-h) + 6px);
    max-width: none;
    z-index: 60;
  }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn-ghost { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .video-card__title { font-size: 13px; min-height: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* --- compact video page (xHamster-style) --- */
  /* mobile: NO description / NO comments below video — only related videos */
  .video-desc-card,
  .tabs[data-tabs="video"],
  [data-tab-pane="video"][data-tab="comments"] { display: none !important; }
  [data-tab-pane="video"][data-tab="related"] { display: block !important; }
  [data-tab-pane="video"][data-tab="related"] .video-grid { margin-top: 12px; }

  .video-info { padding: 10px 0 2px; }
  .video-info h1 { font-size: 16px; }
  .video-info__row { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
  .video-stats { font-size: 12px; gap: 10px; }
  .video-actions { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .video-actions::-webkit-scrollbar { display: none; }
  .pill-btn { padding: 6px 11px; font-size: 12.5px; white-space: nowrap; }
  .video-tags { margin-top: 8px; gap: 6px; }
  .video-tags .chip { padding: 5px 11px; font-size: 12px; }
  .author-box { padding: 10px 12px; gap: 10px; margin-top: 12px; }
  .author-avatar { width: 40px; height: 40px; font-size: 16px; }
  .author-box__name { font-size: 14px; }
  .author-box__sub { font-size: 11.5px; }
  .author-box .btn { padding: 8px 14px; font-size: 13px; }
  .side-card { padding: 14px; margin-bottom: 14px; }
  .side-card h3 { font-size: 14px; margin-bottom: 10px; }
  .desc { font-size: 13.5px; }
  .comment-form { flex-direction: column; gap: 8px; margin-top: 14px; }
  .comment-form textarea { min-height: 56px; font-size: 14px; padding: 10px 12px; }
  .comment-form .btn { align-self: stretch; padding: 10px; }
  .comment { padding: 10px 0; gap: 10px; }
  .comment__avatar { width: 30px; height: 30px; font-size: 13px; }
  .comment__text { font-size: 13.5px; margin-top: 3px; }
  .comment__actions { margin-top: 5px; }
  .tab { padding: 10px 13px; font-size: 13.5px; }
  .tabs { margin-top: 18px; }

  /* --- mobile: hide big placeholder ads, keep only sticky bar --- */
  .ad-slot--under, .ad-slot--strip, .ad-slot--rect, .ad-slot--leader { display: none; }
  .player-layout { padding-top: 10px; }
  .comment-form { flex-direction: column; }

  /* app-style bottom nav */
  .mobile-nav { display: grid; }
  body { padding-bottom: 74px; }
  .ad-mobile { display: flex; }

  /* compact header */
  .header-inner { gap: 10px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo__mark { width: 29px; height: 29px; font-size: 13px; border-radius: 6px; }
  .header-actions { gap: 7px; }
  .header-actions .btn { padding: 9px 14px; font-size: 13px; }
  .header-actions .btn-primary {
    border-radius: 999px;
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
  }
  .nav-toggle { width: 36px; height: 36px; }

  /* category chips bigger touch targets */
  .chip { padding: 8px 14px; font-size: 13px; }

  /* filter bar scroll */
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar .tab { white-space: nowrap; }
  .filter-bar select { margin-left: 0; position: sticky; right: 0; }

  /* pagination & prose */
  .pagination button { min-width: 38px; height: 38px; }
  .prose { padding-top: 26px; }
  .prose h1 { font-size: 24px; }

  /* auth page */
  .auth-card { padding: 28px 20px; }
  .auth-page { padding: 24px 14px; }

  /* shorts: full-screen feel */
  .shorts-page { padding-top: 10px; }
  .shorts-feed { border-radius: 8px; height: calc(100vh - var(--header-h) - 170px); }
  .short-art { height: 100%; border-radius: 8px; }
  .short-rail__btn { min-width: 56px; padding: 9px 9px; border-radius: 8px; }

  /* upload */
  .upload-page { padding-top: 22px; }
  .upload-card { padding: 20px 16px; }
  .drop-zone { padding: 28px 14px; }
}

@media (max-width: 380px) {
  .header-actions .btn-primary { height: 34px; padding: 0 13px; font-size: 13.5px; }
  .logo__text { font-size: 15px; }
  .video-grid { gap: 12px 8px; }
}

/* =========================================================
   Modern UX polish — fast, app-like, pro-level
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  text-rendering: optimizeSpeed;
}
a, button, .video-card, .chip, .tab { -webkit-tap-highlight-color: transparent; }

/* press feedback (feels native on touch) */
.video-card:active .thumb { transform: scale(.97); transition: transform .08s; }
.btn:active, .pill-btn:active, .chip:active { transform: scale(.96); transition: transform .08s; }
.mobile-nav a:active { opacity: .6; }

/* smooth hover lift only on pointer devices (skip on phones) */
@media (hover: hover) and (pointer: fine) {
  .video-card:hover .thumb { transform: translateY(-3px); }
}

/* fast rendering: skip painting off-screen sections until near viewport */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 420px; }

/* bottom nav active indicator */
.mobile-nav a.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

/* respect user motion settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
