/* Inner pages with the app's look (see page-app.js). */
/* Header pills: «Inicio» like the rest; the current section highlighted */
.navlinks a.nav-home{border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme=dark] .navlinks a[aria-current=page]{background:#1F3358!important;color:#F2F5FA!important}
/* Page titles like the app: plain, no eyebrow */
html[data-theme=dark] .eyebrow{display:none}
.app-page-title{font:700 30px/1.1 var(--display)!important;letter-spacing:-.03em!important;margin:24px 0 4px!important;color:var(--ep-ink,#112541)}
.app-page-subtitle,.app-page-title+p{color:var(--ep-muted,#48607d);font-size:14px;margin:0 0 18px}
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3{font-family:var(--display)}
/* Sections as app cards */
html[data-theme=dark] .profile-section-title h2,html[data-theme=dark] .profile-followers-header h2{font:600 18px var(--sans);letter-spacing:-.01em}

/* ---------- Public profile ---------- */
.profile-app .profile-hero{position:relative;display:block!important;padding:0!important;overflow:hidden;border:1px solid var(--ep-line,#c7d4e7);border-radius:10px;background:var(--ep-paper,#fff)!important;background-image:none!important;min-height:0!important}
.profile-app-banner{height:150px;background:linear-gradient(135deg,#16233A 25%,transparent 25%) -16px 0/32px 32px,linear-gradient(225deg,#1F3358 25%,transparent 25%) -16px 0/32px 32px,linear-gradient(315deg,#16233A 25%,transparent 25%) 0 0/32px 32px,linear-gradient(45deg,#1F3358 25%,#234AE6 25%) 0 0/32px 32px;background-size:cover;background-position:center;opacity:.9}
html:not([data-theme=dark]) .profile-app-banner:not([style]){background:linear-gradient(120deg,#c9d6ff,#eaf0ff)}
.profile-app .profile-mosaic-intro{padding:0 22px 20px;margin-top:-44px;position:relative}
.profile-app .profile-identity{display:block}
.profile-app .profile-avatar{width:88px;height:88px;border-radius:14px!important;border:3px solid var(--ep-paper,#fff);overflow:hidden;font-size:34px;box-shadow:0 8px 20px rgba(2,6,14,.4)}
.profile-app .profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:0}
.profile-app .profile-person{margin-top:10px}
.profile-app .profile-person h1{font:700 26px/1.15 var(--display)!important;letter-spacing:-.02em!important;margin:0 0 2px!important}
.profile-app .profile-meta{color:var(--ep-muted,#48607d);font-size:13px}
.profile-app .profile-mosaic-intro>p{margin:12px 0 0;color:var(--ep-ink,#112541);font-size:14px;line-height:1.55;max-width:680px}
.profile-app-stats{display:flex;gap:28px;margin:16px 0 4px}
.profile-app-stats span{display:grid}.profile-app-stats b{font:700 18px var(--sans);color:var(--ep-ink,#112541)}.profile-app-stats small{font-size:12px;color:var(--ep-muted,#48607d)}
.profile-app .profile-follow-inline{margin-top:12px}
.profile-app .profile-follow-stats{display:none}
.profile-app .profile-follow-button{height:36px;padding:0 16px;border-radius:10px;background:#234AE6;border:1px solid #234AE6;color:#fff;font:600 13px var(--sans)}
.profile-app .profile-topline{margin-bottom:12px}
.profile-app .profile-topline button{border-radius:10px}
/* Favourite games: a row of covers */
.profile-app-favorites{margin:26px 0 0;padding:0!important;border:0!important;background:none!important;position:static!important;width:auto!important;inset:auto!important}
.profile-app-favorites h2{font:600 18px var(--sans);margin:0 0 12px}
.profile-app-favorites .profile-favorites-mosaic{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:none!important;gap:12px;height:auto!important}
.profile-app-favorites .profile-favorite-tile{grid-area:auto!important;aspect-ratio:3/4;height:auto!important;border-radius:10px;overflow:hidden;border:1px solid var(--ep-line,#c7d4e7)}
.profile-app-favorites .profile-favorite-tile.is-empty{background:var(--ep-paper,#fff)!important;display:grid;place-items:center;color:var(--ep-muted,#48607d);font-size:12px}
.profile-app-favorites .profile-favorite-tile img{width:100%;height:100%;object-fit:cover}
/* Dashboard sections as cards with rows */
.profile-app .profile-dashboard{margin-top:26px;gap:22px}
.profile-app .profile-dashboard section,.profile-app .profile-dashboard aside.profile-recent,.profile-app .profile-ratings{border:1px solid var(--ep-line,#c7d4e7);border-radius:10px;background:var(--ep-paper,#fff);padding:16px 18px;margin-bottom:18px}
.profile-app .profile-recent-review{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--ep-line,#c7d4e7)}
.profile-app .profile-recent-review:first-child{border-top:0}
.profile-app .profile-recent-games-grid img,.profile-app .profile-rating-card img{border-radius:6px}
.profile-app .profile-rating-card{border-radius:10px;background:var(--ep-bg,#f4f6fa)!important}
@media(max-width:760px){.profile-app-favorites .profile-favorites-mosaic{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-app-stats{gap:18px}.profile-app-banner{height:110px}}

/* ---------- Lists page: cards with the cover on top, in a grid ---------- */
html[data-theme=dark] .lists-page .list-card,html[data-theme=dark] .community-list-card{border-radius:10px}
/* Fixes: win over the profile's own rules */
.profile-app-banner{background:repeating-conic-gradient(#1C2E50 0 25%,#16233A 0 50%) 0 0/56px 36px!important;opacity:1}
.profile-app-banner[style]{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
html:not([data-theme=dark]) .profile-app-banner:not([style]){background:repeating-conic-gradient(#dfe7fb 0 25%,#eaf0ff 0 50%) 0 0/56px 36px!important}
.profile-app .profile-mosaic-intro{margin-top:-44px!important;padding:0 22px 20px!important;position:relative;z-index:1}
.profile-app .profile-identity{display:block!important}
.profile-app .profile-avatar{margin:0!important;display:grid;place-items:center;background:var(--ep-pale,#eaf0ff)}
.profile-app .profile-follow-stats{display:none!important}
.profile-app .eyebrow,html[data-theme=dark] .eyebrow{display:none!important}
html[data-theme=dark] .nav-search-form{min-width:0!important;width:170px}
.profile-app-favorites .profile-favorites-mosaic{grid-template-columns:repeat(5,minmax(0,150px))!important}
@media(max-width:760px){.profile-app-favorites .profile-favorites-mosaic{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
.profile-app .profile-follow-button{background:#234AE6!important;border-color:#234AE6!important;color:#fff!important;border-radius:10px!important}
.profile-app .profile-topline{border-bottom:0!important}
/* Lists page: cards like the app — three covers on top, name, author and count below */
#listsPage .lists-discovery-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px}
#listsPage .discovery-list{border-radius:10px;overflow:hidden}
#listsPage .discovery-list-link{display:flex!important;flex-direction:column!important;height:100%}
#listsPage .discovery-list-cover{width:100%!important;height:auto!important;aspect-ratio:16/9;display:block;border-radius:0;overflow:hidden;flex:none!important}
#listsPage .discovery-list-cover>img{width:100%;height:100%;object-fit:cover}
.list-collage{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;height:100%;background:var(--ep-line,#c7d4e7)}
.list-collage img{width:100%;height:100%;object-fit:cover}
#listsPage .discovery-list-copy{padding:12px 14px!important}
#listsPage .discovery-list-copy h3{font:600 15px/1.3 var(--sans)!important;margin:4px 0}
#listsPage .discovery-list-copy p{font-size:12px;color:var(--ep-muted,#48607d);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#listsPage .lists-intro a{border-radius:10px}
@media(max-width:1000px){#listsPage .lists-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){#listsPage .lists-discovery-grid{grid-template-columns:1fr 1fr!important;gap:10px}}
.list-collage img{position:static!important;inset:auto!important;transform:none!important;min-width:0}
/* Section titles across pages: the app's size */
html[data-theme=dark] main h2:not(.app-page-title){font-size:clamp(18px,1.6vw,22px);letter-spacing:-.015em}
/* Members: a plain title like the app, with the total on the right */
html[data-theme=dark] .members-hero{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin-bottom:14px}
html[data-theme=dark] .members-hero>div>span:first-child{display:none}
html[data-theme=dark] .members-total b{font-size:22px}
/* Activity: day headings like the app (small, not shouting) */
html[data-theme=dark] .activity-page h2,html[data-theme=dark] .activity-day h2,html[data-theme=dark] .activity-group h2{font:600 13px var(--sans)!important;letter-spacing:.02em;text-transform:none;color:var(--ep-muted,#48607d)}
html[data-theme=dark] h2.activity-day{font:600 13px var(--sans)!important;letter-spacing:.02em!important;text-transform:none!important;color:var(--ep-muted,#48607d)!important}
/* A list's page: compact header like the app (small cover, title, author, description) */
html[data-theme=dark] .shared-list-intro h1,html[data-theme=dark] .shared-list-intro h2{font:700 clamp(26px,3vw,36px)/1.1 var(--display)!important;letter-spacing:-.03em!important}
html[data-theme=dark] .shared-list-cover{width:120px!important;flex:none}
html[data-theme=dark] .shared-list-cover img{border-radius:10px}
html[data-theme=dark] .shared-list-view table,html[data-theme=dark] .shared-list-view .list-rows{border-radius:10px;overflow:hidden}
/* Club page: the title at the app's size */
html[data-theme=dark] .club-page h1,html[data-theme=dark] .club-hero h1{font:700 clamp(26px,3vw,36px)/1.1 var(--display)!important;letter-spacing:-.03em!important}
/* Profile text colours in both themes (the old hero had white text on a dark picture) */
.profile-app .profile-person h1,.profile-app .profile-mosaic-intro>p,.profile-app-favorites h2,.profile-app-stats b{color:var(--ep-ink,#182F4D)!important}
.profile-app .profile-meta,.profile-app .profile-meta *,.profile-app-stats small{color:var(--ep-muted,#586B83)!important}
/* Verified badge next to names */
.inline-verified{width:14px!important;height:14px!important;flex:none;margin-left:4px;vertical-align:-2px;display:inline-block;cursor:pointer}
/* Profile «Opiniones recientes»: cover column as wide as the cover, text beside it (no overlap) */
.profile-app .profile-recent-review{grid-template-columns:56px minmax(0,1fr)!important;gap:14px!important;align-items:start}
.profile-app .profile-recent-review>img{width:56px!important;height:75px!important;object-fit:cover;border-radius:6px;position:static!important;margin:0!important}
.profile-app .profile-recent-review-copy{display:grid;gap:4px;min-width:0;position:static!important;margin:0!important}
.profile-app .profile-recent-review-title{display:flex;gap:6px;align-items:baseline;min-width:0}
.profile-app .profile-recent-review-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-app .profile-recent-review-comment{color:var(--ep-muted,#586B83);font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Favourites: up to six in one row; space between the shelf and the sections below */
.profile-app-favorites .profile-favorites-mosaic{grid-template-columns:repeat(6,minmax(0,1fr))!important;max-width:none}
.profile-app-favorites[hidden]{display:none!important}
.profile-app-favorites{margin:32px 0 0!important}
.profile-app .profile-dashboard{margin-top:32px!important;column-gap:28px!important;row-gap:22px!important}
.profile-app .profile-dashboard-primary,.profile-app .profile-dashboard-side{display:grid;gap:22px;align-content:start}
.profile-app .profile-dashboard section,.profile-app .profile-dashboard aside.profile-recent{margin:0!important}
.profile-app .profile-ratings{margin-top:32px!important}
@media(max-width:760px){.profile-app-favorites .profile-favorites-mosaic{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
