:root {
  --member-bg: #f4f7fb;
  --member-surface: #ffffff;
  --member-surface-2: #eef3f9;
  --member-border: rgba(15, 23, 42, .12);
  --member-ink: #111827;
  --member-muted: #5b6b82;
  --member-red: #c1121f;
  --member-red-dark: #9f101a;
  --member-gold: #b7791f;
  --member-main: 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--member-bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--member-bg); color: var(--member-ink); font: 500 15px/1.5 var(--member-main); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.member-app { min-height: 100vh; }
.member-status { min-height: 1.3em; color: #8ee8bf; font-size: .78rem; }
.member-status.error { color: #ff9b9e; }
.site-logo { display: block; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }

/* Login */
.member-login-view { min-height: 100vh; background: radial-gradient(circle at 50% 20%, rgba(32, 69, 135, .2), transparent 34%), var(--member-bg); }
.minimal-header { display: flex; align-items: center; width: min(100% - 48px, 1240px); height: 94px; margin: 0 auto; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.auth-wrap { display: grid; min-height: calc(100vh - 94px); place-items: center; padding: 44px 20px 70px; }
.login-panel { width: min(100%, 390px); border: 1px solid var(--member-border); border-radius: 18px; background: rgba(13, 27, 49, .88); padding: 32px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.login-logo { display: block; width: 142px; height: 142px; margin: 0 auto 25px; border-radius: 28px; object-fit: cover; }
.login-panel h1 { margin: 0 0 23px; color: var(--member-ink); font-size: 1.55rem; font-weight: 800; letter-spacing: -.045em; text-align: center; }
.member-login-form { display: grid; gap: 8px; }
.member-login-form label { margin-top: 8px; color: #d8e1ee; font-size: .72rem; font-weight: 800; }
.member-login-form input { width: 100%; border: 1px solid rgba(148, 163, 184, .28); border-radius: 9px; outline: none; background: #071225; color: var(--member-ink); padding: 13px 14px; }
.member-login-form input::placeholder { color: #667892; }
.member-login-form input:focus { border-color: var(--member-gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, .13); }
.member-cta { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; border: 0; border-radius: 9px; background: var(--member-red); color: white; padding: 13px 15px; font-weight: 800; cursor: pointer; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.member-cta:hover { background: var(--member-red-dark); transform: translateY(-1px); }
.member-cta:active { transform: translateY(1px) scale(.99); }
.member-cta:disabled { cursor: wait; opacity: .6; transform: none; }
.login-panel .member-status { margin: 14px 0 0; text-align: center; }

/* Netflix + Spotify library */
.member-library-view { min-height: 100vh; background: radial-gradient(circle at 82% -10%, rgba(34, 78, 158, .22), transparent 34%), var(--member-bg); padding-bottom: 70px; }
.member-nav { display: flex; align-items: center; justify-content: space-between; width: min(100% - 48px, 1320px); height: 86px; margin: 0 auto; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.member-nav-left { display: flex; align-items: center; gap: 34px; min-width: 0; }
.member-nav-links { display: flex; align-items: center; gap: 22px; }
.member-nav-links a { position: relative; color: var(--member-muted); font-size: .76rem; font-weight: 800; text-decoration: none; }
.member-nav-links a:hover, .member-nav-links a.is-active { color: var(--member-ink); }
.member-nav-links a.is-active::after { position: absolute; right: 0; bottom: -31px; left: 0; height: 2px; background: var(--member-red); content: ''; }
.member-nav-actions { display: flex; align-items: center; gap: 16px; }
.member-greeting { max-width: 250px; overflow: hidden; color: var(--member-muted); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.member-logout { border: 1px solid rgba(148, 163, 184, .3); border-radius: 8px; background: transparent; color: var(--member-ink); padding: 8px 13px; font-size: .72rem; font-weight: 800; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.member-logout:hover { border-color: var(--member-gold); color: var(--member-gold); transform: translateY(-1px); }
.member-logout:active { transform: translateY(1px); }
.member-library-main { width: min(100% - 48px, 1320px); margin: 0 auto; padding: 30px 0 70px; }

.member-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 360px); min-height: 316px; overflow: hidden; border: 1px solid rgba(148, 163, 184, .16); border-radius: 20px; background: radial-gradient(circle at 76% 50%, rgba(28, 71, 143, .35), transparent 36%), linear-gradient(112deg, #0d1b31 0%, #0b192e 60%, #122b53 100%); box-shadow: 0 22px 55px rgba(0, 0, 0, .24); }
.member-hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 13, 26, .16), transparent 65%); content: ''; pointer-events: none; }
.member-hero-copy { position: relative; z-index: 1; align-self: center; max-width: 640px; padding: 42px 20px 42px 48px; }
.hero-kicker, .section-kicker { margin: 0 0 12px; color: var(--member-red); font-size: .63rem; font-weight: 800; letter-spacing: .16em; }
.member-hero h1 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.075em; line-height: .98; }
.hero-subtitle { max-width: 500px; margin: 17px 0 13px; color: #b7c4d7; font-size: .9rem; }
.hero-meta { min-height: 1.2em; color: var(--member-muted); font-size: .68rem; }
.hero-play { display: inline-flex; align-items: center; gap: 18px; margin-top: 23px; border-radius: 8px; background: var(--member-red); color: #fff; padding: 12px 16px; font-size: .75rem; font-weight: 800; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.hero-play span { font-size: 1rem; }
.hero-play:hover { background: var(--member-red-dark); transform: translateY(-1px); }
.member-hero-art { position: relative; align-self: stretch; min-height: 280px; margin: 17px; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg, #21427a, #0c1930); box-shadow: 0 18px 35px rgba(0, 0, 0, .32); }
.member-hero-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 18, 37, .58), transparent 45%), linear-gradient(180deg, transparent 55%, rgba(4, 9, 18, .55)); content: ''; pointer-events: none; }
.member-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-hero-art img:not([src]), .member-hero-art img[src=""] { display: none; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #dbeafe; font-size: 4.8rem; }

.playlist-collections { margin-top: 34px; }
.playlist-collections-heading { margin-bottom: 14px; }
.playlist-collections-heading h2 { margin: 0; color: #f4f7fb; font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 800; letter-spacing: -.055em; }
.playlist-collections-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.playlist-tile { display: grid; grid-template-columns: 154px minmax(0, 1fr); min-height: 154px; overflow: hidden; border: 1px solid rgba(148, 163, 184, .16); border-radius: 14px; background: rgba(13, 27, 49, .78); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); color: inherit; font: inherit; padding: 0; text-align: left; cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1); animation: member-fade-up .48s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--tile-index, 0) * 70ms); will-change: transform, opacity; }
.playlist-tile:disabled { opacity: .72; cursor: not-allowed; }
.playlist-tile.is-locked:not(:disabled) { border-color: rgba(245, 197, 24, .22); }
.playlist-tile.is-locked:not(:disabled):hover { border-color: rgba(245, 197, 24, .58); }
.playlist-tile:not(:disabled):hover { border-color: rgba(245, 197, 24, .5); box-shadow: 0 18px 36px rgba(0, 0, 0, .28); transform: translateY(-4px); }
.playlist-tile:not(:disabled):active { transform: translateY(-1px) scale(.99); }
.playlist-tile:focus-visible { outline: 2px solid var(--member-gold); outline-offset: 3px; }
.playlist-tile-cover { position: relative; min-height: 154px; overflow: hidden; background: linear-gradient(145deg, #21427a, #0c1930); }
.playlist-tile-cover::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(4, 9, 18, .58)); content: ''; pointer-events: none; }
.playlist-tile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.playlist-tile:hover .playlist-tile-cover img { transform: scale(1.04); }
.playlist-tile-badge { position: absolute; z-index: 1; top: 10px; left: 10px; border-radius: 5px; background: var(--member-red); color: #fff; padding: 4px 7px; font-size: .55rem; font-weight: 800; letter-spacing: .08em; }
.playlist-tile-badge.available { background: rgba(7, 18, 37, .72); color: var(--member-gold); }
.playlist-tile-badge.locked { background: rgba(4, 9, 18, .82); color: var(--member-gold); }
.playlist-tile-lock { position: absolute; z-index: 1; right: 10px; bottom: 9px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(4, 9, 18, .72); font-size: .7rem; }
.playlist-tile-info { display: flex; min-width: 0; flex-direction: column; padding: 17px 17px 14px; }
.playlist-tile-info h3 { margin: 0; color: #f5f8fc; font-size: .95rem; font-weight: 800; letter-spacing: -.03em; }
.playlist-tile-info p { margin: 7px 0 0; color: var(--member-muted); font-size: .68rem; line-height: 1.4; }
.playlist-release { margin-top: auto; padding-top: 12px; }
.playlist-release span, .playlist-release small { display: block; color: #71839c; font-size: .59rem; }
.playlist-release strong { display: block; margin: 3px 0; color: var(--member-gold); font-size: .83rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.playlist-release strong.playlist-available { color: #87e8be; font-size: .72rem; }
.playlist-release strong.playlist-buy { color: #ffd86a; font-size: .78rem; }

.playlist-detail { margin-top: 22px; }
.playlist-back { border: 0; background: transparent; color: var(--member-muted); padding: 0; font-size: .7rem; font-weight: 800; cursor: pointer; transition: color .2s ease, transform .2s ease; }
.playlist-back:hover { color: var(--member-gold); transform: translateX(-3px); }
.playlist-back:active { transform: translateX(-1px); }
.playlist-detail-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 17px 0 6px; }
.playlist-detail-header h2 { margin: 0; color: #f4f7fb; font-size: clamp(1.7rem, 4vw, 2.45rem); font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.playlist-detail-subtitle { margin: 8px 0 0; color: var(--member-muted); font-size: .75rem; }
.playlist-detail-meta { display: flex; align-items: baseline; gap: 7px; color: var(--member-muted); }
.playlist-detail-meta strong { color: #fff; font-size: 2.35rem; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.playlist-detail-meta span { font-size: .68rem; }
.playlist-detail > .member-status { margin: 0 0 12px; color: var(--member-muted); }
.playlist-path-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 17px 0 16px; }
.playlist-path-heading h3 { margin: 0; color: #f4f7fb; font-size: .98rem; font-weight: 800; letter-spacing: -.035em; }
.playlist-path-kicker { margin: 0 0 6px; color: var(--member-red); font-size: .58rem; font-weight: 800; letter-spacing: .15em; }
.playlist-path-progress { flex: 0 0 auto; border: 1px solid rgba(142, 232, 191, .2); border-radius: 999px; background: rgba(84, 215, 160, .08); color: #8ee8bf; padding: 5px 9px; font-size: .59rem; font-weight: 800; white-space: nowrap; }
.playlist-list { overflow: visible; }
.playlist-row { --lesson-accent: #42b9ff; --lesson-accent-rgb: 66, 185, 255; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 154px; margin-bottom: 18px; border: 1px solid rgba(123, 173, 218, .16); border-radius: 30px; background: linear-gradient(108deg, rgba(7, 22, 37, .98), rgba(7, 25, 42, .92)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 15px 34px rgba(0, 0, 0, .18); transition: background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease; animation: member-fade-up .42s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--row-index, 0) * 28ms); }
.playlist-row:last-child { margin-bottom: 0; }
.playlist-row:hover, .playlist-row.is-selected { border-color: rgba(var(--lesson-accent-rgb), .48); background: linear-gradient(105deg, rgba(25, 49, 84, .94), rgba(12, 30, 57, .78)); box-shadow: 0 15px 30px rgba(var(--lesson-accent-rgb), .12); }
.playlist-row:hover { transform: translateX(3px); }
.playlist-row.is-clickable { cursor: pointer; }
.playlist-row.is-clickable:focus-visible { outline: 3px solid var(--lesson-accent); outline-offset: 4px; }
.playlist-row.is-demo .playlist-action { cursor: default; pointer-events: none; }
.playlist-row.is-locked { opacity: .72; }
.playlist-select { display: grid; grid-template-columns: 132px 154px minmax(0, 1fr) 88px; align-items: center; width: 100%; min-width: 0; color: inherit; padding: 16px 0 16px 22px; text-align: left; }
.playlist-path-rail { position: relative; display: grid; align-self: stretch; place-items: center; }
.playlist-path-rail::before { position: absolute; z-index: 0; top: -26px; bottom: -26px; left: 50%; width: 5px; border-radius: 99px; background: linear-gradient(180deg, rgba(var(--lesson-accent-rgb), .18), rgba(var(--lesson-accent-rgb), .9), rgba(var(--lesson-accent-rgb), .18)); box-shadow: 0 0 12px rgba(var(--lesson-accent-rgb), .34); content: ''; }
.playlist-row:first-child .playlist-path-rail::before { top: 50%; }
.playlist-row:last-child .playlist-path-rail::before { bottom: 50%; }
.playlist-step-node { position: relative; z-index: 1; display: grid; width: 106px; height: 106px; place-content: center; gap: 4px; border: 4px solid var(--lesson-accent); border-radius: 50%; background: radial-gradient(circle at 31% 24%, rgba(var(--lesson-accent-rgb), 1), rgba(var(--lesson-accent-rgb), .56) 63%, rgba(4, 14, 28, .98) 100%); color: #f8fbff; font-size: .82rem; font-weight: 900; letter-spacing: .08em; line-height: 1; text-align: center; text-shadow: 0 2px 3px rgba(0, 0, 0, .42); box-shadow: 0 0 0 8px rgba(var(--lesson-accent-rgb), .07), 0 0 28px rgba(var(--lesson-accent-rgb), .48), 0 14px 28px rgba(0, 0, 0, .28); }
.playlist-step-node b { display: block; color: #fff; font-size: 2.7rem; font-weight: 900; letter-spacing: -.09em; line-height: .82; }
.playlist-row.is-introduction .playlist-step-node { color: #1c1706; text-shadow: none; }
.playlist-row.is-introduction .playlist-step-node b { color: #1c1706; }
.playlist-row.is-locked .playlist-step-node { border-style: dashed; border-color: rgba(143, 162, 189, .38); background: #18263c; color: #8d9db5; box-shadow: none; }
.playlist-row.is-locked .playlist-path-rail::before { background: repeating-linear-gradient(180deg, rgba(143, 162, 189, .2) 0 5px, transparent 5px 10px); }
.playlist-thumb { display: grid; width: 146px; height: 118px; place-items: center; color: #f1f6ff; font-size: 6.72rem; line-height: 1; filter: drop-shadow(0 13px 12px rgba(0, 0, 0, .35)); transform: translateZ(0); }
.playlist-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.2); }
.playlist-copy { min-width: 0; padding: 0 24px 0 10px; }
.playlist-copy strong, .playlist-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-step-label { display: block; margin-bottom: 8px; color: var(--lesson-accent); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.playlist-copy strong { color: #f7f9fc; font-size: clamp(1.45rem, 2.15vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.playlist-copy small { margin-top: 10px; color: #9cafd0; font-size: clamp(.86rem, 1.25vw, 1.05rem); line-height: 1.3; }
.playlist-song-release { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: #71839c; font-size: .57rem; }
.playlist-song-release strong { color: var(--member-gold); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.playlist-row.is-locked .playlist-song-release strong { color: #9aa9bd; }
.playlist-duration { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #9eafd0; font-size: 1.08rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.playlist-duration > span { color: #a5b7d3; font-size: 1.55rem; line-height: 1; }
.playlist-action { display: grid; width: 78px; height: 78px; flex: 0 0 auto; margin-right: 34px; place-items: center; border: 4px solid var(--lesson-accent); border-radius: 50%; background: rgba(var(--lesson-accent-rgb), .025); color: var(--lesson-accent); font-size: 1.35rem; font-weight: 900; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.playlist-action:hover { background: var(--lesson-accent); color: #06101e; box-shadow: 0 0 0 5px rgba(var(--lesson-accent-rgb), .1); }
.playlist-action:active { transform: scale(.96); }
.playlist-action.is-locked { border-color: rgba(143, 162, 189, .25); color: #71839c; cursor: not-allowed; }
.playlist-aside { position: sticky; top: 20px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 14px; background: rgba(13, 27, 49, .72); padding: 23px 20px; }
.aside-label { color: var(--member-red); font-size: .61rem; font-weight: 800; letter-spacing: .13em; }
.playlist-aside strong { display: block; margin-top: 14px; color: #fff; font-size: 3.35rem; font-weight: 800; letter-spacing: -.1em; line-height: 1; }
.aside-caption { display: block; margin-top: 5px; color: var(--member-muted); font-size: .72rem; }
.aside-rule { height: 1px; margin: 22px 0 16px; background: rgba(148, 163, 184, .2); }
.playlist-aside p { margin: 0; color: #b8c4d5; font-size: .73rem; line-height: 1.55; }

/* Catálogo e ofertas */
.catalog-section { margin-top: 40px; }
.catalog-section.is-empty { display: none; }
.catalog-heading { display: flex; align-items: center; margin-bottom: 14px; }
.catalog-heading h2 { margin: 0; color: #e9eef7; font-size: 1rem; font-weight: 800; letter-spacing: -.025em; }
.catalog-rail, .offers-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 210px); gap: 15px; overflow-x: auto; padding: 2px 2px 16px; scrollbar-color: #334968 transparent; scrollbar-width: thin; }
.catalog-card { position: relative; overflow: hidden; border: 1px solid rgba(148, 163, 184, .15); border-radius: 11px; background: var(--member-surface); box-shadow: 0 12px 28px rgba(0, 0, 0, .2); transition: transform .2s ease, border-color .2s ease; }
.catalog-card:hover { border-color: rgba(245, 197, 24, .48); transform: translateY(-4px); }
.catalog-cover { position: relative; display: block; aspect-ratio: 2 / 2.62; overflow: hidden; background: var(--member-surface-2); color: white; text-decoration: none; }
.catalog-cover::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4, 9, 18, .72)); content: ''; pointer-events: none; }
.catalog-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.catalog-card:hover .catalog-cover img { transform: scale(1.05); }
.catalog-fallback { display: grid; height: 100%; place-items: center; background: linear-gradient(145deg, #21427a, #0c1930); font-size: 3rem; }
.catalog-card-title { margin: 0; padding: 12px 12px 0; font-size: .82rem; line-height: 1.3; }
.catalog-card-subtitle { min-height: 2.2em; margin: 5px 12px 12px; color: var(--member-muted); font-size: .66rem; line-height: 1.35; }
.catalog-badge { position: absolute; z-index: 2; top: 9px; left: 9px; border-radius: 5px; background: var(--member-red); color: white; padding: 4px 7px; font-size: .55rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.catalog-badge.locked { background: rgba(4, 9, 18, .78); color: var(--member-gold); }
.catalog-lock { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(4, 9, 18, .72); font-size: .7rem; }
.catalog-play, .catalog-buy { display: block; margin: 0 12px 13px; border-radius: 7px; padding: 8px; text-align: center; text-decoration: none; font-size: .66rem; font-weight: 800; }
.catalog-play { background: var(--member-red); color: white; }
.catalog-buy { border: 1px solid rgba(245, 197, 24, .45); color: var(--member-gold); }
.catalog-muted { margin: 0 12px 13px; color: #75859b; font-size: .66rem; }
.catalog-muted strong { color: var(--member-gold); font-size: .64rem; font-variant-numeric: tabular-nums; }
.offers-section { display: none; }
.offers-section.has-offers { display: block; }
.offer-card { min-width: 260px; border: 1px solid rgba(245, 197, 24, .25); border-radius: 10px; background: var(--member-surface); padding: 17px; }
.offer-card h3 { margin: 0; font-size: .86rem; }
.offer-card p { margin: 7px 0 14px; color: var(--member-muted); font-size: .69rem; }
.offer-card a { display: inline-block; border-radius: 7px; background: var(--member-gold); color: #241c06; padding: 8px 11px; font-size: .67rem; font-weight: 800; text-decoration: none; }
.empty-catalog { grid-column: 1 / -1; min-width: min(100%, 460px); border: 1px dashed rgba(148, 163, 184, .26); border-radius: 10px; color: var(--member-muted); padding: 19px; font-size: .78rem; }
.playlist-list .empty-catalog { margin: 0; }

/* Lightweight motion and loading placeholders keep navigation responsive while
   Supabase resolves signed covers and playlist rows. */
@keyframes member-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes member-screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes member-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.member-login-view:not([hidden]) .minimal-header,
.member-login-view:not([hidden]) .auth-wrap,
.member-library-view:not([hidden]) .member-nav,
.member-library-view:not([hidden]) .member-library-main { animation: member-screen-in .46s cubic-bezier(.2,.8,.2,1) both; }
.member-library-view:not([hidden]) .member-library-main { animation-delay: 55ms; }
.playlist-collections.is-entering, .playlist-detail.is-entering, .playlist-list.is-entering { animation: member-screen-in .36s cubic-bezier(.2,.8,.2,1) both; }

.playlist-tile-skeleton { display: grid; grid-template-columns: 154px minmax(0, 1fr); min-height: 154px; overflow: hidden; border: 1px solid rgba(148, 163, 184, .12); border-radius: 14px; background: rgba(13, 27, 49, .55); animation: member-fade-up .38s both; animation-delay: calc(var(--tile-index, 0) * 60ms); }
.playlist-tile-skeleton > span { background: linear-gradient(100deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.1) 42%, rgba(255,255,255,.03) 62%); background-size: 220% 100%; animation: member-shimmer 1.35s ease-in-out infinite; }
.skeleton-copy { display: flex; flex-direction: column; gap: 10px; padding: 24px 18px; }
.skeleton-copy i { display: block; width: 88%; height: 9px; border-radius: 99px; background: rgba(148,163,184,.14); }
.skeleton-copy i:nth-child(2) { width: 66%; }
.skeleton-copy i:nth-child(3) { width: 42%; margin-top: auto; }
.playlist-row-skeleton { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) 55px; align-items: center; min-height: 76px; border-bottom: 1px solid rgba(148,163,184,.1); animation: member-fade-up .35s both; animation-delay: calc(var(--row-index, 0) * 28ms); }
.playlist-row-skeleton > * { display: block; height: 10px; border-radius: 99px; background: linear-gradient(100deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.11) 42%, rgba(255,255,255,.04) 62%); background-size: 220% 100%; animation: member-shimmer 1.35s ease-in-out infinite; }
.playlist-row-skeleton i { width: 13px; margin: auto; }
.playlist-row-skeleton em { width: 48px; height: 48px; margin: auto; border-radius: 7px; }
.playlist-row-skeleton span { width: 86%; margin-left: 14px; }
.playlist-row-skeleton b { width: 40px; margin-left: auto; margin-right: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 880px) {
  .playlist-row { min-height: 123px; border-radius: 23px; }
  .playlist-select { grid-template-columns: 94px 96px minmax(0, 1fr) 62px; padding: 13px 0 13px 12px; }
  .playlist-path-rail::before { top: -21px; bottom: -21px; width: 4px; }
  .playlist-step-node { width: 76px; height: 76px; border-width: 3px; font-size: .62rem; }
  .playlist-step-node b { font-size: 1.9rem; }
  .playlist-thumb { width: 90px; height: 90px; font-size: 4.44rem; }
  .playlist-copy { padding-right: 16px; }
  .playlist-copy strong { font-size: 1.25rem; }
  .playlist-copy small { margin-top: 6px; font-size: .78rem; }
  .playlist-duration { font-size: .8rem; }
  .playlist-duration > span { font-size: 1.15rem; }
  .playlist-action { width: 58px; height: 58px; margin-right: 21px; border-width: 3px; font-size: 1rem; }
}

@media (max-width: 640px) {
  .minimal-header, .member-nav, .member-library-main { width: calc(100% - 30px); }
  .minimal-header, .member-nav { height: 76px; }
  .site-logo { width: 52px; height: 52px; border-radius: 13px; }
  .auth-wrap { min-height: calc(100vh - 76px); padding: 30px 15px 55px; }
  .login-panel { padding: 25px 20px; }
  .login-logo { width: 120px; height: 120px; margin-bottom: 21px; }
  .member-nav-left { gap: 0; }
  .member-nav-links { display: none; }
  .member-greeting { display: none; }
  .member-library-main { padding-top: 20px; }
  .playlist-collections { margin-top: 28px; }
  .playlist-collections-rail { grid-template-columns: 1fr; gap: 12px; }
  .playlist-tile { grid-template-columns: 112px minmax(0, 1fr); min-height: 126px; }
  .playlist-tile-cover { min-height: 126px; }
  .playlist-tile-info { padding: 14px 14px 12px; }
  .playlist-tile-info h3 { font-size: .84rem; }
  .playlist-tile-info p { margin-top: 5px; font-size: .63rem; }
  .playlist-release { padding-top: 8px; }
  .playlist-release strong { font-size: .75rem; }
  .playlist-detail { margin-top: 30px; }
  .playlist-detail-header { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 22px; }
  .playlist-detail-meta strong { font-size: 2rem; }
  .playlist-path-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 23px; }
  .playlist-path-progress { align-self: flex-start; }
  .playlist-row { min-height: 93px; margin-bottom: 11px; border-radius: 17px; gap: 5px; }
  .playlist-select { grid-template-columns: 61px 53px minmax(0, 1fr); padding: 10px 0 10px 3px; }
  .playlist-path-rail::before { top: -17px; bottom: -17px; width: 3px; }
  .playlist-step-node { width: 52px; height: 52px; border-width: 2px; font-size: .48rem; }
  .playlist-step-node b { font-size: 1.18rem; }
  .playlist-thumb { width: 51px; height: 51px; font-size: 2.64rem; }
  .playlist-copy { padding: 0 7px; }
  .playlist-step-label { margin-bottom: 3px; font-size: .49rem; letter-spacing: .08em; }
  .playlist-copy strong { font-size: .82rem; }
  .playlist-copy small { margin-top: 4px; font-size: .6rem; }
  .playlist-duration { display: none; }
  .playlist-action { width: 42px; height: 42px; margin-right: 8px; border-width: 2px; font-size: .72rem; }
  .catalog-rail { grid-auto-columns: minmax(158px, 46vw); }
}

.member-admin-link { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid rgba(245, 197, 24, .48); border-radius: 9px; background: rgba(245, 197, 24, .09); color: #f5c518; padding: 0 10px; font-size: .61rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.member-admin-link:hover { border-color: #f5c518; background: rgba(245, 197, 24, .18); transform: translateY(-1px); }
@media (max-width: 640px) { .member-admin-link { min-height: 29px; padding: 0 8px; font-size: .56rem; } }

/* Tema claro da plataforma: mantém o percurso e as capas, mas deixa toda a
   interface de login e biblioteca confortável para leitura em fundo claro. */
html, body { background: var(--member-bg); color: var(--member-ink); color-scheme: light; }
.member-login-view { background: radial-gradient(circle at 50% 12%, rgba(191, 219, 254, .7), transparent 40%), var(--member-bg); }
.member-library-view { background: radial-gradient(circle at 82% -10%, rgba(191, 219, 254, .62), transparent 34%), var(--member-bg); }
.minimal-header, .member-nav { border-color: rgba(15, 23, 42, .1); }
.login-panel { background: rgba(255, 255, 255, .94); box-shadow: 0 24px 70px rgba(30, 55, 90, .14); }
.member-login-form label { color: #334155; }
.member-login-form input { border-color: rgba(100, 116, 139, .35); background: #f8fafc; color: #111827; }
.member-login-form input::placeholder { color: #94a3b8; }
.member-login-form input:focus { border-color: var(--member-gold); box-shadow: 0 0 0 3px rgba(183, 121, 31, .14); }
.member-logout { border-color: rgba(100, 116, 139, .35); }
.member-logout:hover { color: var(--member-gold); }
.member-hero { border-color: rgba(100, 116, 139, .2); background: radial-gradient(circle at 76% 50%, rgba(147, 197, 253, .54), transparent 36%), linear-gradient(112deg, #ffffff 0%, #f8fbff 60%, #dbeafe 100%); box-shadow: 0 22px 55px rgba(30, 55, 90, .14); }
.member-hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 65%); }
.member-hero h1, .playlist-collections-heading h2, .playlist-detail-header h2, .playlist-path-heading h3 { color: #111827; }
.hero-subtitle { color: #526173; }
.hero-play { color: #fff; }
.member-hero-art { background: linear-gradient(145deg, #bfdbfe, #dbeafe); box-shadow: 0 18px 35px rgba(30, 55, 90, .18); }
.member-hero-art::after { background: linear-gradient(90deg, rgba(15, 23, 42, .16), transparent 45%), linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .2)); }
.hero-fallback { color: #1e3a8a; }
.playlist-tile { border-color: rgba(100, 116, 139, .2); background: rgba(255, 255, 255, .95); box-shadow: 0 12px 28px rgba(30, 55, 90, .1); }
.playlist-tile:not(:disabled):hover { border-color: rgba(183, 121, 31, .55); box-shadow: 0 18px 36px rgba(30, 55, 90, .16); }
.playlist-tile-cover { background: linear-gradient(145deg, #bfdbfe, #dbeafe); }
.playlist-tile-cover::after { background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, .26)); }
.playlist-tile-badge.available { background: rgba(255, 255, 255, .88); color: var(--member-gold); }
.playlist-tile-badge.locked, .playlist-tile-lock { background: rgba(15, 23, 42, .76); }
.playlist-tile-info h3 { color: #111827; }
.playlist-release span, .playlist-release small { color: #718096; }
.playlist-release strong.playlist-available { color: #16845b; }
.playlist-release strong.playlist-buy { color: #9a6700; }
.playlist-back { color: #5b6b82; }
.playlist-detail-meta strong { color: #111827; }
.playlist-path-progress { border-color: rgba(22, 132, 91, .22); background: rgba(22, 132, 91, .08); color: #16845b; }
.playlist-row { border-color: rgba(100, 116, 139, .2); background: linear-gradient(108deg, rgba(255, 255, 255, .98), rgba(247, 250, 255, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 15px 34px rgba(30, 55, 90, .1); }
.playlist-row:hover, .playlist-row.is-selected { background: linear-gradient(105deg, #ffffff, #f0f7ff); box-shadow: 0 15px 30px rgba(var(--lesson-accent-rgb), .13); }
.playlist-step-node { background: radial-gradient(circle at 31% 24%, rgba(var(--lesson-accent-rgb), 1), rgba(var(--lesson-accent-rgb), .66) 63%, rgba(255, 255, 255, .96) 100%); color: #0f172a; text-shadow: none; box-shadow: 0 0 0 8px rgba(var(--lesson-accent-rgb), .08), 0 0 28px rgba(var(--lesson-accent-rgb), .32), 0 14px 28px rgba(30, 55, 90, .16); }
.playlist-step-node b { color: #0f172a; }
.playlist-row.is-introduction .playlist-step-node, .playlist-row.is-introduction .playlist-step-node b { color: #1c1706; }
.playlist-row.is-locked .playlist-step-node { background: #e2e8f0; color: #64748b; }
.playlist-copy strong { color: #111827; }
.playlist-copy small { color: #526173; }
.playlist-song-release { color: #718096; }
.playlist-row.is-locked .playlist-song-release strong { color: #718096; }
.playlist-duration { color: #526173; }
.playlist-duration > span { color: #64748b; }
.playlist-action:hover { color: #fff; }
.playlist-action.is-locked { border-color: rgba(100, 116, 139, .3); color: #718096; }
.playlist-aside { border-color: rgba(100, 116, 139, .18); background: rgba(255, 255, 255, .82); box-shadow: 0 12px 28px rgba(30, 55, 90, .1); }
.playlist-aside strong { color: #111827; }
.playlist-aside p { color: #526173; }
.aside-rule { background: rgba(100, 116, 139, .2); }
.catalog-heading h2 { color: #273449; }
.catalog-card, .offer-card { border-color: rgba(100, 116, 139, .18); background: var(--member-surface); box-shadow: 0 12px 28px rgba(30, 55, 90, .1); }
.catalog-cover { background: var(--member-surface-2); color: #111827; }
.catalog-cover::after { background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, .3)); }
.catalog-fallback { background: linear-gradient(145deg, #bfdbfe, #dbeafe); }
.catalog-card-title { color: #111827; }
.catalog-badge.locked, .catalog-lock { background: rgba(15, 23, 42, .76); }
.catalog-muted { color: #718096; }
.empty-catalog { border-color: rgba(100, 116, 139, .3); }
.member-admin-link { border-color: rgba(183, 121, 31, .48); background: rgba(183, 121, 31, .08); color: #9a6700; }
.member-admin-link:hover { border-color: #b7791f; background: rgba(183, 121, 31, .14); }
.playlist-tile-skeleton { border-color: rgba(100, 116, 139, .16); background: rgba(255, 255, 255, .8); }
.playlist-tile-skeleton > span { background: linear-gradient(100deg, rgba(148, 163, 184, .08) 25%, rgba(148, 163, 184, .22) 42%, rgba(148, 163, 184, .08) 62%); }
.skeleton-copy i { background: rgba(100, 116, 139, .14); }
.playlist-row-skeleton { border-color: rgba(100, 116, 139, .12); }
.playlist-row-skeleton > * { background: linear-gradient(100deg, rgba(148, 163, 184, .1) 25%, rgba(148, 163, 184, .24) 42%, rgba(148, 163, 184, .1) 62%); }

/* Categorias da playlist: a pessoa escolhe um tema antes de entrar nos níveis. */
.member-playlist-categories-view { margin-top: 24px; }
.member-category-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.member-category-heading h3 { margin: 0; color: #111827; font-size: clamp(1.15rem, 2.3vw, 1.55rem); font-weight: 800; letter-spacing: -.055em; }
.member-category-heading .playlist-path-kicker { margin-bottom: 7px; }
.member-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-category-card { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr) 42px; align-items: center; gap: 16px; min-height: 112px; width: 100%; overflow: hidden; border: 1px solid rgba(var(--category-rgb), .2); border-radius: 26px; background: linear-gradient(112deg, var(--category-soft), #fff 78%); box-shadow: 0 14px 28px rgba(30, 55, 90, .08); color: #111827; padding: 14px 16px 14px 14px; text-align: left; cursor: pointer; transition: border-color .24s ease, box-shadow .24s ease, transform .24s cubic-bezier(.2,.8,.2,1); animation: member-fade-up .42s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--category-index, 0) * 55ms); }
.member-category-card::after { position: absolute; right: 60px; bottom: -42px; width: 130px; height: 130px; border-radius: 50%; background: rgba(var(--category-rgb), .08); content: ''; pointer-events: none; }
.member-category-card:hover { border-color: rgba(var(--category-rgb), .55); box-shadow: 0 18px 36px rgba(var(--category-rgb), .15); transform: translateY(-3px); }
.member-category-card:active { transform: translateY(-1px) scale(.995); }
.member-category-card:focus-visible { outline: 3px solid var(--category-accent); outline-offset: 3px; }
.member-category-artwork { position: relative; z-index: 1; display: grid; width: 82px; height: 82px; place-items: center; overflow: hidden; border: 1px solid rgba(var(--category-rgb), .14); border-radius: 23px; background: rgba(255, 255, 255, .64); color: var(--category-accent); font-family: Georgia, serif; font-size: 3.6rem; line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.member-category-artwork img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.14); }
.member-category-copy { position: relative; z-index: 1; display: grid; min-width: 0; align-content: center; gap: 4px; }
.member-category-copy strong { overflow: hidden; color: #111827; font-size: 1.03rem; font-weight: 800; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.member-category-copy small { overflow: hidden; color: #526173; font-size: .69rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.member-category-copy em { color: var(--category-accent); font-size: .65rem; font-style: normal; font-weight: 800; }
.member-category-arrow { position: relative; z-index: 1; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(var(--category-rgb), .22); border-radius: 50%; background: rgba(255, 255, 255, .72); color: var(--category-accent); font-size: 1.3rem; font-weight: 700; transition: background .24s ease, color .24s ease, transform .24s ease; }
.member-category-card:hover .member-category-arrow { background: var(--category-accent); color: #fff; transform: translateX(2px); }
.member-category-back { margin-top: 21px; }
.member-category-skeleton { display: grid; grid-template-columns: 82px minmax(0, 1fr) 40px; align-items: center; gap: 16px; min-height: 112px; border: 1px solid rgba(100, 116, 139, .14); border-radius: 26px; background: #fff; padding: 14px; animation: member-fade-up .35s both; animation-delay: calc(var(--category-index, 0) * 55ms); }
.member-category-skeleton > span:first-child, .member-category-skeleton > b { display: block; border-radius: 20px; background: linear-gradient(100deg, rgba(148, 163, 184, .1) 25%, rgba(148, 163, 184, .24) 42%, rgba(148, 163, 184, .1) 62%); background-size: 220% 100%; animation: member-shimmer 1.35s ease-in-out infinite; }
.member-category-skeleton > span:first-child { width: 82px; height: 82px; }
.member-category-skeleton > span:nth-child(2) { display: grid; gap: 9px; }
.member-category-skeleton i { display: block; width: 70%; height: 10px; border-radius: 99px; background: linear-gradient(100deg, rgba(148, 163, 184, .1) 25%, rgba(148, 163, 184, .24) 42%, rgba(148, 163, 184, .1) 62%); background-size: 220% 100%; animation: member-shimmer 1.35s ease-in-out infinite; }
.member-category-skeleton i + i { width: 45%; }
.member-category-skeleton > b { width: 40px; height: 40px; border-radius: 50%; }

@media (max-width: 820px) {
  .member-category-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .member-category-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .member-category-heading .playlist-path-progress { align-self: flex-start; }
  .member-category-card { grid-template-columns: 68px minmax(0, 1fr) 36px; gap: 11px; min-height: 91px; border-radius: 22px; padding: 10px 11px 10px 10px; }
  .member-category-artwork { width: 68px; height: 68px; border-radius: 19px; font-size: 3rem; }
  .member-category-copy strong { font-size: .88rem; }
  .member-category-copy small { font-size: .61rem; }
  .member-category-copy em { font-size: .58rem; }
  .member-category-arrow { width: 34px; height: 34px; font-size: 1.05rem; }
  .member-category-skeleton { grid-template-columns: 68px minmax(0, 1fr) 34px; min-height: 91px; border-radius: 22px; padding: 10px; }
  .member-category-skeleton > span:first-child { width: 68px; height: 68px; border-radius: 19px; }
  .member-category-skeleton > b { width: 34px; height: 34px; }
}

/* Cabeçalho da playlist: uma navegação clara para playlist e categoria. */
.playlist-detail { margin-top: 24px; }
.playlist-detail-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(100, 116, 139, .2); border-bottom: 0; border-radius: 28px 28px 0 0; background: rgba(255, 255, 255, .94); padding: 18px 24px 0; }
.playlist-back { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; border: 1px solid rgba(193, 18, 31, .22); border-radius: 999px; background: #fff; box-shadow: 0 7px 16px rgba(30, 55, 90, .08); color: #a3131e; padding: 9px 15px 9px 12px; font-size: .72rem; font-weight: 800; transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease; }
.playlist-back:hover { border-color: rgba(193, 18, 31, .48); background: #fff7f8; box-shadow: 0 10px 21px rgba(193, 18, 31, .12); color: #8f1019; transform: translateX(-3px); }
.playlist-back:active { transform: translateX(-1px) scale(.98); }
.playlist-back:focus-visible { outline: 3px solid rgba(193, 18, 31, .22); outline-offset: 3px; }
.playlist-back-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: rgba(193, 18, 31, .1); font-size: 1rem; line-height: 1; transition: transform .22s ease; }
.playlist-back:hover .playlist-back-icon { transform: translateX(-2px); }
.playlist-detail-context { color: #8290a3; font-size: .56rem; font-weight: 800; letter-spacing: .15em; text-align: right; }
.playlist-detail-header { align-items: center; margin: 0; border: 1px solid rgba(100, 116, 139, .2); border-top: 0; border-radius: 0 0 28px 28px; background: linear-gradient(112deg, #fff 0%, #f8fbff 70%, #edf5ff 100%); box-shadow: 0 18px 38px rgba(30, 55, 90, .1); padding: 17px 24px 25px; }
.playlist-detail-title-block { min-width: 0; }
.playlist-detail-title-block .section-kicker { margin-bottom: 9px; }
.playlist-detail-header h2 { color: #111827; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.085em; line-height: .98; }
.playlist-detail-subtitle { max-width: 620px; margin-top: 11px; color: #526173; font-size: .8rem; line-height: 1.5; }
.playlist-detail-meta { display: grid; min-width: 130px; justify-items: end; align-items: end; gap: 3px; border: 1px solid rgba(37, 99, 235, .14); border-radius: 18px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); padding: 12px 15px 13px; }
.playlist-detail-meta-label { color: #8190a3; font-size: .52rem !important; font-weight: 800; letter-spacing: .12em; }
.playlist-detail-meta strong { color: #111827; font-size: 2.45rem; line-height: .9; }
.playlist-detail-meta > span:last-child { color: #526173; font-size: .65rem; font-weight: 700; }

@media (max-width: 640px) {
  .playlist-detail { margin-top: 20px; }
  .playlist-detail-topbar { align-items: flex-start; border-radius: 22px 22px 0 0; padding: 14px 15px 0; }
  .playlist-detail-context { display: none; }
  .playlist-detail-header { align-items: flex-start; flex-direction: column; gap: 16px; border-radius: 0 0 22px 22px; padding: 17px 15px 19px; }
  .playlist-detail-header h2 { font-size: clamp(1.85rem, 9vw, 2.65rem); }
  .playlist-detail-subtitle { margin-top: 9px; font-size: .7rem; }
  .playlist-detail-meta { display: flex; align-items: baseline; justify-items: initial; gap: 7px; min-width: 0; width: 100%; border-radius: 14px; padding: 10px 12px; }
  .playlist-detail-meta strong { font-size: 2rem; }
  .playlist-detail-meta-label { margin-right: auto; }
}

/* Refinamento visual do detalhe: mais espaço, menos ruído e hierarquia direta. */
.playlist-detail { margin-top: 28px; }
.playlist-detail-topbar { justify-content: space-between; margin-bottom: 14px; border: 0; background: transparent; padding: 0; }
.playlist-back { min-height: 40px; border: 1px solid #dbe4ef; border-radius: 11px; background: #fff; box-shadow: 0 4px 12px rgba(30, 55, 90, .06); color: #475569; padding: 8px 13px 8px 10px; font-size: .7rem; }
.playlist-back:hover { border-color: #cbd5e1; background: #fff; box-shadow: 0 7px 17px rgba(30, 55, 90, .1); color: #1e293b; transform: translateY(-2px); }
.playlist-back:active { transform: translateY(0) scale(.985); }
.playlist-back:focus-visible { outline-color: rgba(59, 130, 246, .25); }
.playlist-back-icon { width: 22px; height: 22px; background: #f1f5f9; color: #334155; font-size: .95rem; }
.playlist-back:hover .playlist-back-icon { background: #e8eef6; color: #1e293b; }
.playlist-detail-context { color: #94a3b8; font-size: .52rem; letter-spacing: .13em; }
.playlist-detail-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 252px; min-height: 286px; align-items: center; gap: 34px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; box-shadow: 0 14px 36px rgba(30, 55, 90, .09); padding: 34px 38px; }
.playlist-detail-header::before { position: absolute; top: -150px; right: 110px; width: 330px; height: 330px; border-radius: 50%; background: rgba(219, 234, 254, .48); content: ''; pointer-events: none; }
.playlist-detail-title-block { position: relative; z-index: 1; align-self: center; }
.playlist-detail-title-block .section-kicker { margin-bottom: 11px; color: #dc2637; font-size: .61rem; letter-spacing: .18em; }
.playlist-detail-header h2 { max-width: 650px; color: #111827; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.09em; line-height: .95; }
.playlist-detail-subtitle { max-width: 540px; margin: 15px 0 0; color: #64748b; font-size: .78rem; line-height: 1.5; }
.playlist-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 490px; margin-top: 27px; border-top: 1px solid #e2e8f0; padding-top: 17px; }
.playlist-detail-stat { position: relative; display: grid; gap: 3px; padding-right: 18px; }
.playlist-detail-stat + .playlist-detail-stat { padding-left: 18px; }
.playlist-detail-stat + .playlist-detail-stat::before { position: absolute; top: 4px; bottom: 2px; left: 0; width: 1px; background: #dbe4ef; content: ''; }
.playlist-detail-stat strong { color: #111827; font-size: 1.9rem; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.playlist-detail-stat span { color: #64748b; font-size: .64rem; font-weight: 700; }
.playlist-detail-art { position: relative; z-index: 1; display: grid; min-height: 218px; place-items: center; overflow: hidden; border-radius: 21px; background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 55%, #fee2e2 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.playlist-detail-art::before { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .55); content: ''; }
.playlist-detail-art::after { position: absolute; right: 20px; bottom: 18px; width: 44px; height: 44px; border: 8px solid rgba(220, 38, 55, .16); border-radius: 50%; content: ''; }
.playlist-detail-art img { position: relative; z-index: 1; display: block; width: 174px; height: 174px; border-radius: 34px; object-fit: cover; box-shadow: 0 18px 30px rgba(30, 55, 90, .18); }
.playlist-detail > .member-status { margin: 14px 4px 0; color: #64748b; font-size: .68rem; }
.member-playlist-categories-view { max-width: 930px; margin: 34px auto 0; }
.member-category-heading { align-items: center; margin-bottom: 14px; }
.member-category-heading h3 { font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.07em; }
.member-category-heading .playlist-path-kicker { margin-bottom: 6px; }
.member-category-list { grid-template-columns: 1fr; gap: 12px; }
.member-category-card { grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 18px; min-height: 108px; border-color: rgba(var(--category-rgb), .14); border-radius: 20px; background: linear-gradient(100deg, var(--category-soft) 0%, #fff 68%); box-shadow: 0 7px 18px rgba(30, 55, 90, .055); padding: 12px 16px 12px 12px; }
.member-category-card::after { right: 82px; bottom: -58px; width: 145px; height: 145px; background: rgba(var(--category-rgb), .045); }
.member-category-card:hover { border-color: rgba(var(--category-rgb), .4); box-shadow: 0 12px 24px rgba(var(--category-rgb), .11); transform: translateY(-2px); }
.member-category-artwork { width: 96px; height: 84px; border: 0; border-radius: 16px; background: transparent; box-shadow: none; }
.member-category-artwork img { transform: scale(1.04); }
.member-category-copy { gap: 5px; }
.member-category-copy strong { font-size: 1.05rem; }
.member-category-copy small { display: none; }
.member-category-copy em { color: #64748b; font-size: .68rem; font-weight: 700; }
.member-category-arrow { width: 42px; height: 42px; border-color: rgba(var(--category-rgb), .16); background: rgba(var(--category-rgb), .09); font-size: 1.2rem; }
.member-category-card:hover .member-category-arrow { background: var(--category-accent); }
.playlist-path-heading { max-width: 930px; margin: 36px auto 16px; border-bottom: 1px solid #dbe4ef; padding-bottom: 13px; }
.playlist-path-heading h3 { color: #111827; font-size: clamp(1.45rem, 3vw, 1.95rem); letter-spacing: -.065em; }
.playlist-path-progress { border-color: #d7e7df; background: #f0faf5; color: #16845b; padding: 6px 10px; }

@media (max-width: 700px) {
  .playlist-detail-topbar { margin-bottom: 11px; }
  .playlist-detail-context { display: none; }
  .playlist-detail-header { grid-template-columns: 1fr; min-height: 0; gap: 23px; border-radius: 20px; padding: 20px 18px 22px; }
  .playlist-detail-header::before { top: -180px; right: -80px; }
  .playlist-detail-art { order: -1; min-height: 150px; border-radius: 17px; }
  .playlist-detail-art::before { width: 132px; height: 132px; }
  .playlist-detail-art img { width: 116px; height: 116px; border-radius: 24px; }
  .playlist-detail-header h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .playlist-detail-stats { margin-top: 22px; padding-top: 14px; }
  .playlist-detail-stat { padding-right: 10px; }
  .playlist-detail-stat + .playlist-detail-stat { padding-left: 10px; }
  .playlist-detail-stat strong { font-size: 1.45rem; }
  .playlist-detail-stat span { font-size: .57rem; }
  .member-playlist-categories-view { margin-top: 28px; }
  .member-category-card { grid-template-columns: 72px minmax(0, 1fr) 38px; gap: 12px; min-height: 88px; border-radius: 17px; padding: 9px 11px 9px 9px; }
  .member-category-artwork { width: 72px; height: 68px; }
  .member-category-copy strong { font-size: .9rem; }
  .member-category-copy em { font-size: .6rem; }
  .member-category-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .playlist-path-heading { margin-top: 28px; }
}

/* Ajuda da área de membros */
.member-help-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid rgba(148, 163, 184, .32); border-radius: 9px; background: rgba(255, 255, 255, .5); color: #53627a; padding: 6px 11px 6px 7px; font-size: .7rem; font-weight: 800; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.member-help-button:hover { border-color: #b9c6d8; background: #fff; color: #1e355d; }
.member-help-button:focus-visible, .member-help-topic:focus-visible, .member-help-copy-primary:focus-visible, .member-help-copy-secondary:focus-visible, .member-help-mail-link:focus-visible { outline: 3px solid rgba(59, 130, 246, .25); outline-offset: 2px; }
.member-help-mark { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #eaf0f8; color: #25416f; font-size: .78rem; font-weight: 900; }
.member-help-dialog { width: min(92vw, 510px); max-width: 510px; max-height: min(88vh, 760px); overflow: visible; border: 0; border-radius: 20px; background: transparent; color: #18243a; padding: 0; box-shadow: 0 28px 90px rgba(10, 25, 49, .26); }
.member-help-dialog::backdrop { background: rgba(9, 22, 43, .52); backdrop-filter: blur(3px); }
.member-help-card { max-height: min(88vh, 760px); overflow-y: auto; border: 1px solid #dce4ef; border-radius: 20px; background: #fff; }
.member-help-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e7edf5; padding: 24px 24px 19px; }
.member-help-kicker { margin: 0 0 6px; color: #c1121f; font-size: .58rem; font-weight: 900; letter-spacing: .16em; }
.member-help-heading h2 { margin: 0; color: #12274a; font-size: 1.3rem; font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
.member-help-heading > div > p:last-child { margin: 7px 0 0; color: #718097; font-size: .7rem; }
.member-help-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #e1e7ef; border-radius: 50%; background: #fff; color: #66758a; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.member-help-close:hover { background: #f3f6fa; color: #263951; }
.member-help-topics { display: grid; gap: 9px; padding: 17px 20px 21px; }
.member-help-topic { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 65px; border: 1px solid #e4eaf2; border-radius: 13px; background: #fff; color: #22314a; padding: 10px 13px; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.member-help-topic:hover { border-color: #cdd8e7; background: #f8faff; transform: translateY(-1px); }
.member-help-topic-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #eef3fa; color: #1d3b6b; font-size: 1rem; font-weight: 800; }
.member-help-topic strong, .member-help-topic small { display: block; }
.member-help-topic strong { font-size: .75rem; font-weight: 800; }
.member-help-topic small { margin-top: 3px; color: #758298; font-size: .61rem; line-height: 1.4; }
.member-help-topic-arrow { justify-self: end; color: #93a0b3; font-size: .95rem; }
.member-help-contact { padding: 16px 23px 22px; }
.member-help-back { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #536883; padding: 3px 0; font-size: .65rem; font-weight: 800; cursor: pointer; }
.member-help-back:hover { color: #173a6d; }
.member-help-contact h3 { margin: 18px 0 0; color: #12274a; font-size: 1.12rem; font-weight: 800; letter-spacing: -.035em; }
.member-help-detail-text { margin: 8px 0 16px; color: #64748b; font-size: .7rem; line-height: 1.6; }
.member-help-address-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e0e8f2; border-radius: 12px; background: #f7f9fc; padding: 11px 12px; }
.member-help-address-copy > span, .member-help-address-copy > a { display: block; }
.member-help-address-copy > span { margin-bottom: 3px; color: #8793a5; font-size: .55rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.member-help-address-copy > a { color: #193d73; font-size: .72rem; font-weight: 800; text-decoration: none; }
.member-help-address-copy > a:hover { text-decoration: underline; }
.member-help-copy-secondary, .member-help-copy-primary { flex: 0 0 auto; border: 1px solid #d8e1ed; border-radius: 8px; background: #fff; color: #42546e; padding: 8px 10px; font-size: .61rem; font-weight: 800; cursor: pointer; }
.member-help-copy-secondary:hover { border-color: #b8c7da; color: #173a6d; }
.member-help-message { margin-top: 13px; border: 1px solid #e0e8f2; border-radius: 12px; background: #fff; padding: 12px; }
.member-help-message-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-help-message-heading > strong { color: #30415a; font-size: .65rem; }
.member-help-message-note { margin: 8px 0 0; color: #718097; font-size: .58rem; line-height: 1.45; }
.member-help-copy-primary { border-color: #173a6d; background: #173a6d; color: #fff; }
.member-help-copy-primary:hover { border-color: #102b55; background: #102b55; }
.member-help-message pre { overflow-wrap: anywhere; white-space: pre-wrap; margin: 11px 0 0; border-radius: 8px; background: #f5f7fa; color: #53627a; padding: 11px; font: 500 .65rem/1.6 var(--member-main); }
.member-help-mail-link { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; margin-top: 13px; border: 1px solid #d8e1ed; border-radius: 9px; background: #fff; color: #27466f; padding: 8px 13px; font-size: .65rem; font-weight: 800; text-decoration: none; }
.member-help-mail-link:hover { border-color: #b8c7da; background: #f8faff; }
.member-help-copy-status { min-height: 1em; margin: 9px 0 0; color: #15805d; font-size: .62rem; }

@media (max-width: 640px) {
  .member-nav-actions { gap: 8px; }
  .member-help-button { min-height: 34px; padding: 5px 9px 5px 6px; font-size: .65rem; }
  .member-help-mark { width: 21px; height: 21px; }
  .member-help-dialog { width: calc(100vw - 28px); max-height: calc(100vh - 30px); border-radius: 17px; }
  .member-help-card { max-height: calc(100vh - 30px); border-radius: 17px; }
  .member-help-heading { padding: 19px 17px 15px; }
  .member-help-heading h2 { font-size: 1.1rem; }
  .member-help-topics { gap: 8px; padding: 13px 13px 16px; }
  .member-help-topic { min-height: 61px; gap: 9px; padding: 9px 10px; }
  .member-help-contact { padding: 13px 15px 17px; }
  .member-help-address-row { align-items: flex-start; flex-direction: column; }
}
