/* ==========================================================================
   YouTube Category & Live Channel Hub Styles
   ========================================================================== */

.youtube-page-wrapper {
  padding-bottom: 5rem;
}

/* Banner & Channel Header */
.yt-banner-container {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #11131c;
}

.yt-banner-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.yt-banner-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
}

.yt-header-card {
  position: relative;
  margin-top: -50px;
  z-index: 2;
  background: #131520;
  border: 1px solid #202436;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.yt-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.yt-avatar-clean {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff334b;
  box-shadow: 0 0 20px rgba(255, 51, 75, 0.25);
  background: #1a1d2d;
  flex-shrink: 0;
}

.yt-header-text h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.yt-header-text p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Live Stats Row */
.yt-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.yt-stat-box {
  background: #131520;
  border: 1px solid #202436;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.yt-stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 51, 75, 0.08);
  color: #ff334b;
  border: 1px solid rgba(255, 51, 75, 0.2);
  flex-shrink: 0;
}

.yt-stat-info {
  display: flex;
  flex-direction: column;
}

.yt-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.yt-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.yt-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Featured Video & Announcement 2-Col Layout */
.yt-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.yt-embed-card {
  background: #131520;
  border: 1px solid #202436;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.yt-embed-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #202436;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yt-embed-header h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
}

.yt-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: #000;
}

.yt-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-announcement-card {
  background: #131520;
  border: 1px solid #202436;
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* Recent Videos Grid */
.yt-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.yt-video-card {
  background: #131520;
  border: 1px solid #202436;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.yt-video-card:hover {
  border-color: rgba(255, 51, 75, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.yt-video-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}

.yt-video-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.yt-video-card:hover .yt-video-thumb-wrap img {
  transform: scale(1.04);
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
}

.yt-video-card:hover .yt-play-overlay {
  opacity: 1;
}

.yt-video-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.yt-video-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #202436;
  font-family: var(--font-mono);
}

/* YouTube Content Classification Tabs */
.yt-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.yt-tab-btn:hover {
  color: #ffffff;
}

.yt-tab-btn.active {
  color: #ff334b;
  border-bottom-color: #ff334b;
  background: rgba(255, 51, 75, 0.04);
}

/* LIVE Badge on Thumbnails */
.yt-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff334b;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(255, 51, 75, 0.4);
}

/* Shorts Grid (Portrait Aspect Ratio) */
.yt-shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.yt-short-card {
  background: #131520;
  border: 1px solid #202436;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.yt-short-card:hover {
  border-color: rgba(255, 51, 75, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.yt-short-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 9:16 portrait */
  background: #000;
  overflow: hidden;
}

.yt-short-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.yt-short-card:hover .yt-short-thumb-wrap img {
  transform: scale(1.04);
}

.yt-short-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Responsive */
@media (max-width: 960px) {
  .yt-main-grid {
    grid-template-columns: 1fr;
  }
  .yt-stats-grid {
    grid-template-columns: 1fr;
  }
  .yt-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
