/* ✅ 배경은 반드시 contents_wrap에만 */
.contents_wrap {
    background: radial-gradient(900px 520px at 18% -10%, rgba(124,92,255,.22), transparent 60%), radial-gradient(780px 520px at 92% 4%, rgba(37,214,255,.14), transparent 55%), radial-gradient(900px 680px at 50% 120%, rgba(77,255,181,.08), transparent 60%), linear-gradient(180deg, rgba(9,12,20,.90), rgba(7,10,18,.96)), #070A12;
    padding: 26px 0 40px;
    min-height: 70vh;
}

    /* ✅ 도감 전체 폭: "1400px 고정 느낌" + 화면 작으면 자동 축소 */
    .contents_wrap .tfd-wrap {
        width: 1400px;
        max-width: calc(100vw - 36px);
        margin: 0 auto;
        padding: 0 18px;
    }

    .contents_wrap .tfd-title {
        color: #e9f0ff;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -0.2px;
        margin: 0 0 14px;
        text-align: center;
    }

    .contents_wrap .tfd-panel {
        background: linear-gradient(180deg, rgba(18,27,45,.70), rgba(10,16,30,.72));
        border: 1px solid rgba(120,170,255,.18);
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,.28);
    }

    /* 필터 간결 */
    .contents_wrap .tfd-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        margin-bottom: 14px;
    }

    .contents_wrap .tfd-input,
    .contents_wrap .tfd-select {
        background: rgba(7,12,23,.65);
        border: 1px solid rgba(120,170,255,.22);
        color: #eaf1ff;
        border-radius: 12px;
        padding: 10px 12px;
        outline: none;
        height: 42px;
    }

    .contents_wrap .tfd-input {
        flex: 1 1 360px;
        min-width: 260px;
    }

    .contents_wrap .tfd-select {
        min-width: 150px;
    }

    .contents_wrap .tfd-badge {
        margin-left: auto;
        font-size: 12px;
        color: rgba(220,235,255,.90);
        padding: 8px 12px;
        border: 1px solid rgba(120,170,255,.18);
        border-radius: 999px;
        background: rgba(4,10,20,.45);
        font-weight: 800;
    }

    /* 7열 그리드 */
    .contents_wrap .tfd-grid {
        display: grid;
        grid-template-columns: repeat(7,minmax(0,1fr));
        gap: 12px;
    }

@media(max-width:1400px) {
    .contents_wrap .tfd-grid {
        grid-template-columns: repeat(6,minmax(0,1fr));
    }
}

@media(max-width:1200px) {
    .contents_wrap .tfd-grid {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }
}

@media(max-width:980px) {
    .contents_wrap .tfd-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

@media(max-width:720px) {
    .contents_wrap .tfd-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .contents_wrap .tfd-input {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media(max-width:520px) {
    .contents_wrap .tfd-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

.contents_wrap .tfd-card {
    display: block;
    text-decoration: none;
    background: rgba(10,16,30,.35);
    border: 1px solid rgba(120,170,255,.14);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

    .contents_wrap .tfd-card:hover {
        transform: translateY(-2px);
        border-color: rgba(120,170,255,.30);
        box-shadow: 0 14px 26px rgba(0,0,0,.35);
    }

/* ✅ 인게임 카드 느낌 */
.contents_wrap .tfd-card-imgbox {
    position: relative;
    aspect-ratio: 3 / 4;
    background: radial-gradient(120% 120% at 50% 10%, rgba(120,170,255,.10), rgba(0,0,0,0));
}

.contents_wrap .tfd-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}

/* ✅ 소켓 용량 숫자: "우상단 아이콘 옆"으로 이동 */
.contents_wrap .tfd-cap {
    position: absolute;
    top: 7%;
    left: 57%;
    transform: translate(-50%, -50%);
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    background: rgb(0 0 0 / 5%);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(0,0,0,.65);
    pointer-events: none;
    z-index: 3;
}
/* ===============================
   공통 드롭다운 (소켓 스타일 통일)
================================ */

.tfd-dropdown {
    position: relative;
    min-width: 160px;
}

.tfd-dropdown-btn {
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg,#1b263a,#0f1828);
    border: 1px solid rgba(120,170,255,.25);
    border-radius: 10px;
    color: #eaf1ff;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

    .tfd-dropdown-btn:hover {
        border-color: rgba(120,170,255,.45);
    }

    .tfd-dropdown-btn .label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
    }

    .tfd-dropdown-btn .arrow {
        width: 10px;
        height: 10px;
        border-right: 2px solid #9fb8ff;
        border-bottom: 2px solid #9fb8ff;
        transform: rotate(45deg);
    }

/* 메뉴 */
.tfd-dropdown-menu {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg,#0c1424,#050b16);
    border: 1px solid rgba(120,170,255,.3);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.55);
    z-index: 50;
    display: none;
    padding: 6px;
}

.tfd-dropdown.open .tfd-dropdown-menu {
    display: block;
}

.tfd-dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #eaf1ff;
    cursor: pointer;
}

    .tfd-dropdown-menu li:hover {
        background: rgba(120,170,255,.18);
    }

/* 아이콘 (소켓 / 슬롯 공용) */
.tfd-dropdown-menu img {
    width: 18px;
    height: 18px;
}

/* ✅ 모듈 이름 오버레이(중앙) */
.contents_wrap .tfd-name {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 56%;
    transform: translateY(-50%);
    text-align: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    line-height: 1.12;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 18px rgba(0,0,0,.55);
    pointer-events: none;
    padding: 0 4px;
    z-index: 4;
}

.contents_wrap .tfd-empty {
    padding: 26px 10px;
    color: rgba(220,235,255,.75);
    text-align: center;
}
/* ✅ RB 레이아웃이 좌/우로 밀어도 도감은 무조건 중앙에 고정 */
.contents_wrap .tfd-wrap {
    margin-left: auto !important;
    margin-right: auto !important;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}
.tfd-socket-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tfd-socket-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(120,170,255,.45));
}
