/* ENCANTEM · sistema visual definitivo basado en la propuesta aprobada */
:root{
  --cream:#fbf5ef;
  --ink:#2f2436;
  --plum:#3a2344;
  --plum-2:#5c3563;
  --rose:#b35a80;
  --gold:#f0d2a2;
  --gold-2:#fff5e6;
}

body{background:var(--cream);color:var(--ink)}
.topbar{
  background:linear-gradient(180deg,rgba(21,13,31,.42),rgba(21,13,31,.16),transparent);
  padding-top:18px;padding-bottom:18px;
}
.topbar .logo{width:178px}
.topbar nav{font-family:Georgia,'Times New Roman',serif;font-size:15px;gap:34px}
.topbar nav a{padding:8px 0}


.hero{
  min-height:640px;
  background-color:#2b1835;
  background-image:
    linear-gradient(90deg, rgba(30,18,41,.88) 0%, rgba(40,23,53,.78) 22%, rgba(54,30,67,.42) 42%, rgba(57,31,68,.16) 64%, rgba(39,21,48,.08) 100%),
    url('/static/enc-hero-20261106.jpg');
  background-size:cover;
  background-position:center center;
  isolation:isolate;
}
.hero:before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,237,191,.32) 0 1px, transparent 2px) 0 0/170px 140px,
    radial-gradient(circle at 68% 34%, rgba(255,230,180,.26) 0 1px, transparent 2px) 0 0/210px 180px,
    radial-gradient(circle at 80% 70%, rgba(255,218,170,.18) 0 1px, transparent 2px) 0 0/190px 170px;
}
.hero-overlay{display:none}
.hero-content{
  position:relative;z-index:2;
  width:min(1240px,88%);
  margin:auto;
  padding:138px 0 165px;
}
.hero h1{
  max-width:620px;
  margin:0;
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(48px,5.4vw,74px);
  font-weight:400;
  line-height:1.04;
  letter-spacing:-.03em;
  color:#fff8f2;
  text-wrap:balance;
  text-shadow:0 4px 22px rgba(23,11,26,.28);
}
.hero .shortline{
  display:block;width:68px;height:2px;border-radius:2px;
  margin:22px 0 16px;background:var(--gold);
}
.hero p{
  max-width:430px;
  margin:0 0 28px;
  font-size:16px;line-height:1.55;color:#fff6ee;
  text-shadow:0 2px 10px rgba(19,11,27,.22);
}
.hero .btn.light{
  display:inline-flex;align-items:center;gap:18px;
  background:#fff7ea;color:#35253e;
  border-radius:999px;
  padding:15px 24px;
  font-family:Georgia,'Times New Roman',serif;
  font-size:16px;font-weight:600;
  box-shadow:0 10px 25px rgba(29,17,40,.16);
}
.hero .btn.light span{font-size:18px}
.hero-bottom{
  z-index:2;
  bottom:48px;
  width:100%;
  text-align:center;
  color:#fff4e4;
  font-family:Georgia,'Times New Roman',serif;
  font-style:italic;
  font-size:16px;
  text-shadow:0 2px 10px rgba(18,11,24,.35);
}
.hero-bottom span{color:#f5d49d;margin-right:8px}
.hero:after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:34px;z-index:3;
  background:var(--cream);
  clip-path:polygon(0 65%,8% 82%,19% 70%,28% 83%,41% 58%,53% 74%,64% 88%,77% 63%,89% 76%,100% 66%,100% 100%,0 100%);
}

