:root {
  --bg-base: #0f0f13;
  --bg-surface: rgba(26, 26, 30, 0.6);
  --text-primary: #f2f2f5;
  --text-muted: #888891;
  --accent: #ff4a5a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }
body { background-color: var(--bg-base); color: var(--text-primary); overflow-x: hidden; padding-bottom: 90px; }

@keyframes siteLoad { 0% { opacity: 0; } 100% { opacity: 1; } }
.site-enter { animation: siteLoad 0.5s ease forwards; }

.transition-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #050505; z-index: 9999999; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.section-page { transition: opacity 0.3s ease; }

/* OBSERVER SCROLL ANIMATIONS */
.scroll-trigger { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.scroll-animated { opacity: 1 !important; transform: translateY(0) !important; }

/* BARRA DE ROLAGEM GLOBAL */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-surface); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* BARRA DE ROLAGEM DOS CARDS HORIZONTAIS */
.custom-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

.liquid-glass { background: rgba(15, 15, 15, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); }
.glow-text { text-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
.glow-box { box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); transition: box-shadow 0.3s, transform 0.1s !important; }
.glow-box:hover { box-shadow: 0 0 25px rgba(255, 255, 255, 0.5); }

@keyframes wavy { 0%, 40%, 100% { transform: translateY(0); } 20% { transform: translateY(-6px); color: #fff; text-shadow: 0 0 10px #fff; } }
.wavy-dot { display: inline-block; animation: wavy 1.2s infinite; font-weight: bold; }
.wavy-dot:nth-child(1) { animation-delay: 0s; }
.wavy-dot:nth-child(2) { animation-delay: 0.2s; }
.wavy-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

.pfp-container-mini { width: 35px; height: 35px; border-radius: 50%; overflow: hidden; border: 1px solid #333; }
.pfp-container-mini img { width: 100%; height: 100%; object-fit: cover; }
.pfp-container-large { width: 80px; height: 80px; min-width: 80px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.pfp-container-large img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pill-nav { display: flex; justify-content: space-between; align-items: center; border-radius: 50px; margin: 20px auto; width: 90%; max-width: 1000px; padding: 10px 30px; position: sticky; top: 20px; z-index: 100; backdrop-filter: blur(10px); }
.logo { font-weight: 800; letter-spacing: -1px; font-size: 1.2rem; }
.nav-links a { color: #888; text-decoration: none; margin: 0 15px; font-size: 0.9rem; transition: color 0.2s, text-shadow 0.2s; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.user-actions { display: flex; align-items: center; gap: 10px; }

.btn-primary { background: #fff; color: #000; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: transform 0.1s; }
.btn-primary:active { transform: scale(0.95); }
.btn-ghost { background: transparent; color: #888; border: none; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.btn-ghost:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8); }

.dark-input { color: #fff; padding: 12px; border-radius: 8px; outline: none; width: 100%; border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.2s, box-shadow 0.2s; }
.dark-input:focus { border-color: #aaa !important; box-shadow: 0 0 10px rgba(255,255,255,0.1); }
textarea.dark-input { resize: none; max-height: 80px; }

.hero { text-align: center; padding: 100px 20px; }
.hero .subtitle { color: #666; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 15px; }
.search-bar-container { max-width: 800px; margin: 0 auto 50px auto; padding: 0 20px; }

.switch { position: relative; display: inline-block; width: 40px; height: 20px; flex-shrink: 0; }
.switch input { display: none !important; opacity: 0; width: 0; height: 0; margin: 0; position: absolute; }
.slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.2); transition: .4s; border-radius: 34px; border: 1px solid rgba(255,255,255,0.1); }
.slider-toggle:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 2px; background-color: #aaa; transition: .4s; border-radius: 50%; }
.switch input:checked + .slider-toggle { background-color: #1ed760; border-color: #1ed760; }
.switch input:checked + .slider-toggle:before { transform: translateX(18px); background-color: #000; }

.filters-row { position: relative; width: 100%; }
.range-slider-wrapper { margin-top: 10px; position: relative; }

.range-slider-wrapper .slider-track { 
    width: 100%; 
    height: 4px !important; 
    background: rgba(255,255,255,0.1) !important; 
    border-radius: 5px !important; 
    position: absolute !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important;
    z-index: 1; 
    pointer-events: none; 
}

.range-slider-wrapper .slider-fill { 
    height: 100%; 
    background: #fff; 
    border-radius: 5px; 
    position: absolute; 
    z-index: 2; 
    box-shadow: 0 0 10px rgba(255,255,255,0.5); 
}

.range-slider-wrapper input[type=range] { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 100%; 
    position: absolute !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important;
    left: 0; 
    background: transparent; 
    pointer-events: none; 
    z-index: 3; 
    margin: 0; 
    outline: none;
}

.range-slider-wrapper input[type=range]::-webkit-slider-runnable-track { background: transparent; border: none; }
.range-slider-wrapper input[type=range]::-moz-range-track { background: transparent; border: none; }

.range-slider-wrapper input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    height: 16px; 
    width: 16px; 
    border-radius: 50%; 
    background: #fff; 
    cursor: pointer; 
    pointer-events: auto; 
    box-shadow: 0 0 10px rgba(0,0,0,0.5); 
    border: 2px solid #fff; 
}

.range-slider-wrapper input[type=range]::-moz-range-thumb { 
    appearance: none; 
    height: 16px; 
    width: 16px; 
    border-radius: 50%; 
    background: #fff; 
    cursor: pointer; 
    pointer-events: auto; 
    border: 2px solid #fff; 
    box-shadow: 0 0 10px rgba(0,0,0,0.5); 
}

.type-options { display: flex; gap: 10px; }
.type-options input[type="radio"] { display: none; }
.type-options label { font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.1); padding: 8px 18px; border-radius: 20px; transition: 0.2s; opacity: 0.6; cursor: pointer;}
.type-options label:hover { opacity: 1; background: rgba(255,255,255,0.05); }
.type-options input[type="radio"]:checked + label { opacity: 1; background: #fff; color: #000; font-weight: 600; box-shadow: 0 0 15px rgba(255,255,255,0.5); }

/* GRID PRINCIPAL */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; padding: 0 5%; max-width: 1400px; margin: 0 auto 50px auto; }

.album-card { 
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px; 
  padding: 15px; 
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; 
  cursor: pointer; 
}
.album-card:hover { 
  border-color: rgba(255,255,255,0.2); 
  transform: translateY(-5px); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.4); 
}

.album-card img { width: 100%; border-radius: 6px; margin-bottom: 15px; filter: grayscale(20%); transition: filter 0.3s; }
.album-card:hover img { filter: grayscale(0%); }
.album-title { font-weight: 700; font-size: 1rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-artist { color: #888; font-size: 0.8rem; margin-bottom: 15px; }

/* MELHOR RESULTADO DE BUSCA */
.top-result-card { display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: 12px; margin-bottom: 20px; transition: transform 0.3s, border-color 0.3s; cursor: pointer; }
.top-result-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.top-result-card img { width: 140px; height: 140px; border-radius: 8px; object-fit: cover; }
@media(max-width: 600px) { .top-result-card { flex-direction: column; text-align: center; } }

/* CARDS DO PERFIL */
.rated-album-mini { opacity: 0; transform: translateY(15px); animation: fadeInUp 0.4s ease forwards; transition: transform 0.2s; cursor: pointer; min-width: 120px; max-width: 120px; text-align: center; margin-right: 5px; }
.rated-album-mini:hover { transform: translateY(-5px) scale(1.05); }

/* SLOTS DOS FAVORITOS NO PERFIL */
.fav-slot { width: 90px; height: 90px; border-radius: 8px; border: 1px dashed rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: 0.2s; }
.fav-slot:hover { border-color: rgba(255,255,255,0.5); }
.fav-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; }

.album-header { align-items: flex-start !important; }

.track-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-radius: 8px; margin-bottom: 5px; transition: background 0.2s; }
.track-row:hover { background: rgba(255,255,255,0.05); }
.track-info { display: flex; align-items: center; gap: 15px; flex: 1; }
.track-info-text { display: flex; flex-direction: column; max-width: 250px; }
.track-info-text .t-name { color:#fff; font-size:0.9rem; font-weight:600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.play-btn { cursor: pointer; font-size: 1.8rem; color: #aaa; transition: 0.2s; background: transparent !important; border: none !important; outline: none !important; box-shadow: none !important; }
.play-btn:hover, .play-btn.playing { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }

.track-actions { display: flex; align-items: center; gap: 15px; flex: 1.5; justify-content: flex-end; }
.track-comment { background: transparent; border: 1px solid #333; color: #fff; padding: 8px 12px; border-radius: 5px; width: 60%; outline: none; font-size: 0.8rem; resize: none; height: 35px; line-height: 1.3; font-family: inherit; transition: height 0.2s ease, border-color 0.2s, background 0.2s; overflow: hidden; }
.track-comment:focus { border-color: #888; background: rgba(0,0,0,0.5); height: 65px; overflow-y: auto; }

/* ANIMAÇÃO ESTRELAS */
.rating-ui { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #1a1a1a; padding-top: 10px; }
.stars { display: flex; gap: 2px; color: #444; cursor: pointer; position: relative; }
.stars i { transition: color 0.2s, transform 0.2s; }

@keyframes starScale { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
.star-animate { animation: starScale 0.3s ease forwards; }

@keyframes starExplode { 0% { transform: scale(1); } 50% { transform: scale(1.6); filter: drop-shadow(0 0 20px #fff); } 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,255,255,0.8)); } }
@keyframes explodeParticles { 0% { box-shadow: 0 -15px 0 #fff, 0 15px 0 #fff, 15px 0 0 #fff, -15px 0 0 #fff, 10px -10px 0 #fff, -10px 10px 0 #fff, 10px 10px 0 #fff, -10px -10px 0 #fff; opacity: 1; transform: scale(0.5); } 100% { box-shadow: 0 -30px 0 #fff, 0 30px 0 #fff, 30px 0 0 #fff, -30px 0 0 #fff, 20px -20px 0 #fff, -20px 20px 0 #fff, 20px 20px 0 #fff, -20px -20px 0 #fff; opacity: 0; transform: scale(1.2); } }
.star-explode { animation: starExplode 0.5s ease forwards; position: relative; }
.star-explode::after { content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; animation: explodeParticles 0.5s ease-out forwards; pointer-events: none; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); z-index: 99999; display: flex; justify-content: center; align-items: center; }
.modal-content { border-radius: 16px; width: 90%; max-width: 500px; animation: modalPop 0.3s ease forwards; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; backdrop-filter: blur(20px); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px 15px 30px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.modal-body { padding: 15px 30px 30px 30px; overflow-y: auto; }
.pfp-edit { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.modal-body label { display: block; margin: 15px 0 5px 0; color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

@keyframes modalPop { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.user-card { border-radius: 12px; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; transition: transform 0.3s, border-color 0.3s; cursor: pointer; }
.user-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2) !important; }
.btn-follow { background: transparent; border: 1px solid #fff; color: #fff; padding: 6px 16px; border-radius: 20px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.btn-follow:hover { background: #fff; color: #000; }
.btn-follow.following { background: rgba(255,255,255,0.2); color: #fff; border-color: transparent; }

.feed-item { display: flex; gap: 15px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.feed-item img.pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.feed-item img.cover { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; }

#global-player { position: fixed; bottom: 0; left: 0; width: 100vw; height: 80px; background: rgba(10, 10, 10, 0.95); border-top: 1px solid #222; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 1000; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }
.player-info { display: flex; align-items: center; gap: 15px; width: 30%; min-width: 200px; flex-shrink: 0; }
.player-info img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.player-controls { flex: 1; max-width: 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-container { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 500px; font-size: 0.7rem; color: #aaa; }
.progress-bar-bg { flex: 1; height: 4px; background: #333; border-radius: 2px; cursor: pointer; position: relative; }
.progress-bar-fill { height: 100%; background: #fff; border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.progress-bar-bg:hover .progress-bar-fill { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.5); }

.player-volume { display: flex; align-items: center; gap: 10px; width: 30%; justify-content: flex-end; min-width: 150px; flex-shrink: 0; }
.player-volume i { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; } 

html { scroll-behavior: smooth; }

.cropper-container { border-radius: 8px; }

main.section-page { padding-bottom: 120px !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
.skel-card { width: 100%; height: 250px; border-radius: 12px; margin-bottom: 30px; }
.skel-mini { width: 140px; height: 180px; border-radius: 10px; flex-shrink: 0; }
.skel-row { width: 100%; height: 50px; border-radius: 8px; margin-bottom: 10px; }

/* EFEITO REACT BITS ANIMATED LIST (Vanilla JS + CSS) */
.tracklist-wrapper {
    position: relative;
    width: 100%;
}

#tracklist-container {
    padding: 10px 0 20px 0;
    position: relative;
}

.track-trigger {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.track-animated {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* ELASTIC VOLUME SLIDER ISOLADO */
.elastic-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
}
.slider-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    opacity: 0.7;
    transform: scale(1);
}
.slider-wrapper.hovered {
    opacity: 1;
    transform: scale(1.1);
}
.slider-root {
    position: relative;
    display: flex;
    flex-grow: 1;
    align-items: center;
    padding: 15px 0;
    touch-action: none;
}
.slider-root:active {
    cursor: grabbing;
}
.slider-track-wrapper {
    width: 100%;
    height: 4px;
    transition: height 0.2s ease;
}
.slider-wrapper.hovered .slider-track-wrapper {
    height: 8px;
}
.elastic-slider-container .slider-track {
    height: 100% !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
}
.elastic-slider-container .slider-range {
    height: 100%;
    background: #fff;
    width: 50%;
    border-radius: 9999px;
    pointer-events: none;
}
.slider-icon {
    color: #aaa;
    font-size: 1.2rem;
    display: flex;
    transition: transform 0.1s ease-out;
}

/* =========================================================
   FUSÃO: TILT + SPOTLIGHT + GLOW (SEM CD)
========================================================= */

/* Container principal - Cria a perspectiva 3D */
.interactive-album-figure {
    perspective: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* O bloco da Capa - Chassi transparente pra não engolir nada */
.interactive-album-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    border-radius: 8px;
    background-color: transparent; /* Removido o #111 que tava causando o buraco negro */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    
    --edge-proximity: 0;
    --cursor-angle: 90deg;
    --mouse-x: 50%;
    --mouse-y: 50%;
    
    --edge-sensitivity: 30;
    --color-sensitivity: 50; 
    --glow-padding: 30px;
    --cone-spread: 25;
    --spotlight-color: rgba(255, 255, 255, 0.15);
    z-index: 2;
}

/* A ARTE DA CAPA */
.tilted-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transform: translateZ(0); /* Fica cravada no eixo Z=0, sem afundar */
    z-index: 1;
}

/* O OVERLAY ACRÍLICO */
.tilted-card-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
    transform: translateZ(40px) scale(1.02); /* Flutua 40px pra frente da capa dando o efeito 3D real */
    z-index: 4;
    filter: drop-shadow(8px 8px 12px rgba(0,0,0,0.5)); /* Sombra pra destacar a altura */
}
/* 1. SPOTLIGHT EFFECT (translada 10px em Z) */
.interactive-album-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    transform: translateZ(10px); 
    z-index: 2;
}

.interactive-album-figure:hover .interactive-album-inner::after {
    opacity: 1;
}

/* 2. BORDER GLOW EFFECT (translada -1px em Z para não clipping) */
.interactive-album-inner::before,
.interactive-album-inner > .edge-light {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.25s ease-out;
    z-index: 0; 
    transform: translateZ(-1px); 
}

.interactive-album-figure:not(:hover) .interactive-album-inner::before,
.interactive-album-figure:not(:hover) .interactive-album-inner > .edge-light {
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
}

.interactive-album-inner::before {
    border: 1px solid transparent;
    background:
        linear-gradient(#111 0 100%) padding-box,
        linear-gradient(rgba(255,255,255,0) 0% 100%) border-box,
        radial-gradient(at 80% 55%, #c084fc 0px, transparent 50%) border-box,
        radial-gradient(at 69% 34%, #f472b6 0px, transparent 50%) border-box,
        radial-gradient(at 8% 6%, #38bdf8 0px, transparent 50%) border-box,
        linear-gradient(#c299ff 0 100%) border-box;
    
    opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

    -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
    mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
}

.interactive-album-inner > .edge-light {
    inset: calc(var(--glow-padding) * -1);
    pointer-events: none;
    -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
    mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
    opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
    mix-blend-mode: plus-lighter;
}

.interactive-album-inner > .edge-light::before {
    content: "";
    position: absolute;
    inset: var(--glow-padding);
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px hsla(40, 80%, 80%, 1),
        inset 0 0 1px 0 hsla(40, 80%, 80%, 0.6),
        inset 0 0 3px 0 hsla(40, 80%, 80%, 0.5),
        inset 0 0 6px 0 hsla(40, 80%, 80%, 0.4),
        inset 0 0 15px 0 hsla(40, 80%, 80%, 0.3),
        inset 0 0 25px 2px hsla(40, 80%, 80%, 0.2),
        inset 0 0 50px 2px hsla(40, 80%, 80%, 0.1),
        0 0 1px 0 hsla(40, 80%, 80%, 0.6),
        0 0 3px 0 hsla(40, 80%, 80%, 0.5),
        0 0 6px 0 hsla(40, 80%, 80%, 0.4),
        0 0 15px 0 hsla(40, 80%, 80%, 0.3),
        0 0 25px 2px hsla(40, 80%, 80%, 0.2),
        0 0 50px 2px hsla(40, 80%, 80%, 0.1);
}

/* =========================================================
   PORT MOBILE - RESPONSIVIDADE
========================================================= */
@media (max-width: 768px) {
    /* Navbar mais limpa e compacta */
    .pill-nav { 
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 20px; 
        border-radius: 20px; 
        gap: 10px;
    }
    .user-actions {
        order: 2; /* Mantém a foto do perfil alinhada com a logo */
    }
    .nav-links { 
        order: 3; /* Joga os links pra linha de baixo */
        width: 100%;
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 15px; 
        margin-top: 5px;
    }

    /* Hero */
    .hero h1 { font-size: 2.2rem !important; }
    .hero .desc { font-size: 0.9rem; margin-bottom: 30px !important; }

    /* Fim do "Tijolo Branco" no botão Buscar */
    .search-bar-container > div:first-child { 
        flex-direction: row; /* Volta a ficar lado a lado com o input */
    }
    #search-input {
        flex: 1;
    }
    #search-btn { 
        width: auto; 
        padding: 0 15px;
    }

    /* Filtros respirando */
    .filters-container > div {
        flex-direction: column;
        align-items: center !important;
        gap: 15px;
    }
    .type-options { 
        flex-wrap: wrap;
        justify-content: center; 
        gap: 6px;
    }
    .type-options label {
        padding: 6px 12px;
        font-size: 0.8rem; /* Diminui pra caber melhor */
    }

    /* Centralizando o filtro de ano */
    .filters-container > div > div:last-child {
        flex-direction: column;
        width: 100%;
        align-items: center !important;
        justify-content: center !important;
    }
    .range-slider-wrapper {
        width: 100%;
        max-width: none !important;
        margin-top: 10px;
    }

    /* Grid dos álbuns na Home e Pesquisa */
    .grid-container { 
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
        gap: 15px; 
    }
    .album-card { padding: 10px; }
    .album-card img { height: 130px; object-fit: cover; }

    /* Tela do Álbum (Capa e Informações) */
    .album-header { 
        flex-direction: column; 
        align-items: center !important; 
        text-align: center; 
        padding: 20px !important; 
    }
    #interactive-album-figure { 
        width: 180px !important; 
        height: 180px !important; 
        margin: 0 auto 20px auto !important; 
    }
    .track-row { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    .track-info { width: 100%; }
    .track-actions { 
        width: 100%; 
        justify-content: space-between; 
    }
    .track-comment { width: 100%; }

    /* Modais */
    .modal-content {
        width: 95%;
        padding: 10px;
    }

    /* Player Global (Barra inferior) */
    #global-player { 
        padding: 0 10px; 
        height: 70px;
    }
    .player-volume { 
        display: none !important;
    }
    .player-info { 
        width: 60%; 
        min-width: 0;
    }
    .progress-container { 
        display: none !important;
    }
    .player-controls {
        flex: 1;
        max-width: none;
        align-items: flex-end;
    }
}
