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

:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --card: #141414;
  --border: #1e1e1e;
  --border2: #2a2a2a;
  --gold: #f5a623;
  --gold-d: #d4900f;
  --gold-bg: rgba(245,166,35,0.10);
  --gold-glow: rgba(245,166,35,0.22);
  --text: #f0f0f0;
  --text2: #888;
  --muted: #444;
  --danger: #ef4444;
  --success: #22c55e;
  --nav-h: 68px;
  --nav-bg: rgba(8, 8, 8, 0.97);
  --footer-bg: #050505;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --gold-bg: rgba(245,166,35,0.15);
  --gold-glow: rgba(245,166,35,0.4);
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --nav-bg: rgba(248, 250, 252, 0.97);
  --footer-bg: #f1f5f9;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
a:hover {
  color: var(--gold-d);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  transition: all 0.2s;
}

input, textarea, select {
  font-family: inherit;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  font-size: 1.25rem;
}
.navbar .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}
.nav-links {
  display: flex;
  gap: 8px;
}
.nav-link {
  color: var(--text);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background-color: var(--gold-bg);
}
.search-box {
  position: relative;
  width: 280px;
}
.search-box input {
  width: 100%;
  padding-left: 36px;
  border-radius: 20px;
  background-color: var(--surface);
}
.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  display: none;
}
.search-result-item {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-result-item:hover {
  background: var(--surface);
  color: var(--gold);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
}
.theme-toggle:hover {
  color: var(--gold);
  background: var(--gold-bg);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* HERO */
.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-slider {
  position: relative;
}
.hero-slide {
  position: relative;
  min-height: 500px;
  display: none;
  align-items: flex-end;
  padding: 52px 20px;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  display: flex;
  animation: fadeIn 0.5s ease-in-out;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  max-width: 1340px;
  margin-left: max(0px, calc((100vw - 1340px) / 2));
}
.hero-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background-color: var(--gold);
  color: #000;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.hero-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 20px;
}
.hero-nav {
  position: absolute;
  bottom: 20px;
  right: max(20px, calc((100vw - 1340px) / 2));
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  width: 28px;
  background-color: var(--gold);
}

/* SECTIONS */
.section {
  margin-bottom: 52px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}
.section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-d));
}
.section-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CATEGORY CHIPS */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
}
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px;
  background-color: var(--surface);
  border: 1px solid var(--border2);
  
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.chip:hover, .chip.active {
  background-color: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* VIDEO CARD */
.video-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px var(--gold-glow);
  transform: translateY(-5px);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
}
.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 0.3s;
}
.video-card:hover .play-overlay {
  opacity: 1;
}
.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.video-card:hover .play-btn {
  transform: scale(1);
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.video-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-cat {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.video-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: auto;
}

/* NEWS CARD */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.news-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.news-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.news-hero {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.news-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-card:hover .news-hero img {
  transform: scale(1.05);
}
.news-body {
  padding: 18px;
}
.news-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.news-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.4;
}
.news-excerpt {
  
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background-color: var(--gold);
  color: #000;
}
.btn-primary:hover {
  background-color: var(--gold-d);
  color: #000;
  box-shadow: 0 4px 12px var(--gold-glow);
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--gold);
  color: #000;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}
.btn-danger {
  background-color: var(--danger);
  color: var(--text);
}
.btn-success {
  background-color: var(--success);
  color: var(--text);
}

/* FOOTER */
.footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  margin-top: 80px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.2fr;
  gap: 60px;
  margin-bottom: 50px;
}
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.footer-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--text);
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--gold);
  color: #121212;
  transform: translateY(-3px);
}
.footer-col h4 { color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 25px 0;
  position: relative;
  display: inline-block;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links a {
  padding: 6px 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.footer-links a::before {
  content: '›';
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  margin-right: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}
.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.footer-links .rss-link {
  color: var(--gold);
  opacity: 0.8;
}
.footer-links .rss-link svg {
  margin-right: 6px;
}
.footer-links .rss-link::before {
  display: none;
}
.footer-links .empty-text {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-bottom strong {
  color: var(--text);
  font-weight: 600;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: var(--muted);
  transition: color 0.3s;
}
.footer-bottom-links a:hover {
  color: var(--gold);
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}


/* Bold Categories */
#nav-cat-menu .nav-dropdown-item {
  font-weight: 700 !important;
}
.footer-col .cat-title + .footer-links a {
  padding: 6px 0;
  font-weight: 700 !important;
  color: var(--text2);
}
.footer-col .cat-title + .footer-links a:hover {
  color: var(--gold);
}

/* WATCH PAGE */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 24px;
}
.player-wrapper {
  background: #000;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--gold-glow);
  margin-bottom: 20px;
}
.ad-top, .ad-bottom {
  width: 100%;
  min-height: 90px;
  background: #111;
  border: 1px dashed var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 20px;
  border-radius: 8px;
}
.ad-left, .ad-right {
  width: 160px;
  background: #111;
  border: 1px dashed var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 8px;
}
.watch-with-ads {
  display: flex;
  gap: 20px;
}
.video-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.video-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.like-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.like-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 999px;
  font-weight: 500;
  font-size: .85rem;
  cursor: pointer;
  font-family: inherit;
  
  transition: all .18s;
}
.like-btn:hover { border-color: var(--gold); color: var(--gold); }
.like-btn.active-like    { border-color: var(--success); color: var(--success); background: rgba(34,197,94,.08); }
.like-btn.active-dislike { border-color: var(--danger);  color: var(--danger);  background: rgba(239,68,68,.08); }

