/* File Manager Styles */
.file-manager {
    padding: 0;
    overflow: hidden;
    margin-bottom: 30px;
}

.file-manager-header {
    display: grid;
    grid-template-columns: 50px 3fr 1fr 1.5fr 1fr;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.file-list {
    max-height: 600px;
    overflow-y: auto;
}

.file-item {
    display: grid;
    grid-template-columns: 50px 3fr 1fr 1.5fr 1fr;
    padding: 12px 20px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.file-item.folder {
    background: rgba(255, 255, 255, 0.05);
}

.file-item.folder:hover {
    background: rgba(255, 255, 255, 0.25);
}

.file-icon {
    font-size: 1.5rem;
    text-align: center;
}

.file-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.file-size, .file-modified, .file-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.file-type {
    text-transform: capitalize;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 15px 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

/* Shows Banner */
.shows-banner {
    padding: 25px;
    margin-bottom: 30px;
}

.shows-title {
    color: white;
    font-weight: 300;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.show-tile {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.show-tile:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.show-tile-thumb {
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-placeholder {
    font-size: 3rem;
}

.show-tile-info {
    padding: 15px;
    color: white;
}

.show-tile-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.modal-header h2 {
    color: white;
    font-weight: 300;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    padding: 5px 15px;
}

.modal-body {
    padding: 25px;
}

/* Episodes Grid in Modal */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.episode-tile {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-tile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.episode-number {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.episode-details {
    flex: 1;
}

.episode-details h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.episode-meta {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Empty folder state */
.empty-folder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    cursor: default;
}

.empty-folder:hover {
    background: none;
    transform: none;
}

/* Loading spinner updates */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: white;
}