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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fb;
    padding: 12px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1a73e8;
    font-size: 20px;
}

.breadcrumb {
    background: white;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumb span {
    color: #5f6368;
}

.breadcrumb .last {
    color: #202124;
    font-weight: 500;
}

.sort-bar {
    background: white;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-actions {
    display: flex;
    gap: 10px;
}

.sort-btn {
    background: #f0f2f5;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.sort-btn:hover {
    background: #e0e2e5;
}

.sort-btn.active {
    background: #1a73e8;
    color: white;
}

.batch-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.batch-btn {
    background: #f0f2f5;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.batch-btn:hover {
    background: #e0e2e5;
}

.batch-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e8eaed;
    transition: background 0.2s;
}

.file-item:hover {
    background: #f8f9fa;
}

.file-item.selected {
    background: #e8f0fe;
}

.checkbox-col {
    width: 40px;
}

.checkbox-col input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.file-icon {
    font-size: 30px;
    margin-right: 12px;
    min-width: 38px;
    text-align: center;
}

.file-icon a {
    text-decoration: none;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #202124;
    word-break: break-all;
    font-size: 15px;
    line-height: 1.4;
}

.file-name a {
    color: #202124;
    text-decoration: none;
}

.file-name a:active {
    opacity: 0.7;
}

.file-meta {
    font-size: 11px;
    color: #5f6368;
    margin-top: 4px;
}

.file-size {
    font-size: 11px;
    color: #5f6368;
    margin-left: 8px;
    font-weight: normal;
}

.download-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 9px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    margin-left: 12px;
    transition: background 0.2s;
    display: inline-block;
    white-space: nowrap;
    font-weight: normal;
}

.download-btn:active {
    background: #1557b0;
}

.folder-download {
    background: #34a853;
}

.folder-download:active {
    background: #2d8e47;
}

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

.footer {
    text-align: center;
    margin-top: 20px;
    color: #5f6368;
    font-size: 14px;
    padding: 16px;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
}

.footer span {
    color: #5f6368;
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    .file-item {
        padding: 12px 12px;
    }
    .file-name {
        font-size: 14px;
    }
    .file-meta {
        font-size: 10px;
    }
    .download-btn {
        padding: 8px 10px;
        font-size: 12px;
        margin-left: 8px;
    }
    .file-icon {
        font-size: 28px;
        margin-right: 10px;
        min-width: 34px;
    }
    .footer {
        font-size: 13px;
        gap: 20px;
    }
    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkbox-col {
        width: 32px;
    }
}
