/* Telugu Gospel Lyrics — Standalone embed (scoped under #tgl-app)
   Brand: #0A3A8A primary, #1976D2 secondary, #FFB300 accent
   All rules scoped to avoid clashing with WordPress themes (GeneratePress, etc.) */

#tgl-app {
  --primary: #0A3A8A;
  --primary-glow: #1976D2;
  --secondary: #1976D2;
  --accent: #FFB300;
  --bg: #fafbff;
  --surface: #f1f5fb;
  --card: #ffffff;
  --text: #0f1a2e;
  --muted: #5b6478;
  --border: #e2e8f2;
  --shadow-soft: 0 4px 20px -6px rgba(10, 58, 138, 0.12);
  --shadow-elegant: 0 10px 40px -12px rgba(10, 58, 138, 0.25);
  --gradient-hero: linear-gradient(135deg, #0A3A8A 0%, #1976D2 60%, #FFB300 130%);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#tgl-app *, #tgl-app *::before, #tgl-app *::after { box-sizing: border-box; }
#tgl-app h1, #tgl-app h2, #tgl-app h3, #tgl-app h4 {
  font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--primary); margin: 0;
}
#tgl-app .font-telugu { font-family: 'Noto Sans Telugu', 'Inter', sans-serif; }
#tgl-app a { color: inherit; text-decoration: none; }
#tgl-app img { max-width: 100%; display: block; }
#tgl-app .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
#tgl-app .tgl-header { background: #fff; border-bottom: 1px solid var(--border); }
#tgl-app .tgl-header__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
}
#tgl-app .tgl-header__brand { display: inline-flex; align-items: center; gap: 12px; }
#tgl-app .tgl-header__brand img { height: 48px; width: auto; }
#tgl-app .tgl-header__title {
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 24px;
  color: var(--primary); letter-spacing: -0.01em; white-space: nowrap;
}
#tgl-app .tgl-header__actions { display: inline-flex; align-items: center; gap: 10px; }
#tgl-app .tgl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; transition: var(--transition); cursor: pointer; line-height: 1;
}
#tgl-app .tgl-btn--ghost { background: #fff; color: var(--primary); border-color: rgba(10,58,138,0.25); }
#tgl-app .tgl-btn--ghost:hover { background: var(--surface); border-color: var(--primary); }
#tgl-app .tgl-btn--accent { background: var(--accent); color: #1a1a1a; box-shadow: 0 4px 14px -4px rgba(255,179,0,0.55); }
#tgl-app .tgl-btn--accent:hover { background: #ffa800; }
@media (max-width: 520px) {
  #tgl-app .tgl-header__top { justify-content: center; }
  #tgl-app .tgl-header__actions { width: 100%; justify-content: center; }
  #tgl-app .tgl-header__title { font-size: 20px; }
  #tgl-app .tgl-header__brand img { height: 40px; }
}

#tgl-app .tgl-header__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface);
}
#tgl-app .tgl-nav__item { position: relative; }
#tgl-app .tgl-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text); background: transparent; border: none; cursor: pointer;
  font-family: inherit; transition: var(--transition); text-decoration: none;
}
#tgl-app .tgl-nav__link:hover { background: var(--primary); color: #fff; }
#tgl-app .tgl-nav__item .caret { font-size: 10px; opacity: 0.7; }
#tgl-app .tgl-nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-elegant);
  padding: 6px; display: none; z-index: 60;
}
#tgl-app .tgl-nav__item.has-sub.open .tgl-nav__sub,
#tgl-app .tgl-nav__item.has-sub:hover .tgl-nav__sub { display: block; }
#tgl-app .tgl-nav__sub a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--text); }
#tgl-app .tgl-nav__sub a:hover { background: var(--surface); color: var(--primary); }

/* Ads — reserve space (no CLS) */
#tgl-app .tgl-ad {
  margin: 24px auto; text-align: center; max-width: 100%;
  overflow: hidden; min-height: 250px; display: block; clear: both; padding: 0 20px;
}
#tgl-app .tgl-ad ins.adsbygoogle { display: block; max-width: 100%; min-height: 90px; }
@media (max-width: 768px) {
  #tgl-app .tgl-ad { margin: 16px -6px; padding: 0; }
}

