/* vachikatelugu — compact near-black glass theme */
:root {
  color-scheme: dark;
  --bg: #080908;
  --bg-raised: #10110f;
  --surface: rgba(23, 24, 21, .78);
  --surface-hover: rgba(35, 37, 31, .88);
  --ink: #f3f4ef;
  --muted: #a4a69d;
  --muted-2: #7f8279;
  --rule: rgba(255, 255, 245, .105);
  --accent: #c7f27b;
  --accent-strong: #d7ffa0;
  --on-accent: #171b0f;
  --focus: #c7f27b;
  --danger: #ff9d9d;
  --gutter: 22px;
  --max: 1180px;
  --font: "Anek Telugu", "Noto Sans Telugu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(193, 220, 132, .055), transparent 34rem),
    radial-gradient(ellipse at 96% 22%, rgba(196, 171, 119, .035), transparent 30rem),
    #080908;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 38rem);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; transition: color .18s ease, background .18s ease, border-color .18s ease; }
a:hover { color: var(--accent-strong); }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Shared layout and header */
.wrap { width: min(var(--max), 100%); margin: 0 auto; padding-inline: var(--gutter); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 11px var(--gutter);
  border-bottom: 1px solid rgba(255,255,245,.075);
  background: rgba(8,9,8,.88);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}
.header-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(230px, 330px);
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255,248,231,.62);
  border-radius: 10px;
  background: linear-gradient(145deg, #f3ead9, #d8c9ac);
  box-shadow: 0 0 22px rgba(203,133,63,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; padding: 2px 5px; }
.brand-name { letter-spacing: -.025em; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: 4px; min-width: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  color: #c3c5bc;
  font-size: .91rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: rgba(255,255,245,.055);
  border-color: rgba(255,255,245,.075);
}
.nav-link.active { color: var(--accent); }
.search { position: relative; min-width: 0; margin: 0; }
.header-search { width: 100%; display: flex; align-items: center; }
.header-search input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 43px 8px 14px;
  border: 1px solid rgba(255,255,245,.13);
  border-radius: 999px;
  background: rgba(255,255,245,.045);
  color: var(--ink);
  font-size: .88rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  appearance: none;
}
.header-search input::-webkit-search-cancel-button { cursor: pointer; }
.header-search input::placeholder { color: #85877e; opacity: 1; }
.header-search input:focus { outline: none; border-color: rgba(199,242,123,.55); background: rgba(255,255,245,.06); box-shadow: 0 0 0 3px rgba(199,242,123,.07); }
.header-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(199,242,123,.12);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.header-search button:hover { background: rgba(199,242,123,.2); }

/* Type, page rhythm */
h1, h2, h3 { margin-top: 0; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
h1 { margin-bottom: 8px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.12; }
h2 { margin: 28px 0 12px; font-size: clamp(1.28rem, 2vw, 1.65rem); line-height: 1.2; }
h3 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.3; }
p { margin: 0 0 12px; }
.lede { max-width: 65ch; color: var(--muted); font-size: .98rem; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: .68rem; line-height: 1.4; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.empty { padding: 16px; border: 1px solid var(--rule); border-radius: 14px; background: rgba(255,255,245,.025); color: var(--muted); }

/* Home — calm intro and tight content */
.home-intro { padding-top: clamp(22px, 3.5vw, 38px); padding-bottom: 5px; }
.home-intro h1 { margin-bottom: 7px; font-size: clamp(1.9rem, 3.5vw, 2.65rem); }
.home-intro .lede { margin-bottom: 12px; }
.home-stats, .intro-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted-2); font-size: .8rem; }
.home-stats span { padding: 4px 9px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255,255,245,.025); }
#browse > .home-section { margin-top: 25px; }
.home-section .tracks { max-width: 900px; }
.home-section .tracks a { min-height: 55px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 10px; }
.section-heading h2, .home-section h2, .page-section h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.section-heading .eyebrow { margin-bottom: 3px; }
.text-link { color: var(--accent); font-size: .85rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: var(--accent-strong); }
.section-note { margin: -2px 0 10px; color: var(--muted); font-size: .84rem; }

