* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  overflow-x: hidden;
}

.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(2px);
  color: #fff;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-form {
  position: fixed;
  top: 0;
  right: -82%;
  width: 82%;
  height: 93%;
  padding: 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 13000;
}

.filter-form.active {
  right: -5px;
  opacity: 1;
}

.filter-form input,
.filter-form select,
.filter-form button {
  cursor: pointer;
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: 5px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, transform 0.15s ease;
}

.filter-form select:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #1a1a1a;
}

.filter-form button {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-weight: 800;
}

.filter-form button:hover {
  transform: scale(1.02);
}

.filter-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #00c6ff 50%),
    linear-gradient(135deg, #00c6ff 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 4px),
    calc(100% - 15px) calc(50% - 4px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

#videoFeed {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: 6px;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

/* 🌗 Light mode */
@media (prefers-color-scheme: light) {
  .video-placeholder {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  }
}

.info {
  position: absolute;
  bottom: 12%;
  left: 16px;
  right: 16px;
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.info a {
  text-decoration: none;
  color: #00bfff;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.info a:hover {
  color: #33ccff;
}

.desc-text {
  margin-top: 6px;
  max-height: 4em;
  overflow: hidden;
  opacity: 0.9;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.desc-text.expanded {
  max-height: 400px;
  opacity: 1;
}

.toggle-desc {
  background: none;
  border: none;
  color: #00c6ff;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: underline;
  margin-top: 6px;
  transition: color 0.2s;
}

.toggle-desc:hover {
  color: #66e0ff;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 7%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.4rem;
  z-index: 10000;
}

.bottom-bar a {
  text-decoration: none;
  color: #fff;
}

.bottom-bar i {
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.bottom-bar i:hover {
  transform: scale(1.02);
  color: #00bfff;
}

.no-results {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 1.4rem;
  font-weight: 600;
  color: #aaa;
}

#extraFilters {
  display: none;
  transition: max-height 0.3s ease;
}

#extraFilters.show {
  display: block;
}

.play-icon {
  position: absolute;
  font-size: 65px;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.video-container.paused .play-icon {
  opacity: 1;
  transform: scale(1.1);
  animation: pulseIcon 0.6s ease forwards;
}

/* 💫 Icon Animation Effects */
@keyframes pulseIcon {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 🌗 Smooth transition between themes */
body {
  transition: background 0.4s ease, color 0.4s ease;
}

.top-bar,
.filter-form,
.bottom-bar,
.info,
.filter-form input,
.filter-form select,
.filter-form button {
  transition: background 0.4s ease, color 0.4s ease, border 0.4s ease;
  transition: all 0.5s ease;
}

/* 🌗 Light Theme */

/* body.light-theme {
  background: #fff;
  color: #000;
} */

body.light-theme .filter-form {
  background: rgba(250, 250, 250, 0.7);
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}

body.light-theme .filter-form input,
body.light-theme .filter-form select {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.9);
}

body.light-theme .filter-form button{
  color: #fff;
  background: rgba(0, 0, 0, 0.9);;
}

body.light-theme .filter-form select:focus {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

body.light-theme .bottom-bar {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .bottom-bar a {
  color: #000;
}

body.light-theme .bottom-bar i:hover {
  color: #007bff;
}

body.light-theme .info {
  color: #fff;
  text-shadow: none;
}

body.light-theme .toggle-desc {
  color: #007bff;
}
