/* Video Player Play Overlay */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 40, 0.8) 100%);
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s ease;
}

.play-overlay:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
}

.play-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.play-button:hover svg {
  transform: scale(1.05);
}

.play-button:active svg {
  transform: scale(0.95);
}

.play-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .play-button svg {
    width: 60px;
    height: 60px;
  }

  .play-text {
    font-size: 16px;
  }
}

/* Mobile Banner Styles */
.mobile-banner {
  display: none;
}

@media (max-width: 768px) {
  .mobile-banner {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  .mobile-banner img,
  .mobile-banner picture {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
  }
}

/* Article Page Styles */
.dg-page {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #1f2933;
  line-height: 1.65;
  background: #f7fafc;
}

.dg-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.dg-post-header h1 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.dg-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
}

.dg-badge-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dg-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.post-content h2 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.post-content h3 {
  font-size: 1.1rem;
  margin-top: 20px;
}

.post-content p,
.post-content li {
  font-size: 0.94rem;
}

.post-content ul,
.post-content ol {
  margin: 8px 0 14px 18px;
}

.post-content a {
  color: #2563eb;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.highlight-box,
.dg-highlight {
  border-radius: 12px;
  padding: 14px 14px;
  margin: 16px 0;
}

.dg-highlight {
  background: #f9fafb;
  border: 1px dashed rgba(148, 163, 184, 0.9);
}

.highlight-box {
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.dg-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.dg-schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 10px;
}

.dg-schedule-item {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.dg-schedule-time {
  font-size: 0.8rem;
  color: #6b7280;
}

.dg-tag-cpc {
  display: inline-block;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.dg-pill {
  font-size: 0.78rem;
  padding: 3px 9px;
  background: #e5e7eb;
  border-radius: 999px;
}

.dg-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dg-footer-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Navigation Menu */
.dg-nav {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.dg-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.dg-nav a {
  font-size: 0.85rem;
  padding: 8px 14px;
  background: #f8fafc;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.dg-nav a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  border-color: transparent;
}

/* Tablet & PC Optimization */
@media (min-width: 768px) {
  .dg-page {
    padding: 24px 16px 60px;
    font-size: 16px;
  }

  .dg-card {
    padding: 24px 20px;
  }

  .dg-post-header h1 {
    font-size: 2rem;
  }

  .dg-two-col {
    grid-template-columns: 3fr 2.5fr;
    gap: 20px;
  }

  .dg-schedule-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .dg-nav {
    position: relative;
  }
}

@media (min-width: 1024px) {
  .dg-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    align-items: start;
  }

  .dg-nav {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .dg-nav-inner {
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
  }

  .dg-nav a {
    text-align: left;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }

  .dg-card {
    margin: 0;
  }
}