/* ── SIDEBAR TOGGLE ──────────────────────────────────────── */
.sidebar-toggle-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 34px;
  height: 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
}
.sidebar-toggle-btn:hover { 
  background: var(--gold); 
  color: #000; 
  width: 40px;
  box-shadow: -4px 0 20px rgba(245, 166, 35, 0.4);
}
.watch-layout.sidebar-hidden .watch-sidebar { display: none; }
.watch-layout.sidebar-hidden { grid-template-columns: 1fr; }
.watch-layout.sidebar-hidden .sidebar-toggle-btn { right: 0; }

.video-description {
  background: var(--surface);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  color: var(--gold);
  background: var(--gold-bg);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.watch-sidebar {}
.sidebar-label {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 16px;
}
.sidebar-video {
  display: flex;
  gap: 12px;
  background: var(--card);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.sidebar-video:hover {
  border-color: var(--gold);
}
.sidebar-video img {
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  object-fit: cover;
}
.sidebar-video-info {
  flex: 1;
}
.sidebar-video h4 {
  font-size: 0.9rem;
  margin: 0 0 6px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-video .meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* COMMENTS */
.comment-form {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}
.comment-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.comment-content {
  flex: 1;
}
.comment-name {
  font-weight: 500;
  margin: 0 0 4px;
}
.comment-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.comment-text {
  margin: 0;
  
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--text); }

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
}
.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.page-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--card);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease-out;
  font-weight: 500;
  color: var(--text);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #0d0d0d;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav-link:hover {
  color: var(--gold);
}

