/* =====================================================================
   GL Wiki — lists, profile hub, popular lists, "Add to list" box
   (glossy Y2K style; works on phones first)
   ===================================================================== */

.gl-panel { background: linear-gradient(180deg, #ffffff, #fdf4ff); border: 2px solid #e3aee8; border-radius: 22px; box-shadow: 0 8px 22px rgba(131, 24, 67, .14), inset 0 1px 0 rgba(255, 255, 255, .9); padding: 18px; margin-bottom: 18px; }
.gl-muted { color: #7a5a85; }
.gl-empty { text-align: center; padding: 30px 12px; }
.gl-hint { color: #7a5a85; font-size: 12px; margin: 6px 2px 0; }

/* ---------- buttons & pills ---------- */
.gl-btn, label.gl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 9999px; cursor: pointer; text-decoration: none; border: 1px solid #e3aee8; font: 700 13px 'Inter', sans-serif; color: #831843; background: linear-gradient(180deg, #ffffff 0%, #fbe8fb 55%, #eec3ef 100%); box-shadow: 0 2px 4px rgba(131, 24, 67, .12), inset 0 1px 0 rgba(255, 255, 255, .9); }
.gl-btn:hover { filter: brightness(1.03); }
.gl-btn-solid { color: #fff; border-color: #be185d; background: linear-gradient(180deg, #f9a8d4 0%, #ec4899 55%, #be185d 100%); text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
.gl-btn-small { padding: 6px 12px; font-size: 11px; }
.gl-pill { display: inline-block; padding: 2px 10px; border-radius: 9999px; background: linear-gradient(180deg, #f9a8d4, #be185d); color: #fff; font: 800 10px 'Inter', sans-serif; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
.gl-pill-private { background: linear-gradient(180deg, #d1d5db, #6b7280); }
.gl-link-danger { background: none; border: none; color: #b91c1c; font: 700 12px 'Inter', sans-serif; text-decoration: underline; cursor: pointer; margin-top: 10px; padding: 0; }
.gl-ico { vertical-align: -3px; }

/* ---------- forms ---------- */
.gl-field { display: block; margin: 0 0 12px; }
.gl-field > span { display: block; font: 700 12px 'Inter', sans-serif; color: #831843; margin-bottom: 4px; }
.gl-field input[type=text], .gl-field textarea, .gl-listmenu-new input { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 12px; border: 1px solid #e3aee8; background: #fff; font: 14px 'Inter', sans-serif; color: #3b2a40; }
.gl-check { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-size: 13px; color: #3b2a40; }
.gl-inline-form { display: inline; margin: 0; }
details.gl-panel > summary { cursor: pointer; font: 800 14px 'Baloo 2', 'Inter', sans-serif; color: #a21caf; }
details.gl-panel[open] > summary { margin-bottom: 12px; }

/* ---------- the stacked-poster list card ---------- */
.gl-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-bottom: 24px; }
.gl-list-card { padding: 16px 18px; border-radius: 22px; background: linear-gradient(180deg, #fff, #fdf4ff); border: 2px solid #e3aee8; box-shadow: 0 8px 20px rgba(131, 24, 67, .14), inset 0 1px 0 rgba(255, 255, 255, .9); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.gl-list-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(131, 24, 67, .22); }
.gl-stack { display: flex; overflow: hidden; padding: 4px 8px 12px 2px; text-decoration: none; }
.gl-poster { position: relative; flex: 0 0 auto; width: 88px; aspect-ratio: 2 / 3; margin-left: -42px; overflow: hidden; border-radius: 10px; background: #f3e8ff; box-shadow: -4px 5px 10px rgba(80, 20, 90, .38); }
.gl-poster:first-child { margin-left: 0; }
.gl-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-poster-empty { background: linear-gradient(135deg, #fce7f3, #ede9fe); }
.gl-poster-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #c084fc; font: 800 20px 'Baloo 2', sans-serif; background: linear-gradient(135deg, #fce7f3, #ede9fe); }
.gl-list-name { margin: 2px 0 4px; font: 800 1.25rem/1.2 'Baloo 2', 'Inter', sans-serif; }
.gl-list-name a { color: #a21caf; text-decoration: none; }
.gl-list-name a:hover { text-decoration: underline; }
.gl-list-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: #7a5a85; font-size: 13px; }
.gl-list-owner { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #7a5a85; }

/* ---------- avatars ---------- */
.gl-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 9999px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(131, 24, 67, .3); background: linear-gradient(180deg, #f9a8d4, #a855f7); vertical-align: middle; }
.gl-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-avatar-initial { color: #fff; font-weight: 800; font-family: 'Baloo 2', 'Inter', sans-serif; }

/* ---------- profile hub ---------- */
.gl-hub { max-width: 1100px; margin: 0 auto; }
.gl-profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.gl-profile-name { margin: 0; font: 800 1.6rem 'Baloo 2', 'Inter', sans-serif; color: #a21caf; }
.gl-profile-info p { margin: 2px 0 10px; }
.gl-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gl-profile-status { font-size: 12px; color: #7a5a85; }
.gl-profile-status.gl-bad { color: #b91c1c; font-weight: 700; }
.gl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.gl-tab { padding: 8px 18px; border-radius: 9999px; border: 1px solid #e3aee8; background: #fff; color: #831843; font: 700 13px 'Inter', sans-serif; text-decoration: none; }
.gl-tab-on { background: linear-gradient(180deg, #f9a8d4, #be185d); color: #fff; border-color: #be185d; }
.gl-tab-link { margin-left: auto; background: transparent; border-style: dashed; }
.gl-login-prompt { text-align: center; }

/* ---------- a single list page ---------- */
.gl-list-page { max-width: 1100px; margin: 0 auto; }
.gl-list-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.gl-list-head-main { min-width: 0; flex: 1 1 320px; }
.gl-list-title { margin: 0 0 6px; font: 800 2rem/1.15 'Baloo 2', 'Inter', sans-serif; color: #a21caf; word-break: break-word; }
.gl-list-desc { margin: 8px 0; color: #3b2a40; }
.gl-list-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
.gl-item { position: relative; display: flex; flex-direction: column; gap: 4px; }
.gl-item-poster { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 18px rgba(80, 20, 90, .3); transition: transform .15s ease; background: #f3e8ff; }
.gl-item-poster:hover { transform: translateY(-3px); }
.gl-item-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-item-title { margin-top: 6px; font: 800 .95rem/1.2 'Baloo 2', 'Inter', sans-serif; color: #a21caf; text-decoration: none; }
.gl-item-type { font-size: 11px; color: #7a5a85; text-transform: uppercase; letter-spacing: .05em; }
.gl-item-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 9999px; border: 1px solid #fca5a5; background: rgba(255, 255, 255, .95); color: #b91c1c; font-weight: 800; cursor: pointer; line-height: 1; }

/* ---------- popular lists page header (chrome bar) ---------- */
.gl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; margin-bottom: 18px; border-radius: 22px; background: linear-gradient(180deg, #ffffff 0%, #fbe8fb 45%, #e9b8ef 80%, #d79be3 100%); border: 2px solid #d79be3; box-shadow: 0 6px 16px rgba(131, 24, 67, .18); }
.gl-bar h1 { margin: 0; font: 800 1.7rem 'Baloo 2', 'Inter', sans-serif; font-style: italic; color: #fff; -webkit-text-stroke: 1px #a21caf; paint-order: stroke fill; text-shadow: 0 2px 0 #a21caf, 0 4px 10px rgba(107, 33, 168, .3); }
.gl-bar p { margin: 0; color: #831843; font-size: 13px; }
.gl-sort { display: flex; gap: 8px; margin-bottom: 16px; }

/* ---------- "Add to Favorites / Add to list" box on fichas ---------- */
.gl-box { margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #fff, #fdf2fb); border: 2px solid #f9a8d4; box-shadow: 0 4px 12px rgba(131, 24, 67, .1); }
.gl-box-login { margin: 0; font-size: 14px; }
.gl-box-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.gl-fav-btn, .gl-list-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 9999px; cursor: pointer; list-style: none; border: 1px solid #e3aee8; font: 700 13px 'Inter', sans-serif; color: #831843; background: linear-gradient(180deg, #fff, #fbe8fb 55%, #eec3ef); box-shadow: 0 2px 4px rgba(131, 24, 67, .12), inset 0 1px 0 rgba(255, 255, 255, .9); }
.gl-fav-btn.is-fav { color: #fff; border-color: #be185d; background: linear-gradient(180deg, #f9a8d4, #be185d); text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.gl-star { font-size: 15px; line-height: 1; }
.gl-list-btn::-webkit-details-marker { display: none; }
.gl-listmenu-wrap { position: relative; }
.gl-listmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 240px; max-width: 86vw; padding: 8px; background: #fff; border: 1px solid #fbcfe8; border-radius: 14px; box-shadow: 0 10px 24px rgba(131, 24, 67, .22); }
.gl-listmenu-item { display: flex; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: none; border-radius: 8px; background: none; font: 13px 'Inter', sans-serif; cursor: pointer; color: #3b2a40; }
.gl-listmenu-item:hover { background: #fdf2f8; }
.gl-listmenu-item.checked { color: #ec4899; font-weight: 700; }
.gl-listmenu-item span { width: 14px; color: #ec4899; }
.gl-listmenu-divider { height: 1px; background: #fbcfe8; margin: 6px 0; }
.gl-listmenu-new { display: flex; gap: 6px; padding: 4px; }
.gl-listmenu-link { display: block; padding: 8px 10px 4px; font-size: 12px; font-weight: 700; color: #be185d; text-decoration: none; }

/* ---------- small screens ---------- */
@media (max-width: 520px) {
	.gl-panel { padding: 14px; border-radius: 18px; }
	.gl-poster { width: 70px; margin-left: -32px; }
	.gl-list-card { padding: 14px; }
	.gl-list-title { font-size: 1.6rem; }
	.gl-items { grid-template-columns: repeat(2, 1fr); }
	.gl-tab-link { margin-left: 0; }
	.gl-bar h1 { font-size: 1.4rem; }
}
