@font-face {
  font-family: "BNazanin";
  src: url("fonts/BNazanin.woff2") format("woff2");
}

/* ===== Base ===== */
body {
  margin: 0;
  font-family: BNazanin, sans-serif;
  padding-bottom: 100px;

  background-image: 
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("images/bg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.main-title {
  margin-bottom: 30px;
}

.title-line-1 {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.title-line-2 {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ff0000;
}

/* ===== Search ===== */
.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#searchInput {
  width: 65%;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: #fff;
}

#searchBtn {
  padding: 0 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  background: rgba(255,255,255,0.35);
}

/* ===== Videos ===== */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 30px;
}

.video-card {
  background: rgba(255, 255, 255, 0.224);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.video-card img {
  width: 100%;
  display: block;
}

.video-info {
  padding: 12px;
  text-align: center;
}

.video-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #00ff08;
}

.video-note {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ff0000;
}

/* ===== Highlight ===== */
.video-card.highlight {
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.6),
    0 0 25px rgba(180, 0, 0, 0.8),
    0 0 45px rgba(120, 0, 0, 0.9);
  transform: scale(1.05);
  border: 1px solid rgba(255, 0, 0, 0.6);
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 60px;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.footer-card {
  text-decoration: none;
  padding: 18px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.35s ease;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0 12px rgba(255, 0, 0, 0.4),
    0 0 30px rgba(120, 0, 0, 0.6);
}

.footer-title {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-text {
  color: #ff0000;
  font-size: 1.2rem;
  font-weight: 600;
  word-break: break-all;
}
