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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 1.5rem;
}

.btn {
    background: #e94560;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #ff6b6b;
}

.btn-primary {
    background: #4ecca3;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #45b393;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.player-section {
    background: #16213e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#player {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: block;
}

#now-playing {
    text-align: center;
    margin-top: 10px;
    color: #4ecca3;
}

.queue-section {
    background: #16213e;
    padding: 20px;
    border-radius: 8px;
}

.queue-section h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

#queue-list {
    list-style: none;
}

#queue-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
}

#queue-list li:last-child {
    border-bottom: none;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-number {
    color: #888;
    min-width: 25px;
}

.video-info img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.vote-controls {
    display: flex;
    gap: 5px;
}

.vote-controls button {
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.vote-controls button:hover {
    background: #444;
}

.form-section {
    background: #16213e;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

#add-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#video-url {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a2e;
    color: #fff;
    font-size: 1rem;
}

#video-url:focus {
    outline: none;
    border-color: #4ecca3;
}

#message {
    text-align: center;
    margin-top: 10px;
}

#message.success {
    color: #4ecca3;
}

#message.error {
    color: #e94560;
}

.empty-queue {
    text-align: center;
    color: #888;
    padding: 20px;
}
