@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: #0f0f0f;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background: #181818;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
  padding: 15px;
  transition: left 0.3s ease;
  z-index: 20;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.sidebar-header h2 {
  font-size: 22px;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.sidebar nav a {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 500;
  transition: 0.3s;
}

.sidebar nav a:hover, .sidebar nav a.active {
  background: #222;
  color: #ff4d4d;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181818;
  padding: 10px 15px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 10;
}

.menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.logo-red {
  color: #ff0000;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #121212;
  border-radius: 25px;
  overflow: hidden;
  max-width: 500px;
  width: 100%;
  margin-left: 10px;
  border: 1px solid #222;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  background: transparent;
  font-size: 16px;
  color: white;
  min-width: 0;
}

.search-bar button {
  border: none;
  background: #ff0000;
  color: white;
  font-size: 16px;
  padding: 10px 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  border-radius: 0 25px 25px 0;
}

.search-bar button:hover {
  background: #cc0000;
}

main {
  flex: 1;
  padding: 15px;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.video-card {
  background: #181818;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
}

.video-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.video-info {
  padding: 10px;
}

.video-info h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #f1f1f1;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.actions button {
  flex: 1;
  border: none;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.audio-btn {
  background: #ff4d4d;
}

.audio-btn:hover {
  background: #e00000;
}

.video-btn {
  background: #333;
}

.video-btn:hover {
  background: #555;
}

footer {
  background: #181818;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #aaa;
  border-top: 1px solid #222;
}

.loading, .empty, .error {
  text-align: center;
  color: #bbb;
  padding: 30px 0;
}

@media (max-width: 600px) {
  .search-bar {
    width: 100%;
    margin-left: 0;
  }

  .search-bar button {
    padding: 10px 20px;
    font-size: 15px;
  }

  .video-card img {
    height: 180px;
  }

  .navbar {
    gap: 10px;
  }
}

.download-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  flex: 1;
}

.download-box {
  background: #181818;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.download-box h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.download-box .desc {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 25px;
}

.download-box input {
  width: 100%;
  padding: 12px;
  border: none;
  outline: none;
  border-radius: 6px;
  background: #121212;
  color: white;
  font-size: 15px;
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.status {
  font-size: 14px;
  color: #ccc;
  margin-top: 10px;
  min-height: 20px;
}

@media (max-width: 600px) {
  .download-box {
    padding: 25px 15px;
  }

  .download-buttons {
    flex-direction: column;
  }

  .download-buttons button {
    width: 100%;
  }
}

.about-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.about-box {
  background: #181818;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 480px;
}

.about-box h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.about-box .desc {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 25px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-card {
  background: #121212;
  padding: 12px 15px;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  background: #222;
}

.info-card h4 {
  color: #ff4d4d;
  font-size: 14px;
  margin-bottom: 5px;
}

.info-card p, .info-card a {
  color: #ccc;
  font-size: 14px;
  word-break: break-word;
}

.info-card a:hover {
  color: #ff9999;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .about-section {
    padding: 30px 15px;
  }
}

