/* ===== 채널 리스트 페이지 스타일 ===== */

.channel-list-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0px;
}

/* 헤더 섹션 */
.channel-list-header {
    text-align: center;
    margin-bottom: 50px;
}

.channel-list-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.channel-list-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 채널 리스트 그리드 */
.channel-list-content {
    margin-top: 40px;
}

/* 필터 버튼 */
.channel-filter-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 24px;
}

.filter-btn:first-child {
    border-radius: 24px;
}

.filter-btn:last-child {
    border-radius: 24px;
}

.filter-btn:hover {
    border-color: #7800FF;
    color: #7800FF;
}

.filter-btn.active {
    background: #7800FF;
    color: white;
    border-color: #7800FF;
}

.channel-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* 특별 채널 - 세로 레이아웃 (기존) */
.channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.channel-item-store {
    display: flex;
    flex-direction: column;
}

/* 채널 리스트 항목 */
.channel-list-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ddd;
    height: 100%;
}

/* 채널 이미지 */
.channel-list-image {
    position: relative;
    width: 100%;
    aspect-ratio: 557 / 784;
    overflow: hidden;
    background: #f5f5f5;
}

.channel-list-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 채널 상태 배지 */
.channel-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.channel-status.active {
    background: #7800FF;
}

.channel-status.upcoming {
    background: #3b82f6;
}

.channel-status.ended {
    background: #999;
}

/* 할인율 배지 */
.channel-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

/* 채널 정보 */
.channel-list-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.channel-list-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.channel-list-info p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    /* margin: 0 0 15px 0; */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 채널 키워드 */
.channel-list-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    /* margin-top: auto; */
}

.keyword-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* 채널이 없는 경우 */
.no-channel {
    padding: 80px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-channel p {
    font-size: 16px;
    color: #999;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .channel-list-container {
        padding: 20px 15px;
    }

    .channel-list-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .channel-list-header p {
        font-size: 14px;
    }

    .channel-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .channel-list-info {
        padding: 15px;
    }

    .channel-list-info h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .channel-list-info p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .channel-list-date {
        padding-top: 10px;
    }

    .channel-list-date span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .channel-list-container {
        padding: 15px 10px;
    }

    .channel-list-header h1 {
        font-size: 20px;
    }

    .channel-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .channel-list-info {
        padding: 12px;
    }

    .channel-list-info h3 {
        font-size: 13px;
    }

    .channel-list-info p {
        font-size: 11px;
    }
}
