* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upload-section {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upload-card {
    text-align: center;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 60px 40px;
}

.upload-icon {
    color: #94a3b8;
    margin-bottom: 20px;
}

.upload-icon svg {
    display: inline-block;
}

.upload-card h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-card p {
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.upload-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.upload-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.upload-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.upload-status.loading {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    display: block;
}

.api-docs {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.api-docs h3 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.api-docs > p {
    color: #64748b;
    margin-bottom: 30px;
}

.endpoint {
    margin-bottom: 30px;
    padding: 20px;
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    border-radius: 8px;
}

.endpoint-header {
    margin-bottom: 15px;
}

.endpoint-header code {
    background: #e2e8f0;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #1e293b;
    display: inline-block;
}

.endpoint h4 {
    font-size: 1.2em;
    color: #1e293b;
    margin-bottom: 10px;
}

.endpoint p {
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.6;
}

.endpoint ul {
    list-style: none;
    padding-left: 0;
}

.endpoint ul li {
    padding: 8px 0;
    color: #475569;
    line-height: 1.5;
}

.endpoint ul li strong {
    color: #1e293b;
}

.example-code {
    background: #1e293b;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.example-code h4 {
    color: white;
    margin-bottom: 15px;
}

.example-code pre {
    background: #0f172a;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
}

.example-code code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Player styles */
.player-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.player-nav {
    width: 300px;
    background: #1e293b;
    color: white;
    overflow-y: auto;
    padding: 20px;
}

.player-nav h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.nav-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    background: #334155;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-item:hover {
    background: #475569;
}

.nav-item.active {
    background: #3b82f6;
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-header h2 {
    font-size: 1.3em;
    color: #2c3e50;
}

.btn-back {
    background: #64748b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-back:hover {
    background: #475569;
}

.player-frame {
    flex: 1;
    border: none;
    width: 100%;
}

@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
    }
    
    .player-nav {
        width: 100%;
        max-height: 200px;
    }
}