/* ADMIN PANEL */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background-color: #0d0d0d;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.admin-logo .logo-text {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
}
.admin-logo .logo-sub {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}
.admin-nav {
  padding: 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.admin-nav-sep {
  padding: 16px 20px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #333;
  font-weight: 500;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  color: #666;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.admin-nav-item:hover, .admin-nav-item.active {
  border-left-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}
.admin-nav-item.active {
  font-weight: 500;
}
.admin-nav-logout {
  color: var(--danger);
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.admin-nav-logout:hover {
  background: rgba(239, 68, 68, 0.1);
}
.admin-content {
  padding: 28px 32px;
  background: #080808;
  min-height: 100vh;
}
.card, .form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}
.card-title, .form-card-title {
  margin: 0 0 16px 0;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: #111;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
}
.admin-table td {
  padding: 14px 16px;
  color: #888;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.admin-table tr:hover td {
  background: #111;
  color: var(--text);
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.77rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 6px;
}
.form-label .optional {
  color: var(--muted);
  font-weight: 400;
}
.form-hint {
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 4px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}
.stat-card:hover {
  border-color: var(--gold);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.stat-icon.gold { background: var(--gold-bg); color: var(--gold); }
.stat-icon.green { background: rgba(34,197,94,0.1); color: var(--success); }
.stat-icon.red { background: rgba(239,68,68,0.1); color: var(--danger); }
.stat-icon.purple { background: rgba(168,85,247,0.1); color: #a855f7; }
.stat-info { flex: 1; }
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-active, .badge-green { background: rgba(34,197,94,0.1); color: var(--success); }
.badge-passive, .badge-red { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-warning, .badge-gold { background: var(--gold-bg); color: var(--gold); }
.badge-gray { background: #222; color: #888; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.admin-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}
.ad-pos-btn {
  border: 1px dashed var(--border2);
  background: #111;
  color: var(--muted);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}
.ad-pos-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.ad-pos-btn.selected {
  border: 1px solid var(--gold);
  background: var(--gold-bg);
  color: var(--gold);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ANIMATIONS */
@keyframes fadeDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }  
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes shimmer  { from{background-position:-200% 0} to{background-position:200% 0} }
.skeleton {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .watch-layout { grid-template-columns: 1fr 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 900px) {
  .watch-layout { grid-template-columns: 1fr; }
  .ad-left, .ad-right { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-box { max-width: 200px; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .grid-videos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-slide { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .comment-form .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .grid-videos { grid-template-columns: 1fr; }
}

/* ── NAVBAR DROPDOWN ──────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn.open {
  color: var(--gold);
  background-color: rgba(245, 166, 35, 0.1);
}
.nav-dropdown-btn svg { transition: transform .2s; }
.nav-dropdown-btn.open svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px; background: var(--card); border: 1px solid var(--border2);
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.8);
  padding: 6px; z-index: 200; animation: fadeDown .18s ease;
}
.nav-dropdown-menu.show { display: block; }
.nav-dropdown-item {
  display: block; padding: 9px 14px; color: var(--text); border-radius: 8px;
  font-size: .84rem; font-weight: 500; 
  text-decoration: none; transition: all .15s;
}
.nav-dropdown-item:hover { background: var(--gold-bg); color: var(--gold); }

/* ── YORUM BEĞENİ (KALP) ────────────────────────────────── */
.comment-like-btn {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-items: center; gap: 4px;
   font-size: .8rem; font-weight: 600;
  padding: 4px 8px; margin-left: -8px; border-radius: 4px;
  transition: all .2s; font-family: inherit;
}
.comment-like-btn:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.comment-like-btn.liked { color: #ef4444; }
.comment-like-btn.liked .heart-icon { fill: #ef4444; }

/* ── PLYR ÖZELLEŞTİRME ───────────────────────────────────── */
:root {
  --plyr-color-main: #f5a623;
  --plyr-video-background: #080808;
}
.player-wrapper { position: relative; }
.plyr {
  position: absolute !important;
  inset: 0;
  width: 100%; height: 100%;
}

/* ── HERO THUMBNAIL FIX ──────────────────────────────────── */
.hero-slide img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: -2;
}
.hero-overlay { z-index: -1; }

/* ── YORUMLARI YANITLAMA ────────────────────────────────── */
.comment-reply-btn {
  background: none; border: none; cursor: pointer;
   font-size: .8rem; font-weight: 600;
  transition: color .2s; font-family: inherit; margin-left: 12px;
}
.comment-reply-btn:hover { color: var(--gold); }
.comment-reply-box { margin-top: 10px; margin-left: 44px; display: none; }
.comment-reply-box.show { display: block; }
.comment-replies {
  margin-left: 44px;
  margin-top: 12px;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}

/* ── SEARCH FIX ──────────────────────────────────────────── */
.search-dropdown.show { display: block; z-index: 9999; }
.search-dropdown { max-height: 400px; overflow-y: auto; }
.search-result-item img {
  width: 64px !important;
  height: 40px !important;
  min-width: 64px !important;
  object-fit: cover !important;
  border-radius: 4px;
  flex-shrink: 0;
}
/* CINEMA MODE */
body.cinema-mode {
  overflow-x: hidden;
}
body.cinema-mode::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 990;
}
body.cinema-mode .navbar {
  z-index: 900;
}
body.cinema-mode .watch-layout {
  display: block;
}
body.cinema-mode .watch-sidebar {
  margin-top: 40px;
}
body.cinema-mode .player-wrapper {
  position: relative;
  z-index: 999;
  box-shadow: 0 10px 50px rgba(0,0,0,0.9);
  width: 100%;
  max-height: 85vh;
}
body.cinema-mode .player-wrapper video,
body.cinema-mode .player-wrapper iframe,
body.cinema-mode .player-wrapper .plyr {
  max-height: 85vh;
  margin: 0 auto;
}
body.cinema-mode #btn-cinema {
  position: relative;
  z-index: 999;
  color: var(--gold);
}
.video-description-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  position: relative;
}
.video-description-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}
.video-description-content.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.desc-toggle-btn {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 500;
  margin-top: 8px;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
}
.desc-toggle-btn:hover {
  text-decoration: underline;
}
/* Oynatıcı İleri/Geri Sarma Göstergesi */
.seek-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10000;
}
.seek-indicator.show {
  opacity: 1;
  animation: seekPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes seekPop {
  0% { transform: translate(-50%, -50%) scale(0.8); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
/* End Screen */
.endscreen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
.endscreen.show {
  opacity: 1;
  pointer-events: auto;
}
.endscreen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.endscreen-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
}
.endscreen-hide {
  color: var(--gold);
  cursor: pointer;
  font-weight: 600;
}
.endscreen-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.endscreen-card {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.endscreen-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.endscreen-card:hover img {
  transform: scale(1.05);
}
.endscreen-card-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Force Fullscreen Button on Mobile/iOS for YouTube */
.plyr [data-plyr="fullscreen"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fallback Fullscreen CSS for iOS/Mobile */
.plyr--fullscreen-fallback {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    background: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
}

/* In-Video Ad Overlay */
.invideo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 50px;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.invideo-overlay.show {
  display: flex !important;
}
.invideo-skip {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}
.invideo-skip.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.invideo-skip:not(.disabled):hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* CSS Dropdown Fallback */
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .nav-dropdown-btn svg { transform: rotate(180deg); }
.nav-dropdown:hover .nav-dropdown-btn { color: var(--gold); background-color: rgba(245, 166, 35, 0.1); }

/* Fix Dropdown Gap Hover Issue */
.nav-dropdown-menu {
  top: 100%; /* Remove the calc + 8px gap */
  margin-top: 8px; /* Margin preserves hover bridge natively in some browsers, but padding is safer */
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px; /* Bridge the hover gap */
}

/* Quick links override */
.quick-links a::before {
  display: none !important;
}
.quick-links a:hover svg {
  stroke: var(--gold);
}

/* Force bold on dropdown items */
.nav-dropdown-item {
  font-weight: 700 !important;
}

/* ── NEWS CAROUSEL (HOMEPAGE) ───────────────────────────── */
.news-carousel-wrapper {
  position: relative;
}
.news-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 10px; /* Optional space for shadow */
}
.news-carousel::-webkit-scrollbar {
  display: none;
}
.news-carousel .news-card {
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.9);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
}
.carousel-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
@media (max-width: 1024px) {
  .carousel-prev { left: 0px; }
  .carousel-next { right: 0px; }
}
@media (max-width: 768px) {
  .news-carousel .news-card { min-width: 85vw; max-width: 85vw; }
  .carousel-btn { display: none; } /* Hide on mobile to use native swipe */
}