@charset "UTF-8";

.notice-bar {
    background: linear-gradient(90deg, rgba(123, 237, 159, 0.1) 0%, rgba(85, 239, 196, 0.1) 100%);
    border-bottom: 1px solid rgba(123, 237, 159, 0.2);
    padding: 10px 0;
    overflow: hidden;
}

.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-icon {
    color: var(--highlight-green);
    font-size: 16px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    overflow: hidden;
}

.notice-text {
    display: inline-block;
    white-space: nowrap;
    animation: notice-scroll 15s linear infinite;
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes notice-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.carousel-section {
    padding: 15px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 200px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.carousel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.carousel-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 20px;
    border-radius: 4px;
    background: var(--highlight-green);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.category-section {
    padding: 20px 0;
}

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

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.category-tab.active {
    background: linear-gradient(135deg, #7bed9f 0%, #55efc4 100%);
    color: #1a1a2e;
}

.category-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.drama-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.drama-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drama-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.drama-cover {
    position: relative;
    width: 100%;
    padding-top: 140%;
}

.drama-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drama-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.drama-badge .tag {
    font-size: 11px;
    padding: 2px 8px;
}

.drama-info {
    padding: 12px;
}

.drama-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drama-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.drama-episodes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.drama-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 4px solid var(--highlight-green);
}

.trending-section,
.new-section {
    padding: 20px 0;
}

.trending-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.trending-list::-webkit-scrollbar {
    display: none;
}

.trending-item {
    flex-shrink: 0;
    width: 140px;
}

.trending-item .drama-card {
    width: 100%;
}

.trending-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.trending-rank.top3 {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: #1a1a2e;
}

.load-more {
    text-align: center;
    padding: 20px;
}

.load-more-btn {
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--highlight-green);
}

@media (min-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-title {
        font-size: 26px;
    }
    
    .carousel-desc {
        font-size: 15px;
    }
    
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trending-item {
        width: 180px;
    }
}

@media (min-width: 1024px) {
    .carousel-container {
        height: 350px;
    }
    
    .drama-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}