* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
}

.container {
    max-width: 375px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

.gradient-bg {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
    color: white;
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #1d4ed8);
    color: white;
}

.btn-primary {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.urgent-badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #dc2626;
    transition: width 0.3s ease;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    z-index: 100;
}

.nav-item {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    border: none;
    background: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 12px;
    transition: color 0.2s;
}

.nav-item.active {
    color: #dc2626;
    border-bottom: 2px solid #dc2626;
}

.nav-item:hover {
    color: #374151;
}

.player-container {
    background: #1f2937;
    color: white;
    min-height: 100vh;
    position: relative;
}

.player-header {
    background: #374151;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-content {
    aspect-ratio: 16/9;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.player-controls {
    padding: 16px;
    background: #374151;
    border-top: 1px solid #4b5563;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 375px) {
    .container {
        max-width: 100vw;
    }
    
    .bottom-nav {
        max-width: 100vw;
    }
}