:root {
  --black: #231f20;
  --red: #ed1c24;
  --white: #ffffff;
  --gray-100: #2c2928;
  --gray-200: #3a3633;
  --glass: rgba(0, 0, 0, 0.55);
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-xl: 24px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #303335 0, #181a1c 35%, #111214 65%, #101113 100%);
  color: var(--white);
  line-height: 1.6;
}

/* ---------- NAVBAR ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  display: flex;
  justify-content: center;
  background: transparent;
}

.navbar-inner {
  width: min(1200px, 100% - 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--glass));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 2px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-line-1 {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-center {
  gap: 28px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  font-weight: 500;
  padding-bottom: 4px;
}

.nav-link-active {
  color: var(--white);
}

.nav-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin-inline: auto;
  height: 2px;
  width: 0;
  background: var(--white);
  opacity: 0.8;
  transition: width 0.25s ease;
}

.nav-link:hover .nav-underline,
.nav-link-active .nav-underline {
  width: 100%;
}

.video-count-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- HERO ---------- */

.hero {
  display: flex;
  justify-content: center;
  padding: 80px 16px 56px;
}

.hero-inner {
  width: min(900px, 100%);
  text-align: left;
}

.hero-inner h1 {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-inner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.search-shell {
  position: relative;
  width: min(520px, 100%);
}

#searchInput {
  width: 100%;
  padding: 16px 44px 16px 18px;
  border-radius: 999px;
  border: 1px solid rgba(237, 28, 36, 0.35);          /* subtle red border always visible */
  background: rgba(22, 24, 27, 0.95);                  /* slightly lighter than before */
  color: var(--white);
  font-size: 0.98rem;
  outline: none;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.07),       /* soft outer glow at rest */
              0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#searchInput:focus {
  border-color: rgba(237, 28, 36, 0.75);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.18),       /* stronger glow on focus */
              0 4px 20px rgba(0, 0, 0, 0.5);
  background: rgba(20, 22, 25, 0.98);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.6;
}

/* ---------- FILTER BAR ---------- */

.filters-bar {
  display: flex;
  justify-content: center;
  padding: 0 16px 32px;
}

.filters-inner {
  width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filtered-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
}

.filters-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(16, 17, 19, 0.9);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.chip:hover {
  background: #292b2f;
  transform: translateY(-1px);
}

.chip.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---------- MAIN GRID ---------- */

.main-area {
  display: flex;
  justify-content: center;
  padding: 0 16px 80px;
}

.videos-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.85));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
  border-color: rgba(237, 28, 36, 0.5);
}

.video-thumbnail {
  position: relative;
  height: 190px;
  background: #18191b;
}

.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
}

.video-info {
  padding: 16px 18px 18px;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.duration-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(237, 28, 36, 0.18);
  color: var(--red);
}

/* Empty state */

.no-videos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- VIDEO MODAL ---------- */
/* 
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.video-modal-content {
  width: min(960px, 100%);
  background: #141517;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
  position: relative;
}

.video-modal-content video {
  width: 100%;
  max-height: 480px;
  background: #000;
}

.video-info-modal {
  margin-top: 12px;
  font-size: 0.95rem;
}

.close-video {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  cursor: pointer;
} */
/* ---------- VIDEO MODAL ---------- */
/* ---------- VIDEO MODAL ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.video-modal-content {
  width: min(960px, 100%);
  max-height: 90vh;
  background: #141517;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.95);
  padding: 80px 24px 24px; /* Top space for header */
  overflow-y: auto;
  position: relative;
}

.modal-header {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(20, 21, 23, 0.98), transparent);
  padding: 12px 0;
  backdrop-filter: blur(20px);
}

.back-btn {
  background: rgba(237, 28, 36, 0.95);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(237, 28, 36, 0.3);
}

.back-btn:hover {
  background: var(--red);
  transform: translateX(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(237, 28, 36, 0.5);
}

.close-video {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.close-video:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.15) rotate(90deg);
}

.video-modal-content video {
  width: 100%;
  max-height: 65vh;
  height: auto;
  background: #000;
  display: block;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-info-modal {
  padding: 0;
  background: transparent;
}

.video-info-modal h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), rgba(255,255,255,0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.video-info-modal p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 12px 0;
}


/* ---------- CONTACT PAGE ---------- */

.contact-main {
  display: flex;
  justify-content: center;
  padding: 80px 16px 80px;
}

.contact-panel {
  width: min(640px, 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.88));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  padding: 32px 28px 32px;
}

.contact-panel h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.contact-panel p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.field-group input,
.field-group select,
.field-group textarea {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(17, 18, 20, 0.95);
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(237, 28, 36, 0.7);
}

.primary-btn {
  border-radius: 999px;
  border: none;
  padding: 12px 22px;
  font-size: 0.96rem;
  font-weight: 600;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  align-self: flex-start;
}

.contact-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 20px 24px;
  background: rgba(0, 0, 0, 0.85);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .navbar-inner {
    padding-inline: 18px;
    gap: 10px;
  }

  .nav-center {
    display: none;
  }

  .hero-inner {
    text-align: left;
  }

  .filters-inner {
    gap: 10px;
  }

  .filters-right {
    overflow-x: auto;
  }

  .filters-right::-webkit-scrollbar {
    height: 4px;
  }

  .filters-right::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.7);
    border-radius: 999px;
  }

  .contact-panel {
    padding-inline: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

