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

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

.header {
    background: #212121;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 20px;
    font-weight: 500;
}

.playlist-selector {
    padding: 15px 20px;
    background: #1a1a1a;
}

.playlist-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #aaa;
}

.playlist-selector select {
    width: 100%;
    padding: 12px;
    background: #212121;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.playlist-selector select:focus {
    outline: none;
    border-color: #3ea6ff;
}

.video-container {
    background: #000;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.video-info {
    padding: 15px 20px;
    background: #0f0f0f;
}

.video-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.video-meta {
    color: #aaa;
    font-size: 13px;
}

.cache-info {
    background: #1a1a1a;
    padding: 12px 20px;
    margin: 0 20px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
}

.cache-info.cached {
    color: #3ea6ff;
}

.playlist-section {
    padding: 0 20px;
    margin-top: 20px;
}

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

.playlist-header h2 {
    font-size: 16px;
    font-weight: 500;
}

.playlist-count {
    color: #aaa;
    font-size: 13px;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #212121;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item:hover, .playlist-item.active {
    background: #3a3a3a;
}

.playlist-item.active {
    border-left: 3px solid #3ea6ff;
}

.thumbnail {
    width: 120px;
    height: 68px;
    background: #000;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.playlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.playlist-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-item-meta {
    color: #aaa;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
