@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0f0f11;
  --bg-card: #1a1a1d;
  --bg-hover: #27272b;
  --text-main: #f1f1f1;
  --text-muted: #a1a1aa;
  --accent: #d4af37; /* Gold accent for premium feel */
  --accent-hover: #f1c40f;
  --border: #333333;
  --glass-bg: rgba(26, 26, 29, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-layout {
  display: flex;
  gap: 2rem;
  margin-top: 80px; /* Header height */
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.content-area {
  flex: 1;
  min-width: 0; /* Prevent overflow */
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  color: var(--accent);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.accent {
  color: var(--accent);
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 16px;
  width: 40%;
  max-width: 600px;
  transition: border-color 0.3s;
}

.search-bar:focus-within {
  border-color: var(--accent);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 10px;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  color: var(--text-muted);
  padding: 8px;
  transition: color 0.3s;
}

.search-btn:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  transition: background 0.3s, transform 0.2s;
}

.icon-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.user-btn {
  background: var(--accent);
  color: var(--bg-dark);
}

.user-btn:hover {
  background: var(--accent-hover);
}
.news-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-card);
  transition: background 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}

.news-card:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.news-image-container {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 0.8rem;
  color: var(--accent);
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
  background: var(--bg-card);
  color: var(--text-main);
}

.nav-item.active {
  color: var(--accent);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.sidebar-footer {
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-card:hover .thumbnail {
  transform: scale(1.05);
}

.thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-hover);
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.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;
}

.play-icon {
  color: white;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  font-size: 1.2rem;
  line-height: 1;
}

/* Featured Modifier */
.video-card.featured {
  flex-direction: row;
  gap: 24px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.video-card.featured .thumbnail-container {
  width: 60%;
  border-radius: 12px;
}

.video-card.featured .video-info {
  width: 40%;
  justify-content: center;
}

.video-card.featured .video-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.video-card.featured .video-author {
  font-size: 1.1rem;
}

.video-card.featured .video-meta {
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .video-card.featured {
    flex-direction: column;
  }
  .video-card.featured .thumbnail-container,
  .video-card.featured .video-info {
    width: 100%;
  }
}
.home-page {
  display: flex;
  gap: 2rem;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  margin-right: 12px;
  border-radius: 4px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.right-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-banner {
  height: 300px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  margin-top: 1rem;
}

@media (max-width: 1200px) {
  .home-page {
    flex-direction: column;
  }
  .right-sidebar {
    width: 100%;
  }
}
.video-player-page {
  display: flex;
  gap: 24px;
}

.player-main {
  flex: 1;
  min-width: 0;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.play-button-large {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.video-container:hover .play-button-large {
  transform: scale(1.1);
  background: var(--accent-hover);
}

.triangle {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #fff;
  margin-left: 8px;
}

.video-details {
  margin-top: 20px;
}

.video-title-large {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.video-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.author-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.subscribers {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.subscribe-btn {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  margin-left: 12px;
  transition: opacity 0.2s;
}

.subscribe-btn:hover {
  opacity: 0.9;
}

.actions-group {
  display: flex;
  gap: 12px;
}

.action-pill {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 8px 16px;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.action-btn:hover {
  color: var(--accent);
}

.divider-vertical {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 8px;
}

.video-description {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-card);
}

.views-date {
  font-weight: 600;
  margin-bottom: 8px;
}

.desc-text {
  color: var(--text-main);
  line-height: 1.6;
}

.related-videos {
  width: 400px;
  flex-shrink: 0;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1200px) {
  .video-player-page {
    flex-direction: column;
  }
  .related-videos {
    width: 100%;
  }
}
