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

html {
    height: 100%;
    min-height: 100%;
    background: #2c5282;
    background-attachment: fixed;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #cbd5e0;
    background: linear-gradient(180deg, #2c5282 0%, #1a365d 50%, #1a202c 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: manipulation;
}

/* iOS Safari overscroll background fix */
body::before {
    content: '';
    position: fixed;
    top: -50vh;
    left: 0;
    right: 0;
    height: 150vh;
    background: #2c5282;
    z-index: -2;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(200px, env(safe-area-inset-bottom));
    min-height: 100vh;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Header */
header {
    text-align: center;
    background: transparent;
    margin-bottom: 0;
    padding: 0.6em 0.6em;
    border-radius: 0;
}

header h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.home-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.home-button svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    stroke: white;
    transition: transform 0.2s ease;
}

.home-button:hover svg {
    transform: scale(1.05);
}

/* SVG Icons - Professional Outline Style */
svg {
    shape-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
    transition: all 0.2s ease;
    stroke: #667eea;
}

.inline-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 8px;
    display: inline-block;
    transition: all 0.2s ease;
    stroke: #667eea;
}

.artwork-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.9;
    stroke: white;
}

/* Main Content */
main {
    flex: 1;
    /* display: flex; */
    align-items: center;
    justify-content: center;
}

