/* Scoped catalogue presentation; the existing lyric reader remains shared. */



#libraryView .keertana-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr)) auto;gap:14px;align-items:end}
#libraryView .keertana-filters label{display:flex;flex-direction:column;gap:8px;font-weight:600;min-width:0}
#libraryView .keertana-filters input,#libraryView .keertana-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;border:1px solid #cdbd98;border-radius:12px;padding:10px 12px;font:inherit}
#libraryView .keertana-filters :focus-visible{outline:3px solid #b38635;outline-offset:3px}
#libraryView .keertana-hint,#libraryView .keertana-selection{font-size:14px;margin:14px 0;}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-card{border-radius:16px}
@media(max-width:1100px){#libraryView .keertana-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#libraryView .keertana-query{grid-column:1/-1}}
@media(max-width:520px){#libraryView .keertana-filters{gap:12px}#libraryView .keertana-filters .clear-btn{min-height:48px}}
#libraryView .keertana-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
#libraryView .keertana-query{grid-column:span 2}
#libraryView .keertana-discovery-paths,#libraryView .keertana-selection-chips{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}
#libraryView .keertana-discovery-paths button,#libraryView .keertana-selection-chips button{border:1px solid #c8b479;border-radius:24px;padding:10px 16px;font:inherit;cursor:pointer}
#libraryView .keertana-selection-chips button{}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result{min-width:0;border:1px solid #dfd6bf;border-radius:16px;overflow:hidden}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result .song-row{border:0;margin:0;border-radius:0}
#libraryView .keertana-evidence{border-top:1px solid #e7deca;padding:12px 20px;font-size:15px;overflow-wrap:anywhere}
#libraryView .keertana-evidence p{margin:6px 0;line-height:1.8}
#libraryView .keertana-evidence small{}
@media(max-width:900px){#libraryView .keertana-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#libraryView .keertana-query{grid-column:1/-1}}

/* Inherit application colors; retain compact catalogue typography. */
#libraryView{font-family:'Tiro Telugu',serif;font-size:clamp(18px,1.65vw,26px);line-height:1.8}
#libraryView .page-intro h2{font-family:inherit;font-size:clamp(30px,3.1vw,49px);font-weight:400;line-height:1.6}
#libraryView .page-intro .eyebrow{font-family:inherit;font-size:18px!important;font-weight:400;letter-spacing:normal}
#libraryView .page-intro>p:last-child{font-family:inherit;font-size:inherit;line-height:1.85}
#libraryView .keertana-filters label{font-size:18px;font-weight:400}
#libraryView .keertana-filters input,#libraryView .keertana-filters select{font-family:inherit;font-size:18px;}
#libraryView input::placeholder{opacity:1}
#libraryView .keertana-filters :focus-visible,#libraryView button:focus-visible{outline:3px solid var(--wine);outline-offset:3px}
#libraryView .keertana-facet-help,#libraryView .keertana-hint,#libraryView .keertana-selection{font-family:inherit;font-size:18px;line-height:1.85}
#libraryView .keertana-discovery-paths{font-size:18px}
#libraryView .keertana-discovery-paths button,#libraryView .keertana-selection-chips button,#libraryView .clear-btn{border:1px solid var(--line);font-family:inherit;font-size:18px;min-height:44px}
#libraryView .keertana-selection-chips button{}
#libraryView .results-meta,#libraryView .results-meta p{font-family:inherit;font-size:18px}
#libraryView .results-meta b{}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result,:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result .song-row{box-shadow:none}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result .song-row:hover{}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title{min-width:0}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title h3{font-family:inherit;font-size:20px;font-weight:400;line-height:1.55;white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title p,#libraryView .keertana-evidence p{font-family:inherit;font-size:16px;line-height:1.7}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-number{}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-number small,#libraryView .tag{font-family:inherit}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-arrow{}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-quick-actions button{}
#libraryView .keertana-evidence{font-size:inherit}
#libraryView .keertana-evidence small{}
#libraryView .keertana-evidence b{font-weight:400}
#libraryView .pagination button,#libraryView .view-toggle,#libraryView .view-toggle button{}
#libraryView .pagination button.active,#libraryView .view-toggle button.active{}
#libraryView .pagination,#libraryView .empty{}
#libraryView .empty h3{}
@media(max-width:600px){#libraryView{font-size:18px}#libraryView .page-intro h2{font-size:30px}#libraryView .keertana-filters{grid-template-columns:minmax(0,1fr)}#libraryView .keertana-query{grid-column:auto}:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title h3{font-size:19px}:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title p{font-size:15px}}

/* Compact result rows leave the full-size text to the lyrics reader. */
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-list{gap:8px}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result{border-radius:10px}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result .song-row{min-height:72px;padding:10px 16px;gap:12px}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title h3{margin:0 0 4px}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title p{margin:0}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-number{width:46px;height:48px;font-size:17px}
#libraryView .keertana-evidence{padding:8px 16px;font-size:16px}
#libraryView .keertana-evidence p{margin:4px 0}
#libraryView .page-intro>p:last-child{font-size:18px}

/* Four actual row cells: number, title, metadata and actions. No arrow cell. */
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result{background:var(--paper);border-color:var(--line)}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result .song-row{display:grid;grid-template-columns:46px minmax(0,1fr) minmax(0,auto) max-content;width:100%;box-sizing:border-box;min-height:0;height:auto;align-items:center}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-tags{min-width:0;max-width:220px;flex-wrap:wrap}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-quick-actions{min-width:0;display:flex;gap:6px;justify-self:end}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-quick-actions button{flex:0 0 var(--action-control-size,32px);width:var(--action-control-size,32px);height:var(--action-control-size,32px);box-sizing:border-box}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-list.grid .song-row{grid-template-columns:46px minmax(0,1fr)}
:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-list.grid .song-tags,:is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-list.grid .song-quick-actions{grid-column:2;justify-self:start}
#libraryView .keertana-filters input,#libraryView .keertana-filters select{background:var(--paper);color:var(--ink);border-color:var(--line)}
#libraryView .keertana-discovery-paths button,#libraryView .keertana-selection-chips button{background:var(--paper);color:var(--ink);border-color:var(--line)}
/* One compact mobile row: identity, one-line preview/plate, and touch actions. */
@media(max-width:700px){
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result .song-row { grid-template-columns:42px minmax(0,1fr) 92px!important; padding:8px; gap:8px; }
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result .song-title h3 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; font-size:18px; line-height:1.65; }
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-title p { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-number { width:42px; height:44px; font-size:16px; line-height:1.25; }
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-number small { display:block; white-space:nowrap; font-size:12px; line-height:1.4; }
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-quick-actions { grid-column:3; grid-row:1; gap:4px; justify-self:end; }
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-quick-actions button { width:44px; height:44px; flex-basis:44px; }
  :is(#libraryView, #explanationsView, #journeyView, #collectionsView, #bookmarksView) .song-tags { display:none; }
}

/* Separate the title, search controls and result list without extra content. */
#libraryView .keertana-filters{border-top:1px solid var(--line);padding-top:22px}
#libraryView .results-meta{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
#libraryView .keertana-filters label{font-weight:700}
#libraryView .keertana-filters input,#libraryView .keertana-filters select{font-weight:400}

/* Shared result typography for the catalogue and personal reading lists. */
:is(#explanationsView, #journeyView, #collectionsView, #bookmarksView) .keertana-result { font-family: 'Tiro Telugu', serif; }

/* Separate the signed-in reader's collection from general information links. */
.personal-nav { border-bottom: 1px solid rgba(237,189,101,.3); padding-bottom: 16px; margin-bottom: 16px; }