/* Sticky mobile anchor ad */
.tgl-anchor-ad {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
  border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  z-index: 9998; padding: 4px 6px 6px; min-height: 60px; max-height: 110px; display: none;
}
.tgl-anchor-ad__close {
  position: absolute; top: -14px; right: 8px; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid #e5e7eb; background: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); color: #111;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.tgl-anchor-ad ins.adsbygoogle { display: block; min-height: 50px; }
@media (max-width: 768px) {
  .tgl-anchor-ad { display: block; }
  body.tgl-has-anchor { padding-bottom: 80px; }
  html, body { overflow-x: hidden; }
}

/* Hero */
#tgl-app .tgl-hero {
  position: relative; padding: 60px 20px;
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); overflow: hidden;
}
#tgl-app .tgl-hero::before, #tgl-app .tgl-hero::after {
  content: ""; position: absolute; width: 380px; height: 380px;
  border-radius: 50%; filter: blur(80px); opacity: 0.35; pointer-events: none;
}
#tgl-app .tgl-hero::before { background: var(--accent); top: -120px; right: -120px; }
#tgl-app .tgl-hero::after { background: var(--primary); bottom: -120px; left: -120px; }
#tgl-app .tgl-hero__inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
#tgl-app .tgl-hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; }
#tgl-app .tgl-hero h1 .accent {
  background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: block; margin-top: 6px;
}
#tgl-app .tgl-hero p { margin-top: 16px; font-size: 17px; color: var(--muted); }
#tgl-app .tgl-eyebrow {
  display: inline-block; color: var(--secondary); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* Search card */
#tgl-app .tgl-search-card {
  max-width: 900px; margin: 30px auto 0; padding: 30px;
  background: linear-gradient(135deg, #f8f9fc, #fff);
  border-radius: 16px; box-shadow: var(--shadow-elegant); border: 1px solid var(--border);
}
#tgl-app .tgl-search-card h2 { color: var(--primary); font-size: 22px; margin-bottom: 8px; text-align: center; }
#tgl-app .tgl-search-card p.sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
#tgl-app #tgl-cse-mount { margin-top: 8px; min-height: 56px; }
#tgl-app .tgl-search-card .powered { text-align: center; margin-top: 18px; color: #888; font-size: 13px; }

/* Section common */
#tgl-app section.tgl-section { padding: 70px 0; }
#tgl-app section.tgl-section.alt { background: var(--surface); }
#tgl-app .tgl-section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
#tgl-app .tgl-section__head h2 { font-size: clamp(24px, 4vw, 36px); margin-top: 6px; }
#tgl-app .tgl-section__head p { color: var(--muted); margin-top: 10px; }

/* Alphabet grids */
#tgl-app .tgl-alpha { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#tgl-app .tgl-alpha a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--primary); font-weight: 700; font-size: 16px; transition: var(--transition);
}
#tgl-app .tgl-alpha.te a { font-family: 'Noto Sans Telugu', sans-serif; min-width: 50px; height: 50px; font-size: 20px; }
#tgl-app .tgl-alpha a:hover { background: var(--accent); border-color: var(--accent); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
#tgl-app .tgl-subhead { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; text-align: center; }
#tgl-app .tgl-alpha-block + .tgl-alpha-block { margin-top: 26px; }

/* Buttons */
#tgl-app .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: var(--transition); border: 1px solid transparent; cursor: pointer; text-decoration: none; }
#tgl-app .btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-elegant); }
#tgl-app .btn-primary:hover { background: var(--primary-glow); }
#tgl-app .btn-outline { background: #fff; color: var(--primary); border-color: rgba(10,58,138,0.3); }
#tgl-app .btn-outline:hover { background: var(--primary); color: #fff; }
#tgl-app .tgl-cats__more { margin-top: 24px; text-align: center; }

/* Featured grid: popular + categories */
#tgl-app .tgl-featured-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr); gap: 56px; align-items: start; }
#tgl-app .tgl-inline-head { margin-bottom: 24px; }
#tgl-app .tgl-inline-head span { display: block; color: var(--secondary); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
#tgl-app .tgl-inline-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 4px; }
#tgl-app .tgl-inline-head p { margin-top: 8px; color: var(--muted); }
#tgl-app .tgl-feature-popular { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-soft); overflow: hidden; }
#tgl-app .tgl-feature-popular li + li { border-top: 1px solid var(--border); }
#tgl-app .tgl-feature-popular a { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
#tgl-app .tgl-feature-popular .rank { width: 42px; text-align: center; font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: rgba(10,58,138,0.28); }
#tgl-app .tgl-feature-popular strong { display: block; color: var(--text); font-weight: 700; }
#tgl-app .tgl-feature-popular small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
#tgl-app .tgl-feature-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#tgl-app .tgl-feature-cat { position: relative; min-height: 118px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 20px; box-shadow: var(--shadow-soft); }
#tgl-app .tgl-feature-cat::after { content: ""; position: absolute; right: -20px; top: -22px; width: 76px; height: 76px; border-radius: 50%; background: var(--surface); }
#tgl-app .tgl-feature-cat .icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--gradient-hero); color: #fff; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
#tgl-app .tgl-feature-cat strong { display: block; color: var(--text); font-weight: 700; }
#tgl-app .tgl-feature-cat small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