/* Auth Container */
.auth-container, .payment-container, .player-container {
    background: rgba(30, 40, 70, 0.9);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 540px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.payment-container, .player-container {
    max-width: 680px;
}

.context-poster {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.context-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.auth-container h2, .payment-container h2, .player-container h2, .header-nav h2 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container p, .payment-container p {
    color: #cbd5e0;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
}

/* Forms */
.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #cbd5e0;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Phone Digit Inputs */
.phone-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    flex-wrap: nowrap;
}

.digit-input {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px;
    padding: 0 !important;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
    line-height: 54px;
    flex-shrink: 0;
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.digit-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* Phone Single Input Field */
.phone-input-field {
    width: 100%;
    padding: 16px 20px !important;
    text-align: center;
    font-size: 24px !important;
    font-weight: 600;
    letter-spacing: 2px;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease;
    color: white !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.phone-input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.phone-input-field:focus {
    outline: none;
    border-color: #667eea !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    transform: translateY(-1px);
}

/* Responsive digit inputs */
@media (max-width: 768px) {
    .auth-container, .payment-container, .player-container {
        padding: 30px 20px;
        margin: 0 auto;
    }

    .digit-input {
        width: 32px !important;
        height: 40px !important;
        min-width: 32px;
        font-size: 20px;
        line-height: 40px;
    }

    .phone-inputs {
        gap: 4px;
        margin: 15px 0;
    }

    .phone-input-field {
        font-size: 20px !important;
        padding: 14px 16px !important;
        letter-spacing: 1px;
    }

    .form-group label {
        font-size: 14px;
    }

    .payment-widget iframe {
        height: 450px !important;
        min-height: 350px;
        width: 100% !important;
    }

    .payment-info {
        font-size: 14px;
        padding: 15px;
        margin-bottom: 20px;
    }

    .payment-info h3 {
        font-size: 1rem;
    }

    .order-item, .order-total {
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .digit-input {
        width: 28px !important;
        height: 36px !important;
        min-width: 28px;
        font-size: 18px;
        line-height: 36px;
    }

    .phone-inputs {
        gap: 3px;
    }

    .phone-input-field {
        font-size: 18px !important;
        padding: 12px 14px !important;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
}

.payment-actions {
    margin-top: 30px;
    text-align: center;
}

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.loading {
    background: rgba(102, 126, 234, 0.1);
    color: #93c5fd;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Help Text */
.help-text {
    margin-top: 20px;
    text-align: center;
}

.help-text p {
    color: #94a3b8;
    font-size: 14px;
}

.link {
    color: #667eea;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Payment Styles */
.payment-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-info h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e0;
}

.order-total {
    margin-top: 15px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    color: white;
}

.price {
    color: #4ade80;
    font-weight: 600;
    white-space: nowrap;
}

.payment-widget {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.payment-widget iframe {
    border-radius: 10px;
    background: #f7fafc;
    min-height: 400px;
}

/* Player Styles */
.track-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
    /* padding: 40px 20px 30px; */
}

body.player-page .track-info {
    background: transparent;
    /* padding: 50px 20px 30px; */
}

.track-artwork {
    margin-bottom: 20px;
}

.artwork-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
}

.artwork-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* border-radius: 12px; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.15);
}

.track-details {
    width: 100%;
}

.btn-gallery {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gallery svg {
    width: 18px;
    height: 18px;
}

.btn-gallery:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-1px);
}

/* Gallery Modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.gallery-modal.closing {
    animation: fadeOut 0.2s ease-out;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 20px;
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    line-height: 1;
}

.gallery-close:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: rotate(90deg);
}

.gallery-swiper {
    width: 100%;
    height: 100%;
    max-width: 1400px;
}

.gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.gallery-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-swiper .swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swiper navigation buttons */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gallery-swiper .swiper-button-next:after,
.gallery-swiper .swiper-button-prev:after {
    font-size: 20px;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Swiper pagination */
.gallery-swiper .swiper-pagination {
    bottom: 20px;
}

.gallery-swiper .swiper-pagination-fraction {
    color: white;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Thumbnail Gallery */
.gallery-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: 100px;
    width: 90%;
    max-width: 800px;
    padding: 0 10px;
}

.gallery-thumbs .swiper-slide {
    width: 100px;
    height: 100px;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #667eea;
}

.gallery-thumbs .swiper-slide:hover {
    opacity: 0.7;
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 50px 10px 10px;
    }

    .gallery-close {
        top: 5px;
        right: 5px;
        font-size: 40px;
        width: 45px;
        height: 45px;
    }

    .gallery-swiper .swiper-button-next,
    .gallery-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .gallery-swiper .swiper-button-next:after,
    .gallery-swiper .swiper-button-prev:after {
        font-size: 16px;
    }

    .gallery-swiper .swiper-pagination-fraction {
        font-size: 16px;
        padding: 6px 12px;
    }

    .gallery-thumbs {
        height: 70px;
        bottom: 10px;
        width: 95%;
    }

    .gallery-thumbs .swiper-slide {
        width: 70px;
        height: 70px;
    }
}

.track-details h3 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

body.player-page .track-details h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
}

.track-details p {
    color: #718096;
    margin-bottom: 4px;
}

body.player-page .track-details p {
    color: #a0aec0;
}

/* Custom Audio Player */
.audio-player {
    margin-bottom: 30px;
}

.audio-player audio {
    display: none;
}

.custom-player {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.player-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}

.progress-bar:hover {
    height: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #718096;
    font-family: 'Courier New', monospace;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.control-btn:disabled:hover {
    transform: none;
    background: none;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    stroke: #4a5568;
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.play-pause-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    stroke: none;
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.volume-control svg {
    width: 20px;
    height: 20px;
    stroke: #718096;
}

.volume-control input[type="range"] {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

/* Track List */
.song-list {
    margin: 0;
    padding-bottom: 100px;
    background: transparent;
    border-radius: 0;
}

.song-list h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 1.2rem;
}

#track-list {
    padding-left: 0;
    list-style: none;
    counter-reset: track-counter;
}

.track-item {
    padding: 18px 15px;
    margin: 0;
    background: rgba(30, 40, 70, 0.8);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    counter-increment: track-counter;
    border: none;
    margin-bottom: 8px;
    color: #e2e8f0;
    position: relative;
}

.track-item .track-name {
    flex: 1;
    text-align: right;
}

.track-item::before {
    content: counter(track-counter);
    color: #94a3b8;
    font-weight: 600;
    min-width: 32px;
    width: 32px;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
}

.track-item:hover {
    background: rgba(30, 40, 70, 0.95);
    transform: translateX(2px);
}

.track-item.active {
    /* Background and border removed - playing indicator is sufficient */
}

.track-item.active::before {
    color: #667eea;
}

.track-item.playing::before {
    visibility: hidden;
}

/* Playing indicator - animated bars */
.playing-indicator {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 16px;
    width: 32px;
    min-width: 32px;
    flex-shrink: 0;
    position: absolute;
    right: 15px;
}

.track-item.playing .playing-indicator {
    display: flex;
}

.playing-indicator span {
    width: 3px;
    background: #667eea;
    border-radius: 2px;
    animation: sound-wave 1s ease-in-out infinite;
}

.playing-indicator span:nth-child(1) {
    height: 60%;
    animation-delay: 0s;
}

.playing-indicator span:nth-child(2) {
    height: 100%;
    animation-delay: 0.2s;
}

.playing-indicator span:nth-child(3) {
    height: 80%;
    animation-delay: 0.4s;
}

@keyframes sound-wave {
    0%, 100% {
        height: 30%;
    }
    50% {
        height: 100%;
    }
}

/* Purchase Success Banner */
.purchase-success-banner {
    background: rgba(5, 150, 105, 0.5);
    color: rgb(16, 185, 129);
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 40px;
    border-radius: 4px;
    border: 1px solid rgb(16, 185, 129);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Fixed Bottom Player */
.fixed-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(40, 50, 80, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 20px;
    padding: 20px 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.fixed-player audio {
    display: none;
}

.player-info {
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.control-btn-bottom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #cbd5e0;
}

@media (hover: hover) and (pointer: fine) {
    .control-btn-bottom:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

.control-btn-bottom:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.control-btn-bottom:focus {
    outline: none;
    background: transparent;
}

.control-btn-bottom:active {
    background: rgba(255, 255, 255, 0.15);
}

.control-btn-bottom svg {
    width: 26px;
    height: 26px;
}

.play-pause-btn-bottom {
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.play-pause-btn-bottom:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.play-pause-btn-bottom svg {
    width: 32px;
    height: 32px;
}

.player-progress-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-progress-bottom span {
    color: #cbd5e0;
    font-size: 12px;
    min-width: 40px;
    text-align: center;
}

.progress-bar-bottom {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.progress-bar-bottom:hover {
    height: 8px;
}

.progress-fill-bottom {
    height: 100%;
    background: #667eea;
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
}

.purchase-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 20px;
    color: #cbd5e0;
}

.purchase-info p {
    margin-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: #94a3b8;
    padding: 30px 0 20px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .auth-container, .payment-container, .player-container {
        padding: 20px 15px;
        margin: 0 auto;
        border-radius: 8px;
    }

    .payment-container h2, .player-container h2 {
        font-size: 1.5rem;
    }

    .payment-container p {
        font-size: 14px;
    }
    
    .track-info {
        flex-direction: column;
        text-align: center;
    }
    
    .track-artwork {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .player-controls {
        flex-direction: column;
    }
    
    .player-controls .btn {
        width: 100%;
    }
}

/* Library Styles */
.library-container {
    background: rgba(30, 40, 70, 0.9);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.library-container h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.library-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

.library-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(30, 40, 70, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.library-item:hover {
    background: rgba(30, 40, 70, 0.9);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

.library-item-icon {
    flex-shrink: 0;
}

.library-item-icon svg {
    width: 60px;
    height: 60px;
    color: #667eea;
}

.library-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
}

.library-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.library-item-details {
    flex: 1;
    min-width: 0;
}

.library-item h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 1.2rem;
}

.library-item .description {
    color: #cbd5e0;
    margin: 4px 0;
    font-size: 0.95rem;
}

.library-item .meta {
    color: #94a3b8;
    font-size: 14px;
    margin: 8px 0 0 0;
}

.library-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.library-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.library-button svg {
    width: 18px;
    height: 18px;
}

.header-nav {
    display: flex;
    justify-content: left;
    gap: 10px;
    flex-wrap: wrap;
        text-align: center;

}

/* Utility Classes */
.hidden {
    display: none;
}

.text-muted {
    color: #94a3b8;
}

.text-muted-dark {
    color: #666;
}

.text-small {
    font-size: 14px;
}

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

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 60px;
    height: 60px;
}

.icon-xl {
    width: 80px;
    height: 80px;
}

.spacing-top-sm {
    margin-top: 10px;
}

.spacing-top-md {
    margin-top: 20px;
}

.spacing-top-lg {
    margin-top: 30px;
}

.spacing-top-xl {
    margin-top: 40px;
}

.spacing-bottom-lg {
    margin-bottom: 30px;
}

/* Component Classes */
.error-page-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 15, 30, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #ef4444;
}

.error-page-container h2 {
    margin-bottom: 20px;
    color: white;
}

.error-page-container p {
    font-size: 18px;
    color: #cbd5e0;
    margin-bottom: 30px;
}

.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.warning-box-title {
    margin-top: 0;
    color: #fbbf24;
    display: flex;
    align-items: center;
}

.warning-box-title svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.warning-box-text {
    margin: 10px 0 0;
    color: #fcd34d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .library-item {
        flex-direction: column;
        text-align: center;
    }

    .library-item-icon svg {
        width: 50px;
        height: 50px;
    }

    .library-container {
        /* padding: 20px; */
    }
}