/**
 * 静态搜索页（原 templates/static-search.php 内联样式）
 * @package Movie_Theme
 */

.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
}

.search-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.search-box-large {
    display: flex;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box;
}

.search-box-large input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
}

.search-box-large input:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
}

.search-box-large button {
    padding: 15px 30px;
    font-size: 1.1rem;
    background: #ff6b9d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-box-large button:hover {
    background: #ff4f85;
}

@media (max-width: 480px) {
    .search-header {
        padding: 30px 15px;
        border-radius: 0;
        margin: 0 -20px 20px;
    }

    .search-header h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .search-box-large {
        flex-direction: column;
        padding: 0 10px;
    }

    .search-box-large input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
    }

    .search-box-large button {
        width: 100%;
        padding: 14px 20px;
    }
}

.search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.search-meta.is-hidden {
    display: none !important;
}

#search-count {
    color: #666;
    font-size: 0.95rem;
}

#search-query-display {
    font-weight: bold;
    color: #333;
}

.search-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.search-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: mta-search-spin 1s linear infinite;
}

@keyframes mta-search-spin {
    to { transform: rotate(360deg); }
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.search-no-results::before {
    content: '🔍';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

.search-error {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.search-result-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-result-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-result-poster {
    aspect-ratio: 2/3;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.search-result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-poster .no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #999;
    font-size: 14px;
}

.search-result-score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.search-result-info {
    padding: 12px;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: #999;
}

.search-result-meta span {
    margin-right: 8px;
}

.hot-searches {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.hot-searches h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.hot-searches-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-tag {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.hot-tag:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 页脚（原 static-search.php 内联） */
.static-search-footer {
    text-align: center;
    color: #a8b0c3;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #2a2f3a;
}

.static-search-footer-links {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

.static-search-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin-right: 15px;
}
