






.sort-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: none;
}

.sort-select {
    min-width: 130px;
    padding: 10px 42px 10px 16px;
    border-radius: 6px;
    border: 1px solid #dfe1e4;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    appearance: none;
    position: relative;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.sort-select:focus {
    border-color: #ff6c0f;
    box-shadow: 0 0 0 3px rgba(255, 108, 15, 0.15);
}

/* 검색 섹션 */
/* 10/19 밤 2 대표: 정렬 + 결과 수 한 줄 — .main-content(최대 1920 · 가운데 · 안쪽 여백 30/20/15)와 같은 틀이라 격자 왼쪽 선에 맞는다 */
.search-section {
    background-color: #ffffff;
    padding: 0;
}

/* 검색 옵션 */
.search-options {
    max-width: 1920px;
    margin: 0 auto;
    padding: 15px 30px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.search-result-info {
    font-size: 15px;
    color: #656565;
}

.search-result-info strong {
    color: #ff6c0f;
    font-weight: 700;
}

/* 메인 콘텐츠 */
.main-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 30px;
}

/* 그리드 레이아웃 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 초기 상태 */
.search-initial,
.empty-state,
.error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #888;
}

.search-initial svg,
.empty-state svg {
    margin-bottom: 20px;
}

.search-initial p,
.empty-state p,
.error-state p {
    font-size: 18px;
    margin: 0;
    color: #656565;
}

.empty-state strong {
    color: #ff6c0f;
}

.empty-hint {
    margin-top: 10px;
    font-size: 14px;
    color: #999;
}

/* 로딩 */
.content-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #ff6c0f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 무한 스크롤 로딩 */
.content-loading-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.content-loading-more .spinner {
    width: 32px;
    height: 32px;
}

/* 카드 스타일 (creator_main과 동일) */
.content-card {
    background: #fff;
    padding: 8px 8px 0;
    box-shadow: 0 0 8px #00000033;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.content-card:hover {
    box-shadow: 0 0 10px #00000044;
}

.card-thumbnail {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 5px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 1px solid #ddd;
}

@supports not (aspect-ratio: 16 / 9) {
    .card-thumbnail {
        height: 0;
        padding-top: 56.25%;
    }
}

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

/* 가격 뱃지 (무료/유료 표시) */
.card-price-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    color: #fff;
}

.card-price-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.card-price-badge.free {
    background: #5dd69c;
}

.card-price-badge.paid {
    background: #6654ff;
}

/* 카드 썸네일 상단 액션 버튼 */
.card-actions-top {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.card-action-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
    box-shadow: none;
}

.card-action-btn svg {
    color: #656565;
    transition: all 0.3s ease;
}

.like-btn:hover svg {
    color: #ff1744;
    fill: #ff1744;
}

.like-btn.active svg {
    fill: #ff1744;
    color: #ff1744;
}

/* 카드 정보 */
.card-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-details {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 13px;
    color: #888;
}

/* 자막 행 (채널명 + 가격 가로 배치) */
.card-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 가격 텍스트 (검정색, 보더로 구분) */
.card-price-text {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 4px;
    padding: 2px 6px;
}

/* 유료 - 테두리 없음 */
.content-card[data-is-free="N"] .card-price-text {
    border: none;
}

/* 무료 - 테두리로 강조 */
.content-card[data-is-free="Y"] .card-price-text {
    border: 1.5px solid #888;
}

/* ========== 반응형 디자인 ========== */
@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }

    .main-content {
        padding: 20px;
    }

    .search-options {
        padding: 12px 20px 0;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }



    .search-options {
        padding: 10px 20px 0;
        gap: 12px;
    }

    .card-info {
        padding: 16px 0;
    }

    .card-action-btn {
        width: 32px;
        height: 32px;
    }

    .card-action-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }



    .main-content {
        padding: 15px;
    }

    .search-options {
        padding: 10px 15px 0;
    }

    .search-result-info {
        font-size: 13px;
    }

    .card-actions-top {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .card-action-btn {
        width: 30px;
        height: 30px;
    }

    .card-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .card-info {
        padding: 12px 0;
        gap: 10px;
    }

    .card-avatar {
        width: 34px;
        height: 34px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-subtitle {
        font-size: 12px;
    }

    .search-initial,
    .empty-state,
    .error-state {
        padding: 50px 15px;
    }

    .search-initial svg,
    .empty-state svg {
        width: 60px;
        height: 60px;
    }

    .search-initial p,
    .empty-state p,
    .error-state p {
        font-size: 15px;
    }

    .load-more-btn {
        padding: 12px 40px;
        font-size: 14px;
    }
}