body {
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: #000000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
}

.phone-player {
    width: 340px;
    height: 600px;
    background: #04131a;
    border: 3px solid #06b6d4;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4), inset 0 0 20px rgba(6, 182, 212, 0.2);
    border-radius: 45px;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    margin: 0;
    background: linear-gradient(to right, #10b981, #06b6d4);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.folder-btn {
    background: rgba(6, 182, 212, 0.1);
    border: 1px dashed #06b6d4;
    color: #67e8f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#fileInput { display: none; }

.center-zone {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 4px solid #06b6d4;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.ring-1 { width: 200px; height: 200px; opacity: 0.3; }
.ring-2 { width: 150px; height: 150px; opacity: 0.6; }
.ring-3 { width: 100px; height: 100px; opacity: 0.9; }

.playing .ring {
    animation: colorShift 3s infinite linear, pulseGrow 1.5s infinite ease-in-out;
}
.playing .ring-1 { animation-delay: 0s; }
.playing .ring-2 { animation-delay: 0.3s; }
.playing .ring-3 { animation-delay: 0.6s; }

@keyframes colorShift {
    0% { border-color: #06b6d4; box-shadow: 0 0 15px #06b6d4; }
    33% { border-color: #10b981; box-shadow: 0 0 15px #10b981; }
    66% { border-color: #3b82f6; box-shadow: 0 0 15px #3b82f6; }
    100% { border-color: #06b6d4; box-shadow: 0 0 15px #06b6d4; }
}

@keyframes pulseGrow {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

.result-display {
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

#yearOutput {
    font-size: 5rem;
    font-weight: 900;
    color: #34d399;
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.6);
    margin: 0;
    line-height: 1;
}

#eraOutput {
    font-size: 1rem;
    color: #9ca3af;
    margin-top: 15px;
    font-weight: 500;
}

.controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.play-pause-btn {
    width: 75px;
    height: 75px;
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

.play-pause-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.play-pause-btn:active { transform: scale(0.95); }

.play-pause-btn svg {
    width: 28px;
    height: 28px;
    fill: #000000;
}

.play-pause-btn:disabled {
    background-color: #334155;
    box-shadow: none;
    cursor: not-allowed;
}
.play-pause-btn:disabled svg { fill: #1e293b; }

.action-btn {
    width: 100%;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.action-btn:disabled {
    background: #1e293b;
    color: #475569;
    box-shadow: none;
    cursor: not-allowed;
}

#nextBtn {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

#statusText {
    font-size: 0.85rem;
    color: #64748b;
    min-height: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

audio { display: none; }