body {
  font-family: sans-serif;
  margin: 20px;
  background-color: #f4f4f4;
}

h1 {
  text-align: center;
  color: #333;
}

#loading-indicator {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #555;
}

#error-message {
  text-align: center;
  padding: 20px;
  background-color: #ffebee;
  border: 1px solid #e57373;
  color: #c62828;
  margin-bottom: 20px;
}

/* --- Donation section next to title --- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.donation {
  text-align: right;
  max-width: 300px;
}

.donation p {
  margin: 0 0 4px 0;
  font-size: 0.95em;
  color: #333;
}

/* --- Video overlay player --- */
.video-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
}

.video-player {
  display: none;
  position: fixed;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: black;
  z-index: 1000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
}

#video-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.video-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

.video-card .content {
  padding: 15px;
}

.video-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333;
}

.video-card h3 a {
  text-decoration: none;
  color: inherit;
}

.video-card h3 a:hover {
  color: #007bff;
}

.video-card p {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.video-card .published-date {
  font-size: 0.8em;
  color: #888;
}

/* --- AdSense placeholder styling --- */
.adsense-placeholder {
  background-color: #e0e0e0;
  border: 1px dashed #bdbdbd;
  text-align: center;
  margin: 15px auto;
  padding: 10px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.adsense-placeholder .ad-label {
  color: #757575;
  font-style: italic;
  font-size: 0.9em;
  margin: 0;
}

.adsense-top-banner {
  min-height: 90px;
  margin-bottom: 20px;
}

.adsense-in-feed {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-height: 250px;
  grid-column: span 1;
}

.adsense-bottom-banner {
  min-height: 90px;
  margin-top: 30px;
}

/* Match vertical alignment */
.video-card, .adsense-in-feed {
  /* Future shared styles if needed */
}
