:root {
    --bg-color: #f4f4f4;
    --text-color: #006a7a;
    --button-bg: #00a8cc;
    --button-text: rgba(255, 255, 255, 0.9);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-text: #333;
    --btn-hover-bg: #007792;
    --card-border-radius: 15px;
    --button-radius: 10px;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --gradient-start: #00a8cc;
    --gradient-end: #8bd3dd;
}

.dark-mode {
    --bg-color: #0a192f;
    --text-color: #e6f1ff;
    --button-bg: #00a8cc;
    --button-text: #e6f1ff;
    --card-bg: rgba(16, 36, 69, 0.9);
    --card-text: #e6f1ff;
    --btn-hover-bg: #64ffda;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    --gradient-start: #0a192f;
    --gradient-end: #172a45;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-attachment: fixed;
}

.intro-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.intro-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--card-bg);
    color: var(--card-text);
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 90%;
    margin: 20px auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--button-bg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, var(--button-bg), var(--btn-hover-bg));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.turntable {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at center, #696969, #696969);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 120, 146, 0.3);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    border: 8px solid var(--button-bg);
}

.turntable:hover {
    transform: scale(1.05) rotate(2deg);
}

.turntable .record {
    width: 180px;
    height: 180px;
    background: url("file.jpg") no-repeat center center;
    background-size: cover;
    border: 6px solid #555;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.turntable .record.rotate {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

button {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    border-radius: var(--button-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 120, 146, 0.2);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

button:hover::after {
    opacity: 1;
    top: -20%;
    left: -20%;
}

button:hover, button:focus {
    background-color: var(--btn-hover-bg);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 120, 146, 0.3);
    outline: none;
}

button:active {
    transform: scale(0.98);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 168, 204, 0.1);
    padding: 10px 15px;
    border-radius: var(--button-radius);
}

input[type="range"] {
    width: 150px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #00a8cc, #8bd3dd);
    height: 8px;
    border-radius: 5px;
    outline: none;
}

input[type="range"]:focus {
    background: linear-gradient(to right, #007792, #00a8cc);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--button-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid white;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: var(--button-bg);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background-color: var(--btn-hover-bg);
}

#themeToggle {
    margin-top: 20px;
    background-color: transparent;
    border: 2px solid var(--button-bg);
    color: var(--button-bg);
    padding: 10px 20px;
}

#themeToggle:hover {
    background-color: var(--button-bg);
    color: var(--button-text);
}

#socialShare {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

#socialShare a {
    font-size: 1.8rem;
    color: var(--button-bg);
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#socialShare a:hover {
    color: var(--btn-hover-bg);
    transform: scale(1.1) translateY(-3px);
}

#greeting {
    font-size: 1.8rem;
    margin: 20px 0;
    color: var(--button-bg);
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.now-playing {
    background-color: rgba(0, 168, 204, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    margin: 15px 0;
    font-size: 1.1rem;
    border: 1px dashed var(--button-bg);
}

.footer {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    opacity: 0.8;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 168, 204, 0.2);
}

.footer:hover {
    opacity: 1;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 168, 204, 0.3);
    border-radius: 50%;
    border-top-color: var(--button-bg);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@media (max-width: 600px) {
    .app-container {
        padding: 20px;
        width: 95%;
    }

    h1 {
        font-size: 2rem;
    }

    .turntable {
        width: 200px;
        height: 200px;
    }

    .turntable .record {
        width: 150px;
        height: 150px;
    }

    .controls {
        flex-direction: column;
    }

    button {
        width: 100%;
        justify-content: center;
    }

    #socialShare {
        margin-top: 20px;
    }

    #greeting {
        font-size: 1.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.error-message {
    color: #ff3333 !important;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}