/* Existing styles... keeping core */
:root {
    --bg-color: #09090b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --error: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.background-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
}

header h1 {
    font-weight: 600;
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Mic Button */
.mic-button-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
}

.mic-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-color), #6d28d9);
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mic-button:hover {
    transform: scale(1.05);
}

.mic-button:active {
    transform: scale(0.95);
}

.mic-button .icon {
    font-size: 40px;
}

/* Animation */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.recording .pulse-ring {
    animation: pulse 2s infinite ease-out;
}

.recording .pulse-ring.delay {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-height: 1.5em;
}

.recording .status-text {
    color: var(--accent-color);
}

/* Player UI */
.player-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.player-container.hidden {
    display: none;
}

/* Hide actual youtube iframe but keep it functional */
#youtubePlayer {
    width: 100%;
    height: 300px;
    opacity: 1;
    border-radius: 12px;
    margin-top: 1rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.track-details {
    flex: 1;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* EQ Animation */
.equalizer {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: flex-end;
}

.equalizer .bar {
    width: 4px;
    background: var(--success);
    animation: eq 1s infinite ease-in-out alternate;
}

.equalizer .bar:nth-child(1) {
    height: 60%;
    animation-delay: 0s;
}

.equalizer .bar:nth-child(2) {
    height: 90%;
    animation-delay: 0.2s;
}

.equalizer .bar:nth-child(3) {
    height: 50%;
    animation-delay: 0.4s;
}

.equalizer .bar:nth-child(4) {
    height: 80%;
    animation-delay: 0.1s;
}

.equalizer .bar:nth-child(5) {
    height: 40%;
    animation-delay: 0.3s;
}

@keyframes eq {
    0% {
        height: 20%;
    }

    100% {
        height: 100%;
    }
}

/* Transcript */
.glass-panel {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.transcript-content {
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 60px;
    color: var(--text-primary);
}

.transcript-content.placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

/* Core notification styles */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #18181b;
    border: 1px solid #3f3f46;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s;
}

.notification.hidden {
    opacity: 0;
    pointer-events: none;
}