:root {
  --bg: #0f0f10;
  --surface: #1a1a1d;
  --surface-soft: #242428;
  --text: #f4f4f4;
  --muted: #b7b7b7;
  --accent: #ff7a00;
  --accent-soft: #ff9b3d;
  --danger: #ff4d4d;
  --ok: #40c057;
  --border: #33333a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.brand {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 1.4rem;
}

.sub {
  margin: 0 0 14px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  padding: 12px;
  font-size: 1rem;
}

button {
  background: var(--accent);
  border: none;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.help-row {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.help-row a {
  color: var(--accent-soft);
}

.captcha-line {
  display: flex;
  gap: 8px;
}

.captcha-box {
  min-width: 110px;
  border-radius: 10px;
  border: 1px dashed var(--accent);
  background: #2d1f12;
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  padding: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--ok);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0f0f10f0;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  backdrop-filter: blur(4px);
}

.menu-btn {
  width: auto;
  padding: 8px 12px;
}

.layout {
  display: flex;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: #00000099;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 29;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: 0.2s;
  z-index: 30;
  padding: 14px;
  overflow-y: auto;
}

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

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-title {
  color: var(--accent);
  margin: 4px 0 12px;
  font-weight: 700;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: block;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.nav-item.active {
  border-color: var(--accent);
}

.divider {
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.content {
  width: 100%;
  padding: 14px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.video-list {
  display: grid;
  gap: 10px;
}

.video-item {
  position: relative;
  background: linear-gradient(120deg, #171717, #262626);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 160px;
  padding: 12px;
  overflow: hidden;
}

.video-thumb {
  position: relative;
  height: 92px;
  border-radius: 10px;
  border: 1px solid #ffffff14;
  margin-bottom: 10px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #222327, #151519);
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: -8px;
  filter: blur(16px) saturate(0.9) contrast(0.85);
  background:
    var(--thumb-image),
    radial-gradient(ellipse 42px 58px at 20% 52%, #3b3c41 0%, #1d1e22 55%, transparent 56%),
    radial-gradient(ellipse 26px 26px at 20% 28%, #555860 0%, #30333a 68%, transparent 69%),
    radial-gradient(ellipse 36px 52px at 72% 58%, #4a3f38 0%, #262224 58%, transparent 59%),
    radial-gradient(ellipse 24px 24px at 72% 30%, #6a5950 0%, #3a302f 68%, transparent 69%),
    linear-gradient(120deg, #2f3138, #17181c);
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #00000075 0%, #000000c2 100%),
    repeating-linear-gradient(
      45deg,
      #00000026 0px,
      #00000026 6px,
      #00000000 6px,
      #00000000 12px
    );
}

.video-thumb::selection {
  background: transparent;
}

.video-item .video-thumb .person-a,
.video-item .video-thumb .person-b {
  display: none;
}

.video-item:nth-child(3n) .video-thumb::before {
  background:
    radial-gradient(ellipse 40px 56px at 30% 58%, #2f3944 0%, #1a2128 56%, transparent 57%),
    radial-gradient(ellipse 24px 24px at 30% 31%, #566577 0%, #2d3640 68%, transparent 69%),
    radial-gradient(ellipse 34px 48px at 78% 57%, #574438 0%, #2e2521 57%, transparent 58%),
    radial-gradient(ellipse 22px 22px at 78% 31%, #7a5f4d 0%, #44372e 68%, transparent 69%),
    linear-gradient(130deg, #2f343c, #15171a);
}

.video-item:nth-child(4n) .video-thumb::before {
  background:
    radial-gradient(ellipse 44px 60px at 22% 60%, #3d3244 0%, #211b28 57%, transparent 58%),
    radial-gradient(ellipse 24px 24px at 22% 30%, #66557a 0%, #3a3046 68%, transparent 69%),
    radial-gradient(ellipse 36px 52px at 70% 59%, #3b4b3e 0%, #212a22 58%, transparent 59%),
    radial-gradient(ellipse 22px 22px at 70% 31%, #5e7a62 0%, #334536 68%, transparent 69%),
    linear-gradient(120deg, #2b2f35, #131519);
}

.video-item.mood-a .video-thumb::before {
  background:
    var(--thumb-image),
    radial-gradient(ellipse 42px 58px at 22% 55%, #41474e 0%, #23282f 56%, transparent 57%),
    radial-gradient(ellipse 24px 24px at 22% 30%, #6b7887 0%, #38404a 68%, transparent 69%),
    radial-gradient(ellipse 38px 54px at 74% 58%, #5b4a42 0%, #2f2825 58%, transparent 59%),
    radial-gradient(ellipse 24px 24px at 74% 31%, #836a5c 0%, #463a33 68%, transparent 69%),
    linear-gradient(130deg, #323740, #171a1e);
}

.video-item.mood-b .video-thumb::before {
  background:
    var(--thumb-image),
    radial-gradient(ellipse 44px 60px at 20% 59%, #46384d 0%, #271f2d 57%, transparent 58%),
    radial-gradient(ellipse 24px 24px at 20% 31%, #715f7c 0%, #403548 68%, transparent 69%),
    radial-gradient(ellipse 36px 52px at 72% 57%, #3d4d40 0%, #232d24 58%, transparent 59%),
    radial-gradient(ellipse 22px 22px at 72% 30%, #5f7a64 0%, #36463a 68%, transparent 69%),
    linear-gradient(120deg, #2f3338, #15181b);
}

.video-item.mood-c .video-thumb::before {
  background:
    var(--thumb-image),
    radial-gradient(ellipse 40px 56px at 24% 57%, #4a3935 0%, #2a201e 56%, transparent 57%),
    radial-gradient(ellipse 22px 22px at 24% 30%, #755f53 0%, #43362f 68%, transparent 69%),
    radial-gradient(ellipse 40px 56px at 70% 58%, #304553 0%, #1d2a33 58%, transparent 59%),
    radial-gradient(ellipse 24px 24px at 70% 30%, #4f6f84 0%, #2f4554 68%, transparent 69%),
    linear-gradient(135deg, #2d333b, #13171b);
}

.video-item.mood-d .video-thumb::before {
  background:
    var(--thumb-image),
    radial-gradient(ellipse 44px 60px at 28% 58%, #3c4958 0%, #1f2833 57%, transparent 58%),
    radial-gradient(ellipse 24px 24px at 28% 30%, #60758e 0%, #334455 68%, transparent 69%),
    radial-gradient(ellipse 34px 50px at 76% 58%, #61463b 0%, #342721 58%, transparent 59%),
    radial-gradient(ellipse 22px 22px at 76% 30%, #8d6757 0%, #4f3b31 68%, transparent 69%),
    linear-gradient(120deg, #2f343b, #161a1f);
}

.video-item.mood-e .video-thumb::before {
  background:
    var(--thumb-image),
    radial-gradient(ellipse 42px 58px at 24% 58%, #4a4040 0%, #2a2323 56%, transparent 57%),
    radial-gradient(ellipse 22px 22px at 24% 29%, #766565 0%, #443a3a 68%, transparent 69%),
    radial-gradient(ellipse 34px 50px at 68% 58%, #3c4a3f 0%, #222b24 58%, transparent 59%),
    radial-gradient(ellipse 22px 22px at 68% 30%, #607864 0%, #37443a 68%, transparent 69%),
    linear-gradient(130deg, #31363a, #15181b);
}

.video-item.mood-f .video-thumb::before {
  background:
    var(--thumb-image),
    radial-gradient(ellipse 42px 58px at 21% 58%, #3d3e4f 0%, #222331 56%, transparent 57%),
    radial-gradient(ellipse 22px 22px at 21% 30%, #63657c 0%, #383b4a 68%, transparent 69%),
    radial-gradient(ellipse 38px 54px at 76% 58%, #4e3d4a 0%, #2d2430 58%, transparent 59%),
    radial-gradient(ellipse 24px 24px at 76% 30%, #775d74 0%, #443642 68%, transparent 69%),
    linear-gradient(125deg, #2f313d, #151722);
}

.video-item.detailed .video-thumb {
  height: 106px;
}

.video-item.detailed .video-thumb::before {
  filter: blur(12px) saturate(0.95) contrast(0.88);
}

.video-item.detailed .video-thumb::after {
  background:
    linear-gradient(180deg, #00000012 0%, #00000074 100%),
    repeating-linear-gradient(
      0deg,
      #ffffff08 0px,
      #ffffff08 1px,
      #00000000 2px,
      #00000000 4px
    );
}

.video-item.detailed .play-btn {
  width: 50px;
  height: 50px;
  border-color: #ffffff57;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #000000a8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  border: 1px solid #ffffff3a;
}

.thumb-loading {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #00000080;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffffff33;
  border-top: 2px solid var(--accent);
  animation: spin 1s linear infinite;
}

.video-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.locked::after {
  content: "Tier 6 locked - pay to unlock";
  position: absolute;
  inset: 0;
  background: #000000cc;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
  font-weight: 700;
}

.price-grid {
  display: grid;
  gap: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.ads-card h3 {
  color: var(--accent-soft);
}

.ads-card {
  background: transparent;
  border: none;
  padding: 0;
  margin: 8px 0;
}

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

.ad-grid-auth {
  margin-bottom: 12px;
}

.ad-grid .adsbygoogle,
.ad-grid-auth .adsbygoogle,
.sidebar-ad-stack .adsbygoogle {
  background: transparent;
  border: none;
  border-radius: 0;
  min-height: 110px;
}

.auth-wrap .adsbygoogle {
  pointer-events: none;
}

.sidebar-ad-stack {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.global-ad-bars {
  pointer-events: none;
}

.global-ad-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 60;
  pointer-events: none;
  padding: 4px 8px;
}

.global-ad-bar.bottom {
  bottom: 0;
}

.global-ad-bar .adsbygoogle {
  display: block;
  min-height: 52px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.pay-highlight {
  margin: 10px 0 14px;
  border: 1px solid #ff7a00;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b1d10, #1d1713);
  padding: 12px;
}

.pay-label {
  color: #ff9b3d;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.pay-address {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffd7b2;
  margin-bottom: 4px;
  word-break: break-all;
}

body {
  padding-bottom: 62px;
}

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

@media (min-width: 900px) {
  .menu-btn,
  .sidebar-overlay {
    display: none;
  }

  .sidebar {
    transform: translateX(0);
    position: sticky;
    top: 0;
    width: 280px;
  }

  .content {
    padding: 20px;
  }

  .ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
