:root {
    --bg: #070823;
    --surface: #111239;
    --surface-light: #191a4b;
    --text: #f8f7ff;
    --muted: #aaa9c7;
    --accent: #f23b9d;
    --accent-blue: #635bff;
    --border: rgba(255, 255, 255, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    padding-bottom: 90px;
}
a { color: #dc8bc0; text-decoration: none; }
a:hover { color: #fff; }
.site-nav {
    min-height: 68px;
    background: rgba(8, 8, 39, .88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.navbar-brand { font-size: .95rem; letter-spacing: .2em; font-weight: 700; }
.brand-mark {
    display: inline-grid; place-items: center; width: 32px; height: 32px;
    margin-right: 8px; border-radius: 50%; letter-spacing: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
}
.nav-link { color: #cccbe0; font-size: .92rem; }
.nav-link:hover { color: #fff; }
.user-name { color: var(--muted); padding: 8px; font-size: .88rem; }
.btn-accent {
    color: white; border: 0; border-radius: 999px; padding: .7rem 1.4rem;
    background: linear-gradient(100deg, #d92a92, #6d55f7);
    box-shadow: 0 8px 30px rgba(224, 45, 149, .22);
}
.btn-accent:hover { color: white; transform: translateY(-1px); filter: brightness(1.12); }
.message-area { position: fixed; top: 78px; left: 50%; z-index: 1040; width: min(92%, 620px); transform: translateX(-50%); }
.site-notice {
    display: grid; grid-template-columns: 26px 1fr 30px; align-items: center; gap: 10px;
    padding: 14px 16px; border: 1px solid rgba(203,117,255,.36); border-radius: 14px;
    color: #f8f4ff; background: linear-gradient(120deg, rgba(38,25,83,.97), rgba(20,19,62,.97));
    box-shadow: 0 18px 50px rgba(0,0,0,.38); transition: .2s ease;
}
.site-notice > i { color: #d66fc4; font-size: 1.15rem; }
.notice-success { border-color: rgba(69,218,177,.38); }
.notice-success > i { color: #55dfb7; }
.notice-danger, .notice-warning { border-color: rgba(255,104,151,.4); }
.notice-danger > i, .notice-warning > i { color: #ff6897; }
.notice-close { border: 0; color: #aaa7c8; background: transparent; }
.notice-close:hover { color: white; }
.notice-hidden { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.hero-section { position: relative; min-height: 670px; overflow: hidden; background: radial-gradient(circle at 75% 35%, #241675 0, #0b0b35 30%, #070823 65%); }
.hero-content { position: relative; z-index: 2; }
.min-vh-75 { min-height: 670px; padding-top: 68px; }
.hero-section h1, .page-title {
    margin: 16px 0 22px; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .94;
    font-weight: 800; letter-spacing: -.055em; text-transform: uppercase;
}
.hero-section h1 span { color: transparent; -webkit-text-stroke: 1px #cc70dd; }
.hero-section p { max-width: 570px; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.hero-section .btn { margin-top: 20px; }
.hero-search { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: min(100%, 590px); margin-top: 26px; padding: 7px 7px 7px 18px; border: 1px solid rgba(219,105,203,.38); border-radius: 999px; background: rgba(13,12,49,.72); box-shadow: 0 15px 40px rgba(0,0,0,.22); backdrop-filter: blur(12px); }
.hero-search > i { color: #d779c5; }
.hero-search input { min-width: 0; padding: 9px 0; border: 0; outline: 0; color: white; background: transparent; }
.hero-search input::placeholder { color: #9896b6; }
.hero-search button { padding: 10px 21px; border: 0; border-radius: 999px; color: white; background: linear-gradient(100deg, #d92a92, #6d55f7); }
.hero-catalog-link { display: inline-block; margin: 17px 0 0 18px; color: #aaa8c5; font-size: .86rem; }
.eyebrow { color: #d878bd; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .4; }
.glow-one { width: 300px; height: 300px; top: 10%; right: -100px; background: #ef159b; }
.glow-two { width: 250px; height: 250px; bottom: -80px; left: 35%; background: #3158ff; }
.vinyl-art {
    position: relative; width: min(38vw, 430px); aspect-ratio: 1; border-radius: 50%;
    background: repeating-radial-gradient(circle, #101030 0 5px, #262054 7px, #0c0b26 9px);
    box-shadow: -30px 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(241, 41, 160, .18);
    animation: float 5s ease-in-out infinite;
}
.vinyl-art::before { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: linear-gradient(135deg, #ec218e, #5939dc); }
.vinyl-center { position: absolute; z-index: 1; inset: 44%; border-radius: 50%; background: #eeeaff; box-shadow: 0 0 0 8px rgba(0,0,0,.25); }
@keyframes float { 50% { transform: translateY(-14px) rotate(3deg); } }
.content-section, .page-section { padding: 80px 0; }
.page-section { min-height: calc(100vh - 170px); padding-top: 140px; background: radial-gradient(circle at 90% 5%, #1e164b 0, var(--bg) 36%); }
.page-title { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0 0; font-size: 2rem; font-weight: 700; }
.section-note { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.track-list { display: grid; gap: 10px; }
.track-card {
    display: grid; grid-template-columns: 58px minmax(0, 1fr) 50px 44px; align-items: center;
    gap: 16px; min-height: 76px; padding: 9px 14px 9px 9px; border: 1px solid transparent;
    border-radius: 12px; background: rgba(255,255,255,.045); transition: .2s ease;
}
.track-card:hover { background: rgba(255,255,255,.085); border-color: var(--border); transform: translateX(3px); }
.track-cover { position: relative; width: 58px; height: 58px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; color: white; background: linear-gradient(135deg, #d72d96, #3d4ad4); font-size: 1.45rem; font-weight: 700; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover .play-icon { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; font-size: 1.8rem; background: rgba(5,5,25,.55); transition: .2s; }
.track-card:hover .play-icon { opacity: 1; }
.track-info { min-width: 0; }
.track-info h3 { margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.track-info p, .track-time { margin: 0; color: var(--muted); font-size: .84rem; }
.favorite-form { margin: 0; }
.icon-button, .player-button { border: 0; color: #b8b6cc; background: transparent; font-size: 1.2rem; }
.icon-button:hover, .icon-button.active { color: var(--accent); }
.has-tooltip { position: relative; }
.has-tooltip::after {
    content: attr(data-tooltip); position: absolute; right: 0; bottom: calc(100% + 9px); width: max-content;
    max-width: 190px; padding: 7px 10px; border: 1px solid rgba(211,108,202,.32); border-radius: 8px;
    color: #f4eefc; background: #211c4c; box-shadow: 0 8px 25px rgba(0,0,0,.35);
    font-size: .73rem; opacity: 0; pointer-events: none; transform: translateY(4px); transition: .16s ease;
}
.has-tooltip:hover::after, .has-tooltip:focus-visible::after { opacity: 1; transform: translateY(0); }
.search-form, .playlist-create { display: flex; align-items: center; gap: 12px; max-width: 750px; margin: 0 0 40px; padding: 8px 8px 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: none; color: white; background: transparent; }
.search-form input::placeholder { color: #797897; }
.quick-search { display: grid; grid-template-columns: 24px minmax(0, 1fr) 34px; align-items: center; gap: 8px; max-width: 600px; margin: 0 0 18px; padding: 9px 10px 9px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.quick-search > i { color: #c969be; }
.quick-search input { min-width: 0; border: 0; outline: 0; color: white; background: transparent; }
.quick-search button { border: 0; color: #8886a4; background: transparent; }
.catalog-track-row[hidden] { display: none; }
.empty-state { max-width: 650px; margin: 60px auto; padding: 50px 25px; border: 1px dashed rgba(255,255,255,.17); border-radius: 20px; text-align: center; color: var(--muted); }
.empty-state > i { display: block; margin-bottom: 15px; color: #9a62df; font-size: 3rem; }
.empty-state h2 { color: white; }
.empty-state.compact { margin-top: 25px; padding: 20px; }
.page-hint { max-width: 720px; margin: -8px 0 34px; color: var(--muted); line-height: 1.65; }
.page-hint i { margin-right: 7px; color: var(--accent); }
.auth-section { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 120px 16px 60px; background: radial-gradient(circle at 50% 20%, #281859 0, #080823 48%); }
.auth-card { width: 100%; max-width: 430px; padding: 38px; border: 1px solid var(--border); border-radius: 22px; background: rgba(17,18,57,.82); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.auth-card h1 { margin: 8px 0 28px; font-size: 2.2rem; font-weight: 750; }
.auth-card label { display: block; margin-bottom: 18px; color: #c6c4d6; font-size: .86rem; }
.form-control { margin-top: 7px; border: 1px solid var(--border); color: white; background: rgba(4,5,28,.7); }
.form-control:focus { border-color: #8d5ce3; color: white; background: #0c0c31; box-shadow: 0 0 0 .2rem rgba(141,92,227,.18); }
.auth-link { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.form-message { display: flex; gap: 10px; margin: 0 0 13px; padding: 12px 14px; border-radius: 10px; font-size: .86rem; }
.form-message-error { border: 1px solid rgba(255,96,145,.35); color: #ffd9e5; background: rgba(154,35,81,.18); }
.form-message i { color: #ff6897; }
.playlist-create .form-control { flex: 1; margin: 0; border: 0; background: transparent; box-shadow: none; }
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.playlist-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.playlist-card { display: block; color: var(--text); transition: .2s ease; }
.playlist-card:hover { color: white; border-color: rgba(220,83,183,.45); transform: translateY(-3px); }
.playlist-icon { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 17px; border-radius: 12px; background: linear-gradient(145deg, #da278e, #383ec5); font-size: 3rem; }
.playlist-card h2 { margin: 0 0 6px; font-size: 1rem; }
.playlist-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.playlist-tracks-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.playlist-tracks-heading .subheading { margin: 0; }
.back-link { display: block; width: fit-content; margin-bottom: 30px; color: var(--muted); font-size: .88rem; }
.management-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 45px; padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.inline-edit-form { display: flex; gap: 10px; flex: 1; max-width: 650px; }
.inline-edit-form .form-control { margin: 0; }
.btn-soft, .btn-danger-soft { border: 1px solid rgba(255,255,255,.13); color: #e9e7f4; background: rgba(255,255,255,.06); }
.btn-soft:hover { color: white; border-color: rgba(207,100,203,.4); background: rgba(207,100,203,.12); }
.btn-danger-soft { border-color: rgba(255,88,132,.3); color: #ffb2c7; background: rgba(160,35,73,.13); }
.btn-danger-soft:hover { color: white; border-color: #e8517b; background: rgba(202,53,95,.3); }
.subheading { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 1.35rem; }
.subheading span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; color: #d7a9db; background: rgba(211,108,202,.13); font-size: .72rem; }
.catalog-heading { margin-top: 55px; }
.manage-track-list { display: grid; gap: 8px; }
.manage-track-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 42px; align-items: center; gap: 13px; padding: 9px 12px; border: 1px solid transparent; border-radius: 11px; background: rgba(255,255,255,.04); }
.manage-track-row > form:last-child { grid-column: -2 / -1; }
.track-album-form { display: grid; grid-template-columns: minmax(130px, 210px) auto; gap: 7px; }
.track-album-form .form-select { border-color: var(--border); color: #dedcea; background-color: #111239; font-size: .82rem; }
.track-album-form .btn { white-space: nowrap; font-size: .8rem; }
.manage-track-row:hover { border-color: var(--border); background: rgba(255,255,255,.07); }
.manage-track-row > div { min-width: 0; display: flex; flex-direction: column; }
.manage-track-row strong, .manage-track-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-track-row span { color: var(--muted); font-size: .8rem; }
.mini-play { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; background: linear-gradient(135deg, #c92d91, #5549d9); }
.icon-action { position: relative; width: 36px; height: 36px; border: 0; color: #b8b6ce; background: transparent; font-size: 1.25rem; }
.icon-action:hover, .icon-action.add { color: #df70c0; }
.icon-action.danger:hover { color: #ff648e; }
.album-manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.album-manage-card { display: grid; grid-template-columns: 55px 1fr; gap: 14px; padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.album-symbol { grid-row: span 2; display: grid; place-items: center; width: 55px; height: 55px; border-radius: 11px; color: white; background: linear-gradient(135deg, #c92d91, #4c44c8); font-size: 1.7rem; }
.album-manage-card > div:nth-child(2) { display: flex; flex-direction: column; }
.album-manage-card span { color: var(--muted); font-size: .78rem; }
.album-rename-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 42px; gap: 8px; }
.album-rename-form .form-control { margin: 0; }
.album-manage-card > .confirm-form { grid-column: 1 / -1; }
.album-listen { grid-column: 1 / -1; }
.album-hero { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: end; gap: 34px; margin-bottom: 45px; }
.album-large-cover { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; color: white; background: radial-gradient(circle at 35% 30%, #df3b9e, #3b37ac 65%, #17143f); box-shadow: 0 22px 55px rgba(0,0,0,.35); font-size: 5rem; }
.album-hero h1 { margin: 8px 0 12px; font-size: clamp(2.5rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; }
.album-hero p { color: var(--muted); }
.album-track-list { max-width: 950px; }
.confirm-overlay { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(3,3,18,.78); backdrop-filter: blur(8px); }
.confirm-overlay[hidden] { display: none; }
.confirm-dialog { width: min(100%, 430px); padding: 30px; border: 1px solid rgba(255,107,151,.28); border-radius: 20px; text-align: center; background: linear-gradient(145deg, #19183f, #0e0e2b); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.confirm-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; color: #ff759b; background: rgba(218,61,106,.15); font-size: 1.5rem; }
.confirm-dialog h2 { font-size: 1.35rem; }
.confirm-dialog p { margin: 12px 0 23px; color: var(--muted); line-height: 1.55; }
.confirm-actions { display: flex; justify-content: center; gap: 10px; }
.dialog-open { overflow: hidden; }
.upload-container { max-width: 850px; }
.upload-form { max-width: 620px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.upload-form > label { display: block; margin-bottom: 18px; color: #cbc9dd; font-size: .88rem; }
.upload-form small { color: var(--muted); }
.file-drop { display: grid !important; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 18px; border: 1px dashed rgba(212,113,205,.55); border-radius: 13px; cursor: pointer; background: rgba(122,62,178,.09); }
.file-drop:hover { border-color: var(--accent); background: rgba(122,62,178,.16); }
.file-drop > i { color: #d36cca; font-size: 1.8rem; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); color: #74738f; font-size: .82rem; }
.audio-player {
    position: fixed; z-index: 1050; left: 16px; right: 16px; bottom: 12px; display: grid;
    grid-template-columns: 32px 45px 32px minmax(130px, 240px) 42px minmax(100px, 1fr) 42px 40px 90px;
    align-items: center; gap: 12px; min-height: 68px; padding: 9px 18px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(18,18,56,.95);
    box-shadow: 0 15px 50px rgba(0,0,0,.55); backdrop-filter: blur(18px);
}
.player-button { width: 40px; height: 40px; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-blue)); }
.player-skip { display: grid; place-items: center; width: 32px; height: 38px; padding: 0; border: 0; color: #b8b6ce; background: transparent; font-size: 1.22rem; }
.player-skip:hover { color: white; }
#previousTrack::after { left: 0; right: auto; }
.volume-button { color: #bbb9d2; background: transparent; }
.volume-control { width: 90px; height: 4px; accent-color: var(--accent); cursor: pointer; }
.player-song { min-width: 0; display: flex; flex-direction: column; }
.player-song strong, .player-song span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-song span, #currentTime, #totalTime { color: var(--muted); font-size: .72rem; }
.player-progress { height: 4px; accent-color: var(--accent); cursor: pointer; }

@media (max-width: 767px) {
    body { padding-bottom: 118px; }
    .site-nav { background: #09092c; }
    .navbar-collapse { padding: 16px 0; }
    .hero-section, .min-vh-75 { min-height: 590px; }
    .hero-section h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
    .hero-section p { font-size: .98rem; }
    .hero-search { grid-template-columns: 22px minmax(0, 1fr); border-radius: 15px; padding: 10px 13px; }
    .hero-search button { grid-column: 1 / -1; width: 100%; }
    .content-section, .page-section { padding: 60px 0; }
    .page-section { padding-top: 115px; }
    .section-heading { align-items: flex-start; }
    .track-card { grid-template-columns: 52px minmax(0, 1fr) 38px; gap: 12px; }
    .track-cover { width: 52px; height: 52px; }
    .track-time { display: none; }
    .search-form { border-radius: 14px; flex-wrap: wrap; }
    .search-form .btn { width: 100%; }
    .playlist-create { align-items: stretch; border-radius: 14px; flex-direction: column; padding: 12px; }
    .management-bar, .inline-edit-form { align-items: stretch; flex-direction: column; }
    .management-bar .confirm-form, .management-bar .btn { width: 100%; }
    .album-manage-grid { grid-template-columns: 1fr; }
    .manage-track-row { grid-template-columns: 42px minmax(0, 1fr) 38px; }
    .track-album-form { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) auto; }
    .album-hero { grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 18px; }
    .album-large-cover { font-size: 2.8rem; }
    .album-hero h1 { font-size: 2rem; }
    .album-hero .btn { grid-column: 1 / -1; }
    .playlist-tracks-heading { align-items: stretch; flex-direction: column; }
    .auth-card { padding: 28px 22px; }
    .audio-player { grid-template-columns: 34px 42px 34px minmax(0, 1fr) 38px; gap: 6px; padding: 8px 10px; }
    #previousTrack { grid-column: 1; grid-row: 1; }
    #playerToggle { grid-column: 2; grid-row: 1; }
    #nextTrack { grid-column: 3; grid-row: 1; }
    .player-song { grid-column: 4; grid-row: 1; }
    .player-progress { grid-column: 1 / 5; grid-row: 2; width: 100%; }
    #currentTime, #totalTime { display: none; }
    .volume-button { grid-column: 5; grid-row: 1; }
    .volume-control { grid-column: 5; grid-row: 2; width: 38px; }
    .upload-form { padding: 20px 16px; }
}
