@font-face {
  font-family: 'LogoTextFont';
  src: url('../fonts/logotext.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'NameFont';
  src: url('../fonts/name.ttf') format('truetype');
  font-display: swap;
}
:root {
  --font-main: "Chillax", Arial, Helvetica, sans-serif;
  --page-bg: #0A0B0F; 
  --card-bg: #0A0B0F; 
  --card-border: #24262E; 
  --red: #ff0000;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.65);
  --smooth: cubic-bezier(.22, .86, .25, 1);
  --shell-pad: clamp(10px, 3.2vw, 20px);
  --card-pad: clamp(14px, 4vw, 35px);
  --card-radius: clamp(20px, 5vw, 25px);
  --content-max: 900px;
  --inner-max: 430px;
  --avatar-frame: clamp(160px, 30vw, 215px);
  --avatar-size: calc(var(--avatar-frame) * 0.805);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); -webkit-tap-highlight-color: transparent; }
html {
  background-color: var(--page-bg);
  scroll-behavior: smooth;
  overscroll-behavior-y: none; 
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  background-color: var(--page-bg);
  overflow-x: hidden; 
  overflow-y: auto;   
  position: relative;
  overscroll-behavior-y: none; 
  touch-action: pan-y; 
}
body:not(.entered) { overflow: hidden; }
button { font: inherit; }
img { max-width: 100%; transition: opacity 0.3s ease; color: transparent; }
.hidden { display: none !important; }
.views-wrapper { position: relative; width: 100%; display: grid; grid-template-columns: 1fr; }
.view-section { grid-area: 1 / 1; width: 100%; opacity: 1; visibility: visible; transition: opacity 0.2s ease, transform 0.2s ease; will-change: opacity, transform; transform: translate3d(0,0,0); contain: paint; }
.view-section.hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(0.98) translate3d(0,0,0); z-index: -1; position: absolute; top: 0; left: 0; right: 0; height: 0; overflow: hidden; }
.music-hidden { position: absolute !important; opacity: 0 !important; pointer-events: none !important; height: 0 !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; border: none !important; transform: scale(0.95) translate3d(0,0,0); z-index: -1; }
.seo-title, .seo-description { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.landing-screen { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--page-bg); overflow: hidden; opacity: 1; visibility: visible; pointer-events: auto; transform: translateZ(0); transition: opacity 0.4s ease, visibility 0.4s ease; will-change: opacity; }
.landing-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.enter-box { position: relative; z-index: 3; width: min(86vw, 460px); min-height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; user-select: none; }
.enter-button { position: relative; z-index: 4; display: inline-flex; align-items: center; justify-content: center; min-width: min(78vw, 380px); min-height: 76px; padding: 16px 28px; border: 1px solid rgba(255, 0, 0, 0.78); border-radius: 999px; color: var(--white); background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 38%), rgba(255, 0, 0, 0.16); box-shadow: 0 0 10px rgba(255, 0, 0, 0.9), 0 0 24px rgba(200, 0, 0, 0.7), 0 0 50px rgba(150, 0, 0, 0.45), inset 0 0 16px rgba(255, 255, 255, 0.08); font-size: clamp(26px, 6vw, 48px); font-weight: 900; letter-spacing: 0.7px; line-height: 1; cursor: pointer; text-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 0.92), 0 0 26px rgba(255, 255, 255, 0.62), 0 0 42px rgba(255, 0, 0, 0.42); transition: opacity 0.2s ease; will-change: transform; animation: enterButtonFloat 3.5s ease-in-out infinite; }
@keyframes enterButtonFloat { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-4px,0); } }
.landing-screen.loading .enter-button { position: absolute; opacity: 0; visibility: hidden; pointer-events: none; animation-play-state: paused; }
.loading-wrap { width: min(420px, 78vw); opacity: 0; visibility: hidden; max-height: 0; overflow: hidden; transform: scale(0.985); transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease, visibility 0.2s ease; }
.landing-screen.loading .loading-wrap { opacity: 1; visibility: visible; max-height: 145px; transform: scale(1); }
.landing-screen.done .loading-wrap { opacity: 0; visibility: hidden; transform: scale(0.985); }
.loading-info { display: flex; justify-content: center; align-items: center; margin-bottom: 10px; color: var(--white); font-size: 13px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; text-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 0, 0, 0.55); }
.loading-info span:first-child { margin-right: 10px; }
.loading-track { width: 100%; height: 13px; border-radius: 999px; overflow: hidden; background: rgba(60, 0, 0, 0.58); border: 1px solid rgba(255, 0, 0, 0.35); box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.68), 0 0 12px rgba(255, 0, 0, 0.28); }
.loading-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff0000 0%, #ff2020 55%, #ff4a4a 100%); box-shadow: 0 0 8px rgba(255, 0, 0, 0.85), 0 0 16px rgba(255, 0, 0, 0.45); transition: width 0.035s linear; will-change: width; }
.loading-wrap::after { content: "COMPILING ASSETS ..."; display: block; margin-top: 14px; color: rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 900; letter-spacing: 3px; text-align: center; text-transform: uppercase; text-shadow: 0 0 4px rgba(255, 255, 255, 0.85), 0 0 12px rgba(255, 0, 0, 0.42); }
.top-nav { position: fixed; top: 15px; left: 50%; transform: translate3d(-50%, -15px, 0) scale(0.98); width: calc(100% - 2 * var(--shell-pad)); max-width: var(--content-max); z-index: 1000; background: rgba(10, 11, 15, 0.98); border: 1px solid var(--card-border); border-radius: clamp(20px, 5vw, 25px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; will-change: opacity, transform; }
body.entered .top-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(-50%, 0, 0) scale(1); }
.nav-content { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; }
.nav-right-actions { display: flex; align-items: center; gap: 15px; }
.nav-view-counter { display: flex; align-items: center; gap: 6px; color: var(--white); font-weight: 700; font-family: 'LogoTextFont', sans-serif; }
.nav-view-counter svg { width: 20px; height: 20px; fill: currentColor; }
.nav-view-counter span { font-size: 16px; margin-top: 2px; }
.logo-text { font-family: 'LogoTextFont', sans-serif; font-size: clamp(32px, 8vw, 44px); font-weight: 900; text-decoration: none; line-height: 1.3; padding: 10px 5px; margin: -10px -5px; color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(to right, #ff4d4d, #ffcc00, #33ff33, #00ffff, #cc33ff, #ff4d4d); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; animation: rainbowSlide 3s linear infinite; display: inline-block; overflow: visible; cursor: pointer; will-change: background-position; transform: translateZ(0); }
@keyframes rainbowSlide { 0% { background-position: 200% center; } 100% { background-position: 0% center; } }
.menu-toggle { position: relative; width: 40px; height: 40px; background: transparent; border: none; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.menu-toggle svg { position: absolute; width: 26px; height: 26px; stroke: #ffffff; transition: transform 0.2s ease, opacity 0.2s ease; will-change: transform, opacity; transform: translateZ(0); }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.menu-toggle.active .icon-bars { opacity: 0; transform: rotate(90deg) scale(0.5); }
.menu-toggle.active .icon-close { opacity: 1; transform: rotate(0) scale(1); }
.nav-menu { position: absolute; top: calc(100% + 12px); right: 0; left: auto; width: 50%; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: clamp(20px, 5vw, 25px); padding: 12px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transform: translate3d(0, -12px, 0) scale(0.98); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); overflow-x: hidden; height: max-content; will-change: transform, opacity; pointer-events: none; }
.nav-menu.active { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0) scale(1); pointer-events: auto; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: var(--white); text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid var(--card-border); border-radius: 12px; transition: transform 0.15s ease; will-change: transform; -webkit-tap-highlight-color: transparent; }
.nav-item svg { width: 20px; height: 20px; stroke: #ffffff; flex-shrink: 0; }
.nav-item:hover { transform: translate3d(5px, 0, 0); }
.page-shell { position: relative; z-index: 5; width: 100%; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: calc(var(--shell-pad) + 80px) var(--shell-pad) var(--shell-pad) var(--shell-pad); padding-bottom: calc(var(--shell-pad) + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, 8px, 0) scale(0.998); }
body.entered .page-shell { visibility: visible; pointer-events: auto; animation: profileIn 0.35s ease-out both; }
@keyframes profileIn { 0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.998); } 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
.profile-card, .music-card { 
  width: 100%; 
  max-width: min(var(--content-max), calc(100vw - var(--shell-pad) * 2)); 
  min-width: 0; 
  background: var(--card-bg); 
  border: 1px solid var(--card-border); 
  border-radius: var(--card-radius); 
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); 
  position: relative; 
  overflow: hidden; 
  z-index: 1; 
  transform: translateZ(0); 
  will-change: transform; 
  background-clip: padding-box; 
  -webkit-mask-image: -webkit-radial-gradient(white, black); 
  isolation: isolate; 
}
.profile-card { padding: 0 0 var(--card-pad); text-align: center; }

/* FIX TỔNG NGOÀI BOODER: Tính chuẩn xác chiều cao tổng để 4 góc cách lề bằng nhau */
.posts-card { height: calc(100dvh - var(--shell-pad) * 2 - 80px - env(safe-area-inset-bottom)); padding: 15px !important; display: flex; flex-direction: column; justify-content: flex-start; }

.profile-top { position: relative; width: 100%; margin-bottom: calc(var(--avatar-frame) * 0.5); }
.profile-banner { width: 100%; height: clamp(150px, 28vw, 240px); margin: 0; border-radius: var(--card-radius) var(--card-radius) 0 0; overflow: hidden; background: #14151C; border-bottom: 1px solid var(--card-border); }
.profile-banner img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.banner-separator { position: absolute; left: 0; bottom: 0; z-index: 1; width: 100%; height: 1px; background: rgba(0, 0, 0, 0.88); pointer-events: none; }
.profile-body { padding: 0 var(--card-pad); position: relative; z-index: 2; }
.post-container-full, .post-container-payment { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; margin: 0; padding: 0; height: 100%; gap: 20px; flex: 1; min-height: 0; }
.post-container-full { overflow: hidden; touch-action: none; }

/* FIX TRONG BOODER THANH TOÁN: Xóa khoảng trống đáy thừa để đều 4 góc trong */
.post-container-payment { justify-content: flex-start; overflow-y: auto !important; touch-action: pan-y !important; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 0 !important; }

.post-container-payment::-webkit-scrollbar { display: none; }
.post-embed { width: 100%; max-width: 100%; margin: 0 auto; background: var(--card-bg); border-radius: 12px; border: 1px solid var(--card-border); border-left: 5px solid rgba(255, 30, 30, 0.35); border-right: 5px solid rgba(255, 30, 30, 0.35); padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; transform: translateZ(0); transition: transform 0.15s ease; -webkit-tap-highlight-color: transparent; will-change: transform; flex-shrink: 0; background-clip: padding-box; -webkit-mask-image: -webkit-radial-gradient(white, black); isolation: isolate; }
.post-container-full .flex-post { height: calc(33.333% - 13.333px) !important; width: 100% !important; border-radius: 12px !important; margin: 0 !important; }
.post-container-full .flex-post img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.post-container-payment .payment-embed { height: auto !important; width: 100% !important; border-radius: 16px !important; margin: 0 !important; flex-shrink: 0; }
.post-embed:hover { transform: translate3d(0, -2px, 0); }
.post-embed img { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 0; }
.payment-embed { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; cursor: default; padding: 0 !important; overflow: hidden; border: 1px solid var(--card-border) !important; border-left: 5px solid rgba(255, 30, 30, 0.35) !important; border-right: 5px solid rgba(255, 30, 30, 0.35) !important; box-shadow: none !important; background-clip: padding-box; -webkit-mask-image: -webkit-radial-gradient(white, black); isolation: isolate; }
.payment-embed:hover { transform: none; }
.bank-content { width: 100%; display: flex; flex-direction: column; padding: 12px 15px 10px 15px; flex-shrink: 0; }
.bank-header { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin-bottom: 8px; }
@keyframes softFloat { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-4px,0); } }
.bank-logo { width: 55px !important; height: 55px !important; border-radius: 14px !important; object-fit: contain; box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 255, 255, 0.4); background: rgba(255,255,255,0.05); animation: softFloat 3.5s ease-in-out infinite; will-change: transform; margin-bottom: 6px; filter: none; }
.neon-text-white { color: var(--white); text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.3); }
.bank-name { font-size: 20px; font-weight: 900; color: var(--white); text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.3); }
.bank-info { display: grid; grid-template-columns: max-content 1fr max-content; gap: 10px 8px; align-items: center; width: 100%; padding: 0 10px; }
.bank-line { display: contents; }
.label { color: var(--muted); font-weight: 600; text-shadow: none; font-size: 13px; text-align: left; }
.bank-number { font-size: 16px; font-weight: 900; letter-spacing: 1px; font-family: inherit; color: var(--white); text-align: left; text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.3); }
.bank-owner { font-size: 14px; font-weight: 800; text-transform: none; font-family: inherit; color: var(--white); text-align: left; text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.3); }
.copy-btn { background: rgba(255, 255, 255, 0.1); border: none; color: var(--white); font-size: 13px; cursor: pointer; width: 24px; height: 24px; border-radius: 6px; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; outline: none; filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); justify-self: end; }
.copy-btn:hover { transform: scale(1.15); background: rgba(255, 255, 255, 0.2); }
.copy-btn.copied {
  background: rgba(0, 255, 90, 0.36) !important;
  box-shadow: 0 0 6px rgba(0, 255, 90, 0.75), 0 0 14px rgba(0, 255, 90, 0.48), 0 0 24px rgba(0, 255, 90, 0.28) !important;
  color: var(--white) !important;
  border: none !important;
  transform: scale(1.1);
  text-shadow: none !important;
  filter: none !important;
}
.bank-qr-trigger { width: 100% !important; max-width: 100% !important; flex: 1; min-height: 0; height: 100% !important; border-radius: 0 0 15px 15px !important; object-fit: contain !important; margin: 0 !important; border-top: 1px solid var(--card-border); display: block; cursor: pointer; }
.modal-controls { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 20px; z-index: 10; }
.download-modal { background: transparent; border: none; color: #2ecc71; filter: drop-shadow(0 0 4px #2ecc71); width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, filter 0.2s ease; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.download-modal:hover { color: #2ecc71; filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.9)); transform: scale(1.15); }
.download-modal svg { width: 30px; height: 32px; stroke: currentColor; fill: none; }
.music-card { margin-top: clamp(18px, 4vw, 30px); padding: var(--card-pad); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); transition: opacity 0.2s ease, transform 0.2s ease; will-change: opacity, transform; background-clip: padding-box; -webkit-mask-image: -webkit-radial-gradient(white, black); isolation: isolate; }
.avatar-frame { position: absolute; left: 50%; bottom: calc(var(--avatar-frame) * -0.5); z-index: 3; transform: translateX(-50%); width: var(--avatar-frame); height: var(--avatar-frame); margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.avatar { position: relative; z-index: 1; width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%; overflow: hidden; background: #14151C; box-shadow: 0 0 0 4px var(--card-bg), 0 10px 28px rgba(0, 0, 0, 0.6); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-border { position: absolute; inset: 0; z-index: 2; width: var(--avatar-frame); height: var(--avatar-frame); object-fit: contain; pointer-events: none; }
.name { min-height: 44px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: clamp(34px, 9vw, 48px); font-weight: 400; letter-spacing: 2px; line-height: 1; }
.name-text { font-family: 'NameFont', sans-serif; display: inline-flex; align-items: center; min-width: 0; transform: translateZ(0); color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(to right, rgba(255, 0, 0, 0) 0%, rgba(255, 0, 0, 0) 40%, rgba(255, 0, 0, 1) 50%, rgba(255, 0, 0, 0) 60%, rgba(255, 0, 0, 0) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: shineLeftToRight 4s linear infinite; text-shadow: none; will-change: background-position; transform: translateZ(0); }
@keyframes shineLeftToRight { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.bio-scram { width: 100%; max-width: min(var(--inner-max), 100%); min-height: 25px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.scram-line { font-family: 'LogoTextFont', sans-serif; min-height: 25px; font-size: clamp(14px, 4vw, 19px); font-weight: 700; line-height: 1.15; letter-spacing: 0.75px; text-align: center; white-space: nowrap; opacity: 1; text-shadow: 0 0 2px var(--glow-color), 0 0 6px var(--glow-color); transform: translate3d(0,0,0); transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; will-change: opacity, transform; backface-visibility: hidden; }
.scram-line.fade-out { opacity: 0; transform: translate3d(0, -4px, 0); }
.social-icons { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(24px, 8vw, 56px); margin-top: 15px; margin-bottom: 14px; overflow: visible; }
.social-icons a { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 24px; text-decoration: none; text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5); transform: translate3d(0,0,0); transition: transform 0.15s ease, filter 0.15s ease; will-change: transform, filter; }
.social-icons a:hover { transform: translate3d(0, -4px, 0) scale(1.12); filter: brightness(1.2); }
.image-modal { position: fixed; inset: 0; z-index: 9999999; background: rgba(8, 9, 12, 0.98); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s; will-change: opacity, visibility; touch-action: none; overscroll-behavior: none; }
.image-modal.active { opacity: 1; visibility: visible; }
.image-modal-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; transform: translateZ(0); }
.image-modal-content img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); transform: scale(0.95) translateZ(0); transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.image-modal.active .image-modal-content img { transform: scale(1) translateZ(0); }
.close-modal { position: relative; top: auto; right: auto; background: transparent; border: none; color: var(--white); width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease; -webkit-tap-highlight-color: transparent; }
.close-modal:hover { color: var(--red); transform: scale(1.15); }
.close-modal:active { transform: scale(0.85); color: #ff4a4a; }
.close-modal svg { width: 32px; height: 32px; stroke: currentColor; }
.music-player { position: relative; z-index: 1; width: 100%; max-width: min(560px, 100%); min-height: 0; margin: 0 auto; padding: clamp(8px, 2vw, 13px); background: transparent; border: none; box-shadow: none; display: grid; grid-template-columns: minmax(118px, 44%) minmax(0, 1fr); align-items: stretch; gap: clamp(9px, 2.4vw, 16px); overflow: hidden; }
.cover-wrap { width: 100%; height: auto; min-height: clamp(142px, 24vw, 190px); aspect-ratio: 1 / 1; border-radius: 20px; background: #050505; overflow: hidden; }
.cover-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.music-panel { min-width: 0; height: 100%; padding: 4px 2px 4px 0; display: grid; grid-template-rows: auto auto auto auto; align-content: center; }
.music-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.text-box { min-width: 0; overflow: hidden; }
.music-title, .music-artist { width: 100%; white-space: nowrap; overflow: hidden; position: relative; transform: translateZ(0); }
.music-title { color: var(--white); font-size: clamp(14px, 2.5vw, 20px); line-height: 1.08; font-weight: 900; }
.music-artist { margin-top: 7px; color: var(--muted); font-size: clamp(11px, 2vw, 15px); line-height: 1.1; font-weight: 700; }
.marquee-text { display: inline-block; white-space: nowrap; transform: translate3d(0, 0, 0); backface-visibility: hidden; will-change: transform; }
.music-title .marquee-text { color: var(--white); font-weight: 900; letter-spacing: 0.35px; text-shadow: 0 0 2px rgba(255, 255, 255, 0.82), 0 0 5px rgba(255, 255, 255, 0.42), 0 0 9px rgba(255, 255, 255, 0.22); }
.music-artist .marquee-text { color: var(--muted); font-weight: 700; letter-spacing: 0.2px; }
.is-marquee .marquee-text { padding-left: 100%; animation: marqueeLeft var(--marquee-duration, 10s) linear infinite; }
@keyframes marqueeLeft { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
.eq { height: 38px; display: flex; align-items: center; gap: 4px; opacity: 0.68; transform: translateZ(0); }
.eq span { width: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); transform: scaleY(0.35); transform-origin: center; transition: transform 0.045s linear, opacity 0.045s linear; will-change: transform, opacity; }
.eq span:nth-child(1) { height: 42%; } .eq span:nth-child(2) { height: 70%; } .eq span:nth-child(3) { height: 88%; } .eq span:nth-child(4) { height: 66%; } .eq span:nth-child(5) { height: 82%; } .eq span:nth-child(6) { height: 54%; }
.eq.paused span { transform: scaleY(0.35); opacity: 0.55; transition: transform 2.5s ease-out, opacity 2.5s ease-out !important; }
.progress-zone { margin-top: 16px; transform: translateZ(0); }
.bar, .volume-bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.42); overflow: hidden; cursor: pointer; }
.bar-fill, .volume-fill { height: 100%; border-radius: inherit; background: var(--white); will-change: width; }
.bar-fill { width: 0%; } .volume-fill { width: 50%; }
.time-row { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; color: rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 800; }
.controls { margin-top: clamp(12px, 3vw, 21px); display: flex; align-items: center; justify-content: center; gap: clamp(18px, 6vw, 40px); min-width: 0; transform: translateZ(0); }
.control-btn { position: relative; width: clamp(34px, 8vw, 46px); height: clamp(34px, 8vw, 46px); border: none; background: transparent; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: none; transform: none; opacity: 1; filter: none; box-shadow: none; }
.control-btn:hover, .control-btn:active, .control-btn:focus, .control-btn:focus-visible { transform: none !important; opacity: 1 !important; filter: none !important; box-shadow: none !important; outline: none; }
.play-btn { width: clamp(48px, 11vw, 64px); height: clamp(48px, 11vw, 64px); }
.prev-shape, .next-shape, .pause-shape { width: 100%; height: 100%; position: relative; display: block; }
.prev-shape::before, .prev-shape::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-right: 23px solid var(--white); }
.prev-shape::before { left: 12%; } .prev-shape::after { left: 42%; }
.next-shape::before, .next-shape::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 1px solid transparent; border-bottom: 1px solid transparent; border-left: 23px solid var(--white); }
.next-shape::before { right: 42%; } .next-shape::after { right: 12%; }
.pause-shape::before, .pause-shape::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 13px; height: 46px; border-radius: 6px; background: var(--white); }
.pause-shape::before { left: 24%; } .pause-shape::after { right: 24%; }
.play-shape { width: 0; height: 0; margin-left: 8%; border-top: 23px solid transparent; border-bottom: 23px solid transparent; border-left: 36px solid var(--white); }
.volume-zone { margin-top: clamp(10px, 3vw, 18px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2.5vw, 11px); min-width: 0; transform: translateZ(0); }
.volume-icon-btn { width: clamp(19px, 5vw, 24px); height: clamp(19px, 5vw, 24px); border: none; background: transparent; color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; transition: none; transform: none; opacity: 1; filter: none; box-shadow: none; text-shadow: none; }
.volume-icon-btn:hover, .volume-icon-btn:active, .volume-icon-btn:focus, .volume-icon-btn:focus-visible { transform: none !important; opacity: 1 !important; filter: none !important; box-shadow: none !important; text-shadow: none !important; outline: none; }
.volume-icon-btn i { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 19px; transition: none !important; animation: none !important; transform: none !important; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1000000; padding: 10px 15px; border-radius: 999px; background: rgba(0, 0, 0, 0.88); color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: 0.2px; opacity: 0; visibility: hidden; transform: translate3d(-50%, 12px, 0) scale(0.98); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; pointer-events: none; border: none !important; box-shadow: none !important; }
.toast.show { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0) scale(1); }
.toast.neon-white { text-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.3); border: none !important; box-shadow: none !important; }
.firefly-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 99; pointer-events: none; overflow: hidden; transform: translateZ(0); }
body.entered .firefly-container .firefly { animation-play-state: running; }
.firefly { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; box-shadow: 0 0 4px 1px #fff, 0 0 10px 2px rgba(220, 255, 50, 0.6); opacity: 0; animation: fly-drift var(--d) linear infinite alternate, fly-flash var(--f) ease-in-out infinite alternate; animation-play-state: paused; will-change: transform, opacity; transform: translateZ(0); }
@keyframes fly-drift { 0% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(var(--x1), var(--y1), 0); } 66% { transform: translate3d(var(--x2), var(--y2), 0); } 100% { transform: translate3d(var(--x3), var(--y3), 0); } }
@keyframes fly-flash { 0%, 10% { opacity: 0; } 50% { opacity: var(--o); } 90%, 100% { opacity: 0; } }
@media (max-width: 768px) { :root { --shell-pad: 14px; --card-pad: 20px; --inner-max: 430px; } .music-player { max-width: 430px; } }
@media (max-width: 430px) { .enter-button { min-height: 68px; padding: 14px 24px; } .music-card { padding: 14px; } .music-player { grid-template-columns: minmax(104px, 42%) minmax(0, 1fr); } .cover-wrap { min-height: 126px; border-radius: 15px; } .eq { height: 28px; gap: 3px; } .eq span { width: 3px; } .progress-zone { margin-top: 9px; } .bar, .volume-bar { height: 6px; } .time-row { margin-top: 7px; font-size: 10px; } .prev-shape::before, .prev-shape::after { border-top-width: 12px; border-bottom-width: 12px; border-right-width: 17px; } .next-shape::before, .next-shape::after { border-top-width: 12px; border-bottom-width: 12px; border-left-width: 17px; } .pause-shape::before, .pause-shape::after { width: 10px; height: 34px; } .play-shape { border-top-width: 17px; border-bottom-width: 17px; border-left-width: 27px; } .nav-menu { width: 65%; } }
@media (max-width: 380px) { .music-player { grid-template-columns: 1fr; max-width: 320px; } .cover-wrap { width: min(100%, 210px); min-height: 0; margin: 0 auto; } .music-panel { padding: 0; align-content: start; } .music-title, .music-artist { text-align: center; } .music-header { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 360px) { :root { --shell-pad: 10px; --card-pad: 12px; } .music-player { max-width: 300px; } .cover-wrap { width: min(100%, 190px); } .controls { gap: 18px; } .volume-zone { margin-top: 12px; } .scram-line { font-size: 12px; } .nav-menu { width: 80%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
