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

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

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

header {
    padding: 20px 0 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 16px;
}

header h1 {
    font-size: 1.4rem;
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #7b8cff;
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    color: #555;
    margin: 0 2px;
}

/* File list */
.file-list {
    list-style: none;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-bottom: 1px solid #2a2a3e;
    cursor: pointer;
    border-radius: 6px;
    min-height: 48px;
    transition: background 0.15s;
}

.file-list li:hover {
    background: #2a2a4e;
}

.file-list li:active {
    background: #3a3a5e;
}

.file-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.file-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size, .file-meta {
    flex-shrink: 0;
    color: #888;
    font-size: 0.85rem;
    margin-left: 12px;
    white-space: nowrap;
}

/* Player view */
.player-container {
    display: none;
}

.player-container.active {
    display: block;
}

.browser.hidden {
    display: none;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #555;
    color: #ccc;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: background 0.15s;
}

.back-btn:hover {
    background: #2a2a4e;
}

.now-playing {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
    word-break: break-word;
}

video {
    width: 100%;
    max-height: 80vh;
    background: #000;
    border-radius: 8px;
}

/* Warnings */
.warning-banner {
    background: #3d3200;
    border: 1px solid #665500;
    color: #ffd966;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
}

.warning-banner.visible {
    display: block;
}

.error-msg {
    background: #3d1010;
    border: 1px solid #662020;
    color: #ff9999;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* Empty state */
.empty {
    text-align: center;
    color: #666;
    padding: 40px 0;
}
