/* TextPesni shared site header — exact homepage visual system */
.site-header,.top{position:relative!important;top:auto!important;z-index:1000!important;background:linear-gradient(115deg,#123b5b,#1c5b83)!important;color:#fff!important;border:0!important;box-shadow:0 3px 16px rgba(11,43,66,.12)!important;backdrop-filter:none!important}
.site-header .nav,.top .nav{width:min(1120px,calc(100% - 40px))!important;margin:0 auto!important;min-height:72px!important;height:auto!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-direction:row!important;gap:24px!important}
.site-header .brand,.top .brand{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;align-self:auto!important;gap:10px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#fff!important;font-family:Manrope,system-ui,sans-serif!important;font-size:22px!important;font-weight:700!important;letter-spacing:-.7px!important;line-height:1.2!important;text-decoration:none!important;white-space:nowrap!important}
.site-header .brand:before,.top .brand:before{content:none!important;display:none!important}
.site-header .brand span,.top .brand span{color:inherit!important}
.site-header .brand .brand-mark,.top .brand .brand-mark{width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:50%!important;background:linear-gradient(145deg,#65a6ca,#24658f)!important;color:#fff!important;font-family:Georgia,serif!important;font-size:20px!important;font-weight:400!important;letter-spacing:0!important;line-height:1!important;box-shadow:inset 0 1px 2px #ffffff55!important}
.site-header .nav-links,.top .links{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:24px!important;flex-wrap:wrap!important;width:auto!important;margin:0!important;padding:0!important;overflow:visible!important;white-space:normal!important;scrollbar-width:none!important}
.site-header .nav-links a,.top .links a{display:inline-block!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;color:#eaf4fa!important;font-family:Manrope,system-ui,sans-serif!important;font-size:12px!important;font-weight:800!important;line-height:1.5!important;text-decoration:none!important;white-space:nowrap!important;transition:color .15s!important;cursor:pointer!important}
.site-header .nav-links a:hover,.top .links a:hover{color:#fff!important}
@media(max-width:650px){.site-header .nav,.top .nav{width:calc(100% - 28px)!important;min-height:0!important;height:auto!important;align-items:flex-start!important;justify-content:flex-start!important;flex-direction:column!important;gap:10px!important;padding:12px 0!important}.site-header .brand,.top .brand{align-self:flex-start!important;margin:0!important}.site-header .nav-links,.top .links{width:100%!important;justify-content:center!important;gap:9px 17px!important;flex-wrap:wrap!important;overflow:visible!important;padding:0!important}.site-header .nav-links a,.top .links a{font-size:10px!important}}

/* Interior pages: only the brand remains in the top bar. */
.top .links{display:none!important}
.site-header .nav-links{display:flex!important}
.cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important}
.cards .card{position:relative!important;min-height:190px!important;overflow:hidden!important;justify-content:flex-start!important;gap:9px!important;padding:21px!important;border:1px solid #dce8f0!important;border-radius:19px!important;background:linear-gradient(145deg,#fff 0%,#f8fbfd 100%)!important;box-shadow:0 7px 22px rgba(23,58,82,.055)!important;text-decoration:none!important;transition:transform .2s,border-color .2s,box-shadow .2s!important}
.cards a.card:hover{transform:translateY(-4px)!important;border-color:#9fc2d8!important;box-shadow:0 14px 30px rgba(23,58,82,.11)!important}
.cards .card:after{content:"";position:absolute;width:130px;height:130px;right:-52px;top:-54px;border-radius:50%;background:radial-gradient(circle,#dceef8 0%,#edf5fa 68%,transparent 70%);pointer-events:none}
.cards .card-icon{position:relative;z-index:1;display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,#e5f2f9,#d3e7f3);color:#286b96;font-size:22px;font-weight:700;box-shadow:inset 0 1px #fff}
.cards .card .tag{position:relative;z-index:1;color:#6b94ad;font-size:9px;font-weight:800;letter-spacing:.14em}
.cards .card b{position:relative;z-index:1;font-size:16px!important;line-height:1.35!important;letter-spacing:-.02em}
.cards .card small{position:relative;z-index:1;color:#71889a!important;font-size:11px!important}
.cards .card .go{position:relative;z-index:1;margin-top:auto;padding-top:8px;color:#24658f;font-size:11px;font-weight:800}
.cards .person-card{min-height:175px!important}
.cards .person-card .person-songs{position:relative;z-index:1;display:grid;gap:7px;width:100%;margin-top:8px;padding-top:11px;border-top:1px solid #e7eef3}
.cards .person-card .person-songs a{font-size:11px;color:#245f86;font-weight:700;text-decoration:none}
.catalog-switch{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.catalog-switch button{min-width:0!important;white-space:nowrap!important;padding:10px 9px!important;font-size:12px!important;letter-spacing:-.02em}
@media(max-width:650px){
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .cards .card{min-height:165px!important;padding:14px!important;border-radius:15px!important}
 .cards .card b{font-size:13px!important}
 .cards .card-icon{width:36px;height:36px;border-radius:12px;font-size:19px}
 .catalog-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 .catalog-switch button{padding:8px 3px!important;font-size:9px!important;letter-spacing:-.04em!important;line-height:1.1!important;white-space:nowrap!important}
}


/* Navigation visibility: homepage + directory pages only; hide page lists on song and category detail pages. */
.top .links{display:none!important}
.directory-page .top .links{display:flex!important}
@media(max-width:650px){
 .directory-page .top .nav{align-items:center!important;flex-direction:column!important;justify-content:center!important;gap:9px!important;padding:11px 0!important}
 .directory-page .top .brand{align-self:center!important}
 .directory-page .top .links{width:100%!important;max-width:none!important;justify-content:center!important;gap:7px 15px!important;flex-wrap:wrap!important}
 .directory-page .top .links a{font-size:10px!important}
}

/* Catalog: proper song cards instead of plain underlined list rows. */
.catalog-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.catalog-items .song-catalog-card{position:relative!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 22px!important;align-items:center!important;gap:13px!important;min-height:94px!important;padding:15px 16px!important;overflow:hidden!important;border:1px solid #dce7ef!important;border-radius:17px!important;background:linear-gradient(145deg,#fff 0%,#f8fbfd 100%)!important;color:#1b3041!important;text-decoration:none!important;box-shadow:0 7px 22px rgba(23,58,82,.055)!important;transition:transform .18s,border-color .18s,box-shadow .18s!important}
.catalog-items .song-catalog-card:before{content:"";position:absolute;right:-35px;top:-48px;width:112px;height:112px;border-radius:50%;background:radial-gradient(circle,#e2f0f8 0%,#f1f7fb 67%,transparent 70%);pointer-events:none}
.catalog-items .song-catalog-card:hover{transform:translateY(-3px)!important;border-color:#a9c8dc!important;box-shadow:0 13px 28px rgba(23,58,82,.10)!important}
.catalog-card-icon{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#e5f2f9,#d3e7f3);color:#286b96;font-family:Georgia,serif;font-size:24px;box-shadow:inset 0 1px #fff}
.catalog-card-main{position:relative;z-index:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.catalog-card-main b{display:block!important;font-size:13px!important;line-height:1.4!important;letter-spacing:-.015em!important}
.catalog-card-main small{display:block!important;color:#71889a!important;font-size:10px!important;line-height:1.45!important}
.catalog-card-open{position:relative;z-index:1;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf4f8;color:#39789e;font-size:14px;font-weight:800}
.catalog-items .song-catalog-card[hidden]{display:none!important}

/* Theme cards: visual hierarchy, clear category identity and consistent spacing. */
.cards .theme-directory-card{min-height:202px!important;padding:20px!important;gap:10px!important}
.cards .theme-directory-card .card-icon{width:48px!important;height:48px!important;border-radius:16px!important;font-size:23px!important}
.cards .theme-directory-card .tag{font-size:9px!important;letter-spacing:.16em!important}
.cards .theme-directory-card b{font-size:16px!important;line-height:1.35!important}
.cards .theme-directory-card small{font-size:11px!important}
.cards .theme-directory-card .go{display:flex;align-items:center;gap:5px;margin-top:auto;padding-top:9px}

/* Performer directory: distinct profile-like cards, not text links. */
.cards .artist-directory-card{min-height:190px!important;align-items:flex-start!important;gap:9px!important;padding:19px!important}
.artist-avatar{position:relative;z-index:1;display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#dcecf6,#c5deed);color:#245f86;font-size:21px;font-weight:800;box-shadow:inset 0 1px #fff}
.cards .artist-directory-card .tag{margin-top:2px}
.cards .artist-directory-card b{font-size:16px!important;line-height:1.35!important}
.artist-count{position:relative;z-index:1;display:inline-flex;align-items:center;padding:5px 9px;border:1px solid #e0ebf2;border-radius:30px;background:#f5f9fc;color:#607d91;font-size:10px;font-weight:800}
.cards .artist-directory-card .go{display:flex;justify-content:space-between;align-items:center;width:100%;padding-top:11px;border-top:1px solid #e7eef3}

/* Sorting controls: compact, legible, and always single-line on phones. */
.catalog-switch{display:grid!important;width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-top:13px!important}
.catalog-switch button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:36px!important;padding:8px 7px!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;letter-spacing:-.025em!important}
@media(max-width:650px){
 .catalog-items{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
 .catalog-items .song-catalog-card{min-height:78px!important;padding:12px!important;grid-template-columns:38px minmax(0,1fr) 20px!important;gap:10px!important;border-radius:14px!important}
 .catalog-card-icon{width:38px;height:38px;border-radius:12px;font-size:21px}
 .catalog-card-main b{font-size:13px!important}
 .catalog-switch{gap:5px!important}
 .catalog-switch button{min-height:33px!important;padding:7px 3px!important;font-size:clamp(8px,2.65vw,10px)!important;letter-spacing:-.045em!important;white-space:nowrap!important}
 .cards .theme-directory-card{min-height:174px!important;padding:14px!important}
 .cards .artist-directory-card{min-height:170px!important;padding:14px!important}
 .artist-avatar,.cards .theme-directory-card .card-icon{width:39px!important;height:39px!important;border-radius:13px!important}
}
@media(max-width:360px){
 .catalog-switch button{font-size:8px!important;padding-left:2px!important;padding-right:2px!important}
}


/* Final shared mobile header alignment: keep the logo flush-left on every page. */
@media(max-width:650px){
 .site-header .nav,.top .nav{align-items:flex-start!important;justify-content:flex-start!important;flex-direction:column!important}
 .site-header .brand,.top .brand{align-self:flex-start!important;margin-left:0!important;margin-right:0!important}
 .directory-page .top .nav{align-items:flex-start!important;justify-content:flex-start!important;flex-direction:column!important}
 .directory-page .top .brand{align-self:flex-start!important;margin-left:0!important;margin-right:0!important}
 .directory-page .top .links{justify-content:flex-start!important}
}


/* Hard override for all mobile page headers; wins over page-generated inline rules. */
@media (max-width:650px){
 html body .top .nav > .brand, html body .site-header .nav > .brand { align-self:flex-start!important; justify-self:start!important; margin-left:0!important; margin-right:auto!important; text-align:left!important; }
 html body .top .nav, html body .site-header .nav { align-items:flex-start!important; justify-content:flex-start!important; flex-direction:column!important; }
}


/* Final header correction: brand left, navigation centered on directory pages. */
@media(max-width:650px){
 .directory-page .top .nav,.directory-page .site-header .nav{align-items:flex-start!important;justify-content:flex-start!important;flex-direction:column!important}
 .directory-page .top .brand,.directory-page .site-header .brand{align-self:flex-start!important;margin-left:0!important;margin-right:0!important}
 .directory-page .top .links,.directory-page .site-header .nav-links{width:100%!important;justify-content:center!important;text-align:center!important}
}
