* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 10px;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff4757;
    text-decoration: none;
}

.logo:hover {
    color: #ff6b81;
}

.main {
    flex: 1;
}

.category-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #ff4757;
    position: relative;
    padding-left: 10px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #ff4757;
    border-radius: 2px;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-item {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
}

.category-item:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.2);
}

.category-item.active {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
}

.loading-categories {
    padding: 20px;
    text-align: center;
    color: #999;
    width: 100%;
}

@media (max-width: 768px) {
    .category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .category-item {
        padding: 6px 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .category-item {
        padding: 5px 0;
        font-size: 16px;
    }
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    width: 300px;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #ff4757;
    outline: none;
}

.search-box button {
    padding: 10px 25px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
}

.search-box button:hover {
    background: #ff6b81;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .logo {
        align-self: flex-start;
    }
    
    .search-box {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .search-box input {
        width: 100%;
        flex: 1;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 30px;
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
    }
    
    .search-box input:focus {
        background: white;
        border-color: #ff4757;
        box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
    }
    
    .search-box button {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 30px;
        background: #ff4757;
        color: white;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .search-box button:active {
        background: #ff6b81;
        transform: scale(0.96);
    }
}

@media (max-width: 576px) {
    .search-box {
        gap: 6px;
    }
    
    .search-box input {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .search-box button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .search-box button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

.search-status {
    margin: 0 0;
    padding: 6px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.search-keyword {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 6px;
    border-radius: 20px;
    margin: 0 5px;
    display: inline-block;
}

.clear-search-link {
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clear-search-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .search-status {
        padding: 4px 6px;
        gap: 8px;
    }
    
    .clear-search-link {
        padding: 4px 6px;
        font-size: 13px;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.video-cover {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: #f0f0f0;
    overflow: hidden;
}

.video-cover img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-cover img {
    transform: translate(-50%, -50%) scale(1.05);
}

.video-cover.no-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-cover.no-cover::after {
    content: "🎬";
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.video-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin-bottom: 6px;
}

.video-views {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

@media (max-width: 1440px) {
    .video-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .search-box input {
        width: 100%;
    }
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .video-views {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .video-info {
        padding: 10px;
    }
    
    .video-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
        height: auto;
        min-height: 32px;
    }
    
    .video-views {
        font-size: 10px;
    }
}

@media (max-width: 375px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .video-info {
        padding: 8px;
    }
    
    .video-title {
        font-size: 11px;
        margin-bottom: 4px;
    }
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #999;
    background: white;
    border-radius: 8px;
    font-size: 16px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.banner-ad {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.banner-ad img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #999;
    font-size: 14px;
}

.ad-link {
    display: block;
    margin-bottom: 0;
    text-decoration: none;
    line-height: 0;
}

.ad-link img {
    max-width: 100%;
    height: auto;
}

.video-player {
    width: 100%;
    background: black;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

video {
    width: 100%;
    display: block;
}

.video-info {
    background: white;
    border-radius: 8px;
}

.video-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.video-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.video-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.admin-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-tabs {
    background: white;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
}

.tab-btn {
    padding: 15px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.tab-btn.active {
    color: #ff4757;
    border-bottom-color: #ff4757;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.admin-toolbar {
    margin-bottom: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: white;
}
.data-table {
    width: max-content;
    min-width: 100%;
    background: white;
    border-collapse: collapse;
    table-layout: auto;
    white-space: nowrap;
}
.data-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    color: #333;
    font-size: 14px;
}
.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
        }
.data-table tr:hover {
    background: #f8f9fa;
}

.btn-primary {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: #ff6b81;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-edit {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-default {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #ff4757;
    outline: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #999;
    background: white;
    border-radius: 8px;
}

.video-player {
    position: relative;
}

.video-custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 20;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    border: 2px solid white;
}

.video-custom-play-btn:hover {
    background: #ff6b81;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.video-custom-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

@media (max-width: 768px) {
    .video-custom-play-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .video-custom-play-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.bottom-ad {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.bottom-ad img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .bottom-ad {
        height: auto;
        margin: 20px 0;
    }
    
    .bottom-ad img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 576px) {
    .bottom-ad {
        height: auto;
        margin: 15px 0;
    }
    
    .bottom-ad img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

.keyword-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
    color: #ff4757;
}

.keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.keyword-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.keyword-title::before {
    content: "🔥";
    font-size: 22px;
}

.keyword-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    flex: 0 1 auto;
    min-width: 100px;
}

.keyword-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.keyword-section.green-theme {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.2);
}

.keyword-section.red-theme {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.2);
}

.keyword-section.purple-theme {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    box-shadow: 0 10px 25px rgba(142, 45, 226, 0.2);
}

.keyword-section.orange-theme {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    box-shadow: 0 10px 25px rgba(247, 151, 30, 0.2);
}

@media (max-width: 768px) {
    .keyword-section {
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    
    .keyword-title {
        font-size: 16px;
    }
    
    .keyword-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .keyword-item {
        padding: 8px 10px;
        font-size: 16px;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .keyword-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .keyword-item {
        padding: 6px 8px;
        font-size: 16px;
    }
}

@keyframes keywordPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.keyword-item.highlight {
    animation: keywordPulse 0.5s ease;
    background: rgba(255, 255, 255, 0.35);
    border-color: white;
}

.notice-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}
.notice-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}
.notice-btn:active {
    transform: scale(0.98);
}

.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.notice-content {
    background: white;
    max-width: 480px;
    width: 90%;
    border-radius: 24px;
    padding: 28px 30px;
    box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.notice-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ff4757;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.notice-content h3:before {
    font-size: 28px;
}

.notice-body {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 20px 0 25px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    word-break: break-word;
}

.notice-footer {
    display: flex;
    justify-content: center;
}

.notice-btn-ok {
    background: #ff4757;
    color: white;
    border: none;
    padding: 12px 36px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 6px 14px rgba(255, 71, 87, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.notice-btn-ok:hover {
    background: #ff6b81;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(255, 71, 87, 0.4);
}

.notice-btn-ok:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(255, 71, 87, 0.4);
}

/* ============ 黑暗模式 ============ */
:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #e9ecef;
    --header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-color: rgba(0,0,0,0.1);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --hover-bg: #f8f9fa;
}

.dark-mode {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --header-bg: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    --shadow-color: rgba(0,0,0,0.3);
    --input-bg: #3d3d3d;
    --input-border: #505050;
    --hover-bg: #3d3d3d;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.header {
    background: var(--header-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

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

.search-box input {
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-color);
}

.search-box input:focus {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

.search-box button {
    background: #ff4757;
    color: white;
    border: none;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.video-card, .category-section, .keyword-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-color);
    background: var(--hover-bg);
}

.video-title {
    color: var(--text-color);
}

.video-views {
    color: var(--text-secondary);
}

.category-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.category-item:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}

.keyword-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.keyword-item:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}

.keyword-item.active {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}

.notice-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.notice-btn:hover {
    background: #ff4757;
    color: white;
}

.notice-modal .notice-content {
    background: var(--card-bg);
    color: var(--text-color);
}

.notice-modal .notice-body {
    color: var(--text-color);
}

.notice-btn-ok {
    background: #ff4757;
    color: white;
}

.notice-btn-ok:hover {
    background: #ff6b81;
}

.video-player {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 20px;
}

.video-info {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.back-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: #ff4757;
    color: white;
}

.pagination button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.pagination button:hover:not(:disabled) {
    background: #ff4757;
    color: white;
}

.pagination button.active {
    background: #ff4757;
    color: white;
}

.ad-placeholder {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
}

.loading, .no-data {
    color: var(--text-secondary);
    background: var(--card-bg);
}

.theme-switch {
    display: flex;
    align-items: center;
    margin-left: 15px;
    cursor: pointer;
}

.theme-switch button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.theme-switch button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.theme-switch button i {
    font-size: 16px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .theme-switch {
        margin-left: 0;
        justify-content: center;
    }
    
    .theme-switch button {
        width: 100%;
        justify-content: center;
    }
}

.theme-switch {
    display: flex;
    align-items: center;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-switch button {
    background: #333333;
    border: 1px solid #444444;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.theme-switch button:hover {
    background: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.theme-switch button i {
    font-size: 16px;
}

.dark-mode .theme-switch button {
    background: #222222;
    border: 1px solid #444444;
    color: #ffffff;
}

.dark-mode .theme-switch button:hover {
    background: #444444;
    border-color: #666666;
    color: white;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}