/* ===== Base ===== */
* {
  box-sizing: border-box;
}

:root {
  --black: #080808;
  --white: #f7f7f7;
  --red: #ff3535;
  --orange: #ff8a24;
  --green: #2dcc78;
  --muted: #a7a7ad;
  --page-text: #f7f7f7;
  --scroll-background: rgb(8, 8, 8);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--page-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #080808;
  transition: background-color 0.15s linear;
}

/* Apply the changing background to the whole page */
html {
  background-color: var(--scroll-background);
}

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

/* ===== Header / menu ===== */
.topbar {
  width: min(1120px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid
    color-mix(in srgb, var(--page-text) 18%, transparent);
  position: relative;
  z-index: 10;
}

.brand {
  color: var(--page-text);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -.065em;
}

.menu-button {
  order: 2;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.menu {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}

.menu a,
.footer-links a {
  color: var(--page-text);
  font-size: .9rem;
  transition: color .2s ease;
}

.menu a:hover,
.footer-links a:hover {
  color: var(--orange);
}

/* ===== Main content ===== */
.container {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

.featured {
  padding: 52px 0 38px;
}

.eyebrow {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -.065em;
  line-height: 1;
  margin: 21px 0 29px;
}

h1 span {
  color: var(--page-text);
}

.hero-video {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 19px;
  overflow: hidden;
  background: #191919;
  box-shadow: 0 20px 55px rgba(0,0,0,.28);
}

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

.hero-video:hover img {
  transform: scale(1.015);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  color: #fff;
  font-size: clamp(3.3rem, 8vw, 5.5rem);
  line-height: 1;
  text-shadow: 0 4px 22px rgba(0,0,0,.7);
}

.hero-badge {
  position: absolute;
  left: 17px;
  bottom: 17px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(0,0,0,.62);
  border-radius: 8px;
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px 0;
}

.hero-meta h2 {
  color: var(--page-text);
  margin: 0 0 7px;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  letter-spacing: -.035em;
}

.hero-meta p {
  color: var(--page-text);
  margin: 0;
  font-size: .87rem;
}

.hero-meta strong,
.row-info strong {
  color: var(--red);
  font-weight: 800;
}

.duration,
.row-duration {
  font-variant-numeric: tabular-nums;
  font-size: .77rem;
  color: #fff;
  background: #282828;
  padding: 6px 9px;
  border-radius: 7px;
  flex-shrink: 0;
}

/* ===== Video list ===== */
.more-videos {
  padding: 35px 0 48px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -.05em;
  margin: 10px 0 0;
}

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

/* White video cards */
.video-row {
  display: grid;
  grid-template-columns: minmax(130px, 25%) minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  background: linear-gradient(
    120deg,
    #fff 0%,
    #f2f2f2 70%,
    #ffe8dc 100%
  );
  border-left: 5px solid var(--red);
  transition:
    transform .18s ease,
    border-color .18s ease;
}

.video-row:hover {
  transform: translateY(-2px);
  border-color: rgba(45,204,120,.65);
  background: #ffffff;
}

.row-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: #242424;
  position: relative;
}

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

.mini-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  color: white;
  font-size: 1.6rem;
  text-shadow: 0 2px 8px #000;
}

.row-info {
  min-width: 0;
}

/* Video titles permanently black */
.row-info h3 {
  color: #151515;
  margin: 0 0 7px;
  font-size: clamp(.96rem, 2.4vw, 1.15rem);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

/* Author name */
.row-info p {
  color: #666666;
  margin: 0 0 8px;
  font-size: .8rem;
}

.category-tag {
  display: inline-block;
  color: #B600FF;
  background: transparent;
  font-size: .68rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .09em;
  padding: 0;
  border-radius: 0;
}

.row-bottom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-duration {
  display: inline-block;
  padding: 4px 7px;
  font-size: .7rem;
}

/* ===== About section ===== */
/* Original design preserved */
.about {
  margin: 20px 0 72px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 20px;
  color: #151515;
  background: linear-gradient(
    120deg,
    #fff 0%,
    #f2f2f2 70%,
    #ffe8dc 100%
  );
  border-left: 5px solid var(--red);
}

.about .eyebrow {
  color: #666;
}

.about h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -.055em;
  margin: 12px 0;
}

.about h2 span {
  color: var(--red);
}

.about-copy p:not(.eyebrow) {
  color: #555;
  line-height: 1.75;
  font-size: .94rem;
  margin: 0 0 20px;
  max-width: 680px;
}

.about-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  background: var(--red);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  border-radius: 9px;
  transition: background .2s ease, transform .2s ease;
}

.about-button:hover {
  background: #d91f2b;
  transform: translateY(-1px);
}

.about-button span {
  font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
  padding: 34px max(24px, calc((100% - 1120px) / 2)) 20px;
  background: #070707;
  color: #f7f7f7;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding-bottom: 25px;
  text-align: center;
}

.footer-content {
  width: 100%;
  text-align: center;
}

.footer .brand {
  color: #f7f7f7;
  display: inline-block;
}

.footer-top p {
  color: #8e8e98;
  font-size: .85rem;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d0d0d0;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #777781;
  font-size: .78rem;
  text-align: center;
}

.footer-bottom b {
  color: var(--green);
}

/* ===== Phone layout ===== */
@media (max-width: 600px) {
  .topbar {
    width: calc(100% - 32px);
    height: 72px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .menu {
    display: none;
    position: absolute;
    right: 0;
    top: 61px;
    margin: 0;
    width: 175px;
    padding: 8px;
    border: 1px solid #34343a;
    border-radius: 13px;
    background: #15151a;
    box-shadow: 0 15px 35px rgba(0,0,0,.4);
    flex-direction: column;
    gap: 0;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 12px;
    border-radius: 8px;
  }

  .menu a:hover {
    background: #25252b;
  }

  .featured {
    padding-top: 39px;
  }

  .hero-video {
    border-radius: 13px;
  }

  .hero-badge {
    left: 10px;
    bottom: 10px;
    font-size: .54rem;
    padding: 6px 8px;
  }

  .video-row {
    grid-template-columns: minmax(112px, 35%) minmax(0, 1fr);
    gap: 11px;
    padding: 8px;
    border-radius: 11px;
  }

  .row-info h3 {
    font-size: .91rem;
    line-height: 1.25;
  }

  .row-info p {
    font-size: .74rem;
    margin-bottom: 8px;
  }

  .category-tag {
    font-size: .62rem;
  }

  .about {
    margin-bottom: 48px;
    border-radius: 15px;
  }

  .footer {
    padding: 28px 16px 18px;
  }

  .footer-top {
    align-items: center;
    flex-direction: column;
  }

  .footer-content {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

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