.section{max-width:1280px;padding-left:4.5%;padding-right:4.5%}
.section-categories{padding-top:34px;padding-bottom:48px}
.section-songs{padding-bottom:54px}
.section-title{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px}
.section-title h2{margin:0;font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:28px;color:#2c2233}
.section-title a{font-size:14px;color:#5f3d60;font-weight:600}

.categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.category{
  position:relative;overflow:hidden;min-height:160px;border-radius:18px;
  display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;
  padding:16px 16px 15px;
  color:#fff;box-shadow:0 10px 24px rgba(47,28,49,.12);
  border:1px solid rgba(255,255,255,.55);
  background-size:cover;background-position:center;
  transition:transform .18s ease, box-shadow .18s ease;
}
.category::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(18,10,20,.05) 0%, rgba(18,10,20,.08) 26%, rgba(23,14,29,.18) 44%, rgba(29,17,35,.48) 70%, rgba(30,18,36,.72) 100%);
}
.category::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}
.category:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(47,28,49,.18)}
.category .symbol{display:none}
.category .category-name,
.category .arrow{position:relative;z-index:2}
.category .category-name{
  margin-top:auto;
  font-family:Georgia,'Times New Roman',serif;
  font-size:17px;font-weight:600;
  line-height:1.2;
}
.category .arrow{
  display:grid;place-items:center;margin-top:10px;
  width:28px;height:28px;border-radius:50%;
  border:1px solid rgba(255,255,255,.7);
  font-size:16px;
  background:rgba(255,255,255,.12);
}
.category-orbit{display:none}
.cat-princeses{background-image:url('/static/cat-princeses-20261106.jpg')}
.cat-villans{background-image:url('/static/cat-villans-20261106.jpg')}
.cat-duos{background-image:url('/static/cat-duos-20261106.jpg')}
.cat-personatges{background-image:url('/static/cat-personatges-20261106.jpg')}
.cat-classics{background-image:url('/static/cat-classics-20261106.jpg')}

