/* Reset and Root variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #02357d;
  --card-bg: rgba(0, 0, 0, 0.25);
  --card-border: rgba(255, 255, 255, 0.15);
  --theme-color: #8bc1ff;
  --theme-glow: rgba(255, 255, 255, 0.25);
  --text-main: #ffffff;
  --text-muted: #d0e3ff;
  --btn-gradient: linear-gradient(135deg, #a3ccff 0%, #5ca1ff 100%);
  --btn-hover-glow: rgba(139, 193, 255, 0.6);
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --transition-speed: 0.4s;
}

body {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 80px 20px;
  position: relative;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* Card Container */
.card-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  min-height: 290px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
              inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* State Views */
.view-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.95);
}

/* Initial State Components */
.initial-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.initial-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 280px;
}

/* Play/Watch Button */
.btn-watch {
  background: var(--btn-gradient);
  border: none;
  color: #030712;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px var(--btn-hover-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px var(--btn-hover-glow), 0 0 10px rgba(78, 222, 161, 0.5);
  filter: brightness(1.05);
}

.btn-watch:active {
  transform: translateY(1px);
}

.btn-watch svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Spinner Loader Component */

/* Watch Video Button */
.watch-video-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: #ffffff;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  display: block;
  margin: 30px auto;
  text-align: center;
  max-width: max-content;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-grow 1.2s infinite ease-in-out;
}

.watch-video-btn:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 30px rgba(29, 78, 216, 0.5);
  filter: brightness(1.1);
}

.watch-video-btn:active {
  transform: translateY(1px) scale(0.98);
}

@keyframes pulse-grow {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 18px 36px rgba(29, 78, 216, 0.5), 0 0 0 8px rgba(59, 130, 246, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.3);
  }
}
.spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
}

.spinner-track {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  position: absolute;
}

.spinner-active {
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--theme-color);
  border-radius: 50%;
  position: absolute;
  animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Text Content for Loading State */
.loading-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.loading-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 290px;
}