/* Tracklists and charts */
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.tracks li { border-bottom: 1px solid var(--rule); }
.tracks a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  transition: background .16s ease;
}
.tracks a:hover { background: rgba(255,255,245,.045); }
.tracks a[aria-current="true"] { background: rgba(199,242,123,.06); box-shadow: inset 3px 0 0 var(--accent); }
.n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,245,.055); color: #c1c3b9; font-size: .83rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tracks a[aria-current="true"] .n { background: var(--accent); color: var(--on-accent); }
.main { display: grid; min-width: 0; gap: 1px; }
.name { overflow-wrap: anywhere; color: var(--ink); font-size: .94rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.sub { overflow-wrap: anywhere; color: var(--muted); font-size: .79rem; line-height: 1.35; }
.meta { display: grid; justify-items: end; align-content: center; gap: 1px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tracks .plays { color: #b8d88b; font-size: .75rem; }
.chart-tracks { max-width: 920px; }
.chart-tracks .meta { min-width: 4.5rem; }
.search-results { padding-top: 12px; }
.search-results h2 { margin-top: 17px; }

/* Consistent artwork cards: artwork is constrained by the grid, never its intrinsic size */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.albums-grid > li { width: 100%; min-width: 0; max-width: 100%; }
.album-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 100%;
  gap: 4px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.album-card:hover { transform: translateY(-2px); color: var(--ink); background: rgba(255,255,245,.035); border-color: rgba(255,255,245,.09); }
.album-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 5px;
  border: 1px solid rgba(255,255,245,.11);
  border-radius: 10px;
  background: #171815;
  box-shadow: 0 8px 23px rgba(0,0,0,.22);
}
.album-cover-empty { display: grid; place-items: center; color: var(--accent); font-size: 2.5rem; }
.album-card-title { color: var(--ink); font-size: .93rem; font-weight: 700; line-height: 1.28; overflow-wrap: anywhere; }
.album-card .sub { font-size: .77rem; }
.album-plays { margin-top: 1px; color: #b8d88b; font-size: .74rem; line-height: 1.35; }
.albums-grid-large { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.albums-grid-large .album-card { padding: 8px; }
.albums-grid-large .album-card-title { font-size: .94rem; }
.data-note { max-width: 82ch; margin-top: 20px; color: var(--muted-2); font-size: .8rem; }

/* Albums, charts and general page intros */
.page-intro { padding-top: clamp(22px, 3.4vw, 35px); padding-bottom: 4px; }
.page-intro h1 { margin-bottom: 8px; }
.page-intro .lede { max-width: 72ch; margin-bottom: 10px; }
.page-section { padding-top: 20px; }
.page-section .section-heading { margin-bottom: 13px; }
.sort-label { color: var(--muted-2); font-size: .79rem; white-space: nowrap; }
.charts-section { padding-top: 17px; }

/* Artwork-led detail-page atmosphere. Each generated detail page supplies its own --artwork-url. */
.detail-art-theme { position: relative; isolation: isolate; }
.detail-art-theme::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -88px;
  left: 50%;
  width: calc(100vw + 40px);
  height: min(850px, calc(100vh + 160px));
  transform: translateX(-50%);
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(8,9,8,.18) 0%, rgba(8,9,8,.48) 44%, rgba(8,9,8,.92) 83%, #080908 100%), var(--artwork-url);
  background-position: center top;
  background-size: cover;
  filter: blur(13px) saturate(1.3);
  opacity: .86;
}

/* Song and movie detail pages */
.song, .movie { padding-top: 24px; }
.song-head, .movie-head { display: grid; gap: 22px; margin-top: 0; }
.song-head { grid-template-columns: minmax(190px, 270px) minmax(0, 1fr); align-items: center; }
.art { display: block; width: 100%; max-width: 270px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); border-radius: 13px; background: #171815; box-shadow: 0 14px 32px rgba(0,0,0,.24); }
.song-main { min-width: 0; padding: 4px 0; }
.song-main h1 { max-width: 22ch; margin-bottom: 8px; }
.from { margin-bottom: 0; color: var(--muted); font-size: .93rem; }
.flag { margin-left: 6px; color: var(--danger); font-size: .78rem; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 14px; border: 1px solid rgba(255,255,245,.16); border-radius: 999px; background: rgba(255,255,245,.045); color: var(--ink); font-size: .86rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .17s ease, border-color .17s ease, transform .17s ease; }
.btn:hover { color: var(--ink); background: rgba(255,255,245,.09); border-color: rgba(255,255,245,.23); }
.btn.primary { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); }
.player { margin-top: 8px; }
.player iframe { display: block; width: 100%; max-width: 560px; border: 1px solid var(--rule); border-radius: 12px; background: #11120f; }
.player iframe.spotify { height: 152px; }
.player iframe.youtube { aspect-ratio: 16 / 9; height: auto; }
.facts { display: grid; grid-template-columns: minmax(100px, max-content) minmax(0, 1fr); gap: 7px 18px; margin: 20px 0; padding: 15px 17px; border: 1px solid var(--rule); border-radius: 14px; background: rgba(255,255,245,.028); backdrop-filter: blur(12px); }
.facts dt { color: #a0a297; font-size: .87rem; font-weight: 650; }
.facts dd { min-width: 0; margin: 0; color: #e6e7df; overflow-wrap: anywhere; font-size: .9rem; }
.plot { max-width: 68ch; color: #d4d5ce; }
.movie > .backdrop { width: 100%; max-height: 270px; aspect-ratio: 16 / 7; object-fit: cover; margin-bottom: 20px; }
.backdrop { border: 1px solid var(--rule); border-radius: 14px; background: #171815; }
.movie-head { grid-template-columns: minmax(145px, 190px) minmax(0, 1fr); align-items: start; margin: 0 0 18px; }
.movie-head .poster { width: 100%; max-width: 190px; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--rule); border-radius: 12px; background: #171815; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.movie-head > div { min-width: 0; padding-top: 4px; }
.movie-head h1 { margin-bottom: 7px; }
.movie-head .te { margin-bottom: 8px; color: var(--muted); font-size: 1.05rem; }
.movie-head .plot { margin-top: 8px; }
.trailer { position: relative; width: min(100%, 620px); }
.trailer button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 13px; background: #141511; cursor: pointer; }
.trailer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.trailer .play { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .84rem; font-weight: 750; }
.trailer iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 13px; }

/* Footer */
.site-footer { width: min(var(--max), 100%); margin: 38px auto 0; padding: 18px var(--gutter) 32px; border-top: 1px solid var(--rule); color: var(--muted-2); font-size: .78rem; }
.site-footer p { max-width: 86ch; margin: 0 0 5px; }

/* Responsive layout: header search stays top-right on desktop and shares the first row on mobile */
@media (max-width: 930px) {
  :root { --gutter: 18px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) minmax(190px, 300px); gap: 6px 14px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-search { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .site-header { padding-top: 8px; padding-bottom: 7px; }
  .nav-link { min-height: 31px; padding: 4px 10px; }
  .song-head { grid-template-columns: minmax(175px, 235px) minmax(0, 1fr); gap: 18px; }
  .art { max-width: 235px; }
  .movie-head { grid-template-columns: minmax(130px, 170px) minmax(0, 1fr); gap: 17px; }
  .movie-head .poster { max-width: 170px; }
}
@media (max-width: 600px) {
  :root { --gutter: 14px; }
  body { font-size: 15px; }
  .site-header { padding: 8px 14px 7px; }
  .header-inner { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 5px 10px; }
  .brand { gap: 7px; font-size: .9rem; }
  .brand-mark { width: 31px; height: 33px; flex-basis: 31px; border-radius: 8px; }
  .brand-logo { padding: 1px 4px; }
  .header-search input { min-height: 36px; padding: 6px 37px 6px 10px; font-size: .78rem; }
  .header-search button { top: 3px; right: 3px; width: 30px; height: 30px; font-size: 1.2rem; }
  .site-nav { gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { min-height: 29px; padding: 3px 9px; font-size: .81rem; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.25rem); }
  h2 { margin: 22px 0 10px; }
  .home-intro { padding-top: 22px; }
  .home-intro h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  #browse > .home-section { margin-top: 20px; }
  .section-heading { align-items: center; gap: 8px; }
  .section-heading h2, .home-section h2, .page-section h2 { font-size: 1.25rem; }
  .text-link { font-size: .79rem; }
  .tracks a { grid-template-columns: 27px minmax(0, 1fr) auto; gap: 8px; min-height: 53px; padding: 6px 4px; }
  .n { width: 25px; height: 25px; font-size: .75rem; border-radius: 7px; }
  .name { font-size: .86rem; }
  .sub { font-size: .73rem; }
  .meta { font-size: .7rem; }
  .tracks .plays { font-size: .68rem; }
  .albums-grid, .albums-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .album-card, .albums-grid-large .album-card { padding: 5px; gap: 3px; }
  .album-cover { margin-bottom: 3px; border-radius: 8px; }
  .album-card-title, .albums-grid-large .album-card-title { font-size: .86rem; }
  .album-card .sub { font-size: .7rem; }
  .album-plays { font-size: .68rem; }
  .page-intro { padding-top: 22px; }
  .page-section { padding-top: 15px; }
  .section-note, .data-note { font-size: .77rem; }
  .sort-label { max-width: 45%; white-space: normal; text-align: right; }
  .song, .movie { padding-top: 19px; }
  .song-head { grid-template-columns: minmax(100px, 34%) minmax(0, 1fr); gap: 13px; }
  .art { max-width: none; border-radius: 10px; }
  .song-main h1 { font-size: clamp(1.35rem, 5.5vw, 1.85rem); }
  .from { font-size: .82rem; }
  .actions { gap: 6px; margin-top: 10px; }
  .btn { min-height: 34px; padding: 6px 10px; font-size: .77rem; }
  .facts { grid-template-columns: minmax(76px, max-content) minmax(0,1fr); gap: 6px 12px; margin: 15px 0; padding: 12px; }
  .facts dt, .facts dd { font-size: .8rem; }
  .movie > .backdrop { max-height: 190px; aspect-ratio: 16 / 8; }
  .movie-head { grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 12px; }
  .movie-head .poster { max-width: none; border-radius: 9px; }
  .movie-head .te { font-size: .9rem; }
  .site-footer { margin-top: 28px; padding-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Site-wide search suggestions */
.header-search { z-index: 30; }
.search-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 60;
  width: min(440px, calc(100vw - 28px));
  max-height: min(72vh, 560px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,245,.13);
  border-radius: 16px;
  background: rgba(17,18,15,.97);
  box-shadow: 0 22px 70px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}
.suggestion-heading { margin: 8px 8px 4px; color: var(--muted-2); font-size: .65rem; font-weight: 800; letter-spacing: .14em; }
.search-suggestion { display: grid; grid-template-columns: 32px minmax(0,1fr) 16px; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-suggestion:hover { color: var(--ink); background: rgba(255,255,245,.065); }
.suggestion-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--rule); border-radius: 9px; color: var(--accent); background: rgba(255,255,245,.035); font-size: 1.05rem; }
.suggestion-copy { display: grid; min-width: 0; gap: 1px; }
.suggestion-title { overflow: hidden; color: var(--ink); font-size: .88rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-subtitle { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-arrow { color: var(--muted-2); }
.suggestion-all { display: block; margin-top: 7px; padding: 10px 8px 6px; border-top: 1px solid var(--rule); color: var(--accent); font-size: .82rem; font-weight: 650; text-decoration: none; }
.suggestion-empty { margin: 8px; padding: 9px 4px; color: var(--muted); font-size: .83rem; }

/* Album and movie filter controls */
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 16px; padding: 13px; border: 1px solid var(--rule); border-radius: 15px; background: rgba(255,255,245,.026); backdrop-filter: blur(14px); }
.filter-bar label { display: grid; flex: 1 1 155px; min-width: 145px; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.filter-bar .filter-search { flex: 2 1 225px; }
.filter-bar input, .filter-bar select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 11px; border: 1px solid rgba(255,255,245,.13); border-radius: 9px; background: #141511; color: var(--ink); font: inherit; font-size: .82rem; }
.filter-bar input::placeholder { color: #77796f; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: rgba(199,242,123,.6); box-shadow: 0 0 0 3px rgba(199,242,123,.07); }
.filter-count { flex: 0 0 auto; margin: 0 2px 8px; color: var(--muted-2); font-size: .76rem; white-space: nowrap; }
.album-item[hidden], .movie-item[hidden] { display: none !important; }

/* A dedicated, filterable movie catalogue */
.movies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); align-items: stretch; gap: 14px; margin: 0; padding: 0; list-style: none; }
.movie-item { min-width: 0; }
.movie-card { display: flex; height: 100%; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border: 1px solid transparent; border-radius: 13px; color: var(--ink); text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.movie-card:hover { transform: translateY(-2px); border-color: var(--rule); background: rgba(255,255,245,.035); color: var(--ink); }
.movie-cover { width: 100%; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 5px; border: 1px solid rgba(255,255,245,.11); border-radius: 10px; background: #171815; box-shadow: 0 8px 23px rgba(0,0,0,.22); }
.movie-cover-empty { display: grid; place-items: center; color: var(--accent); font-size: 2rem; }
.movie-card-title { color: var(--ink); font-size: .92rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.movie-card-genre { color: var(--muted-2); font-size: .73rem; line-height: 1.35; }

/* Spotify-inspired right-side song details panel */
.drawer-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(0,0,0,.56); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.song-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(420px, 100vw); overflow-y: auto; padding: 19px 20px 24px; border-left: 1px solid rgba(255,255,245,.13); background: rgba(15,16,13,.97); box-shadow: -22px 0 70px rgba(0,0,0,.42); backdrop-filter: blur(28px) saturate(130%); -webkit-backdrop-filter: blur(28px) saturate(130%); transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; }
.song-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-topline .eyebrow { margin: 0; }
.drawer-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: rgba(255,255,245,.045); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.drawer-close:hover { background: rgba(255,255,245,.1); }
.drawer-artwork { width: 100%; max-width: 292px; aspect-ratio: 1; object-fit: cover; margin: 0 auto 19px; border: 1px solid var(--rule); border-radius: 15px; background: #171815; box-shadow: 0 16px 45px rgba(0,0,0,.35); }
.drawer-kicker { margin-bottom: 6px; }
.song-drawer h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; }
.drawer-film { margin: 0 0 7px; color: var(--muted); font-size: .9rem; }
.drawer-film-link { color: var(--accent); font-weight: 650; text-decoration: none; }
.drawer-film-link:hover { text-decoration: underline; }
.drawer-artists { margin: 0 0 14px; color: #dcddd5; font-size: .89rem; line-height: 1.45; }
.drawer-facts { display: grid; gap: 0; margin: 0 0 16px; border-top: 1px solid var(--rule); }
.drawer-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .8rem; }
.drawer-fact-label { flex: 0 0 auto; color: var(--muted-2); }
.drawer-fact-value { color: #e6e7df; text-align: right; overflow-wrap: anywhere; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.drawer-actions .btn { flex: 0 0 auto; }
.drawer-player-area { margin-top: 12px; }
.drawer-player-area:empty { display: none; }
.drawer-player-area iframe { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 12px; background: #10110f; }
.drawer-player-area iframe.spotify { height: 152px; }
.drawer-player-area iframe.youtube { aspect-ratio: 16 / 9; height: auto; }
.drawer-full-details { align-self: flex-start; margin-top: 14px; }


@media (max-width: 930px) {
  .movies-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .filter-bar { gap: 8px; padding: 10px; }
}
@media (max-width: 600px) {
  .search-popover { top: calc(100% + 6px); padding: 7px; }
  .filter-bar { gap: 8px; padding: 9px; }
  .filter-bar label { flex: 1 1 calc(50% - 8px); min-width: 0; font-size: .72rem; }
  .filter-bar .filter-search { flex: 1 1 100%; }
  .filter-bar input, .filter-bar select { min-height: 36px; padding: 6px 8px; font-size: .78rem; }
  .filter-count { margin: 0 2px 2px; }
  .movies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .movie-card { padding: 5px; }
  .movie-cover { border-radius: 8px; }
  .movie-card-title { font-size: .85rem; }
  .movie-card-genre { font-size: .68rem; }
  .song-drawer { padding: 14px 15px 22px; }
  .drawer-artwork { max-width: 250px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .song-drawer { transition: none; }
}


/* Album detail pages: artwork-led ambient glass treatment */
.album-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 66px) 0 34px;
  background: #10110f;
}
.album-detail-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -30px;
  background-image: var(--artwork-url);
  background-position: center 38%;
  background-size: cover;
  filter: blur(34px) brightness(.48) saturate(1.18);
  opacity: .8;
  transform: scale(1.08);
}
.album-detail-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,9,8,.80), rgba(8,9,8,.46)), linear-gradient(0deg, #080908 0%, transparent 60%);
}
.album-detail-head {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  align-items: end;
  gap: clamp(22px, 4vw, 44px);
}
.album-detail-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 18px 55px rgba(0,0,0,.36);
}
.album-detail-copy h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
.album-telugu { margin: 0 0 8px; font-size: 1.2rem; color: #f0f0e7; }
.album-byline { margin: 12px 0 4px; font-weight: 650; }
.album-stats { color: var(--muted); font-size: .9rem; }
.album-stats span { padding: 0 5px; }
.album-track-section { padding-top: 16px; }
.track { min-width: 0; }
.tracks a { grid-template-columns: 30px 48px minmax(0,1fr) auto; gap: 12px; }
.track-artwork {
  display: block;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  background: #20211d;
}
.track-artwork-empty { display: grid; place-items: center; color: var(--muted); }
.track .main { min-width: 0; }
.track .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-head { position: relative; }
.song-head .art { box-shadow: 0 16px 42px rgba(0,0,0,.3); }
@media (max-width: 680px) {
  .album-detail-head { grid-template-columns: minmax(112px, 36%) minmax(0,1fr); gap: 16px; align-items: center; }
  .album-detail-copy h1 { font-size: clamp(1.55rem, 7vw, 2.35rem); }
  .album-detail-copy .actions { gap: 7px; }
  .album-detail-copy .btn { min-height: 38px; padding-inline: 10px; font-size: .78rem; }
  .tracks a { grid-template-columns: 25px 40px minmax(0,1fr) auto; gap: 8px; }
  .track-artwork { width: 40px; height: 40px; }
}

.song-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -26px -40vw -18px;
  pointer-events: none;
  background-image: var(--artwork-url);
  background-position: center;
  background-size: cover;
  filter: blur(48px) brightness(.26) saturate(1.18);
  opacity: .45;
}


/* Desktop song selection behaves like Spotify's right-hand Now Playing panel.
   Main content remains visible and gives the docked panel its own column. */
@media (min-width: 1051px) {
  .drawer-backdrop { display: none !important; }
  .song-drawer {
    top: 64px;
    bottom: 0;
    right: 0;
    width: min(360px, 32vw);
    padding: 16px 16px 22px;
    border-top: 1px solid rgba(255,255,245,.08);
    border-radius: 14px 0 0 0;
    box-shadow: -12px 0 42px rgba(0,0,0,.30);
    transform: translateX(105%);
  }
  .song-drawer.is-open { transform: translateX(0); }
  .drawer-artwork { max-width: 100%; margin-bottom: 16px; }
  body.drawer-is-open #main { margin-right: min(376px, 33vw); transition: margin-right .24s ease; }
  body.drawer-is-open .site-footer {
    width: min(var(--max), calc(100% - var(--gutter) - var(--gutter) - min(376px, 33vw)));
    margin-left: var(--gutter);
    margin-right: min(376px, 33vw);
    transition: width .24s ease, margin-right .24s ease;
  }
}

/* On small screens the details panel intentionally becomes a modal sheet. */
@media (max-width: 1050px) {
  .drawer-backdrop:not([hidden]) { display: block; }
  body.drawer-is-open { overflow: hidden; }
  .song-drawer { top: 0; bottom: 0; width: min(420px, 100vw); border-radius: 0; }
}
@media (max-width: 600px) {
  .song-drawer { padding: 14px 15px 22px; }
  .drawer-artwork { max-width: min(100%, 245px); margin-bottom: 13px; }
}

.drawer-album-link { margin: -2px 0 12px; font-size: .8rem; }
.drawer-album-link a { color: var(--accent); text-decoration: none; }
.drawer-album-link a:hover { text-decoration: underline; }
.movie-imdb-id { margin: 0 0 5px; letter-spacing: .08em; }

/* v2 interface: database-wide search, expanded catalogues, accessible themes and provider actions */
:root { --spotify-contrast: #10110f; --youtube-contrast: #ffffff; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 44px;
  overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.brand-logo { width: auto; height: 42px; max-width: 25px; object-fit: contain; padding: 0; }
.logo-for-light { display: none; }
.logo-for-dark { display: block; }
html[data-theme="light"] .logo-for-light { display: block; }
html[data-theme="light"] .logo-for-dark { display: none; }
.header-inner { grid-template-columns: auto minmax(0,1fr) minmax(330px,430px) auto; gap: 13px; }
.site-nav { gap: 1px; }
.nav-link { padding-inline: 9px; font-size: .85rem; }
.header-search { display: grid; grid-template-columns: minmax(0,1fr) 34px auto; align-items: center; gap: 6px; }
.header-search input { padding: 8px 11px; min-height: 38px; border-radius: 10px; }
.header-search button { position: static; width: 34px; height: 34px; border-radius: 10px; font-size: 1.3rem; }
.advanced-search-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 10px; border: 1px solid rgba(199,242,123,.25); border-radius: 10px; background: rgba(199,242,123,.09); color: var(--accent); font-size: .76rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.advanced-search-link:hover { background: rgba(199,242,123,.17); color: var(--accent-strong); }
.search-popover { width: min(520px, calc(100vw - 28px)); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.theme-toggle:hover { border-color: rgba(199,242,123,.45); background: var(--surface-hover); }

/* Date-range and catalogue filter form controls */
.filter-bar label { flex-basis: 155px; }
.filter-bar input[type="date"] { min-width: 0; }
.song-filter-bar { margin-bottom: 13px; }
.song-catalog-item[hidden] { display: none !important; }
.song-catalog-item .tracks a { cursor: pointer; }
.song-filter-bar .filter-search { flex-basis: 235px; }

/* Advanced search: one search runs against songs, albums and movies in search-index.json */
.advanced-search-intro { padding-bottom: 2px; }
.advanced-search-controls { display: grid; grid-template-columns: minmax(230px,2fr) repeat(2,minmax(145px,1fr)); gap: 12px; padding: 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); backdrop-filter: blur(16px); }
.advanced-search-controls label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.advanced-search-controls input, .advanced-search-controls select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 9px; background: var(--bg-raised); color: var(--ink); font: inherit; }
.advanced-query-label { grid-column: 1 / 3; }
.advanced-submit { align-self: end; min-height: 40px; }
.advanced-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 23px 0 10px; }
.advanced-results-head h2 { margin: 0; }
.advanced-results-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(285px,1fr)); gap: 9px; }
.advanced-result-card { display: grid; grid-template-columns: 64px minmax(0,1fr) 18px; gap: 12px; align-items: center; min-width: 0; padding: 9px; border: 1px solid var(--rule); border-radius: 13px; background: var(--surface); color: var(--ink); text-decoration: none; }
.advanced-result-card:hover { border-color: rgba(199,242,123,.35); background: var(--surface-hover); color: var(--ink); }
.advanced-result-art { display: block; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--bg-raised); }
.advanced-result-art-empty { display: grid; place-items: center; color: var(--accent); font-size: 1.5rem; }
.advanced-result-copy { display: grid; min-width: 0; gap: 2px; }
.advanced-result-type { color: var(--accent); font-size: .62rem; font-weight: 850; letter-spacing: .12em; }
.advanced-result-title { overflow: hidden; color: var(--ink); font-size: .9rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.advanced-result-subtitle { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.advanced-result-arrow { color: var(--muted-2); }

/* Songs / albums / movies chart selector */
.chart-tabs { display: inline-flex; gap: 4px; margin-bottom: 22px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); }
.chart-tab { min-height: 36px; padding: 6px 17px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 750; cursor: pointer; }
.chart-tab:hover { color: var(--ink); background: var(--surface-hover); }
.chart-tab.is-active { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.chart-panel[hidden] { display: none !important; }
.chart-panel > .section-heading { margin-bottom: 12px; }
.entity-chart-list { max-width: 1000px; }
.entity-chart-row .meta { min-width: 75px; }

/* Streaming provider icons remain paired with readable labels, including in the song drawer. */
.provider-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.provider-icon { flex: 0 0 19px; display: inline-block; width: 19px; height: 19px; }
.spotify-btn { --provider-contrast: #10110f; }
.spotify-btn .provider-icon { color: #1ed760; }
.youtube-btn .provider-icon { color: #ff0033; }
.provider-label { display: inline-block; }

/* Light mode: full palette and surfaces change with the theme toggle. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2ed;
  --bg-raised: #fffefa;
  --surface: rgba(255,255,255,.88);
  --surface-hover: rgba(255,255,255,.98);
  --ink: #191a17;
  --muted: #5e6058;
  --muted-2: #77796f;
  --rule: rgba(30,32,25,.14);
  --accent: #557b1d;
  --accent-strong: #375712;
  --on-accent: #ffffff;
  --focus: #557b1d;
  --spotify-contrast: #10110f;
  --youtube-contrast: #ffffff;
}
html[data-theme="light"] body { background: radial-gradient(ellipse at 8% 0%,rgba(151,178,92,.13),transparent 34rem),radial-gradient(ellipse at 96% 22%,rgba(206,151,98,.11),transparent 30rem),#f4f2ed; color: var(--ink); }
html[data-theme="light"] body::before { background: linear-gradient(180deg,rgba(255,255,255,.28),transparent 38rem); }
html[data-theme="light"] .site-header { background: rgba(248,247,242,.90); border-bottom-color: rgba(32,34,26,.12); }
html[data-theme="light"] .nav-link { color: #55574f; }
html[data-theme="light"] .nav-link:hover, html[data-theme="light"] .nav-link.active { color: var(--ink); background: rgba(32,34,26,.055); border-color: rgba(32,34,26,.08); }
html[data-theme="light"] .nav-link.active { color: var(--accent); }
html[data-theme="light"] .brand { color: #1a1b17; }
html[data-theme="light"] .header-search input { background: rgba(255,255,255,.9); border-color: rgba(32,34,26,.18); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
html[data-theme="light"] .header-search input::placeholder { color: #77796f; }
html[data-theme="light"] .header-search button { background: rgba(85,123,29,.10); color: var(--accent); }
html[data-theme="light"] .advanced-search-link { background: rgba(85,123,29,.08); border-color: rgba(85,123,29,.22); }
html[data-theme="light"] .theme-toggle { background: #fffefa; }
html[data-theme="light"] .home-stats span, html[data-theme="light"] .filter-bar, html[data-theme="light"] .advanced-search-controls, html[data-theme="light"] .advanced-result-card, html[data-theme="light"] .chart-tabs { background: rgba(255,255,255,.8); }
html[data-theme="light"] .tracks { border-top-color: var(--rule); }
html[data-theme="light"] .tracks li { border-bottom-color: var(--rule); }
html[data-theme="light"] .tracks a { color: var(--ink); }
html[data-theme="light"] .tracks a:hover { background: rgba(25,26,23,.045); }
html[data-theme="light"] .tracks a[aria-current="true"] { background: rgba(85,123,29,.075); }
html[data-theme="light"] .n { background: rgba(25,26,23,.07); color: #505248; }
html[data-theme="light"] .name, html[data-theme="light"] .advanced-result-title { color: var(--ink); }
html[data-theme="light"] .filter-bar input, html[data-theme="light"] .filter-bar select, html[data-theme="light"] .advanced-search-controls input, html[data-theme="light"] .advanced-search-controls select { background: #fffefa; border-color: rgba(30,32,25,.16); color: var(--ink); }
html[data-theme="light"] .search-popover { background: rgba(255,255,251,.98); border-color: rgba(30,32,25,.13); box-shadow: 0 22px 70px rgba(0,0,0,.16); }
html[data-theme="light"] .search-suggestion { color: var(--ink); }
html[data-theme="light"] .search-suggestion:hover { background: rgba(25,26,23,.05); }
html[data-theme="light"] .search-suggestion .suggestion-title { color: var(--ink); }
html[data-theme="light"] .suggestion-icon { background: #f1f0e9; }
html[data-theme="light"] .btn:not(.primary) { background: rgba(255,255,255,.7); color: var(--ink); border-color: rgba(30,32,25,.18); }
html[data-theme="light"] .btn:not(.primary):hover { background: #fff; }
html[data-theme="light"] .facts { background: rgba(255,255,255,.7); border-color: var(--rule); }
html[data-theme="light"] .facts dt, html[data-theme="light"] .facts dd, html[data-theme="light"] .plot, html[data-theme="light"] .drawer-artists, html[data-theme="light"] .drawer-fact-value { color: var(--ink); }
html[data-theme="light"] .album-card, html[data-theme="light"] .movie-card { color: var(--ink); }
html[data-theme="light"] .album-card:hover, html[data-theme="light"] .movie-card:hover { background: rgba(255,255,255,.72); }
html[data-theme="light"] .album-cover, html[data-theme="light"] .movie-cover, html[data-theme="light"] .track-artwork { background: #e5e2d8; }
html[data-theme="light"] .album-detail-hero { background: #e9e7df; }
html[data-theme="light"] .album-detail-hero::after { background: linear-gradient(90deg,rgba(248,247,242,.86),rgba(248,247,242,.60)),linear-gradient(0deg,#f4f2ed 0%,transparent 60%); }
html[data-theme="light"] .album-telugu, html[data-theme="light"] .album-byline, html[data-theme="light"] .album-detail-copy { color: #191a17; }
html[data-theme="light"] .drawer-backdrop { background: rgba(20,21,17,.25); }
html[data-theme="light"] .song-drawer { background: rgba(255,255,251,.98); border-left-color: var(--rule); box-shadow: -22px 0 70px rgba(0,0,0,.14); }
html[data-theme="light"] .drawer-artists, html[data-theme="light"] .drawer-fact-value { color: #2b2c27; }
html[data-theme="light"] .drawer-close { background: rgba(25,26,23,.04); color: var(--ink); }
html[data-theme="light"] .detail-art-theme::before { filter: blur(20px) brightness(1.15) saturate(.7); opacity: .2; }
html[data-theme="light"] .song-head::before { filter: blur(42px) brightness(1.35) saturate(.75); opacity: .22; }
html[data-theme="light"] .album-detail-hero::before { filter: blur(34px) brightness(1.05) saturate(.8); opacity: .55; }
html[data-theme="light"] .site-footer { border-top-color: var(--rule); }
html[data-theme="light"] .chart-tab { color: var(--muted); }
html[data-theme="light"] .chart-tab.is-active { color: white; background: var(--accent); }

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]):not([data-theme="light"]) { color-scheme: light; }
  html:not([data-theme="dark"]):not([data-theme="light"]) .logo-for-light { display: block; }
  html:not([data-theme="dark"]):not([data-theme="light"]) .logo-for-dark { display: none; }
}
@media (max-width: 1120px) {
  .header-inner { grid-template-columns: auto minmax(0,1fr) minmax(290px,390px) auto; gap: 8px; }
  .site-nav { gap: 0; }
  .nav-link { padding-inline: 7px; font-size: .81rem; }
}
@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto minmax(0,1fr) auto; gap: 7px 12px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-search { grid-column: 2; grid-row: 1; }
  .theme-toggle { grid-column: 3; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 680px) {
  .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .brand { grid-column: 1; grid-row: 1; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .header-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0,1fr) 32px auto; }
  .header-search input { min-height: 36px; font-size: .8rem; }
  .advanced-search-link { min-height: 31px; padding: 4px 8px; font-size: .71rem; }
  .header-search button { width: 31px; height: 31px; }
  .site-nav { grid-column: 1 / -1; grid-row: 3; }
  .brand-mark { height: 39px; flex-basis: 25px; width: 25px; }
  .brand-logo { height: 37px; max-width: 22px; }
  .advanced-search-controls { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 11px; gap: 9px; }
  .advanced-query-label { grid-column: 1 / -1; }
  .advanced-submit { grid-column: 1 / -1; }
  .advanced-results-grid { grid-template-columns: minmax(0,1fr); }
  .advanced-result-card { grid-template-columns: 56px minmax(0,1fr) 16px; gap: 10px; }
  .advanced-result-art { width: 56px; height: 56px; }
  .advanced-results-head { align-items: start; }
  .chart-tabs { display: flex; width: 100%; }
  .chart-tab { flex: 1; padding-inline: 9px; }
}


/* Final JSON metadata, streaming availability and links dropdown */
.movie-title-logo {
  width: min(420px, 100%);
  max-width: 100%;
  max-height: 108px;
  margin: 4px 0 12px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 18px rgba(0,0,0,.28));
}
.movie-main-copy { min-width: 0; }
.movie-links-dropdown { position: relative; display: inline-flex; }
.movie-links-dropdown > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.movie-links-dropdown > summary::-webkit-details-marker { display: none; }
.movie-links-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 35;
  display: grid; min-width: 220px; padding: 6px;
  border: 1px solid var(--rule); border-radius: 12px;
  background: rgba(18,19,17,.98); box-shadow: 0 20px 50px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}
.movie-links-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .86rem; }
.movie-links-menu a:hover { background: var(--surface-hover); color: var(--accent); }
html[data-theme="light"] .movie-links-menu { background: rgba(255,255,251,.98); box-shadow: 0 20px 50px rgba(0,0,0,.14); }

.ott-section { margin: 26px 0 34px; }
.ott-section .section-heading { margin-bottom: 7px; }
.ott-provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; margin-top: 12px; }
.ott-provider-btn {
  display: grid; grid-template-columns: 43px minmax(0,1fr) 16px; gap: 11px; align-items: center;
  min-height: 70px; padding: 11px 13px; border: 1px solid var(--rule); border-radius: 13px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ott-provider-btn:hover { color: var(--ink); transform: translateY(-1px); border-color: rgba(199,242,123,.42); background: var(--surface-hover); }
.ott-logo { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; font-weight: 950; font-size: 1.05rem; letter-spacing: -.04em; text-align: center; line-height: .94; background: #272727; color: white; }
.ott-logo-netflix { color: #e50914; background: #171414; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 1.8rem; font-weight: 950; }
.ott-logo-prime { background: #102c4e; color: #4cb8f5; font-size: .86rem; letter-spacing: -.08em; }
.ott-logo-apple { background: #222; color: #fff; font-size: 1.15rem; }
.ott-logo-youtube { background: #f00; color: white; font-size: 1.05rem; }
.ott-logo-zee5 { border: 2px solid #b3a3e6; border-radius: 50%; background: #191523; color: #d9caff; font-size: .67rem; letter-spacing: -.04em; }
.ott-logo-sonyliv { background: linear-gradient(135deg,#5129a6,#111); font-size: .68rem; letter-spacing: -.05em; white-space: pre-line; }
.ott-logo-hotstar { background: linear-gradient(140deg,#152966,#10131c); color: #83b7ff; font-size: .88rem; }
.ott-logo-sunnxt { background: linear-gradient(135deg,#f85b26,#99250f); font-size: .82rem; }
.ott-logo-vi { background: linear-gradient(135deg,#ed1164,#8e1a89); font-size: 1.3rem; }
.ott-logo-generic { background: #35372f; color: var(--accent); font-size: .74rem; }
.ott-provider-copy { display: grid; min-width: 0; gap: 3px; }
.ott-provider-copy strong { font-size: .83rem; line-height: 1.25; font-weight: 760; overflow-wrap: anywhere; }
.ott-provider-copy small { color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.ott-arrow { color: var(--muted-2); font-size: 1rem; }
html[data-theme="light"] .ott-provider-btn { background: rgba(255,255,255,.82); color: var(--ink); }
html[data-theme="light"] .ott-provider-btn:hover { background: #fff; }

.song-metadata-section { margin: 30px 0; }
.metadata-details { margin-top: 13px; padding: 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.metadata-details > summary { color: var(--ink); cursor: pointer; font-weight: 750; }
.metadata-details > .facts { margin-top: 14px; }
.song-video-section { margin: 28px 0 34px; }
.song-video-embed { max-width: 760px; }
.song-video-title { color: var(--muted); margin-top: 0; }
.video-views { color: var(--muted); font-size: .78rem; }
.youtube-video-btn .provider-icon { color: #ff0033; }
.song-film-context { margin-bottom: 28px; }

@media (max-width: 680px) {
  .movie-title-logo { max-height: 74px; width: min(280px, 100%); }
  .movie-links-dropdown { max-width: 100%; }
  .movie-links-menu { right: auto; left: 0; }
  .ott-provider-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 8px; }
  .ott-provider-btn { grid-template-columns: 36px minmax(0,1fr) 12px; min-height: 62px; padding: 8px; gap: 8px; }
  .ott-logo { width: 36px; height: 36px; border-radius: 9px; }
  .ott-provider-copy strong { font-size: .75rem; }
}
