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

/* iOS Safari button fixes */
button, input[type="button"], input[type="submit"], .btn, .download-btn, .buy-now-btn {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Ensure our custom styles override iOS defaults */
.control-btn, .menu-btn, .close-btn {
    -webkit-appearance: none !important;
    background: transparent !important;
    border: none !important;
    color: #000 !important;
}

.buy-now-btn {
    background: #00ffff !important;
    color: #000 !important;
    border: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #EDEDED;
    color: #000;
    overflow-x: hidden;
    user-select: none;
}

.app {
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    padding: 20px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.close-icon, .shopping-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

.artist-name {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 8px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* Carousel */
.carousel-container {
    width: 320px;
    height: 320px;
    position: relative;
    margin-bottom: 60px;
    margin-top: 40px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.carousel {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    width: 400%;
}

.carousel-slide {
    min-width: 25%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Music Player */
.player {
    width: 100%;
    max-width: 320px;
    margin-bottom: 40px;
}

.track-info {
    background-color: #000;
    color: #00ffff;
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.track-title {
    font-weight: 500;
}

.track-time {
    font-size: 12px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #00ffff;
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
}

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

.control-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.track-list-btn {
    font-size: 20px;
    padding: 10px;
}

/* Powered By */
.powered-by {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    z-index: 10;
}

.powered-by a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.powered-by a:hover {
    color: #000;
    text-decoration: underline;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #EDEDED;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
}

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

.cart-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
}

.cart-only-icon {
    font-size: 0 !important;
}

.cart-only-icon .cart-icon {
    margin-right: 0;
    width: 40px;
    height: 40px;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-item {
    text-decoration: none;
    color: #000;
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 2px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item:hover {
    transform: scale(1.05);
}

/* QR Code Share */
.qr-share {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-label {
    font-size: 14px;
    letter-spacing: 1px;
    color: #666;
    text-transform: uppercase;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #000;
    background: white;
    padding: 8px;
}

@media (max-width: 480px) {
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .qr-label {
        font-size: 12px;
    }
}

/* Track List Overlay */
.track-list-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 40px 20px;
}

.track-list-overlay.active {
    opacity: 1;
    visibility: visible;
}

.track-list-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.track-list-overlay .artist-name {
    color: #fff;
    margin-bottom: 40px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.track-item {
    color: #00ffff;
    font-size: 18px;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.track-item:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: scale(1.02);
}

.track-item.playing {
    background-color: rgba(0, 255, 255, 0.2);
    font-weight: bold;
}

/* Sections */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #EDEDED;
    z-index: 150;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.section-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section.active {
    opacity: 1;
    visibility: visible;
}

.section h2 {
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
    width: 100%;
}

.section-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
}

/* Blog Section */
.blog-image {
    width: 300px;
    height: 300px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 18px;
    color: #666;
    border-radius: 8px;
}

.merch-image {
    width: 300px;
    height: 300px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 18px;
    color: #666;
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid #000;
}

.blog-meta {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.blog-content, .merch-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
}

.blog-nav, .merch-nav {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
}

.next-link {
    color: #000;
    text-decoration: none;
    font-size: 16px;
}

/* Merch Section */
.merch-section .section-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    max-width: 800px;
}

.merch-content-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.merch-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.merch-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.merch-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.add-to-cart-btn, .buy-now-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 30px;
    transition: transform 0.2s ease;
}

.add-to-cart-btn:hover, .buy-now-btn:hover {
    transform: scale(1.05);
}

.buy-now-btn {
    background-color: #00ffff;
    color: #000;
}

.buy-now-btn:hover {
    background-color: #000;
    color: #00ffff;
    transform: scale(1.05);
}

/* Cart Section */
.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
    font-size: 14px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background-color: #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
}

.cart-item-price {
    color: #28a745;
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.remove-item:hover {
    background: #c82333;
}

.empty-cart {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: 100px;
}

.cart-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
}

.total-amount {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.checkout-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-btn:hover {
    background: #218838;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .artist-name {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .carousel-container {
        width: 280px;
        height: 280px;
    }

    .menu-item {
        font-size: 28px;
    }

    .track-item {
        font-size: 16px;
    }

    .merch-content-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .merch-right {
        order: 1;
    }

    .merch-left {
        order: 2;
    }

    .merch-image {
        width: 250px;
        height: 250px;
    }
}

/* Touch feedback */
.carousel-slide {
    transition: transform 0.2s ease;
}

.carousel-slide:active {
    transform: scale(0.98);
}

/* Hide scrollbar but allow scrolling */
.section::-webkit-scrollbar {
    display: none;
}

.section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}