/* ============================================
   VideoShare – style.css
   Orange & Black Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --orange: #ff6b00;
  --orange-light: #ff8c33;
  --orange-dark: #cc5500;
  --orange-glow: rgba(255, 107, 0, 0.35);
  --bg: #0d0d0d;
  --bg-2: #141414;
  --bg-3: #1a1a1a;
  --bg-4: #222222;
  --border: rgba(255, 107, 0, 0.15);
  --border-strong: rgba(255, 107, 0, 0.35);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --card-hover: #1e1e1e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-orange: 0 4px 20px rgba(255,107,0,0.25);
  --transition: 0.2s ease;
  --header-h: 64px;
  --font: 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }
ul { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--orange-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  font-size: 22px;
  color: var(--orange);
  filter: drop-shadow(0 0 8px var(--orange));
  animation: pulse-logo 3s infinite;
}
@keyframes pulse-logo {
  0%, 100% { filter: drop-shadow(0 0 8px var(--orange)); }
  50% { filter: drop-shadow(0 0 16px var(--orange-light)); }
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.logo-accent { color: var(--orange); }

/* Search */
.search-bar {
  flex: 1;
  max-width: 500px;
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  padding: 10px 16px;
  font-size: 14px;
}
.search-bar input::placeholder { color: var(--text-dim); }
#search-btn {
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--transition);
}
#search-btn:hover { background: var(--orange-light); }

/* Nav */
.header-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn-upload {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-upload:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}
.btn-upload.active-nav { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--orange); background: rgba(255,107,0,0.08); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 20px;
  color: var(--text);
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu a:hover { background: var(--bg-3); color: var(--orange); }

/* ============================================
   AD BANNERS
   ============================================ */
.ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a0a00 0%, #1f1200 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  gap: 12px;
  overflow: hidden;
}
.ad-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(255,107,0,0.03) 20px,
    rgba(255,107,0,0.03) 21px
  );
}
.ad-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(255,107,0,0.1);
  border: 1px solid var(--border-strong);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ad-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  z-index: 1;
}
.ad-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ad-text strong { color: var(--orange); font-size: 14px; }
.ad-text span { color: var(--text-muted); font-size: 12px; }
.ad-cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.ad-cta-btn:hover {
  background: var(--orange-light);
  transform: scale(1.04);
}
.ad-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  z-index: 1;
  flex-shrink: 0;
}
.ad-close:hover { color: var(--orange); background: rgba(255,107,0,0.1); }

