* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "ABC Ginto Nord Unlicensed Trial", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0015;
    color: #fff;
    min-height: 100vh;
}

.main-content {
    display: flex;
}

.archive-container {
    flex: 1;
    padding: 40px 20px;
    max-width: 100%;
    overflow-y: auto;
    background: #0a0015;
}

.header-section {
    background: rgba(168, 85, 247, 0.08);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 40px 20px;
    margin: -40px -20px 0 -20px;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.header-artwork {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.header-info {
    flex: 1;
}

.header-label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c084fc;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-title {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
}

.header-subtitle {
    color: #d8b4fe;
    font-size: 1em;
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.play-btn {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.sections-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.6em;
    font-weight: 800;
    margin: 0;
}

.show-all-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.show-all-btn:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: rgba(168, 85, 247, 0.6);
}

.songs-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

.songs-scroll::-webkit-scrollbar {
    height: 8px;
}

.songs-scroll::-webkit-scrollbar-track {
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
}

.songs-scroll::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}

.songs-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

.song-card {
    background: rgba(26, 0, 51, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 16px;
    width: 200px;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    group: true;
}

.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.song-card:hover::before {
    opacity: 1;
}

.song-card:hover {
    background: rgba(26, 0, 51, 0.8);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.song-card > * {
    position: relative;
    z-index: 1;
}

.song-cover {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
}

.play-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8em;
    opacity: 0;
    transform: translate(10px, 10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.song-card:hover .play-icon {
    opacity: 1;
    transform: translate(0, 0);
}

.song-title {
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.8em;
    color: #c084fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.song-streams {
    font-size: 0.75em;
    color: #a78bfa;
    margin-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state-icon {
    font-size: 4em;
    color: #a855f7;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 1.1em;
    color: #c084fc;
}

.loading-state {
    text-align: center;
    padding: 80px 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1em;
    color: #c084fc;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95) 0%, rgba(51, 0, 102, 0.85) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.8em;
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #a855f7;
    transform: rotate(90deg);
}

.modal-search {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #a78bfa;
}

.search-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.modal-songs {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.modal-songs::-webkit-scrollbar {
    width: 8px;
}

.modal-songs::-webkit-scrollbar-track {
    background: rgba(168, 85, 247, 0.1);
}

.modal-songs::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}

.modal-songs::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

.modal-song-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.modal-song-item:hover {
    background: rgba(168, 85, 247, 0.15);
    transform: translateX(8px);
}

.modal-song-cover {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.modal-song-info {
    flex: 1;
    min-width: 0;
}

.modal-song-title {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-song-artist {
    font-size: 0.85em;
    color: #c084fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-section {
    margin-bottom: 60px;
}

.popular-title {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 25px;
    margin-top: 0;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.popular-item:hover {
    background: rgba(168, 85, 247, 0.08);
}

.popular-rank {
    font-size: 1.3em;
    font-weight: 700;
    color: #a855f7;
    min-width: 30px;
    text-align: center;
}

.popular-cover {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.popular-info {
    flex: 1;
    min-width: 0;
}

.popular-song-title {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-song-artist {
    font-size: 0.8em;
    color: #c084fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-streams {
    font-size: 0.85em;
    color: #a78bfa;
    min-width: 100px;
    text-align: right;
}

.popular-duration {
    font-size: 0.85em;
    color: #a78bfa;
    min-width: 50px;
    text-align: right;
}

@media (max-width: 1024px) {
    .popular-duration {
        display: none;
    }

    .popular-streams {
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .header-artwork {
        width: 140px;
        height: 140px;
        font-size: 3.5em;
    }

    .header-title {
        font-size: 1.8em;
    }

    .header-subtitle {
        font-size: 0.9em;
    }

    .archive-container {
        padding: 20px 12px;
    }

    .header-section {
        margin: -20px -12px 0 -12px;
        padding: 25px 12px;
        border-radius: 0 0 15px 15px;
    }

    .songs-scroll {
        gap: 12px;
        padding: 0;
    }

    .song-card {
        width: 140px;
        min-width: 140px;
        padding: 12px;
    }

    .song-cover {
        margin-bottom: 8px;
        font-size: 2em;
    }

    .song-title {
        font-size: 0.85em;
    }

    .song-artist {
        font-size: 0.75em;
    }

    .song-streams {
        font-size: 0.7em;
    }

    .section-title {
        font-size: 1.2em;
    }

    .show-all-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.4em;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .modal-search {
        padding: 15px 20px;
    }

    .modal-songs {
        padding: 15px 20px;
    }

    .search-input {
        padding: 10px 14px;
        font-size: 0.95em;
    }

    .popular-cover {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }

    .popular-item {
        padding: 10px 12px;
    }

    .popular-song-title {
        font-size: 0.9em;
    }

    .popular-song-artist {
        font-size: 0.75em;
    }

    .popular-streams {
        font-size: 0.75em;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 15px;
    }

    .header-artwork {
        width: 120px;
        height: 120px;
        font-size: 3em;
    }

    .header-title {
        font-size: 1.5em;
    }

    .header-subtitle {
        font-size: 0.8em;
        margin-bottom: 15px;
    }

    .play-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .archive-container {
        padding: 15px 10px;
    }

    .section {
        margin-bottom: 40px;
    }

    .section-header {
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1em;
        margin: 0;
    }

    .show-all-btn {
        padding: 5px 10px;
        font-size: 0.75em;
    }

    .song-card {
        width: 120px;
        min-width: 120px;
        padding: 10px;
    }

    .play-icon {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .popular-rank {
        font-size: 1em;
        min-width: 25px;
    }

    .popular-cover {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }

    .popular-item {
        gap: 12px;
        padding: 8px 10px;
    }

    .popular-song-title {
        font-size: 0.8em;
    }

    .popular-song-artist {
        font-size: 0.7em;
    }

    .popular-streams {
        font-size: 0.7em;
        min-width: 60px;
    }

    .modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.2em;
    }

    .modal-songs {
        padding: 10px 15px;
    }

    .modal-song-cover {
        width: 50px;
        height: 50px;
    }

    .modal-song-item {
        gap: 12px;
        padding: 10px;
        margin-bottom: 8px;
    }
}

.buffering {
  animation: bufferingFade 1.2s ease-in-out infinite;
}

@keyframes bufferingFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.mini-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 12px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}


.mini-player.hidden {
    display: none;
}

.mini-player-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-player-cover {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    background-size: cover;
    background-position: center;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 0.85em;
    font-weight: 700;
    color: #c084fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    cursor: pointer;
    transition: color 0.3s;
}

.mini-player-title:hover {
    color: #a855f7;
}

.mini-player-progress {
    height: 3px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.mini-player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
    width: 0%;
    transition: width 0.1s linear;
}

.mini-player-play {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mini-player-play:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.mini-player-close {
    width: 28px;
    height: 28px;
    background: rgba(168, 85, 247, 0.2);
    border: none;
    border-radius: 6px;
    color: #c084fc;
    font-size: 0.7em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mini-player-close:hover {
    background: rgba(168, 85, 247, 0.4);
    color: #fff;
}

.presave-banner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.presave-container {
    max-width: 1200px;
    margin: 0 auto;
}

.presave-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.presave-cover {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
}

.presave-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.presave-info {
    flex: 1;
    text-align: left;
}

.presave-label {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a855f7;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 6px;
}

.presave-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.presave-artist {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.presave-countdown {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.countdown-value {
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 70px;
}

.countdown-label {
    font-size: 0.75em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presave-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.presave-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
}

.presave-button:active {
    transform: translateY(-1px);
}

.presave-button.active-release {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
}

@media (max-width: 768px) {
    .mini-player {
        width: 280px;
        bottom: 70px;
        right: 50%;
        transform: translateX(50%);
    }

    .mini-player-cover {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }

    .mini-player-title {
        font-size: 0.8em;
    }

    .presave-banner {
        padding: 20px 10px;
        margin-bottom: 30px;
        border-radius: 12px;
    }

    .presave-container {
        padding: 0 5px;
    }

    .presave-content {
        flex-direction: column;
        gap: 20px;
    }

    .presave-cover {
        width: 100%;
        height: 240px;
        max-width: 100%;
        border-radius: 10px;
    }

    .presave-cover img {
        width: 100%;
        border-radius: 10px;
    }

    .presave-info {
        text-align: center;
    }

    .presave-label {
        font-size: 0.75em;
        margin-bottom: 10px;
    }

    .presave-title {
        font-size: 1.8em;
        margin-bottom: 6px;
    }

    .presave-artist {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .presave-countdown {
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .countdown-item {
        align-items: center;
        gap: 4px;
    }

    .countdown-value {
        font-size: 1.6em;
        min-width: 45px;
    }

    .countdown-label {
        font-size: 0.65em;
    }

    .presave-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95em;
    }
}
