/* Channel Tabs */
.channel-tabs-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #fff;
    padding: 0 12px;
    border-bottom: 1px solid #eee;
    /* position: sticky; */
    /* top: 0; */
    z-index: 90;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.channel-tabs-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.channel-tab {
    display: inline-block;
    padding: 12px 16px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.channel-tab.active {
    color: #4a90e2;
    font-weight: 600;
}

.channel-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: #4a90e2;
    border-radius: 3px 3px 0 0;
}

/* Home Content */
#homeContentContainer {
    min-height: calc(100vh - 150px);
    background-color: #f5f5f5;
}

/* Banner Styles */
.banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    margin-bottom: 10px;
}

.focus-ad-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.focus-ad-slide-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
    height: 100%;
    align-items: center;
}

.focus-ad-item {
    flex: 0 0 33.333%;
    height: 240px;
    margin: 0 10px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    transform: scale(0.8);
}

.focus-ad-item.active {
    height: 300px;
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.focus-ad-item.prev,
.focus-ad-item.next {
    opacity: 0.8;
    transform: scale(0.9);
    z-index: 5;
}

.focus-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.focus-ad-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.focus-ad-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.focus-ad-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
    width: 20px;
    border-radius: 6px;
}

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

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

@media (max-width: 768px) {
    .focus-ad-carousel { height: 200px; }
    .focus-ad-item { height: 160px; margin: 0 5px; }
    .focus-ad-item.active { height: 200px; }
    .focus-ad-title { font-size: 16px; }
    .focus-ad-subtitle { font-size: 12px; }
    .carousel-control { width: 30px; height: 30px; font-size: 18px; }
}

@media (max-width: 480px) {
    .focus-ad-carousel { height: 180px; }
    .focus-ad-item { height: 140px; margin: 0 2px; }
    .focus-ad-item.active { height: 180px; }
    .focus-ad-info { padding: 15px 10px; }
}

/* Topic List Styles */
.topic-section {
    margin-bottom: 12px;
    background-color: #fff;
    padding: 16px;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.topic-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-left: 4px solid #4a90e2;
    padding-left: 10px;
}

.topic-more {
    font-size: 13px;
    color: #999;
}

.topic-vod-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-vod-item {
    flex: 0 0 calc(33.333% - 6.67px);
    background-color: transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.vod-cover {
    position: relative;
    width: 100%;
    padding-bottom: 140%;
    overflow: hidden;
    border-radius: 6px;
    background-color: #eee;
}

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

.vod-info {
    padding: 6px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vod-name {
    font-size: 13px;
    font-weight: normal;
    color: #333;
    margin: 0 0 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vod-score {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 1px 4px;
    background-color: rgba(255, 102, 0, 0.9);
    border-radius: 2px;
    color: #fff;
    font-size: 10px;
}

.vod-flags {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2px 4px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 10px;
    text-align: right;
}

.vod-watching-count {
    font-size: 10px;
    color: #999;
}

@media (min-width: 480px) {
    .topic-vod-item { flex: 0 0 calc(25% - 7.5px); }
}
@media (min-width: 768px) {
    .topic-vod-item { flex: 0 0 calc(20% - 8px); }
}