.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.song-card{
  display:flex;gap:14px;align-items:stretch;min-width:0;
  background:#fffaf7;border-radius:16px;border:1px solid #eddcd4;
  box-shadow:0 4px 16px rgba(53,29,52,.08);padding:8px;
}
.song-card .poster{width:45%;min-height:132px;border-radius:12px;overflow:hidden}
.song-card .poster .poster-bg{transition:transform .35s ease}
.song-card:hover .poster .poster-bg{transform:scale(1.04)}
.song-card .poster.is-locked .poster-bg{filter:blur(10px) brightness(.72)}
.song-card h3{margin:0 0 6px;font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.25}
.song-card p{margin:0 0 8px;font-size:12px;color:#6f6370}
.song-card .status{font-size:11px;color:#7b6977}

.closing-band{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(370px,460px);
  align-items:stretch;min-height:300px;color:#fff;
  background:
    linear-gradient(90deg, rgba(31,16,42,.56) 0%, rgba(45,23,53,.28) 44%, rgba(43,20,49,.45) 100%),
    url('/static/enc-footer-20261106.jpg');
  background-size:cover;background-position:center center;
}
.quote-banner{display:flex;flex-direction:column;justify-content:center;background:none;padding:36px 30px;text-align:center}
.quote-banner p{
  max-width:560px;margin:0 auto;
  font-family:Georgia,'Times New Roman',serif;font-style:italic;
  font-size:clamp(23px,2.5vw,35px);line-height:1.28;
  color:#fff8f0;text-shadow:0 4px 18px rgba(18,11,24,.35);
}
.quote-sparkles{display:block;margin-top:16px;color:#f4d39d;letter-spacing:12px;font-size:16px}
.subscribe{
  align-self:center;justify-self:end;
  margin:26px 24px 26px 0;
  min-width:0;max-width:430px;
  border-left:0;
  border-radius:24px;
  background:rgba(37,21,49,.68);
  backdrop-filter:blur(10px);
  box-shadow:0 16px 32px rgba(17,10,25,.2);
  padding:28px 28px 24px;
}
.subscribe h2{margin:0 0 10px;font-family:Georgia,'Times New Roman',serif;font-size:31px;font-weight:400;color:#fff8ef}
.subscribe p{margin:0 0 16px;font-size:14px;line-height:1.55;color:#fff0ea}
.subscribe form{max-width:none;margin:0 0 10px}
.subscribe input[type=email]{padding:13px 16px;background:#fff7f0;color:#33253d;border:0}
.subscribe button{background:#e4b775;color:#372541;border:0}
.subscribe small{display:block;font-size:11px;line-height:1.55;color:#f4dde2}

.footer .build-version{display:block;margin-top:10px;font-size:10px;opacity:.55}

@media (max-width:1100px){
  .hero{min-height:600px;background-position:65% center}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .song-card{flex-direction:column}
  .song-card .poster{width:100%;min-height:160px}
  .closing-band{grid-template-columns:1fr}
  .subscribe{justify-self:stretch;max-width:none;margin:0 5% 28px}
  .quote-banner{padding:42px 5% 22px}
}

@media (max-width:760px){
  .topbar{padding-top:14px;padding-bottom:14px}
  .topbar .logo{width:150px}
  .topbar nav{font-size:13px;gap:18px}
  .hero{min-height:560px;background-position:69% center}
  .hero-content{width:90%;padding:128px 0 154px}
  .hero h1{max-width:360px;font-size:clamp(38px,8vw,58px)}
  .hero h1 span{white-space:normal}
  .hero p{max-width:300px;font-size:14px}
  .hero .btn.light{font-size:15px;padding:14px 21px}
  .hero-bottom{bottom:46px;font-size:14px;padding:0 18px}
  .section-categories{padding-top:26px;padding-bottom:36px}
  .categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category{min-height:146px}
  .cards{grid-template-columns:1fr}
  .closing-band{background-position:58% center}
  .quote-banner p{font-size:26px}
}

@media (max-width:420px){
  .hero h1{font-size:36px}
  .section-title h2{font-size:24px}
  .categories{grid-template-columns:1fr 1fr;gap:12px}
  .category{min-height:132px;padding:14px 12px}
  .category .category-name{font-size:16px}
}


/* Ajustos visuals: categories sense bandes, animació i navegació de fitxa */
.category {
  isolation: isolate;
  background: transparent !important;
  transition: transform .3s ease, box-shadow .3s ease;
}
.category::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  box-shadow: none;
  pointer-events: none;
  background-image: var(--category-art);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.005);
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.category::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: inherit;
  opacity: 1;
  transform: none;
  background: linear-gradient(180deg, rgba(26,14,37,.02) 0%, rgba(26,14,37,.06) 46%, rgba(26,14,37,.55) 100%) !important;
  background-size: auto !important;
  pointer-events: none;
}
.cat-princeses{--category-art:url('/static/cat-princeses-20261106.jpg')}
.cat-villans{--category-art:url('/static/cat-villans-20261106.jpg')}
.cat-duos{--category-art:url('/static/cat-duos-20261106.jpg')}
.cat-personatges{--category-art:url('/static/cat-personatges-20261106.jpg')}
.cat-classics{--category-art:url('/static/cat-classics-20261106.jpg')}
.category .category-name, .category .arrow {z-index: 2; color: #fff;}
.category:hover, .category:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 17px 32px rgba(47,28,49,.22);
}
.category:hover::after, .category:focus-visible::after {
  transform: scale(1.08);
  filter: saturate(1.08);
}
.category .arrow {transition: background .25s ease, transform .25s ease;}
.category:hover .arrow, .category:focus-visible .arrow {
  transform: translateX(4px);
  background: rgba(255,255,255,.23);
}

.hero-bottom {bottom: 76px;}
.scroll-cue {
  position: absolute;
  bottom: 33px;
  left: 50%;
  z-index: 7;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,249,234,.64);
  border-radius: 50%;
  background: rgba(40,23,49,.32);
  color: #fff9ea;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  animation: cue-float 2.6s ease-in-out infinite;
  transition: background .2s ease, border-color .2s ease;
}
.scroll-cue:hover, .scroll-cue:focus-visible {
  background: rgba(40,23,49,.72);
  border-color: #fff9ea;
}
@keyframes cue-float {
  0%, 100% {translate: 0 0;}
  50% {translate: 0 5px;}
}
#categories {scroll-margin-top: 18px;}
.inner-page.detail {
  padding-top: 166px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  padding: 7px 2px;
  color: #67435e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid rgba(103,67,94,.3);
}
.detail-back:hover, .detail-back:focus-visible {color: #963f70; border-bottom-color: currentColor;}
.detail-back .back-arrow {font-size: 18px;}
.inner-page.detail h1 {margin-top: 0;}
@media(max-width:760px) {
  .hero-bottom {bottom: 79px;}
  .scroll-cue {bottom: 36px; width: 34px; height: 34px;}
  .inner-page.detail {padding-top: 135px;}
  .detail-back {margin-bottom: 22px;}
}
@media(prefers-reduced-motion:reduce) {
  .scroll-cue {animation: none;}
  .category::after, .category {transition: none;}
}


/* Revisió 3: imatges saturades, hover visible i indicació inferior */
.category {
  position: relative;
  isolation: isolate;
  background: none !important;
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: 0 9px 24px rgba(47,28,49,.18);
  transition: transform .34s cubic-bezier(.2,.75,.2,1), box-shadow .34s ease, border-color .34s ease;
}
.category .category-art {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: var(--category-art);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.25) contrast(1.06);
  transform: scale(1.015);
  transition: transform .55s cubic-bezier(.2,.75,.2,1), filter .4s ease;
  pointer-events: none;
}
.category::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 1;
  border-radius: inherit;
  opacity: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(19,9,28,.02) 45%, rgba(19,9,28,.46) 100%) !important;
  pointer-events: none;
}
.category::after {content: none !important; display: none !important;}
.category .category-name,
.category .arrow {position: relative;z-index: 2;color: #fff;text-shadow: 0 1px 8px rgba(22,10,29,.58);}
.category:hover,
.category:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255,237,202,.94);
  box-shadow: 0 20px 36px rgba(52,29,58,.31), 0 0 0 2px rgba(243,205,150,.35);
}
.category:hover .category-art,
.category:focus-visible .category-art {
  transform: scale(1.13);
  filter: saturate(1.42) contrast(1.1) brightness(1.06);
}
.category:hover .arrow,
.category:focus-visible .arrow {
  background: rgba(255,255,255,.28);
  transform: translateX(5px);
}
.scroll-cue {
  bottom: 5px;
  width: 43px;
  height: 43px;
  z-index: 10;
  background: #fff8ee;
  color: #49304f;
  border: 1px solid #eac8a9;
  box-shadow: 0 5px 14px rgba(35,19,45,.23);
  animation: cue-bounce 1.85s ease-in-out infinite;
}
.scroll-cue:hover,
.scroll-cue:focus-visible {background: #f5dcb8;color:#37223f;border-color:#f5dcb8;}
.hero-bottom {bottom: 67px;}
@keyframes cue-bounce {
  0%, 100% {translate: 0 0;}
  45% {translate: 0 7px;}
  65% {translate: 0 2px;}
}
@media(max-width:760px) {
  .scroll-cue {bottom: 4px;width:40px;height:40px;}
  .hero-bottom {bottom: 75px;}
}
@media(prefers-reduced-motion:reduce) {
  .scroll-cue {animation:none;}
  .category,.category .category-art,.category .arrow {transition:none;}
}


/* Poliment del disseny 4: text, categories centrades i fletxa a 'Últimes cançons' */
.hero h1 .title-underlined {
  text-decoration-line: underline;
  text-decoration-color: #f3d196;
  text-decoration-thickness: 2px;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}
.hero p .subtitle-ending { display:block; }
.category {
  align-items: center;
  text-align: center;
}
.category .category-name { margin-left:auto; margin-right:auto; text-align:center; }
.category .arrow { margin-left:auto; margin-right:auto; }
.section-songs .latest-title {
  position: relative;
  min-height: 48px;
  align-items: center;
}
.scroll-cue.scroll-cue-latest {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%,-50%);
  margin: 0;
  width: 40px;
  height: 40px;
  border-color: #e4b77b;
  background: #fffaf2;
  color: #57344f;
  box-shadow: 0 3px 14px rgba(53,29,52,.15);
  animation: cue-bounce 1.85s ease-in-out infinite;
}
.scroll-cue.scroll-cue-latest:hover,
.scroll-cue.scroll-cue-latest:focus-visible {
  background: #f7dfbd;
  border-color: #cf9f61;
}
#cancons-list {scroll-margin-top:20px;}
@media (max-width:760px) {
  .scroll-cue.scroll-cue-latest {width:36px;height:36px;}
  .section-songs .latest-title {min-height:45px;}
}
@media (max-width:430px) {
  .section-songs .latest-title {padding-bottom:45px;}
  .scroll-cue.scroll-cue-latest {top:auto;bottom:0;transform:translateX(-50%);}
  .scroll-cue.scroll-cue-latest {animation:none;}
}
@media(prefers-reduced-motion:reduce) {
  .scroll-cue.scroll-cue-latest {animation:none;}
}


/* Revisió 5 — llegibilitat exacta del titular i primera pantalla */
.hero h1 .title-line-underlined {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(#f3d196,#f3d196) left calc(100% - .065em)/100% 2px no-repeat;
  padding-bottom: .075em;
}
.hero {
  height: clamp(505px,36vw,570px);
  min-height: 0;
}
.hero-content {padding-top: 122px; padding-bottom: 92px;}
.section-categories {
  position: relative;
  padding-top: 25px;
  padding-bottom: 51px;
}
.section-songs {padding-top: 0;}
.section-songs .latest-title {
  position: relative;
  min-height: 0;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-categories .scroll-cue.scroll-cue-latest {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 3px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 5;
  margin: 0;
  animation: cue-bounce 1.85s ease-in-out infinite;
}
@media(max-width:1100px){
  .hero {height: 540px;min-height: 0;}
  .hero-content {padding-top: 128px;padding-bottom: 80px;}
}
@media(max-width:760px) {
  .hero {height: 555px;min-height: 0;}
  .hero-content {padding-top: 128px;padding-bottom: 120px;}
  .hero h1 .title-line-underlined {white-space: nowrap;}
  .section-categories {padding-top: 23px;padding-bottom: 51px;}
  .section-categories .scroll-cue.scroll-cue-latest {width:36px;height:36px;bottom:5px;}
  .section-songs .latest-title {padding-bottom:0;}
}
@media(max-width:390px){
  .hero h1 .title-line-underlined {font-size:.96em;}
}
@media(prefers-reduced-motion:reduce) {
  .section-categories .scroll-cue.scroll-cue-latest {animation:none;}
}


/* Revisió 6 — proporcions naturals i titular sense resplendor */
.hero {
  height: clamp(575px, 40vw, 615px);
  min-height: 0;
}
.hero-content {
  padding-top: 146px;
  padding-bottom: 112px;
}
.hero h1,
.hero h1 span,
.hero h1 .title-line-underlined {
  text-shadow: none !important;
  filter: none;
}
.section-categories {
  padding-top: 30px;
  padding-bottom: 33px;
}
.section-categories .category { min-height: 152px; }
.section-songs { padding-top: 0; }
.section-songs .latest-title {
  margin-bottom: 22px;
  padding: 0;
}
.section-categories .scroll-cue.scroll-cue-latest { display:none; }
@media (max-width: 1100px) {
  .hero {height: 570px;min-height: 0;}
  .hero-content {padding-top: 142px;padding-bottom: 100px;}
  .section-categories {padding-top: 27px;padding-bottom: 31px;}
}
@media (max-width: 760px) {
  .hero {height: 575px;min-height: 0;}
  .hero-content {padding-top: 133px;padding-bottom: 124px;}
  .section-categories {padding-top: 27px;padding-bottom: 30px;}
  .section-categories .category {min-height: 145px;}
}
@media (max-width: 420px) {
  .hero {height: 565px;}
  .section-categories .category {min-height: 132px;}
}

/* Navegació contextual (revisió 7): només la pàgina activa queda subratllada */
.topbar nav a:first-child,
.topbar nav a {
  border-bottom: 2px solid transparent !important;
  padding-bottom: 8px;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.topbar nav a.is-active,
.topbar nav a[aria-current="page"] {
  border-bottom-color: #f3d196 !important;
  color: #fffaf1;
}
.topbar nav a:hover:not(.is-active) {
  border-bottom-color: rgba(243,209,150,.52) !important;
}

/* Revisió 8: eliminar la segona ratlla i subratllar exclusivament la secció activa */
.hero .shortline { display: none !important; }
.topbar nav a:first-child:not(.is-active):not([aria-current="page"]) {
  border-bottom-color: transparent !important;
}
.topbar nav a[data-nav] {
  border-bottom: 2px solid transparent !important;
}
.topbar nav a[data-nav].is-active,
.topbar nav a[data-nav][aria-current="page"] {
  border-bottom-color: #f3d196 !important;
}


/* Contingut visual editable: les imatges són variables locals, el disseny no canvia */
.hero {
  background-image:
    linear-gradient(90deg, rgba(30,18,41,.88) 0%,rgba(40,23,53,.78) 22%,rgba(54,30,67,.42) 42%,rgba(57,31,68,.16) 64%,rgba(39,21,48,.08) 100%),
    var(--hero-picture, url('/static/enc-hero-20261106.jpg'));
}
.closing-band {
  background-image:
    linear-gradient(90deg,rgba(31,16,42,.56) 0%,rgba(45,23,53,.28) 44%,rgba(43,20,49,.45) 100%),
    var(--closing-picture, url('/static/enc-footer-20261106.jpg'));
}
