body {
  margin: 0;
  font-family: sans-serif;
  background: #111;
  color: white;
  padding-top: 70px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.video-container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 20px;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5rem;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress {
  height: 100%;
  background: white;
  width: 0%;
  border-radius: 2px;
}

.video-title {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

.tracklist {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.4);
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.8rem;
  padding: 0.5rem;
}
.tracklist.visible {
  display: flex;
}

.tracklist button {
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 0.2rem 0;
  cursor: pointer;
}

.toggle-tracklist {
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  margin-top: 0.3rem;
  color: lightblue;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 9999;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  width: 100%;
}

.main-header .logo {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
}

.main-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-header nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-header nav a:hover,
.main-header nav a.active {
  color: rgb(190, 193, 151);
  font-weight: bold;
}

@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.5rem 1rem;
  }

  .main-header nav {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .main-header .logo {
    height: 30px;
  }
}