/* Language switcher + Videos section. Loaded after style.css. */

/* Fonts per language */
html[data-lang="ta"] body { font-family: "Noto Sans Tamil", system-ui, sans-serif; }
html[data-lang="zh"] body { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* Tamil words are long – tighten headings so they don't overflow */
html[data-lang="ta"] h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.35; }
html[data-lang="ta"] h2 { line-height: 1.4; }
html[data-lang="ta"] nav a { font-size: 0.85rem; }

/* Language dropdown */
.lang-select {
  margin-left: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Videos */
.videos-section { padding-bottom: 60px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto 0;
}
.video-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.video-item iframe,
.video-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .lang-select { margin: 8px 0 0; }
}
