@font-face {
  font-family: 'Bangers';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Bangers-Regular.ttf') format('truetype');
}

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

:root {
  --bg: #170f0a;
  --surface: #241811;
  --text: #f2ead9;
  --muted: #b9a58e;
  --accent: #f0a83c;
  --ketchup: #d84130;
  --border: rgba(240,168,60,0.16);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* The banner itself lives on a truly `position: fixed` element pinned to the
   viewport, rather than `background-attachment: fixed` on body — most mobile
   browsers ignore that property and fall back to `scroll`, which sizes
   `cover` against the tall scrollable page instead of the viewport and
   produces a heavily zoomed-in, scrolling background. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('img/banner.jpg');
  background-size: cover;
  background-position: center top;
  transform: scale(1.15);
  z-index: -2;
}

/* dim the background — fully clear for top 150px, then a moderate dark overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23,15,10,0.6) 0px,
    rgba(23,15,10,0.6) 150px,
    rgba(23,15,10,0.25) 320px,
    rgba(23,15,10,0) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* ── Page header ── */
.page-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 32px;
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(240,168,60,0.85), 0 8px 32px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  transform: rotate(-30deg);
}

/* Header logo as a "home" link back to the landing page. */
.logo-home {
  display: inline-block;
  border-radius: 50%;
  transition: transform 0.2s;
}

.logo-home:hover {
  transform: scale(1.03);
}

.logo-home:focus-visible {
  outline: 3px solid rgba(240,168,60,0.85);
  outline-offset: 4px;
}

/* ── Language bar ── */
.lang-bar {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.lang-link,
.lang-current {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.lang-link {
  color: rgba(242,234,217,0.75);
  text-decoration: none;
  border: 1px solid rgba(240,168,60,0.3);
  transition: all 0.2s;
  background: rgba(23,15,10,0.4);
}

.lang-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(23,15,10,0.6);
}

.lang-current {
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
}

/* ── Main content ── */
.content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section-title {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 28px;
  margin-top: -8px;
  transform: rotate(-1deg);
}

/* ── Video list ── */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-card {
  display: flex;
  gap: 20px;
  background: rgba(36,24,17,0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240,168,60,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 220px;
}

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

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23,15,10,0.4);
  transition: background 0.2s;
}

.video-card:hover .play-btn {
  background: rgba(23,15,10,0.18);
}

.play-btn svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.video-meta {
  padding: 20px 20px 20px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.video-number {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.video-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.video-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Coming soon ── */
.coming-soon {
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-align: center;
  padding: 64px 0;
}

body.rtl .coming-soon {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── RTL support ── */
body.rtl {
  direction: rtl;
}

/* Bangers has no Hebrew glyphs — fall back to the body sans rather than
   let the browser pick a generic 'cursive' substitute. */
body.rtl .section-title,
body.rtl .video-number {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* the -1deg tilt reads as playful on the Bangers display font, but as a
   mistake on plain Hebrew text */
body.rtl .section-title {
  transform: none;
}

body.rtl .lang-bar {
  right: auto;
  left: 24px;
}

body.rtl .video-meta {
  padding: 20px 20px 20px 20px;
  padding-right: 4px;
}

/* ── Footer ── */
.page-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── Responsive ── */
@media (max-width: 620px) {
  .hero { height: 280px; }
  .logo { width: 96px; height: 96px; }
  .video-card { flex-direction: column; }
  .thumb-wrap { width: 100%; height: 180px; }
}
