:root {
  --navy: #101c3a;
  --navy-light: #192b52;
  --blue: #315cf5;
  --blue-light: #edf2ff;
  --yellow: #ffd43b;
  --green: #16a765;
  --background: #f5f7fb;
  --white: #ffffff;
  --text: #172033;
  --muted: #7b8498;
  --border: #e9edf4;
  --shadow: 0 8px 30px rgba(20, 35, 70, .06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--background);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input {
  font: inherit;
}

.header {
  height: 78px;
  background: var(--navy);
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 5px 25px rgba(0,0,0,.12);
}

.logo {
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  flex-shrink: 0;
}

.logo span {
  color: var(--yellow);
}

.logo small {
  display: block;
  color: #aebbd6;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 6px;
}

.header-search {
  display: flex;
  align-items: center;
  background: white;
  height: 45px;
  border-radius: 9px;
  max-width: 570px;
  width: 100%;
  overflow: hidden;
}

.header-search span {
  padding: 0 13px;
  color: #667085;
  font-size: 25px;
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
}

.header-search button {
  height: 100%;
  padding: 0 20px;
  border: none;
  background: var(--blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  white-space: nowrap;
}

.header-link {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.account-btn {
  background: rgba(255,255,255,.1);
  color: white;
  padding: 11px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.publish-btn {
  background: var(--yellow);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.navigation {
  height: 54px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 20px;
}

.navigation a {
  height: 100%;
  display: flex;
  align-items: center;
  color: #677187;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

.navigation a:hover,
.navigation a.active {
  color: var(--blue);
}

.navigation a.active::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--blue);
  bottom: 0;
  left: 0;
  border-radius: 5px;
}

.main-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 40px 25px 70px;
}

.section {
  margin-top: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.section-subtitle {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  margin-bottom: 7px;
}

.section-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.7px;
}

.see-all {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .25s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(20,35,70,.1);
}

.video-media {
  height: 235px;
  position: relative;
  background: #e9edf4;
}

.video-media img,
.video-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-details {
  padding: 17px;
}

.seller-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.seller-avatar {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.blue {
  background: linear-gradient(135deg, #315cf5, #8b5cf6);
}

.orange {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.green {
  background: linear-gradient(135deg, #059669, #10b981);
}

.seller-line strong {
  display: block;
  font-size: 12px;
}

.seller-line small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.video-details h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  margin-bottom: 8px;
}

.video-details p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  min-height: 40px;
}

.video-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 15px;
  padding-top: 14px;
}

.video-bottom strong {
  font-size: 13px;
  color: var(--navy);
}

.video-bottom del {
  color: var(--muted);
  font-size: 11px;
}

.video-bottom a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.promotion-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
}

.footer {
  background: #0d1730;
  color: rgba(255,255,255,.8);
  padding: 42px 6% 28px;
  margin-top: 60px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
}

.footer-brand p {
  margin: 18px 0 0;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h4 {
  margin: 0 0 8px;
  color: white;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-column a {
  color: rgba(255,255,255,.72);
  font-size: 0.95rem;
  transition: opacity .2s ease;
}

.footer-column a:hover {
  opacity: 1;
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 26px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.mobile-nav {
  display: none;
}

@media (max-width: 920px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 18px 20px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .header-search {
    width: 100%;
    max-width: none;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: flex;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-around;
    padding: 0 4px env(safe-area-inset-bottom);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border);
  }

  .mobile-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 0;
    color: #8993a6;
    font-size: clamp(8px, 2.4vw, 10px);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-nav a span {
    display: block;
    margin-bottom: 4px;
    font-size: 22px;
  }

  .mobile-nav .mobile-active {
    color: var(--blue);
  }

  .mobile-nav .mobile-publish span {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    margin: -18px auto 4px;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    font-size: 25px;
    box-shadow: 0 5px 15px rgba(49, 92, 245, .3);
  }
}