/* Timer Badge Style */
.timer-badge {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--theme-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Pulse animation for timer */
.pulse-timer {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Player Card Container (Removed card style for larger content size) */
.player-card-container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 40px 20px;
  display: flex;
  flex-direction: column;
}

/* Header branding styles */
.player-header {
  text-align: left;
  margin-bottom: 20px;
}

.status-indicator {
  color: var(--theme-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.player-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Category Filters Chips row */
.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
  scrollbar-width: none; /* Firefox */
}

.category-filters::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-chip.active {
  background: rgba(78, 222, 161, 0.08);
  border-color: var(--theme-color);
  color: var(--theme-color);
}

/* Video Player Block */
.video-player-block {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.video-player-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--theme-color);
  border: 1px solid var(--theme-color);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.player-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 12px 25px var(--btn-hover-glow);
}

.player-play-overlay svg {
  width: 20px;
  height: 20px;
  fill: #030712;
  margin-left: 3px;
  transition: fill 0.3s ease;
}

.player-play-overlay:hover svg {
  fill: #030712;
}

/* Details and Metadata Section */
.details-section {
  text-align: left;
}

.detail-eyebrow {
  color: var(--theme-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.featured-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.featured-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Metadata Grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }
}

.meta-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.meta-box:hover {
  background: rgba(255, 255, 255, 0.18);
}

.meta-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

/* Dynamic Primary Play Now Action Button */
.btn-play-now {
  width: 100%;
  background: var(--btn-gradient);
  border: none;
  color: #030712;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 10px 20px var(--btn-hover-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-play-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px var(--btn-hover-glow);
  filter: brightness(1.05);
}

.btn-play-now:active {
  transform: translateY(1px);
}

/* ==========================================
   Blog Listing Page (blog.html) & Articles Style
   ========================================== */

/* Blog Layout Container */
.blog-layout-container {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-main-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-main-header h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-main-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Individual Blog Card */
.blog-card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 10px rgba(78, 222, 161, 0.1);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.blog-card-tag {
  color: var(--theme-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(78, 222, 161, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(78, 222, 161, 0.15);
}

.blog-card-time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--theme-color);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-link {
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link svg {
  transform: translateX(3px);
}

/* ==========================================
   Blog Single Article Layout
   ========================================== */

.article-container {
  width: 100%;
  max-width: 840px;
  background-color: var(--card-bg);
  border: none;
  border-radius: 28px;
  padding: 50px;
  margin: 40px auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Article Navigation */
.article-nav {
  margin-bottom: 36px;
}

.btn-back-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.btn-back-blog:hover {
  color: var(--theme-color);
}

.btn-back-blog svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transform: rotate(180deg);
}

/* Article Header */
.article-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 30px;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.article-tag {
  color: var(--theme-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(78, 222, 161, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.article-date {
  color: var(--text-muted);
  font-size: 13px;
}

.article-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Article Body/Typography */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #d1d5db;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 12px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 4px solid var(--theme-color);
  background: rgba(78, 222, 161, 0.03);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
  font-style: italic;
  color: #e5e7eb;
}

.article-body blockquote p {
  margin-bottom: 0;
}

/* Callout Box */
.callout-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 24px;
  border-radius: 16px;
  margin: 32px 0;
}

.callout-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-color);
  margin-bottom: 8px;
}

.callout-box p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-container {
    padding: 30px 20px;
    margin: 20px auto;
  }
  .article-title {
    font-size: 28px;
  }
  .blog-main-header h1 {
    font-size: 32px;
  }
}

/* Article Image Container and Subcomponents */
.article-image-container {
  margin: 36px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.article-image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
}

.article-image-caption {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  font-style: italic;
}

/* ==========================================
   Light/White Theme for Blog Pages
   ========================================== */

body.blog-theme-light {
  background: var(--bg-color);
  color: var(--text-main);
}

body.blog-theme-light .blog-main-header h1 {
  background: none;
  -webkit-text-fill-color: var(--text-main);
  color: var(--text-main);
}

/* Light theme overrides removed to match unified blue background */

/* Skip Ad Button styling */
.btn-skip-ad {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(12, 17, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
  backdrop-filter: blur(8px);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-skip-ad.active {
  cursor: pointer;
  background: rgba(16, 185, 129, 0.9);
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-skip-ad.active:hover {
  transform: translateY(-1px);
  background: #10b981;
}

.btn-skip-ad.active:active {
  transform: translateY(0);
}

/* Related Videos Section */
.related-section {
  margin-top: 36px;
  border-top: 1px solid var(--card-border);
  padding-top: 28px;
}

.related-section-title {
  color: var(--theme-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.related-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

.related-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(78, 222, 161, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.related-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.related-thumbnail-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.88 9.88a3 3 0 1 0 4.24 4.24'/%3E%3Cpath d='M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68'/%3E%3Cpath d='M6.61 6.61A13.52 13.52 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61'/%3E%3Cline x1='2' x2='22' y1='2' y2='22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38px 38px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  pointer-events: none;
  z-index: 2;
}

.related-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: blur(10px);
  transform: scale(1.08);
}

.related-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: stretch;
  padding: 16px;
}

.related-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-watch-related {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 0;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  display: block;
}

.related-card:hover .btn-watch-related {
  background: var(--btn-gradient);
  border-color: transparent;
  color: #030712;
  box-shadow: 0 4px 10px rgba(78, 222, 161, 0.2);
}

/* ==========================================
   Light Theme for Player Pages (player-theme-light)
   ========================================== */
body.player-theme-light {
  background: radial-gradient(circle at center, #ffffff 0%, #e2e8f0 100%) !important;
  color: #0f172a !important;
}

body.player-theme-light .player-card-container {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.player-theme-light .player-logo {
  color: #0f172a !important;
}

body.player-theme-light .filter-chip {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

body.player-theme-light .filter-chip:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

body.player-theme-light .filter-chip.active {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: #10b981 !important;
  color: #059669 !important;
}

body.player-theme-light .featured-title {
  color: #0f172a !important;
}

body.player-theme-light .featured-desc {
  color: #475569 !important;
}

body.player-theme-light .meta-box {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.player-theme-light .meta-label {
  color: #475569 !important;
}

body.player-theme-light .meta-value {
  color: #0f172a !important;
}

body.player-theme-light .player-play-overlay {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.player-theme-light .player-play-overlay svg {
  fill: #0f172a !important;
}

body.player-theme-light .player-play-overlay:hover svg {
  fill: #030712 !important;
}

body.player-theme-light .btn-skip-ad {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

body.player-theme-light .btn-skip-ad.active {
  background: #10b981 !important;
  color: #ffffff !important;
}

body.player-theme-light .related-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.player-theme-light .related-card {
  background: rgba(0, 0, 0, 0.015) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.player-theme-light .related-card:hover {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

body.player-theme-light .related-title {
  color: #0f172a !important;
}

body.player-theme-light .btn-watch-related {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #475569 !important;
}

body.player-theme-light .related-card:hover .btn-watch-related {
  background: var(--btn-gradient) !important;
  border-color: transparent !important;
  color: #030712 !important;
}

/* ==========================================
   Player Video Overlays & Actions (SS Style)
   ========================================== */

/* Top Bar Overlay inside Video block */
.player-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-family);
}

.player-top-bar .top-bar-left,
.player-top-bar .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.player-top-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.player-top-bar .stat-item svg.icon {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Toolbar below Video player */
.player-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  margin-bottom: 18px;
}

.toolbar-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 500;
  flex: 1;
}

.toolbar-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--text-muted);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.toolbar-btn:hover {
  color: var(--text-main);
}

.toolbar-btn:hover svg {
  fill: var(--text-main);
  transform: scale(1.08);
}

/* Comments Button with Badge */
.icon-badge-wrapper {
  position: relative;
  display: inline-block;
}

.icon-badge-wrapper .badge {
  position: absolute;
  top: -4px;
  right: -5px;
  background-color: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  border: 1px solid var(--card-bg);
}

/* Creator Profile Channel Bar */
.creator-profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.creator-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #c084fc; /* Violet */
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.creator-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.creator-user-icon {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

.creator-videos-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.creator-actions {
  display: flex;
  gap: 8px;
}

.creator-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.creator-action-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}

.creator-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.creator-action-btn:hover svg {
  fill: var(--text-main);
}

/* Light theme player overrides for toolbar & creator profile */
body.player-theme-light .player-toolbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.player-theme-light .toolbar-btn {
  color: #475569 !important;
}

body.player-theme-light .toolbar-btn svg {
  fill: #475569 !important;
}

body.player-theme-light .toolbar-btn:hover {
  color: #0f172a !important;
}

body.player-theme-light .toolbar-btn:hover svg {
  fill: #0f172a !important;
}

body.player-theme-light .icon-badge-wrapper .badge {
  border: 1px solid #ffffff !important;
}

body.player-theme-light .creator-profile-bar {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.player-theme-light .creator-name {
  color: #0f172a !important;
}

body.player-theme-light .creator-user-icon {
  fill: #475569 !important;
}

body.player-theme-light .creator-videos-count {
  color: #475569 !important;
}

body.player-theme-light .creator-action-btn {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.player-theme-light .creator-action-btn svg {
  fill: #475569 !important;
}

body.player-theme-light .creator-action-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

body.player-theme-light .creator-action-btn:hover svg {
  fill: #0f172a !important;
}

/* ==========================================
   Footer Styles
   ========================================== */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 10;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.site-footer a:hover {
  color: var(--theme-color);
}

/* Light theme overrides for footer */
body.blog-theme-light .site-footer,
body.player-theme-light .site-footer {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

body.blog-theme-light .site-footer a,
body.player-theme-light .site-footer a {
  color: #64748b;
}

body.blog-theme-light .site-footer a:hover,
body.player-theme-light .site-footer a:hover {
  color: #059669;
}

/* Light Theme Player Overrides */
body.player-theme-light .video-player-block {
  border-radius: 0 !important;
}

/* Creator Profile Channel Bar interactivity */
.creator-profile-bar {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.creator-profile-bar:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
body.player-theme-light .creator-profile-bar:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Responsive overrides to reduce empty side space on smaller screens */
@media (max-width: 768px) {
  body {
    padding: 0 0 80px 0 !important;
  }
  .player-card-container {
    padding: 0 0 20px 0 !important;
    margin: 0 auto !important;
  }
  /* Set text components padding so text doesn't touch screen edges */
  .player-header,
  .category-filters,
  .player-toolbar,
  .creator-profile-bar,
  .details-section,
  .related-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .video-player-block {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 15px !important;
  }
}

/* Make Chrome's native overlay play/pause button smaller */
video::-webkit-media-controls-overlay-play-button {
  transform: scale(0.6) !important;
}

/* Google Ad Manager Ads Centering and Spacing Layout */
.gam-ad-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 24px auto !important;
  min-width: 300px;
  min-height: 250px;
  text-align: center;
  clear: both;
}
.gam-ad-top {
  margin-bottom: 30px !important;
}
.gam-ad-bottom {
  margin-top: 30px !important;
}

