/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.header h1 {
    margin: 0 0 15px 0;
    font-size: 2em;
    font-weight: 600;
    color: #000;
}

.github-link {
    display: inline-block;
    margin-top: 10px;
}

/* Top Section */
.top-section {
    margin-bottom: 30px;
}

.video-container {
    padding: 15px;
    background: #fafafa;
    border: 1px solid #ddd;
}

#video-youtube {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.playlist-panel {
    background: #333;
    padding: 20px;
    color: white;
    height: 100%;
}

.playlist-panel h2 {
    margin-top: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.playlist-items {
    background: #444;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.playlist-items p {
    margin: 8px 0;
    padding: 10px;
    background: white;
    color: #333;
    font-size: 0.9em;
}

.panel {
    background: white;
    padding: 25px;
}

.panel h2 {
    margin-top: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

/* Form Styling */
#playlist-object {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    resize: vertical;
    margin-bottom: 15px;
}

#playlist-object:focus {
    outline: none;
    border-color: #333;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.time-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
    text-align: center;
}

.time-inputs input:focus {
    outline: none;
    border-color: #333;
}

.time-inputs span {
    font-weight: 600;
    color: #333;
    font-size: 1.2em;
}

/* Button Styling */
.pure-button-primary {
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
}

.pure-button-primary:hover {
    background: #000;
}

.pure-button-block {
    width: 100%;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .panel {
        margin: 10px 0;
    }
}

