* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #2c0e0e;
    color: #ffdddd;
    padding: 20px;
}

header {
    background: #631e1e;
    padding: 25px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 15px 15px 0 0;
    border-bottom: 3px solid #ad3a3a;
    margin-bottom: 20px;
    position: relative;
}

.user-info {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    background: #2c0e0e;
    padding: 5px 15px;
    border-radius: 20px;
}

.user-info a {
    color: #ffb3b3;
    text-decoration: none;
    margin-left: 10px;
}

.user-info a:hover {
    color: #ff6b6b;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.product {
    background: #3d1a1a;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #914141;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #a33d3d;
}

.product h3 {
    font-size: 20px;
    margin: 15px 0 5px;
    color: #ffb3b3;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    margin: 10px 0;
    background: #5a2424;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 25px;
}

.desc {
    font-size: 14px;
    line-height: 1.5;
    color: #d4b6b6;
    margin: 15px 0;
}

.link {
    display: inline-block;
    color: #ffd1d1;
    background: #7a2e2e;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid #b34545;
    transition: background 0.3s ease;
}

.link:hover {
    background: #964242;
}

.player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2f1212;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #b33a3a;
    box-shadow: 0 0 20px #b33a3a;
    z-index: 1000;
}

audio {
    height: 35px;
}

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background: #3d1a1a;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #914141;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffb3b3;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffdddd;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #2c0e0e;
    border: 1px solid #914141;
    border-radius: 8px;
    color: #ffdddd;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #7a2e2e;
    color: #ffd1d1;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #964242;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #ff6b6b;
    text-decoration: none;
}

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

.error-message {
    background: #631e1e;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #2c6e2c;
    color: #ddffdd;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.logout-btn {
    background: #631e1e;
    padding: 3px 12px;
    border-radius: 15px;
    margin-left: 10px;
}

.logout-btn:hover {
    background: #8a2a2a;
}

@media (max-width: 700px) {
    .products {
        grid-template-columns: 1fr;
    }

    .player {
        left: 20px;
        right: 20px;
        bottom: 10px;
        text-align: center;
    }

    audio {
        width: 100%;
    }

    .user-info {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    header {
        text-align: center;
    }

    .auth-overlay {
        padding: 20px;
    }

    .auth-container {
        margin: 0;
        padding: 30px 20px;
    }
}