/* Inline Ad */
.ad-inline {
  background: linear-gradient(135deg, #1a0a00, #1f1200);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ad-inline-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}
.ad-inline-icon {
  font-size: 28px;
  color: var(--orange);
  width: 52px;
  height: 52px;
  background: rgba(255,107,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.ad-inline-text strong { color: var(--orange); display: block; margin-bottom: 2px; }
.ad-inline-text p { color: var(--text-muted); font-size: 13px; }

/* Sidebar Ad */
.ad-sidebar {
  background: linear-gradient(135deg, #1a0a00, #1f1200);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}
.ad-sidebar-content { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-sidebar-img {
  font-size: 36px;
  margin-bottom: 4px;
  color: var(--orange);
  width: 56px;
  height: 56px;
  background: rgba(255,107,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
}
.ad-sidebar p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.ad-sidebar p strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ============================================
   CATEGORIES BAR
   ============================================ */
.categories-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}
.categories-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-btn:hover { color: var(--orange); border-color: var(--orange); background: rgba(255,107,0,0.08); }
.cat-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.content-area { min-width: 0; }

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 8px;
}

/* ============================================
   FEATURED CARD
   ============================================ */
.featured-section { margin-bottom: 28px; }
.featured-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.featured-card:hover { transform: scale(1.01); box-shadow: var(--shadow-orange); }
.featured-thumb {
  height: 260px;
  background: linear-gradient(135deg, #1a0800, #2a1000, #1a0800);
  background-size: 200% 200%;
  animation: featured-shimmer 4s infinite;
  position: relative;
  display: flex;
  align-items: flex-end;
}
@keyframes featured-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.featured-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}
.play-btn-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255,107,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 0 30px rgba(255,107,0,0.5);
}
.featured-card:hover .play-btn-large {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--orange);
}
.play-btn-large svg { width: 28px; height: 28px; margin-left: 4px; }
.featured-info {
  position: relative;
  z-index: 2;
  padding: 16px;
  width: 100%;
}
.featured-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.featured-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  line-height: 1.3;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* ============================================
   MEDIA GRID
   ============================================ */
.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.grid-header .section-title { margin-bottom: 0; flex: 1; }
.sort-select select {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.sort-select select:focus { border-color: var(--orange); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

/* Media Card */
.media-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--orange);
  border-color: var(--orange);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  overflow: hidden;
}
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.media-card:hover .card-thumb-img { transform: scale(1.05); }
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #1a0800, #2a1200);
}
.card-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,107,0,0.3);
}
.card-type-badge.video { color: var(--orange); }
.card-type-badge.image { color: #60d0ff; }
.card-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.card-play-overlay svg { color: #fff; width: 40px; height: 40px; }
.media-card:hover .card-play-overlay { opacity: 1; }

.card-body { padding: 12px; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
}
.card-views { display: flex; align-items: center; gap: 4px; }
.card-cat {
  background: rgba(255,107,0,0.12);
  color: var(--orange);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* Load More */
.load-more-wrap { text-align: center; padding: 20px 0; }
.load-more-btn {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { display: flex; flex-direction: column; gap: 0; }
.sidebar-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Trending List */
.trending-list { display: flex; flex-direction: column; gap: 8px; }
.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.trending-item:hover { background: var(--bg-3); }
.trending-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--orange);
  min-width: 24px;
  text-align: center;
}
.trending-info { flex: 1; min-width: 0; }
.trending-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trending-views { font-size: 11px; color: var(--text-muted); }

/* Stats */
.stats-widget {}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  transition: border-color var(--transition);
}
.stat-item:hover { border-color: var(--orange); }
.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.93) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--text-muted);
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--bg-3); color: var(--orange); }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.modal-tabs {
  display: flex;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.mtab {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.mtab.active { background: var(--orange); color: #fff; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }

/* Form Inputs */
.form-input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; cursor: pointer; }

.btn-submit {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.btn-submit:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
  padding: 2px 0;
}
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ============================================
   UPLOAD PAGE
   ============================================ */
.upload-page { padding-top: 32px; padding-bottom: 60px; }
.upload-heading {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.upload-subheading { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.upload-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.upload-form-wrap { min-width: 0; }

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 24px;
  overflow: hidden;
}
.drop-zone.drag-over {
  border-color: var(--orange);
  background: rgba(255,107,0,0.05);
}
.drop-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
}
.drop-icon { color: var(--orange); opacity: 0.7; }
.drop-title { font-size: 18px; font-weight: 700; color: var(--text); }
.drop-sub { color: var(--text-muted); font-size: 14px; }
.drop-browse {
  background: var(--orange);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 4px;
}
.drop-browse:hover { background: var(--orange-light); }
.drop-info { color: var(--text-dim); font-size: 12px; line-height: 1.5; margin-top: 4px; }

.drop-preview { width: 100%; position: relative; }
.preview-media-wrap { width: 100%; background: #000; }
.preview-media-wrap video,
.preview-media-wrap img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.preview-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}
.preview-remove:hover { background: var(--orange); }

/* Upload Progress */
.upload-progress-wrap {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 3px;
  transition: width 0.3s ease;
}
.progress-text { font-size: 13px; color: var(--text-muted); }

/* Meta Form */
.meta-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.char-count {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 11px;
  color: var(--text-dim);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.radio-group { display: flex; gap: 16px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.radio-label:hover { border-color: var(--orange); }
.radio-label input[type="radio"] { accent-color: var(--orange); }

.btn-submit-upload {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  border: none;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.btn-submit-upload::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-submit-upload:not(:disabled):hover::before { transform: translateX(100%); }
.btn-submit-upload:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,0.4);
}
.btn-submit-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Upload Sidebar */
.upload-tips {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.upload-tips h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.upload-tips ul { display: flex; flex-direction: column; gap: 8px; }
.upload-tips li { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.tip-ok  { color: #22c55e; }
.tip-no  { color: #ef4444; }

.my-uploads-list { display: flex; flex-direction: column; gap: 8px; }
.empty-msg { color: var(--text-dim); font-size: 13px; text-align: center; padding: 8px 0; }
.my-upload-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.my-upload-item:hover { background: var(--bg-4); }
.my-upload-thumb {
  width: 50px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.my-upload-thumb img, .my-upload-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-upload-title { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-upload-date { font-size: 11px; color: var(--text-dim); }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-3);
  border: 1px solid var(--orange);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  box-shadow: var(--shadow-orange);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================
   WATCH PAGE
   ============================================ */
.watch-page { padding-top: 24px; padding-bottom: 60px; }
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
.player-area { min-width: 0; }

/* Player Wrap */
.player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  margin-bottom: 0;
}
.player-wrap video, .player-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.player-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Player Controls */
.player-controls-bar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ctrl-btn {
  color: var(--text);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.ctrl-btn:hover { color: var(--orange); }
.ctrl-time { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.volume-range {
  width: 80px;
  accent-color: var(--orange);
  cursor: pointer;
}

/* Mid-video banner */
.mid-ad-banner {
  background: linear-gradient(135deg, #1a0a00, #1f1200);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Media Info Block */
.media-info-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.media-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}
.media-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.media-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.media-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.action-btn:hover { border-color: var(--orange); color: var(--orange); }
.like-btn.liked { background: rgba(255,107,0,0.15); border-color: var(--orange); color: var(--orange); }
.media-description { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.media-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.media-tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.media-tag:hover { background: rgba(255,107,0,0.1); }

/* Comments */
.comments-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.comments-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.comment-input, .comment-textarea { font-size: 14px; }
.btn-comment {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-end;
}
.btn-comment:hover { background: var(--orange-light); }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.comment-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.comment-content {}
.comment-author { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 3px; }
.comment-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.comment-time { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* Related List */
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item {
  display: flex;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.related-item:hover { background: var(--bg-3); }
.related-thumb {
  width: 90px;
  height: 58px;
  background: var(--bg-3);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}
.related-thumb img, .related-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-info { flex: 1; min-width: 0; }
.related-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.related-meta { font-size: 11px; color: var(--text-muted); }

/* Preroll */
.preroll-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.preroll-content {
  max-width: 500px;
  width: 90%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.preroll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.preroll-label { font-size: 13px; font-weight: 700; color: var(--orange); }
.preroll-skip {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-4);
  padding: 4px 12px;
  border-radius: 50px;
}
.preroll-skip.clickable {
  cursor: pointer;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}
.preroll-ad-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.preroll-emoji {
  font-size: 36px;
  color: var(--orange);
  width: 72px;
  height: 72px;
  background: rgba(255,107,0,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.preroll-ad-text strong { display: block; font-size: 18px; margin-bottom: 6px; color: var(--text); }
.preroll-ad-text p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.preroll-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.preroll-cta:hover { background: var(--orange-light); }
.preroll-progress-bar {
  height: 4px;
  background: var(--bg-3);
}
.preroll-progress-fill {
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 1s linear;
}

/* Share modal */
.share-link-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.share-link-wrap .form-input { flex: 1; }
.share-link-wrap .btn-submit { width: auto; padding: 11px 16px; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-social {
  flex: 1;
  text-align: center;
  color: #fff;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.share-social:hover { opacity: 0.85; transform: translateY(-2px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .main-layout, .watch-layout { grid-template-columns: 1fr; }
  .sidebar.watch-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .upload-layout { grid-template-columns: 1fr; }
  .upload-sidebar { display: none; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .search-bar { max-width: 100%; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .featured-thumb { height: 190px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .media-meta-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ad-content { flex-direction: column; align-items: flex-start; }
  .ad-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
