:root {
  --black: #0a0a0a;
  --dark: #111111;
  --card: #1a1a1a;
  --gold: #d4a853;
  --gold-light: #f0d78c;
  --gold-dark: #b8942e;
  --text: #e0e0e0;
  --text-muted: #999999;
  --border: #2a2a2a;
  --red: #ff4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

.navbar {
  background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(5,5,5,0.98) 100%);
  border-bottom: 1px solid rgba(212,168,83,0.35);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.logo-area { display: flex; align-items: center; gap: 20px; }
.menu-icon, .nav-icon {
  font-size: 20px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: 0.3s;
}
.menu-icon:hover, .nav-icon:hover { color: var(--gold); }

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

.search-area {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 550px;
  margin: 0 30px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 30px 0 0 30px;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: white;
  outline: none;
}
.search-box input::placeholder { color: #666; }
.search-btn {
  padding: 12px 22px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 0 30px 30px 0;
  color: var(--text);
  cursor: pointer;
}
.search-btn:hover { background: var(--gold-dark); color: #000; }

.nav-icons { display: flex; align-items: center; gap: 18px; }
.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--red);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}
.nav-icon { position: relative; }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #000;
}

.main-container { display: flex; min-height: calc(100vh - 60px); }
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #121212 0%, #090909 100%);
  border-left: 1px solid rgba(212,168,83,0.2);
  padding: 20px 12px;
  flex-shrink: 0;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.sidebar-section { margin-bottom: 15px; padding: 0 12px; }
.sidebar-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 8px;
  font-weight: bold;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  margin: 4px 0;
  transition: 0.25s;
  font-weight: 600;
}
.sidebar-item:hover, .sidebar-item.active {
  background: linear-gradient(90deg, rgba(212,168,83,0.16) 0%, rgba(255,255,255,0.03) 100%);
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.2);
}
.sidebar-item.z-gold {
  background: linear-gradient(90deg, rgba(212,168,83,0.15) 0%, transparent 100%);
  border-right: 3px solid var(--gold);
  font-weight: bold;
}
.sidebar-item .icon { font-size: 20px; width: 24px; text-align: center; }
hr { border: none; border-top: 1px solid var(--border); margin: 10px 12px; }

.content-area { flex: 1; padding: 28px; }
.hero-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 26px;
}
.hero-card {
  background: linear-gradient(135deg, rgba(30,30,30,0.95), rgba(14,14,14,0.95));
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #f8f2db;
  margin-bottom: 10px;
}
.hero-subtitle {
  color: #aaa;
  line-height: 1.8;
  font-size: 14px;
}
.category-tabs { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.category-tab {
  padding: 8px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}
.category-tab.active {
  background: var(--gold-dark);
  color: #000;
  font-weight: bold;
}
.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7f1df;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.see-all { font-size: 13px; color: var(--gold); cursor: pointer; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 35px; }
.video-card .channel-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 15px;
}
.video-card .video-title {
  font-size: 15px;
  line-height: 1.45;
}
.video-card .video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.video-card {
  background: linear-gradient(180deg, #171717 0%, #121212 100%);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.35s;
  border: 1px solid rgba(212,168,83,0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--gold-dark);
  box-shadow: 0 18px 45px rgba(212, 168, 83, 0.18);
}
.thumbnail-wrap { position: relative; aspect-ratio: 16 / 9; background: #222; overflow: hidden; }
.thumbnail-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.video-card:hover .thumbnail-wrap img { transform: scale(1.06); }
.duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.85);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
}
.play-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 45px;
  color: white;
  opacity: 0;
  transition: 0.3s;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card:hover .play-hover { opacity: 1; }
.video-info { padding: 14px; display: flex; gap: 12px; }
.channel-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}
.video-details { flex: 1; min-width: 0; }
.video-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.video-meta { font-size: 12px; color: var(--text-muted); }
.badge-premium {
  background: linear-gradient(135deg, var(--gold), #b8942e);
  color: #000;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin-right: 5px;
}
.z-trend-bar {
  background: linear-gradient(90deg, #1a1a0a 0%, #1a1a1a 50%, #1a1a0a 100%);
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}
.trend-scroll { display: flex; gap: 25px; animation: scrollTrend 20s linear infinite; white-space: nowrap; font-size: 13px; color: var(--gold-light); }
@keyframes scrollTrend { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
  border-radius: 24px;
  width: 100%;
  max-width: 1180px;
  max-height: 95vh;
  overflow: hidden;
  border: 1px solid rgba(212,168,83,0.26);
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}
.video-shell {
  position: relative;
  background: #000;
}
#player {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
}
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.progress-bar {
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  border-radius: inherit;
}
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.control-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}
.control-btn:hover { color: var(--gold); }
.time-label { font-size: 12px; color: #ddd; }
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
  border: none;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 38px;
  height: 38px;
}
.close-modal:hover { color: var(--gold); }
.watch-info { padding: 22px 24px 24px; }
.watch-title { font-size: 22px; font-weight: bold; margin-bottom: 12px; color: #f8f2db; }
.watch-meta-row { display: flex; justify-content: space-between; color: #9a9a9a; font-size: 13px; margin-bottom: 12px; }
.watch-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.action-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #1a1a1a, #222);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 25px;
  cursor: pointer;
  color: var(--text);
  transition: 0.3s;
}
.action-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.action-btn.liked { color: var(--gold); border-color: var(--gold); }
.watch-stats { margin-right: auto; font-size: 13px; color: var(--text-muted); }
.watch-description { color: #aaa; font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.comments-section { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.comment { display: flex; gap: 12px; margin-bottom: 14px; }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: white;
}
.comment-body { font-size: 13px; color: #ccc; }
.comment-body strong { color: white; margin-left: 6px; }
.upload-section { background: linear-gradient(135deg, rgba(26,26,26,0.95), rgba(16,16,16,0.95)); border: 2px dashed rgba(212,168,83,0.32); border-radius: 20px; padding: 40px; text-align: center; margin-bottom: 30px; box-shadow: inset 0 0 30px rgba(212,168,83,0.05); }
.upload-btn { padding: 12px 30px; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #000; border: none; border-radius: 25px; font-weight: bold; cursor: pointer; margin-top: 12px; transition: 0.25s; }
.upload-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(212,168,83,0.22); }
.upload-form { margin-top: 20px; display: grid; gap: 12px; text-align: right; }
.upload-form input, .upload-form textarea, .upload-form select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #0f0f0f; color: white;
}
.upload-form button { width: fit-content; }
.upload-list, .admin-list {
  margin-top: 18px; display: grid; gap: 12px;
}
.upload-item, .admin-item {
  background: #121212; border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.upload-item strong, .admin-item strong { color: var(--gold-light); }
.small { font-size: 12px; color: var(--text-muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stats-card {
  background: linear-gradient(135deg, #171717, #1f1f1f); border: 1px solid rgba(212,168,83,0.2); border-radius: 16px; padding: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.stats-card .value { font-size: 24px; font-weight: bold; color: var(--gold); margin-top: 6px; }
.toast {
  position: fixed; left: 20px; bottom: 20px; background: #111; border: 1px solid var(--gold); color: white; padding: 12px 16px; border-radius: 10px; z-index: 10000; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.footer { background: var(--dark); border-top: 1px solid var(--border); padding: 20px; text-align: center; font-size: 12px; color: #555; }
.footer .logo-sm { color: var(--gold); font-weight: bold; font-size: 18px; }
.glow-border { animation: glow 2.5s infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 5px rgba(212,168,83,0.3); } 50% { box-shadow: 0 0 20px rgba(212,168,83,0.6); } }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 10px; }
