/* 短剧网站前台样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.banner-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-text p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 短剧区域样式 */
.drama-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #667eea;
}

.more-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.drama-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drama-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.drama-poster {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.drama-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.drama-card:hover .drama-poster img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    opacity: 0;
    transition: all 0.3s ease;
}

.drama-card:hover .play-btn {
    opacity: 1;
}

.price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.drama-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
}

.drama-desc {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.free-tag, .paid-tag {
    display: inline-block;
    margin: 1rem;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.free-tag {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.paid-tag {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #333;
}

/* 底部样式 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 支付弹窗样式 */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.payment-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-btn:hover,
.payment-btn.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-btn img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.confirm-payment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.confirm-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .banner {
        height: 200px;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    .drama-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .drama-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
}

/* ========== 合集相关样式 ========== */

/* 合集徽章 */
.series-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* 合集详情页面 */
.series-detail {
    padding: 2rem 0;
}

.series-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.series-poster {
    flex-shrink: 0;
    width: 300px;
}

.series-poster img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.series-meta {
    flex: 1;
}

.series-meta h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.series-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.series-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.episode-count,
.series-type,
.series-price {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.episode-count {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.series-type {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #333;
}

.series-price {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.buy-series-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-series-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 分集列表 */
.episodes-section {
    margin-top: 3rem;
}

.episodes-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    position: relative;
}

.episodes-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

.episode-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.episode-card:hover {
    transform: none;
}

.episode-poster {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.episode-card:hover .episode-poster img {
    transform: scale(1.05);
}

.episode-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.episode-number-simple {
    width: 60px;
    height: 60px;
    background: #007bff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.episode-number-simple:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.episode-card.current .episode-number-simple {
    background: #28a745;
    border: 2px solid #20c997;
}

.episode-card.current .episode-number-simple:hover {
    background: #218838;
}

.episode-card .play-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.episode-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.3;
}

.episode-desc {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem 1rem;
}

.duration {
    color: #999;
    font-size: 0.8rem;
}

.episode-price {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.included-tag {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 合集详情页面响应式 */
@media (max-width: 768px) {
    .series-info {
        flex-direction: column;
        text-align: center;
    }
    
    .series-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .series-meta h1 {
        font-size: 2rem;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .series-info {
        padding: 1rem;
    }
    
    .series-meta h1 {
        font-size: 1.5rem;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.8rem;
    }
    
    .episode-number-simple {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .series-stats {
        justify-content: center;
    }
}

/* 搜索切换按钮 */
.search-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.search-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 用户名链接样式 */
.user-name {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
}

.user-name:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* 搜索和筛选样式 */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #667eea;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5px 0 0;
}

.search-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    transform: translateY(-50%) scale(1.05);
}

.filter-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    background: white;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #667eea;
}

.clear-btn {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.close-search-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.close-search-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 搜索结果样式 */
.search-results {
    padding: 2rem 0;
    min-height: 400px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-info {
    display: flex;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.search-info span {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

/* 加载和空状态样式 */
.loading {
    text-align: center;
    padding: 3rem 0;
    color: #6c757d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: #6c757d;
}

.empty-state button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.empty-state button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    background: white;
    color: #6c757d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination button:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 搜索结果分页样式 */
#searchPagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#searchPagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#searchPagination button:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

#searchPagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

#searchPagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#searchPagination span {
    color: #666;
    font-size: 0.9rem;
}

/* 返回按钮样式 */
.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* Header左侧布局 */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 播放器头部样式 */
.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.player-title {
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
    margin-right: 120px; /* 平衡返回按钮的宽度 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-toggle-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .user-name {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .search-box {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 16px;
        border-radius: 25px;
    }
    
    .search-btn {
        width: 35px;
        height: 35px;
        right: 5px;
        font-size: 14px;
    }
    
    .filter-box {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-select {
        width: 100%;
        margin-left: 0;
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 25px;
        border: 2px solid #e1e5e9;
        background: white;
    }
    
    .clear-btn,
    .close-search-btn {
        width: 100%;
        margin-left: 0;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 25px;
        margin-top: 5px;
    }
    
    .close-search-btn {
        background: #dc3545;
        border: none;
        color: white;
    }
    
    .close-search-btn:hover {
        background: #c82333;
    }
    
    .search-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-filters > div {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-filters input,
    .search-filters select,
    .search-filters button {
        width: 100%;
    }
    
    #searchGrid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    #searchPagination {
        gap: 0.25rem;
    }
    
    #searchPagination button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .header-left {
        gap: 0.5rem;
    }
    
    .back-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .player-header {
        padding: 0.8rem 1rem;
    }
    
    .player-title {
        font-size: 1rem;
        margin-right: 80px;
    }
}

@media (max-width: 480px) {
    .filter-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-select,
    .clear-btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav {
        justify-content: center;
        text-align: center;
    }
    
    .nav a, .search-toggle-btn, .user-name {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .search-filters {
        padding: 10px;
        gap: 10px;
    }
    
    .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 30px;
        height: 30px;
        right: 5px;
        font-size: 12px;
    }
    
    .filter-select,
    .clear-btn,
    .close-search-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .filter-box {
        gap: 8px;
    }
}