/* All Songs A–Z */
#tgl-app .english-alphabet-posts { max-width: 900px; margin: 0 auto; padding: 0 16px; }
#tgl-app .letter-section { margin-bottom: 24px; }
#tgl-app .letter-box {
  background: var(--secondary); color: #fff; padding: 8px 16px;
  display: inline-block; border-radius: 6px; margin: 24px 0 12px;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
}
#tgl-app .letter-posts { display: block; }
#tgl-app .post-title { margin: 6px 0; font-size: 16px; line-height: 1.6; }
#tgl-app .post-title a { text-decoration: none; color: var(--primary); font-weight: 600; transition: color var(--transition); }
#tgl-app .post-title a:hover { color: var(--secondary); text-decoration: underline; }
#tgl-app .tgl-loading { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 22px; text-align: center; color: var(--muted); box-shadow: var(--shadow-soft); }

/* Pagination */
#tgl-app .tgl-pagination { text-align: center; margin: 30px 0 10px; }
#tgl-app .tgl-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin: 3px;
  border: 1px solid #1976D2; background: #fff; color: #ffb300;
  text-decoration: none; border-radius: 4px; font-weight: 600; cursor: pointer;
}
#tgl-app .tgl-pagination .page-numbers:hover { background: #ffb300; color: #0A3A8A; }
#tgl-app .tgl-pagination .current { background: #0A3A8A; color: #fff; border-color: #0A3A8A; }
#tgl-app .tgl-pagination .dots { border: none; background: transparent; color: var(--muted); cursor: default; }
#tgl-app .tgl-pagination .prev, #tgl-app .tgl-pagination .next { background: #fff; color: #1976D2; border: 1px solid #1976D2; }

/* CTA + FAQ */
#tgl-app .tgl-cta { padding: 74px 0; text-align: center; color: #fff; background: var(--gradient-hero); }
#tgl-app .tgl-cta h2 { color: #fff; font-size: clamp(30px, 5vw, 46px); }
#tgl-app .tgl-cta p { margin: 14px auto 0; max-width: 720px; color: rgba(255,255,255,0.9); font-weight: 600; }
#tgl-app .tgl-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
#tgl-app .btn-accent { background: var(--accent); color: #1a1a1a; }
#tgl-app .btn-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.45); }
#tgl-app .tgl-faq-section { background: var(--surface); }
#tgl-app .tgl-faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
#tgl-app .tgl-faq-list details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-soft); overflow: hidden; }
#tgl-app .tgl-faq-list summary { cursor: pointer; padding: 18px 24px; color: var(--text); font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 800; }
#tgl-app .tgl-faq-list p { margin: 0; padding: 0 24px 20px; color: var(--muted); }

/* Footer */
#tgl-app .tgl-footer { background: #fff; border-top: 1px solid var(--border); padding: 50px 0 24px; }
#tgl-app .tgl-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
#tgl-app .tgl-footer h4 { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
#tgl-app .tgl-footer ul { list-style: none; padding: 0; margin: 0; }
#tgl-app .tgl-footer ul li { margin-bottom: 10px; }
#tgl-app .tgl-footer ul a { font-size: 14px; color: var(--muted); transition: color var(--transition); }
#tgl-app .tgl-footer ul a:hover { color: var(--primary); }
#tgl-app .tgl-footer__brand { display: flex; align-items: center; gap: 10px; }
#tgl-app .tgl-footer__brand img { height: 36px; }
#tgl-app .tgl-footer__brand span { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px; color: var(--primary); }
#tgl-app .tgl-footer__about { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 420px; }
#tgl-app .tgl-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#tgl-app .tgl-socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: #fff;
  transition: var(--transition);
}
#tgl-app .tgl-socials a:hover { color: #fff; transform: translateY(-2px); }
#tgl-app .tgl-socials a svg { width: 16px; height: 16px; }
#tgl-app .tgl-socials a[data-net="facebook"]:hover { background: #1877F2; border-color: #1877F2; }
#tgl-app .tgl-socials a[data-net="youtube"]:hover { background: #FF0000; border-color: #FF0000; }
#tgl-app .tgl-socials a[data-net="instagram"]:hover { background: #E4405F; border-color: #E4405F; }
#tgl-app .tgl-socials a[data-net="pinterest"]:hover { background: #E60023; border-color: #E60023; }
#tgl-app .tgl-socials a[data-net="telegram"]:hover { background: #26A5E4; border-color: #26A5E4; }
#tgl-app .tgl-socials a[data-net="x"]:hover { background: #000; border-color: #000; }
#tgl-app .tgl-footer__bottom { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 30px; text-align: center; color: var(--muted); font-size: 12px; }
#tgl-app .tgl-footer__bottom a { color: var(--secondary); }

/* Responsive */
@media (max-width: 720px) {
  #tgl-app .tgl-featured-grid { grid-template-columns: 1fr; gap: 36px; }
  #tgl-app .tgl-feature-cats { grid-template-columns: 1fr; }
  #tgl-app .tgl-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  #tgl-app .tgl-search-card { padding: 22px; }
  #tgl-app section.tgl-section { padding: 50px 0; }
}
