/* fonts */
@font-face {
  font-family: "movify";
  src: url(/Home/ElegantBloom.otf);
}

@font-face {
  font-family: "myfont";
  src: url(/Home/atwriter.ttf);
}

/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

/* ====== custom cursor ====== */
.circle-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #ff6801;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 108, 1, 0.6), 0 0 20px rgba(255, 108, 1, 0.3);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 108, 1, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
}

.circle-cursor.hover {
  transform: translate(-50%, -50%) scale(0);
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: #ff6801;
  background: rgba(255, 108, 1, 0.08);
}

.cursor-text {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  color: #fff;
  font-size: 10px;
  font-family: "myfont";
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 8px rgba(255, 108, 1, 0.8);
}

.cursor-text.active {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: "myfont";
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* subtle ambient glow */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 0%, rgba(255,108,1,0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ====== NAVBAR ====== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,108,1,0.4);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 50px;
}

.Movify {
  font-size: 48px;
  font-family: "movify";
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff6801 0%, #F6C324 20%, #fff 40%, #F6C324 60%, #ff6801 80%, #F6C324 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shinyLogo 3s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 108, 1, 0.5));
}

@keyframes shinyLogo {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.links a {
  color: #999;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  text-transform: uppercase;
  font-weight: 500;
}

.links a:hover,
.links a.active {
  color: #ff6801;
}

/* search */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  width: 280px;
}

.search-box:focus-within {
  border-color: #ff6801;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 20px rgba(255,108,1,0.15);
}

.search-icon {
  color: #888;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: "myfont";
  width: 100%;
}

.search-box input::placeholder {
  color: #666;
}

/* ====== SECTIONS ====== */
.main-content,
#mainContent,
.search-results {
  padding-top: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  margin-top: 50px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 28px;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-weight: normal;
}

/* scroll arrows */
.scroll-nav {
  display: flex;
  gap: 8px;
}

.scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background: linear-gradient(319deg, #ffb347 0%, #ff6801 37%, #F6C324 100%);
  border-color: #ff6801;
}

/* ====== MOVIE ROW ====== */
.movie-row {
  padding: 10px 60px 30px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

/* ====== MOVIE CARD ====== */
.movie-card {
  flex: 0 0 200px;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
}

.movie-card img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  display: block;
}

.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  pointer-events: none;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px;
  z-index: 2;
}

.card-title {
  display: block;
  font-size: 14px;
  color: #fff;
  line-height: 1.3;
}

.card-badge {
  display: inline-block;
  background: linear-gradient(319deg, #ffb347 0%, #ff6801 37%, #F6C324 100%);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.movie-card:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 12px 40px rgba(255,108,1,0.25);
}

/* ====== TOP 10 ====== */
.top10-section {
  padding: 10px 60px 30px;
}

.top10-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top10-row::-webkit-scrollbar {
  display: none;
}

.top10-card {
  flex: 0 0 200px;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
}

.top10-card img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  display: block;
}

.top10-card .rank {
  position: absolute;
  top: -8px;
  left: -5px;
  font-size: 90px;
  font-weight: bold;
  color: #ff6801;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
  z-index: 5;
  line-height: 1;
  font-family: "movify";
  -webkit-text-stroke: 2px rgba(0,0,0,0.5);
}

.top10-card:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 12px 40px rgba(255,108,1,0.25);
}

/* ====== SEARCH RESULTS ====== */
.search-results {
  padding: 90px 60px 20px;
  display: none;
}

.search-results.active {
  display: block;
}

.no-results {
  text-align: center;
  font-size: 24px;
  color: #555;
  padding: 80px 0;
  display: none;
}

.no-results.active {
  display: block;
}

/* ====== FOOTER ====== */
.footer {
  margin-top: 80px;
  border-top: 1px solid rgba(255,108,1,0.3);
  background: #080808;
}

.footer-content {
  padding: 50px 60px 30px;
  text-align: center;
}

.footer-brand {
  font-family: "movify";
  font-size: 36px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ff6801 0%, #F6C324 20%, #fff 40%, #F6C324 60%, #ff6801 80%, #F6C324 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shinyLogo 3s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 108, 1, 0.5));
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

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

.footer-bottom {
  color: #ff6801;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }

  .nav-left {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .Movify {
    font-size: 36px;
  }

  .links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .links a {
    font-size: 14px;
  }

  .search-box {
    width: 100%;
  }

  .section-header {
    padding: 0 20px;
    margin-top: 30px;
  }

  .section-title {
    font-size: 22px;
  }

  .movie-row {
    padding: 10px 20px 30px;
    gap: 14px;
  }

  .movie-card {
    flex: 0 0 150px;
  }

  .movie-card img {
    width: 150px;
    height: 225px;
  }

  .top10-section {
    padding: 10px 20px 30px;
  }

  .top10-row {
    gap: 14px;
  }

  .top10-card {
    flex: 0 0 150px;
  }

  .top10-card img {
    width: 150px;
    height: 225px;
  }

  .top10-card .rank {
    font-size: 60px;
  }

  .scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .search-results {
    padding: 90px 20px 20px;
  }

  .footer-content {
    padding: 30px 20px 20px;
  }

  .footer-brand {
    font-size: 28px;
  }

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