/* ========== 每日幻想排片管理对话框 ========== */

.dfs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dfs-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---- Header ---- */
.dfs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.dfs-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.dfs-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.dfs-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ---- Body ---- */
.dfs-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #f9fafb;
}

/* ---- Stats Bar ---- */
.dfs-stats {
    display: flex;
    gap: 20px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #4b5563;
}

.dfs-stats strong {
    color: #667eea;
    font-size: 15px;
}

/* ---- Two-column Layout ---- */
.dfs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 700px) {
    .dfs-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- Section Headers ---- */
.dfs-video-list h3,
.dfs-calendar-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

/* ---- Video List (Left column) ---- */
.dfs-video-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    max-height: 520px;
    overflow-y: auto;
}

#dfs-video-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dfs-video-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}

.dfs-video-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.dfs-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #e5e7eb;
}

.dfs-thumb-placeholder {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea22, #764ba222);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.dfs-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dfs-card-prompt {
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.dfs-btn-schedule {
    padding: 4px 10px;
    font-size: 11px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.dfs-btn-schedule:hover {
    opacity: 0.85;
}

.dfs-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 24px 0;
}

/* ---- Calendar (Right column) ---- */
.dfs-calendar-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}

/* Calendar nav */
.dfs-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.dfs-cal-nav strong {
    color: #374151;
    font-size: 15px;
}

.dfs-cal-nav button {
    padding: 5px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    transition: background 0.2s;
}

.dfs-cal-nav button:hover {
    background: #e5e7eb;
}

/* Calendar grid */
.dfs-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dfs-cal-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 0;
    text-transform: uppercase;
}

/* Day cells */
.dfs-day {
    position: relative;
    border-radius: 6px;
    min-height: 54px;
    padding: 4px;
    box-sizing: border-box;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.dfs-day-empty {
    background: transparent;
}

.dfs-day-empty-slot {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.dfs-day-empty-slot:hover {
    background: #eef2ff;
    border-color: #667eea;
}

.dfs-day-scheduled {
    background: linear-gradient(135deg, #667eea11, #764ba222);
    border: 1px solid #667eea55;
}

.dfs-day-today .dfs-day-num {
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dfs-day-num {
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    align-self: flex-start;
    line-height: 1;
    margin-bottom: 2px;
}

.dfs-day-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    max-height: 34px;
}

.dfs-day-thumb-ph {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.dfs-day-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.85);
    border: none;
    color: #fff;
    font-size: 9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.dfs-day-scheduled:hover .dfs-day-remove {
    display: flex;
}

/* ---- Quick Video Picker Overlay ---- */
.dfs-quick-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfs-quick-picker-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.dfs-quick-picker-box h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #374151;
}
