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

:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #181818;
  --surface-soft: #1f1f1f;
  --surface-strong: #252525;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.16), transparent 28%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

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

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

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.hero-shell,
.content-shell,
footer {
  position: relative;
  z-index: 1;
}

.hero-shell {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

.hero-shell-compact {
  margin-bottom: 20px;
}

.telegram-promo,
.watch-panel,
.video-card,
.ad-slot,
.section-heading {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.telegram-promo {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
}

.telegram-kicker,
.section-kicker,
.ad-label,
.lock-badge {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #86efac;
}

.telegram-promo h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 10px 0 18px;
}

.primary-button,
.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04110a;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-button {
  min-height: 50px;
  padding: 0 24px;
}

.watch-button {
  min-height: 44px;
  padding: 0 18px;
  width: fit-content;
}

.primary-button:hover,
.watch-button:hover,
.video-card:hover {
  transform: translateY(-2px);
}

.primary-button:hover,
.watch-button:hover {
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.25);
}

.ad-slot {
  border-radius: var(--radius-md);
  padding: 18px;
  background-color: var(--surface);
}

.ad-slot strong {
  display: block;
  font-size: 1rem;
  margin: 8px 0 6px;
}

.ad-slot p,
.section-copy,
.card-body,
.player-lock-overlay p,
.text-link {
  color: var(--muted);
}

.ad-slot-banner {
  text-align: center;
  min-height: 114px;
  display: grid;
  place-items: center;
}

.ad-slot-inline {
  min-height: 100px;
}

.ad-slot-bottom {
  margin-top: 28px;
}

.side-ad {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  z-index: 0;
}

.side-ad-left {
  left: 16px;
}

.side-ad-right {
  right: 16px;
}

.ad-slot-side {
  min-height: 320px;
  text-align: center;
  display: grid;
  align-content: center;
}

.section-heading {
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
  display: grid;
  gap: 12px;
}

.section-heading h2,
.watch-title {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.video-grid {
  display: grid;
  gap: 22px;
}

.video-stack {
  display: grid;
  gap: 14px;
}

.video-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.42);
}

.thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-strong);
}

.thumbnail-image,
.player-poster,
.video-embed-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-image {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-card:hover .thumbnail-image {
  transform: scale(1.04);
  opacity: 0.78;
}

.thumbnail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.play-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.card-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.video-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.watch-layout {
  display: grid;
}

.watch-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.text-link {
  display: inline-block;
  margin-bottom: 14px;
}

.player-shell {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--border);
}

.player-shell.is-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.player-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.player-lock-overlay .primary-button {
  margin: 0 auto;
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.player-skeleton,
.player-skeleton-line {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.player-skeleton::after,
.player-skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: shimmer 1.4s infinite;
}

.player-skeleton {
  height: clamp(160px, 42vw, 320px);
  border-radius: 18px;
}

.player-skeleton-line {
  height: 14px;
  width: 55%;
  border-radius: 999px;
}

.player-skeleton-line-wide {
  width: 72%;
}

.video-embed-frame {
  border: 0;
  background: #000;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-loading.is-hidden {
  display: none;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.ad-slot-extra-banner {
  border-radius: var(--radius-md);
  padding: 18px;
  background-color: var(--surface);
  text-align: center;
  min-height: 90px;
  margin: 28px 0;
  display: grid;
  place-items: center;
}

.ad-slot-mobile-banner {
  display: block;
  border-radius: var(--radius-md);
  padding: 18px;
  background-color: var(--surface);
  text-align: center;
  min-height: 80px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .ad-slot-mobile-banner {
    display: none;
  }

  .page-shell {
    padding: 32px 24px 60px;
  }

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

  .section-heading {
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
  }
}

@media (min-width: 1100px) {
  .page-shell {
    padding-inline: 24px;
  }

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

  .side-ad {
    display: block;
  }
}
