:root {
  --background: #121212;
  --card-bg: #2a2a2a;
  --text-color: #FFA500;
  --accent-color: #FFA500;
  --logo-color: #FFA500;
  --light-gray: #aaaaaa;
  --dark-gray: #1e1e1e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  padding-bottom: 50px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
  color: var(--text-color);
}

img {
  display: block;
  width: 100%;
  border-radius: 5px;
}

/* ========== HEADER ========== */
header {
  background: var(--dark-gray);
  padding: 20px;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 900;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}

.logo-pb {
  background: linear-gradient(135deg, #ffffff, #dddddd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 5px rgba(255,255,255,0.3);
}

.logo-tube {
  background: linear-gradient(135deg, #ff2a2a, #cc0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 6px rgba(255,0,0,0.5);
}

/* ========== SEARCH SECTION ========== */
.search-section {
  padding: 20px;
  text-align: center;
}

.search-bar {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.search-bar input {
  padding: 10px;
  border-radius: 4px;
  width: 250px;
  border: none;
}

.search-bar button {
  padding: 10px 16px;
  background-color: var(--accent-color);
  border: none;
  color: black;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* ========== VIDEO GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 0 10px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.card h3 {
  font-size: 0.9rem;
  margin-top: 10px;
  color: var(--text-color);
}

/* ========== TOMBOL TONTON ========== */
.watch-btn {
  display: inline-block;
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  margin-top: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.watch-btn:hover {
  background-color: var(--accent-color);
  color: #000;
}

/* ========== LOAD MORE ========== */
.load-more {
  text-align: center;
  margin-top: 15px;
}

.load-more button {
  padding: 10px 20px;
  background-color: var(--accent-color);
  border: none;
  color: black;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--dark-gray);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-gray);
}

.footer-links a {
  margin: 0 10px;
  color: var(--accent-color);
}

/* ========== SIDEBAR GENRE MENU ========== */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1100;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 220px;
  height: 100%;
  background-color: #1c1c1c;
  color: var(--text-color);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidebar.show {
  left: 0;
}

.sidebar h3 {
  color: var(--accent-color);
  margin-bottom: 1em;
}

.sidebar a {
  display: block;
  margin-bottom: 12px;
  font-weight: bold;
  color: var(--accent-color);
}

/* ========== RESPONSIF ========== */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* ========== TAMBAHAN: Sembunyikan tombol hamburger saat menu aktif ========== */
.hidden {
  display: none !important;
}
.logo-image {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .logo-image {
    max-width: 140px;
  }
}
/* Header gaya ringkas */
.compact-header {
  background-color: var(--dark-gray);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo kompak */
.logo-compact {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo-compact {
    height: 32px;
  }
}
/* Header ringkas & logo besar */
.compact-header {
  background-color: var(--dark-gray);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-compact {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo-compact {
    height: 46px;
  }
}
