.bc-wrap {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    min-height: 100vh;
}
.bc-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.bc-fare-select {
    font-size: 16px; font-weight: 800; color: var(--logo);
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--ink); border-radius: 12px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333333' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    box-shadow: 4px 4px 0 var(--line);
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.bc-count { font-size: 13px; color: var(--mid); font-weight: 500; }
.bc-empty { text-align: center; padding: 100px 0; font-size: 15px; color: var(--mid); }

/* 행 */
.bc-row { display: flex; align-items: stretch; margin-bottom: 28px; }
.bc-row-label {
    width: 45px; flex-shrink: 0;
    font-size: 14px; font-weight: 900; letter-spacing: -0.5px;
    color: var(--white); background: var(--ink);
    border-radius: 10px 0 0 10px;
    display: flex; align-items: center; justify-content: center;
}
.bc-row-scroll {
    display: flex; gap: 14px; flex: 1;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
    background: var(--white); border: 1px solid var(--line); border-left: none;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: grab;
}
.bc-row-scroll::-webkit-scrollbar { display: none; }
.bc-row-scroll.dragging { cursor: grabbing; user-select: none; }

/* 카드 */
.bc-card {
    display: flex; flex-direction: column; align-items: flex-start;
    text-decoration: none; color: inherit;
    flex-shrink: 0; width: 120px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bc-card:hover { transform: translateY(-5px); }
.bc-thumb {
    width: 120px; height: 120px;
    border-radius: 10px; overflow: hidden;
    background: var(--gray2); box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
}
.bc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bc-thumb img.lazy { opacity: 0; transition: opacity 0.2s; }
.bc-thumb img.lazy.loaded { opacity: 1; }
.bc-thumb.skeleton {
    background: linear-gradient(90deg, var(--gray2) 25%, #e8e8e8 50%, var(--gray2) 75%);
    background-size: 200% 100%;
    animation: bc-skeleton 1.2s infinite;
}
@keyframes bc-skeleton {
    0%   { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}
.bc-booth-num-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 4px; width: 100%; margin-top: 10px;
}
.bc-booth-num {
    font-size: 11px; font-weight: 800; color: var(--ink);
    background: var(--blue-pale); padding: 2px 8px;
    border-radius: 4px; display: inline-block;
}
.bc-hit-count { font-size: 9px; color: var(--mid); white-space: nowrap; }
.bc-hit-count .fa { font-size: 8px; }
.bc-booth-name {
    font-size: 13px; font-weight: 600; color: var(--logo);
    margin-top: 4px; width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 요일 탭 */
.bc-day-tabs { display: flex; gap: 8px; margin-left: auto; }
.bc-day-tab {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; padding: 8px 20px;
    border-radius: 20px; border: 2px solid var(--line);
    background: var(--white); color: var(--mid);
    cursor: pointer; transition: all 0.15s;
}
.bc-day-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.bc-day-count { font-size: 11px; font-weight: 600; opacity: 0.75; }
.bc-day-short { display: none; }

/* 스펙 필터 */
.bc-spec-filter {
    display: flex; gap: 8px; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-bottom: 24px; padding-bottom: 4px;
}
.bc-spec-filter::-webkit-scrollbar { display: none; }
.bc-spec-btn {
    font-size: 13px; font-weight: 700; padding: 6px 16px;
    border-radius: 20px; border: 2px solid var(--line);
    background: var(--white); color: var(--mid);
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.bc-spec-btn.active { background: var(--ink3); color: var(--ink); border-color: var(--ink); }
.bc-spec-btn:hover:not(.active) { border-color: var(--ink); color: var(--ink); }

/* TOP10 */
/* .bc-top10-row .bc-row-label {
    width: auto;
    min-width: 45px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #ffd700;
    padding: 4px 10px;
    position: relative;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
    z-index: 1;
}
.bc-top10-row .bc-row-label::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
}
.bc-top10-row .bc-row-label span:first-child { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #aaa; }
.bc-top10-row .bc-row-label span:last-child  { font-size: 20px; font-weight: 800; text-shadow: 0 0 8px rgba(255,215,0,0.5); } */

.bc-top10-row .bc-row-label {
    width: auto;
    min-width: 44px;
    flex-shrink: 0;
    white-space: nowrap;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
    background: linear-gradient(160deg, #7a5c00, #c89a00, #ffe066, #c89a00, #7a5c00);
    background-size: 200% 200%;
    animation: bc-top10-shimmer 2.5s ease infinite;
    border: none;
    border-radius: 10px 0 0 10px;
    color: #a05c00 ;
    font-size: 13px;
    letter-spacing: 0;
    padding: 0 8px;
    position: relative;
}
.bc-top10-row .bc-row-label span:first-child { font-size: 11px; font-weight: 900; opacity: 0.9; }
.bc-top10-row .bc-row-label span:last-child  { font-size: 18px; font-weight: 900; }

@keyframes bc-top10-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.bc-top10-row .bc-row-scroll {
    border: 3px solid rgba(255,215,0,0.8);
    border-left: none;
    animation: bc-top10-glow 2.5s ease-in-out infinite;
}

/* @media (max-width: 640px) {
    .bc-top10-row .bc-row-label {
        width: 30px;
        min-width: 30px;
        padding: 0 4px;
        border-radius: 0;
    }
    .bc-top10-row .bc-row-label span:first-child { font-size: 8px; }
    .bc-top10-row .bc-row-label span:last-child  { font-size: 13px; }
    .bc-top10-row .bc-row-scroll {
        border-radius: 0;
        overflow-x: auto;
    }
} */

@media (max-width: 640px) {
    .bc-top10-row .bc-row-label {
        width: 36px;
        min-width: 36px;
        padding: 0 4px;
        border-radius: 0;
    }
    .bc-top10-row .bc-row-label span:first-child { font-size: 7px; letter-spacing: 0.5px; }
    .bc-top10-row .bc-row-label span:last-child  { font-size: 16px; }
}

/* 미배정 그리드 모드 */
.bc-unassigned-grid .bc-row { flex-direction: column; align-items: stretch; }
.bc-unassigned-grid .bc-row-label { width: 100%; height: 40px; border-radius: 10px 10px 0 0; flex-direction: row; gap: 6px; }
.bc-unassigned-grid .bc-row-scroll { flex-wrap: wrap; overflow-x: visible; border-left: 1px solid var(--line); border-radius: 0 0 10px 10px; justify-content: center; }
.bc-unassigned-grid .bc-card,
.bc-unassigned-grid .bc-thumb { width: 120px; height: 180px; }
.bc-unassigned-grid .bc-thumb { height: 120px; }

/* 반응형 */
@media (min-width: 961px)                  { .bc-row-scroll { gap: 24px; } }
@media (min-width: 641px) and (max-width: 960px) { .bc-row-scroll { gap: 22px; } }
@media (max-width: 960px) { .bc-wrap { padding-top: calc(15px + env(safe-area-inset-top)); } }

@media (max-width: 640px) {
    .bc-header { padding: 0 10px; margin-bottom: 12px; gap: 8px; flex-wrap: nowrap; align-items: center; }
    .bc-fare-select { font-size: 12px; padding: 8px 28px 8px 10px; border-radius: 8px; flex: 1; min-width: 0; }
    .bc-count { display: none; }
    .bc-day-tabs { margin-left: 0; flex-shrink: 0; gap: 6px; }
    .bc-day-tab { font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: 8px; gap: 0; }
    .bc-day-full { display: none; }
    .bc-day-short { display: inline; }
    .bc-day-count { display: none; }
    .bc-spec-filter { padding: 0 10px; margin-bottom: 16px; gap: 6px; }
    .bc-spec-btn { font-size: 12px; padding: 5px 12px; }
    .bc-row { padding: 0; margin-bottom: 16px; }
    .bc-row-label { width: 30px; font-size: 10px; border-radius: 0; }
    .bc-row-scroll { padding: 12px; gap: 18px; border-radius: 0; }
        .bc-top10-row .bc-row-label {
        width: 30px;
        min-width: 30px;
        padding: 0 4px;
        border-radius: 0;
        font-size: 10px;
    }
    .bc-top10-row .bc-row-label span:first-child { font-size: 8px; }
    .bc-top10-row .bc-row-label span:last-child  { font-size: 13px; }
    .bc-card, .bc-thumb { width: 100px; }
    .bc-thumb { height: 100px; }
    .bc-booth-num { font-size: 10px; }
    .bc-booth-name { font-size: 12px; }
    .bc-unassigned-wrap { margin-top: 0; }
    .bc-unassigned-label { padding: 0 10px; }
    .bc-unassigned-grid .bc-row-label { border-radius: 0; }
    .bc-unassigned-grid .bc-row-scroll { border-radius: 0; }
    .bc-unassigned-grid .bc-card { width: 100px; height: auto; }
.bc-unassigned-grid .bc-thumb { width: 100px; height: 100px; }
}