/**
 * FilmDad 视频提交页面样式
 * 版本: v1.0
 * 匹配现有电影网站风格
 */

/* 视频提交容器 */
.filmdad-video-submission {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.submission-header {
    text-align: center;
    margin-bottom: 3rem;
}

.submission-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.submission-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

/* 表单样式 */
.movie-submission-form {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

/* 表单组 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #3498db;
    background: #f8fafc;
}

/* 视频类型选择器 */
.video-type-selector {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.video-type-option {
    flex: 1;
    text-align: center;
}

.video-type-option input[type="radio"] {
    display: none;
}

.video-type-option .radio-label {
    display: block;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-weight: 500;
}

.video-type-option input[type="radio"]:checked + .radio-label {
    border-color: #3498db;
    background: #3498db;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.video-type-option .radio-label:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

/* 视频类型区域 */
.video-type-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* 电影搜索 */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.movie-result {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.2s ease;
}

.movie-result:hover {
    background: #f8f9fa;
}

.movie-result:last-child {
    border-bottom: none;
}

.movie-poster {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-poster.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.movie-info h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.movie-year {
    color: #7f8c8d;
    font-size: 0.875rem;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #7f8c8d;
}

/* 已选电影 */
.selected-movie {
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.selected-movie-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.selected-movie-card .movie-poster {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.selected-movie-card .movie-info {
    flex: 1;
}

.selected-movie-card .movie-title {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.selected-movie-card .movie-year {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.remove-movie {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.remove-movie:hover {
    background: #c0392b;
}

/* 视频预览 */
.video-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.video-preview h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 平台信息 */
.platforms-info {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.platforms-info h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.platform-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.platform-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

/* 表单操作 */
.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 提交消息 */
.submission-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.submission-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.submission-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filmdad-video-submission {
        padding: 1rem 0.5rem;
    }
    
    .movie-submission-form {
        padding: 1.5rem;
    }
    
    .submission-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-type-selector {
        flex-direction: column;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selected-movie-card {
        flex-direction: column;
        text-align: center;
    }
    
    .selected-movie-card .movie-poster {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .movie-submission-form {
        padding: 1rem;
    }
    
    .form-section {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .submit-btn {
        width: 100%;
        min-width: auto;
    }
}

/* 描述文本 */
.description {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    line-height: 1.4;
}
