/* Fonts */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Design Tokens (Dark Panel) === */
:root {
    --surface-base:    #0a0a0d;
    --surface-1:       #16161e;
    --surface-2:       #1a1a22;
    --surface-3:       #111118;
    --surface-4:       #1c1c26;
    --border-subtle:   rgba(255, 255, 255, 0.08);
    --border-default:  rgba(255, 255, 255, 0.15);
    --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md:       0 4px 16px rgba(0, 0, 0, 0.40);
    --shadow-lg:       0 8px 24px rgba(0, 0, 0, 0.55);
}

/* Blazor 에러 UI 숨김 */
#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Pretendard Variable', Pretendard, 'Segoe UI', Tahoma, sans-serif;
    background: #0a0a0d;
    color: #fff;
    min-height: 100vh;
}

/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── 배경 테마 ── */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* starfield */
.bg-starfield .star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: 0.15; transform: scale(0.7); }
    100% { opacity: 0.9;  transform: scale(1.3); }
}

.bg-starfield .meteor {
    position: absolute;
    width: 2px;
    height: 140px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.75) 100%);
    transform-origin: top center;
    transform: rotate(135deg);
    animation: meteor-fall linear infinite;
    opacity: 0;
}

.bg-starfield .meteor-1 { top: -5%;  left: 15%; animation-duration: 8s;  animation-delay: 0s;   }
.bg-starfield .meteor-2 { top: -10%; left: 40%; animation-duration: 10s; animation-delay: 3s;   }
.bg-starfield .meteor-3 { top:  0%;  left: 63%; animation-duration:  7s; animation-delay: 6s;   }
.bg-starfield .meteor-4 { top: -8%;  left: 78%; animation-duration:  9s; animation-delay: 1.5s; }
.bg-starfield .meteor-5 { top:  3%;  left: 90%; animation-duration: 11s; animation-delay: 4.5s; }

@keyframes meteor-fall {
    0%   { opacity: 0; transform: rotate(135deg) translateY(-50px);  }
    8%   { opacity: 1; }
    85%  { opacity: 0.6; }
    100% { opacity: 0; transform: rotate(135deg) translateY(600px); }
}

/* aurora */
.bg-aurora .aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.1;
    animation: aurora-float 12s ease-in-out infinite alternate;
}

.bg-aurora .aurora-1 { width: 600px; height: 600px; background: radial-gradient(circle, #4fa3f7, #5a35c8); top: -200px; left: -200px; }
.bg-aurora .aurora-2 { width: 500px; height: 500px; background: radial-gradient(circle, #7040cc, #3d72c8); bottom: -150px; right: -150px; animation-delay: -6s; }
.bg-aurora .aurora-3 { width: 350px; height: 350px; background: radial-gradient(circle, #3b8fe0, #4a48c8); top: 40%; left: 50%; animation-delay: -3s; }

@keyframes aurora-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.2); }
}

/* mist */
.bg-mist .mist-layer {
    position: absolute;
    width: 150%;
    height: 40%;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    animation: mist-drift ease-in-out infinite alternate;
}

.bg-mist .mist-1 { background: rgba(140, 160, 220, 0.12); top: 10%;  left: -20%; animation-duration: 14s; animation-delay:   0s; }
.bg-mist .mist-2 { background: rgba(100, 130, 200, 0.09); top: 35%;  left: -10%; animation-duration: 18s; animation-delay:  -5s; }
.bg-mist .mist-3 { background: rgba(160, 140, 230, 0.08); top: 55%;  left: -25%; animation-duration: 22s; animation-delay: -10s; }
.bg-mist .mist-4 { background: rgba(120, 150, 210, 0.10); top: 75%;  left: -15%; animation-duration: 16s; animation-delay:  -7s; }

@keyframes mist-drift {
    0%   { opacity: 0;    transform: translateX(0); }
    20%  { opacity: 1; }
    80%  { opacity: 0.7; }
    100% { opacity: 0;    transform: translateX(12%); }
}

/* rain */
.bg-rain .raindrop {
    position: absolute;
    top: -8%;
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom, transparent 0%, rgba(160, 200, 255, 0.55) 100%);
    animation: rain-fall linear infinite;
    pointer-events: none;
}

@keyframes rain-fall {
    0%   { transform: translateY(0);       opacity: 0;   }
    5%   { opacity: 0.8; }
    95%  { opacity: 0.5; }
    100% { transform: translateY(110vh);   opacity: 0;   }
}

/* floating dust */
.bg-floating-dust .star {
    position: absolute;
    background: rgba(180, 200, 255, 0.65);
    border-radius: 50%;
    animation: dust-float linear infinite;
    pointer-events: none;
}

@keyframes dust-float {
    0%   { transform: translateY(0);      opacity: 0;   }
    5%   { opacity: 0.7; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-100vh); opacity: 0;   }
}

/* 배경 테마 선택 UI */
.settings-theme-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.settings-theme-option {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.settings-theme-option input[type="radio"] { display: none; }

.settings-theme-option.active {
    border-color: rgba(74,144,217,0.5);
    background: rgba(74,144,217,0.12);
    color: #4fa3f7;
}

.settings-theme-option:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    color: #ccc;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #16161e;
    border-bottom: 1px solid rgba(79, 163, 247, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 102;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Rajdhani', 'Pretendard Variable', Pretendard, sans-serif;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #7eceff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(126, 206, 255, 0.35));
}

.btn-help {
    padding: 6px 12px;
    background: rgba(79, 163, 247, 0.08);
    border: 1px solid rgba(79, 163, 247, 0.35);
    color: #6aacef;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.25s ease;
}

.btn-help:hover {
    background: rgba(79, 163, 247, 0.25);
    color: #fff;
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 18px rgba(79, 163, 247, 0.5), 0 0 36px rgba(79, 163, 247, 0.18), inset 0 0 8px rgba(79, 163, 247, 0.1);
}

.header-user .btn-export {
    padding: 6px 12px;
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: #3cc878;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.25s ease;
}

.header-user .btn-export:hover {
    background: rgba(39, 174, 96, 0.25);
    color: #fff;
    border-color: rgba(39, 174, 96, 0.6);
    box-shadow: 0 0 18px rgba(39, 174, 96, 0.5), 0 0 36px rgba(39, 174, 96, 0.18), inset 0 0 8px rgba(39, 174, 96, 0.1);
}

.header-user .btn-export:focus,
.header-user .btn-export:focus-visible {
    outline: none;
    box-shadow: none;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user span {
    color: #bbb;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.btn-logout {
    padding: 6px 12px;
    background: rgba(255, 77, 77, 0.06);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff6b6b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
}

.btn-logout:hover {
    background: rgba(255, 77, 77, 0.22);
    color: #fff;
    border-color: rgba(255, 77, 77, 0.55);
    box-shadow: 0 0 18px rgba(255, 77, 77, 0.45), 0 0 36px rgba(255, 77, 77, 0.15), inset 0 0 8px rgba(255, 77, 77, 0.08);
}

.btn-settings {
    padding: 6px 12px;
    background: rgba(136, 136, 136, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #999;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 6px rgba(255, 255, 255, 0.05);
}

/* Settings Modal */
.settings-modal {
    max-width: 540px;
}

.settings-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.settings-tab {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-tab.active {
    background: rgba(79, 163, 247, 0.15);
    border-color: rgba(79, 163, 247, 0.4);
    color: #4fa3f7;
}

.settings-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
}

.settings-group {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.settings-group:last-child {
    border-bottom: none;
}

.settings-group-title {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.settings-row .settings-label {
    min-width: 120px;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 0;
}

.settings-row .settings-input {
    flex: 1;
    max-width: 200px;
}

.settings-save-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.settings-account-name {
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 600;
    flex: 1;
}

.btn-account-change {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-account-change:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-verify {
    padding: 4px 10px;
    background: rgba(79, 163, 247, 0.15);
    border: 1px solid rgba(79, 163, 247, 0.3);
    border-radius: 4px;
    color: #4fa3f7;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-verify:hover {
    background: rgba(79, 163, 247, 0.3);
}

.btn-check-dup {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-check-dup.available {
    border-color: rgba(80, 200, 120, 0.4);
    color: #50c878;
}

.settings-msg {
    font-size: 12px;
    padding: 4px 0 4px 128px;
}

.settings-msg.error {
    color: #ff6b6b;
}

.settings-msg.success {
    color: #50c878;
}

.settings-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
    margin-left: auto;
}

.settings-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    transition: background 0.2s, border-color 0.2s;
}

.toggle-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #888;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.settings-toggle-switch input:checked + .toggle-track {
    background: rgba(79, 163, 247, 0.35);
    border-color: rgba(79, 163, 247, 0.6);
}

.settings-toggle-switch input:checked + .toggle-track::after {
    transform: translateX(18px);
    background: rgba(79, 163, 247, 0.9);
}

.settings-input {
    flex: 1;
    padding: 8px 12px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-input:focus {
    outline: none;
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.btn-settings-save {
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.8);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-settings-save:hover {
    background: rgba(58, 142, 239, 0.85);
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.3);
}

/* Tab Bar */
.tab-bar {
    display: flex;
    align-items: flex-end;
    background: #0d0d12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 10px 0;
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    z-index: 101;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px 9px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    color: #999;
    cursor: pointer;
    font-size: 13px;
    margin: 0 1px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item .tab-team-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.tab-item:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: transparent;
}

.tab-item.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(79, 163, 247, 0.06) 0%, #16161e 40%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 2px solid #4fa3f7;
    border-bottom: 1px solid #16161e;
    margin-bottom: -1px;
    z-index: 2;
    box-shadow: 0 -2px 12px rgba(79, 163, 247, 0.25), inset 0 1px 0 rgba(79, 163, 247, 0.15);
}

/* 드래그 앤 드롭 스타일 */
.tab-item.dragging {
    opacity: 0.5;
    cursor: move;
}

.tab-item.drop-before,
.tab-item.drop-after {
    position: relative;
}

.tab-item.drop-before::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #4fa3f7;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(79, 163, 247, 0.8);
}

.tab-item.drop-after::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #4fa3f7;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(79, 163, 247, 0.8);
}

.tab-item .tab-close {
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.tab-item:hover .tab-close {
    opacity: 1;
}

.tab-add {
    padding: 7px 14px 9px;
    background: transparent;
    border: none;
    color: #6aacef;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.25s ease;
    border-radius: 6px 6px 0 0;
    align-self: flex-end;
}

.tab-add:hover {
    background: rgba(79, 163, 247, 0.15);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.tab-bar-spacer {
    flex-grow: 1;
}

.tab-bar .btn-export {
    padding: 6px 14px;
    margin-right: 10px;
    background: rgba(33, 115, 70, 0.35);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tab-bar .btn-export:hover {
    background: rgba(42, 144, 85, 0.45);
    border-color: rgba(39, 174, 96, 0.5);
    box-shadow: 0 0 12px rgba(39, 174, 96, 0.25), inset 0 0 8px rgba(39, 174, 96, 0.1);
}

/* Tab name editing */
.tab-name-input {
    background: #1a1a22;
    border: 1px solid rgba(79, 163, 247, 0.5);
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 6px;
    outline: none;
    width: 100px;
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

/* Tab Content */
.tab-content {
    flex: 1;
    padding: 13px 20px 20px 20px;
    margin-top: 82px;
}

.tab-content-fixed {
    flex: 1;
    padding: 13px 20px 20px 20px;
    margin-top: 82px;
    overflow: hidden;
}

/* Tab Actions */
.tab-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-add {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: #252540;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    color: #aaa;
    font-size: 13px;
    outline: none;
    box-shadow: none;
}

.btn-add:hover {
    background: #2a2a4a;
    color: #fff;
}

.btn-add:active {
    background: #1a1a30;
    transform: scale(0.97);
}

.btn-add:focus,
.btn-add:focus-visible {
    outline: none;
    box-shadow: none;
    background: #252540;
    border: 1px solid #3a3a5a;
    color: #aaa;
}

.btn-export {
    background: #2ecc71;
    color: #fff;
}

.btn-export:hover {
    background: #27ae60;
}

/* Add Item Bottom Button */
.add-item-bottom {
    display: flex;
    justify-content: center;
    padding: 15px 0 30px 0;
}

.btn-add-item {
    padding: 14px 80px;
    background: transparent;
    border: 2px dashed #3a3a5a;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-item:hover {
    border-color: #4fa3f7;
    color: #4fa3f7;
    background: rgba(79, 163, 247, 0.1);
}

.btn-add-item:active {
    transform: scale(0.98);
}

/* 카드형 새 매치 버튼 */
.add-item-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 200px;
    background: #16161e;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-item-card:hover {
    border-color: rgba(79, 163, 247, 0.6);
    background: rgba(79, 163, 247, 0.08);
    box-shadow: 0 0 24px rgba(79, 163, 247, 0.28), inset 0 0 12px rgba(79, 163, 247, 0.06);
}

.add-item-card .btn-add-item {
    padding: 18px 60px;
    border: none;
    background: transparent;
    font-size: 16px;
}

/* Ban Pick Items Wrapper - Flexbox Wrap 레이아웃 */
.banpick-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
    align-content: flex-start;
    margin-top: 30px;
}

/* Ban Pick Item */
.banpick-item {
    background: #16161e;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    max-width: 745px;
    transition: max-width 0.08s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* 게임 수에 따른 동적 컨테이너 너비 (최소 4게임 기준) */
.banpick-item.games-1,
.banpick-item.games-2 {
    width: 350px;
}

.banpick-item.games-3,
.banpick-item.games-4 {
    max-width: 560px;
}

.banpick-item.games-5 {
    max-width: 630px;
}

.banpick-item.games-6 {
    max-width: 742px;
}

.banpick-item-header {
    display: flex;
    flex-direction: column;
    padding: 5px 16px 8px;
    background: linear-gradient(90deg, #0d0d18 0%, #16161e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 5px;
}

/* 첫 번째 줄: 매치 이름 */
.header-row-1 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 게임 추가/제거 버튼 컨테이너 */
.game-controls-header {
    display: flex;
    gap: 6px;
}

/* 게임 추가/제거 버튼 */
.btn-game-square {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: rgba(42, 42, 74, 0.3);
    color: #888;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-game-square:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
}

.btn-game-square:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-game-square.btn-add {
    background: rgba(42, 42, 74, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: #888;
}

.btn-game-square.btn-add:hover:not(:disabled) {
    background: rgba(136, 136, 136, 0.25);
    color: #fff;
    box-shadow: 0 0 8px rgba(136, 136, 136, 0.15);
}

.btn-game-square.btn-add:active:not(:disabled) {
    transform: scale(0.95);
    background: rgba(102, 102, 102, 0.3);
    color: #fff;
}

.btn-game-square.btn-remove {
    background: rgba(42, 42, 74, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: #888;
}

.btn-game-square.btn-remove:hover:not(:disabled) {
    background: rgba(136, 136, 136, 0.25);
    border-color: rgba(136, 136, 136, 0.3);
    color: #fff;
    box-shadow: 0 0 8px rgba(136, 136, 136, 0.15);
}

.btn-game-square.btn-remove:active:not(:disabled) {
    transform: scale(0.95);
    background: rgba(102, 102, 102, 0.3);
    color: #fff;
}

/* 두 번째 줄: 라벨들 */
.header-row-2 {
    display: flex;
    align-items: center;
    margin-bottom: -6px;
}

.meta-labels {
    display: flex;
    gap: 6px;
}

.meta-label {
    font-size: 10px;
    color: #888;
    text-align: center;
    padding-left: 4px;
}

.meta-label.label-team {
    width: 60px;
    text-align: left;
}

.meta-label.label-date {
    width: 100px;
    text-align: left;
}

.meta-label.label-scrim {
    width: 56px;
    text-align: left;
}

.meta-label.label-version {
    width: 50px;
    text-align: left;
}

/* 세 번째 줄: 입력 필드들 + 버튼들 */
.header-row-3 {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.header-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 1~2경기일 때 버튼들 줄바꿈 */
.banpick-item.games-1 .header-buttons-wrapper,
.banpick-item.games-2 .header-buttons-wrapper {
    flex-basis: 100%;
}

.meta-inputs {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* 메타 입력 필드 기본 스타일 */
.meta-inputs input,
.meta-inputs select {
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    padding: 4px 6px;
    font-size: 11px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 28px;
}

.meta-inputs input:focus,
.meta-inputs select:focus {
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.meta-inputs .input-team {
    width: 60px;
}

.meta-inputs .input-team .team-input-wrapper {
    display: flex;
    align-items: center;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    padding-left: 4px;
    height: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.meta-inputs .input-team .team-input-wrapper:focus-within {
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.meta-inputs .input-team .team-input-wrapper input {
    border: none;
    background: transparent;
    padding-left: 2px;
    width: 100%;
    height: auto;
}

.meta-inputs .input-team .team-input-wrapper input:focus {
    border: none;
}

.meta-inputs .input-date {
    width: 100px;
}

.meta-inputs .input-date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.meta-inputs .input-scrim {
    width: 56px;
}

.meta-inputs .input-scrim .scrim-time-input {
    width: 100%;
    height: 28px;
}

.meta-inputs .input-version {
    width: 50px;
}

.meta-inputs .input-version .version-input {
    width: 100%;
    height: 28px;
}


.banpick-item-title {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    max-width: 582px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.banpick-item-title:hover {
    background: rgba(255, 255, 255, 0.1);
}

.name-edit-input {
    background: #1a1a2e;
    border: 1px solid #4fa3f7;
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    outline: none;
    width: 582px;
    max-width: 582px;
}

.banpick-item-info {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.info-field {
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-field label {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

.info-field input,
.info-field select {
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    color: #fff;
    padding: 3px 6px;
    font-size: 11px;
    outline: none;
    transition: border-color 0.2s;
}

.info-field input:focus,
.info-field select:focus {
    border-color: #4fa3f7;
}

.info-field input[type="text"] {
    width: 50px;
}

.info-field input[type="date"] {
    width: 105px;
}

.info-field select {
    width: 60px;
    cursor: pointer;
}

.info-field .team-input-wrapper {
    display: flex;
    align-items: center;
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    padding-left: 4px;
    transition: border-color 0.2s;
}

.info-field .team-input-wrapper:focus-within {
    border-color: #4fa3f7;
}

.info-field .team-input-wrapper input {
    border: none;
    background: transparent;
    padding-left: 2px;
    width: 45px;
}

.info-field .team-input-wrapper input:focus {
    border: none;
}

.team-icon-small {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 3px;
}

.info-field .scrim-time-input {
    width: 45px;
}

.info-field .version-input {
    width: 40px;
}

/* 메타 드롭다운 (밴픽 슬롯 드롭다운 스타일) */
.meta-dropdown-container {
    position: relative;
    display: inline-block;
}

.meta-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    z-index: 1000;
    max-height: 180px;
    overflow-y: auto;
    min-width: 100%;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.meta-dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 12px;
    white-space: nowrap;
    color: #ddd;
}

.meta-dropdown-item:hover {
    background: #2a2a4a;
    color: #fff;
}

.meta-dropdown-icon {
    width: 16px !important;
    height: 16px !important;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.banpick-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #3a3a5a;
    color: #fff;
}

.btn-icon.active {
    background: #4fa3f7;
    border-color: #4fa3f7;
    color: #fff;
}

.btn-icon.danger:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
}

/* Edit Mode Button */
.btn-edit-mode {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #888;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-edit-mode:hover {
    background: #888;
    color: #fff;
}

.btn-edit-mode.editable {
    background: transparent;
    border-color: #4fa3f7;
    color: #4fa3f7;
}

.btn-edit-mode.editable:hover {
    background: #4fa3f7;
    border-color: #4fa3f7;
    color: #fff;
}

/* Delete Button */
.btn-delete {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #d94a4a;
    border-radius: 4px;
    color: #d94a4a;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-delete i {
    transform: scale(1.18) translateY(0px);
    display: inline-block;
}

.btn-delete:hover {
    background: #d94a4a;
    color: #fff;
}


/* Ban Pick Grid */
.banpick-grid {
    display: flex;
    overflow-x: auto;
    padding: 10px 16px 0 16px;
    gap: 12px;
    justify-content: flex-start;
}

/* Side Label Column */
.side-labels {
    display: flex;
    flex-direction: column;
    min-width: 36px;
    flex-shrink: 0;
    gap: 2px;
    padding-top: 6px;
}

.side-label {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
}

.side-label.header-label {
    height: 20px;
    border: none;
}

.side-label.team-label {
    color: #aaa;
    background: rgba(150, 150, 150, 0.1);
}

.side-label.ban {
    color: #d98888;
    background: rgba(200, 80, 80, 0.18);
}

.side-label.pick {
    color: #7acc8a;
    background: rgba(80, 170, 95, 0.18);
}

.side-label.info-label {
    height: 28px;
    margin-top: 0;
    color: #888;
    background: rgba(42, 42, 58, 0.5);
    font-weight: bold;
}

/* Game Column */
.game-column {
    min-width: 100px;
    max-width: 100px;
    flex-shrink: 0;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-header {
    height: 26px;
    box-sizing: border-box;
    line-height: 1;
    padding: 3px;
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.9) 0%, rgba(28, 28, 40, 0.95) 100%);
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    color: #b0b8cc;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: default;
    transition: color 0.2s ease;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.game-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(79, 163, 247, 0.22);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.game-header:hover::after {
    opacity: 1;
}

.game-header:hover {
    color: #7eceff;
}

.game-header .game-header-memo-dot {
    position: absolute;
    top: 3px;
    right: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffd700;
    pointer-events: none;
}

/* Team Name Row */
.team-name-row {
    display: flex;
    height: 44px;
    gap: 2px;
}

.team-name-row > .team-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.team-name-row > .team-slot.blue-team {
    background: rgba(79, 163, 247, 0.15);
    border: 1px solid rgba(79, 163, 247, 0.25);
}

.team-name-row > .team-slot.red-team {
    background: rgba(217, 74, 74, 0.15);
    border: 1px solid rgba(217, 74, 74, 0.25);
}

.team-name-row > .team-slot:hover {
    filter: brightness(1.3);
}

.team-name-row > .team-slot.our-team {
    box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.3);
    border-bottom-color: rgba(255, 215, 0, 0.5);
}

.team-name-row > .team-slot .team-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
}

.team-name-row > .team-slot .team-name-text {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.team-name-row > .team-slot .team-placeholder {
    font-size: 11px;
    color: #666;
}

.banpick-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phase-row {
    display: flex;
    gap: 2px;
}

.phase-row.ban-row .team-slots {
    background: rgba(180, 80, 80, 0.06);
}

.phase-row.pick-row .team-slots {
    background: rgba(80, 160, 90, 0.06);
}

.team-slots {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}


/* Champion Slot */
.champion-slot {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.05s, box-shadow 0.05s;
    position: relative;
}

.champion-slot:not(:hover) {
    transition: border-color 0.15s, box-shadow 0.15s;
}

.champion-slot.ban {
    background: rgba(200, 80, 80, 0.18);
    border-color: rgba(200, 80, 80, 0.32);
}

.champion-slot.pick {
    background: rgba(80, 170, 95, 0.18);
    border-color: rgba(80, 170, 95, 0.32);
}

.champion-slot:hover {
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 14px rgba(79, 163, 247, 0.35), inset 0 0 6px rgba(79, 163, 247, 0.08);
}

.champion-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.champion-slot.dragging {
    opacity: 0.5;
}

.champion-slot.drag-over {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.champion-slot.multi-selected {
    outline: 2px solid #00bfff;
    outline-offset: -2px;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

.champion-slot.disabled.multi-selected {
    outline: none;
    box-shadow: none;
}

.champion-slot.copied {
    outline: none;
    box-shadow: none;
}

.champion-slot.copied::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 5px;
    background:
        repeating-linear-gradient(90deg,  #00bfff 0px, #00bfff 8px, transparent 8px, transparent 16px),
        repeating-linear-gradient(180deg, #00bfff 0px, #00bfff 8px, transparent 8px, transparent 16px),
        repeating-linear-gradient(90deg,  #00bfff 0px, #00bfff 8px, transparent 8px, transparent 16px),
        repeating-linear-gradient(180deg, #00bfff 0px, #00bfff 8px, transparent 8px, transparent 16px);
    background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px;
    background-position: 0 0, 100% 0, 0 100%, 0 0;
    background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
    animation: marchingAnts 0.6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes marchingAnts {
    0%   { background-position: 0 0,        100% 0,        100% 100%,              0 100%; }
    100% { background-position: 16px 0,     100% 16px,     calc(100% - 16px) 100%, 0 calc(100% - 16px); }
}

.champion-slot.disabled.copied {
    outline: none;
    box-shadow: none;
}

.champion-slot.disabled.copied::before {
    display: none;
}

.champion-slot.paste-flash {
    animation: pasteFlash 0.5s ease-out;
}

@keyframes pasteFlash {
    0%   { outline: 2px solid #00ff99; outline-offset: -2px; box-shadow: 0 0 12px rgba(0, 255, 153, 0.8); }
    50%  { outline: 2px solid #00ff99; outline-offset: -2px; box-shadow: 0 0 20px rgba(0, 255, 153, 0.9); }
    100% { outline: none; outline-offset: -2px; box-shadow: none; }
}

/* 피어리스 블록 - 이미 슬롯에 있는 챔피언이 피어리스 목록에 추가된 경우 */
.champion-slot.fearless-blocked {
    position: relative;
}

.champion-slot.fearless-blocked .champion-icon {
    border: 1.5px solid #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

.champion-slot.fearless-blocked::after {
    content: "!";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 13px;
    height: 13px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Champion Icon */
.champion-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
}

/* 밴된 챔피언도 컬러로 표시 (흑백 제거) */
.champion-icon.banned {
    /* 컬러 유지 */
}

/* Champion Name (text fallback) */
.champion-name {
    font-size: 9px;
    color: #aaa;
    text-align: center;
    word-break: break-all;
    padding: 2px;
}

/* Slot Input */
.slot-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 11px;
    outline: none;
    padding: 0 4px;
}

.slot-input::placeholder {
    color: #555;
}

/* Autocomplete */
.autocomplete-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    z-index: 1000;
    max-height: 180px;
    overflow-y: auto;
    min-width: 100px;
    width: max-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 11px;
    white-space: nowrap;
}

.autocomplete-item:hover {
    background: rgba(79, 163, 247, 0.15);
}

.autocomplete-item img {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Scrollbar - 탭 바 전용 */
.tab-bar {
    --sb-thumb-color: rgba(180, 180, 180, 0);
}

.tab-bar.is-scrolling,
.tab-bar:hover {
    --sb-thumb-color: rgba(180, 180, 180, 0.35);
}

.tab-bar::-webkit-scrollbar {
    height: 2px;
}

.tab-bar::-webkit-scrollbar-track {
    background: transparent;
}

.tab-bar::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 2px;
    transition: background 0.7s ease-out;
}

.tab-bar.is-scrolling::-webkit-scrollbar-thumb:hover,
.tab-bar:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 180, 180, 0.55);
    transition: background 0.1s;
}

/* Scrollbar - 웹사이트 메인 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Scrollbar - 티어리스트 뷰어 (숨김, 스크롤 유지) */
.tier-viewer-content::-webkit-scrollbar {
    display: none;
}

.tier-viewer-content {
    scrollbar-width: none;
}

/* Scrollbar - 챔피언 팔레트 (숨김, 스크롤 유지) */
.palette-grid::-webkit-scrollbar {
    display: none;
}

.palette-grid {
    scrollbar-width: none;
}

/* Scrollbar - 스크림 결과 카드 영역 (숨김, 스크롤 유지) */
.scrim-cards-container::-webkit-scrollbar {
    display: none;
}

.scrim-cards-container {
    scrollbar-width: none;
}

/* Scrollbar - 티어리스트 메인 (숨김, 스크롤 유지) */
.tier-list-main::-webkit-scrollbar {
    display: none;
}

.tier-list-main {
    scrollbar-width: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #888;
}

/* Help Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #4fa3f7;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.help-section {
    margin-bottom: 20px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #4fa3f7;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-section li {
    padding: 6px 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
}

.help-section li strong {
    color: #fff;
}

/* Confirm Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.confirm-modal {
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.confirm-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.confirm-modal-body {
    padding: 20px;
}

.confirm-modal-body p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.confirm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.confirm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-cancel {
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #aaa;
}

.confirm-btn-cancel:hover {
    background: rgba(58, 58, 90, 0.6);
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
}

.confirm-btn-ok {
    background: rgba(217, 74, 74, 0.8);
    color: #fff;
}

.confirm-btn-ok:hover {
    background: rgba(232, 90, 90, 0.85);
    box-shadow: 0 0 12px rgba(217, 74, 74, 0.3);
}

/* Info Row (1st Choice, Result) */
.info-row {
    display: flex;
    height: 28px;
    margin-top: 0;
}

.info-row .info-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.info-row .info-slot.blue-info {
    background: rgba(79, 163, 247, 0.15);
    border-color: rgba(79, 163, 247, 0.2);
}

.info-row .info-slot.red-info {
    background: rgba(217, 74, 74, 0.15);
    border-color: rgba(217, 74, 74, 0.2);
}

.info-row .info-slot:hover {
    filter: brightness(1.2);
}

.info-row .info-slot.first-pick.blue-info {
    background: rgba(79, 163, 247, 0.5);
    border-color: rgba(79, 163, 247, 0.6);
}

.info-row .info-slot.first-pick.red-info {
    background: rgba(217, 74, 74, 0.5);
    border-color: rgba(217, 74, 74, 0.6);
}

.info-row .info-slot.first-side {
    opacity: 0.7;
}

.info-row .choice-icon {
    font-size: 15px;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.info-row .choice-icon.blue-pick {
    color: #4fa3f7;
    text-shadow: 0 0 8px rgba(79, 163, 247, 0.8);
}

.info-row .choice-icon.red-pick {
    color: #f77a4f;
    text-shadow: 0 0 8px rgba(247, 122, 79, 0.8);
}

.info-row .choice-text {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.info-row .info-slot.winner.blue-info {
    background: rgba(79, 163, 247, 0.5);
    border-color: rgba(79, 163, 247, 0.6);
}

.info-row .info-slot.winner.red-info {
    background: rgba(217, 74, 74, 0.5);
    border-color: rgba(217, 74, 74, 0.6);
}

.info-row .result-text {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.info-row .result-text.win {
    color: #ffd700;
}

.info-row .result-text.lose {
    color: #888;
}

.info-row .info-slot.loser {
    opacity: 0.7;
}

/* 게임 시간 행 */
.info-row.duration-row {
    margin-top: 0;
}

.info-row.result-row {
    margin-top: 0;
}

.info-row.duration-row .info-slot.duration-slot {
    flex: 1;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.info-row.duration-row .info-slot.duration-slot:hover {
    background: rgba(255, 255, 255, 0.02);
}

.duration-input {
    width: 100%;
    height: 100%;
    background: rgba(180, 180, 190, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    color: #b0c4d8;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    outline: none;
    padding: 2px 4px;
    box-sizing: border-box;
}

.duration-input:focus {
    border-color: rgba(79, 163, 247, 0.5);
    background: rgba(79, 163, 247, 0.08);
}

.duration-input::placeholder {
    color: rgba(255, 255, 255, 0.18);
    font-weight: normal;
}

.duration-input:disabled {
    opacity: 0.5;
    cursor: default;
}

.duration-text {
    font-size: 12px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Trash Bin */
.trash-bin {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin-top: 8px;
    background: rgba(255, 77, 77, 0.1);
    border: 2px dashed rgba(255, 77, 77, 0.3);
    border-radius: 4px;
    color: #ff6b6b;
    font-size: 12px;
    transition: all 0.2s;
}

.trash-bin.drag-over {
    background: rgba(255, 77, 77, 0.3);
    border-color: #ff4d4d;
    color: #fff;
}

.side-label.trash-label {
    height: 44px;
    margin-top: 8px;
}

/* ========================================
   Tier List Styles
   ======================================== */

/* Tab Separator */
.tab-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1px;
    align-self: center;
}

.tab-item.tier-list-tab {
    color: #8ab4d4;
}

.tab-item.tier-list-tab:hover {
    color: #c0d8f0;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 163, 247, 0.2);
    border-bottom-color: transparent;
}

.tab-item.tier-list-tab.active {
    background: linear-gradient(180deg, rgba(79, 163, 247, 0.06) 0%, #16161e 40%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 2px solid #4fa3f7;
    border-bottom: 1px solid #16161e;
    margin-bottom: -1px;
    z-index: 2;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 -2px 12px rgba(79, 163, 247, 0.25), inset 0 1px 0 rgba(79, 163, 247, 0.15);
}

/* Tier List Editor */
.tier-list-editor {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 115px);
    overflow: hidden;
}

.tier-list-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tier-containers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-list-sidebar {
    width: 450px;
    flex-shrink: 0;
    padding-right: 15px;
}

/* Tier Container */
.tier-container {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 10px 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tier-container.drag-over {
    border-color: rgba(79, 163, 247, 0.4);
}

.tier-container-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(79, 163, 247, 0.18) 0%, rgba(40, 80, 140, 0.12) 100%);
    border: 1px solid rgba(79, 163, 247, 0.25);
    border-left: 2px solid rgba(79, 163, 247, 0.6);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(79, 163, 247, 0.06);
}

.tier-title {
    font-size: 12px;
    font-weight: 600;
    color: #b0d0f0;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    text-shadow: 0 0 10px rgba(79, 163, 247, 0.3);
    letter-spacing: 0.03em;
    white-space: nowrap;
    line-height: 1;
}

/* MudChip (tier-count) 기본값 리셋 */
.tier-container .mud-chip {
    margin: 0 !important;
    box-shadow: none !important;
}

.tier-slots-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, 44px);
    gap: 4px;
    min-height: 48px;
    max-width: 956px; /* 최대 20개 슬롯(44px) + 19개 gap(4px) */
}

/* Tier Slot */
.tier-slot {
    width: 44px;
    height: 44px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
    overflow: visible;
}

.tier-slot:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.06);
}

.tier-slot.drag-over {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4), inset 0 0 8px rgba(255, 215, 0, 0.08);
}

.tier-slot.dragging {
    opacity: 0.5;
}

.tier-slot.readonly {
    cursor: default;
}

/* 피어리스 블록 - 티어리스트의 챔피언이 피어리스 목록에 있는 경우 */
.tier-slot.fearless-blocked {
    position: relative;
}

.tier-slot.fearless-blocked .tier-champion-icon {
    border: 1.5px solid rgba(255, 68, 68, 0.8);
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.tier-slot.fearless-blocked::after {
    content: "!";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 13px;
    height: 13px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tier-slot.selected {
    outline: 3px solid rgba(0, 191, 255, 0.8);
    outline-offset: -3px;
    box-shadow: 0 0 14px rgba(0, 191, 255, 0.6), inset 0 0 16px rgba(0, 191, 255, 0.2);
    z-index: 10;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 100, 180, 0.25) 100%);
}

.tier-slot.selected .tier-champion-icon {
    filter: brightness(1.15);
}

.tier-slot.selected.fearless-blocked {
    outline: 3px solid rgba(0, 191, 255, 0.8);
    border-color: rgba(255, 68, 68, 0.8);
}

.tier-champion-icon {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    object-fit: cover;
}

.tier-champion-name {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    word-break: break-all;
}

.tier-slot-placeholder {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 14px;
    transition: all 0.2s;
}

.tier-slot-placeholder.drag-over {
    border-color: rgba(79, 163, 247, 0.6);
    background: rgba(79, 163, 247, 0.08);
    color: rgba(79, 163, 247, 0.8);
}

/* Tier Trash Zone */
.tier-trash-zone {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    background: rgba(255, 77, 77, 0.1);
    border: 2px dashed rgba(255, 77, 77, 0.3);
    border-radius: 6px;
    color: #ff6b6b;
    transition: all 0.2s;
}

.tier-trash-zone.drag-over {
    background: rgba(255, 77, 77, 0.25);
    border-color: rgba(255, 77, 77, 0.7);
    color: #fff;
    box-shadow: 0 0 16px rgba(255, 77, 77, 0.3), inset 0 0 12px rgba(255, 77, 77, 0.1);
}

.trash-icon {
    font-size: 16px;
    font-weight: 600;
}

.trash-hint {
    font-size: 12px;
    opacity: 0.7;
}

/* Champion Palette */
.champion-palette {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.palette-header {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.palette-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.palette-search {
    width: 100%;
    padding: 8px 12px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
}

.palette-search:focus {
    outline: none;
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.palette-search::placeholder {
    color: #666;
}

.palette-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(8, 48px);
    gap: 4px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    justify-content: center;
}

.palette-item {
    width: 44px;
    height: 44px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.15s;
}

.palette-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.06);
}

.palette-item.used {
    opacity: 0.3;
    cursor: not-allowed;
}

.palette-item img {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    object-fit: cover;
}

/* Tab Content - 티어 뷰어 공간 확보 */
.tab-content {
    padding-right: 598px;
    transition: padding-right 0.3s ease-in-out;
}

.tab-content.tier-collapsed {
    padding-right: 60px;
}

/* Tier List Viewer (Side Panel) - Fixed Position */
.tier-list-viewer {
    position: fixed;
    top: 110px;
    bottom: 12px;
    width: 598px;
    background: none;
    border: none;
    transition: right 0.3s ease-in-out;
    display: flex;
    z-index: 100;
}

.tier-list-viewer.collapsed {
    right: -574px;
}

.tier-list-viewer.expanded {
    right: 0;
}

/* 펼친 상태 - 전체 패널이 하나의 리퀴드 글래스 */
.tier-list-viewer.expanded {
    background: rgba(11, 13, 19, 0.88);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-right: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.45);
}

/* 이중 토글 버튼 그룹 */
.tier-viewer-toggle-group {
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* 토글 버튼 (공통) */
.tier-viewer-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #5a5a8a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0;
}

.tier-viewer-toggle-btn:first-child {
    border-radius: 8px 0 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tier-viewer-toggle-btn:last-child {
    border-radius: 0 0 0 8px;
}

.tier-viewer-toggle-btn .toggle-arrow {
    color: #5a5a7a;
    font-size: 12px;
    transition: color 0.2s;
}

.tier-viewer-toggle-btn span:not(.toggle-arrow) {
    color: #5a5a7a;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    font-size: 10px;
}

.tier-viewer-toggle-btn:hover .toggle-arrow {
    color: #9090b0;
}

/* 접은 상태 - 토글 그룹이 독립 리퀴드 글래스 패널 */
.tier-list-viewer.collapsed .tier-viewer-toggle-group {
    width: 40px;
    left: -16px;
    background: rgba(11, 13, 19, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.45);
}

.tier-list-viewer.collapsed .tier-viewer-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tier-list-viewer.collapsed .tier-viewer-toggle-btn:hover span:not(.toggle-arrow) {
    color: #9090b0;
}

/* 펼친 상태 - 버튼 기본: ㄷ자 테두리 (동쪽 제외) */
.tier-list-viewer.expanded .tier-viewer-toggle-btn {
    background: #0b0d13;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    border-right: none;
}

/* 펼친 상태 - 호버: 테두리만 밝아짐 */
.tier-list-viewer.expanded .tier-viewer-toggle-btn:hover {
    border-top-color: rgba(255, 255, 255, 0.35);
    border-bottom-color: rgba(255, 255, 255, 0.35);
    border-left-color: rgba(255, 255, 255, 0.35);
}

/* 메모 패널 */
.side-memo-panel {
    flex: 1;
    width: 574px;
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 9px 10px 6px 6px;
}

.side-memo-header {
    font-size: 14px;
    font-weight: 600;
    color: #c0c0e0;
    padding: 0 4px 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.side-memo-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    padding: 4px 4px 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.side-memo-editor-area {
    flex: 1;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    color: #d8d8f0;
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto;
    outline: none;
    word-break: break-word;
}

.side-memo-editor-area:focus {
    border-color: rgba(79, 163, 247, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* 콘텐츠 영역 - 글래스 없음, 부모가 담당 */
.tier-viewer-content {
    flex: 1;
    width: 574px;
    margin-left: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 9px 30px 6px 6px;
}

.tier-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tier-viewer-containers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier-viewer-container {
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 6px 10px 6px;
    width: fit-content;
}

.tier-viewer-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #b0d0f0;
    background: linear-gradient(135deg, rgba(79, 163, 247, 0.18) 0%, rgba(40, 80, 140, 0.12) 100%);
    padding: 3px 9px;
    margin-bottom: 6px;
    border: 1px solid rgba(79, 163, 247, 0.25);
    border-left: 2px solid rgba(79, 163, 247, 0.6);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(79, 163, 247, 0.06);
    text-shadow: 0 0 10px rgba(79, 163, 247, 0.3);
}

.tier-viewer-count {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    padding: 1px 6px;
    border-radius: 7px;
    line-height: 1.6;
}

.tier-viewer-slots {
    display: grid;
    grid-template-columns: repeat(13, 38px);
    gap: 3px;
}

.tier-viewer-slot {
    width: 38px;
    height: 38px;
    background: #16161e;
    border-radius: 3px;
    overflow: visible;
    position: relative;
}

/* 드래그 가능한 챔피언 슬롯 스타일 */
.tier-viewer-slot.draggable-champion {
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tier-viewer-slot.draggable-champion:hover {
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5), inset 0 0 6px rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.6);
    z-index: 10;
}

.tier-viewer-slot.draggable-champion:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.tier-viewer-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* 피어리스 블록 - 티어리스트 뷰어의 챔피언이 피어리스 목록에 있는 경우 */
.tier-viewer-slot.fearless-blocked {
    position: relative;
}

.tier-viewer-slot.fearless-blocked img {
    border: 1.5px solid rgba(255, 68, 68, 0.8);
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.tier-viewer-slot.fearless-blocked::after {
    content: "!";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 13px;
    height: 13px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tier-viewer-empty {
    font-size: 12px;
    color: #666;
}

/* Tier Viewer Select (Team Dropdown) */
.tier-viewer-select {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tier-viewer-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.tier-select {
    min-width: 0;
    padding: 3px 6px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

.tier-select:focus {
    outline: none;
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 6px rgba(79, 163, 247, 0.2);
}

.tier-select option {
    background: #1a1a2e;
    color: #fff;
}

.tier-viewer-empty-state {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 13px;
}

.tier-viewer-empty-state p {
    margin: 4px 0;
}

/* Tier List Subtab Bar */
.tier-subtab-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tier-subtab {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 7px 4px 7px 11px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-subtab:hover {
    background: #202028;
    color: #fff;
}

.tier-subtab.active {
    background: #182438;
    border-color: rgba(74, 122, 154, 0.4);
    border-left: 3px solid rgba(79, 163, 247, 0.7);
    color: #fff;
}

.tier-subtab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 13px;
    line-height: 1;
    color: #888;
    border-radius: 3px;
    transition: all 0.2s;
}

.tier-subtab-close:hover {
    background: rgba(255, 77, 77, 0.25);
    color: #ff6b6b;
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.2);
}

.tier-subtab-close i {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.tier-subtab-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 1;
    color: #888;
    border-radius: 3px;
    transition: all 0.2s;
    margin-left: 2px;
    margin-right: -2px;
}

.tier-subtab-copy:hover {
    background: rgba(79, 163, 247, 0.25);
    color: #4fa3f7;
    box-shadow: 0 0 6px rgba(79, 163, 247, 0.2);
}

.tier-subtab-copy i {
    font-size: 11px;
    line-height: 1;
    display: inline-block;
}

.tier-subtab-input {
    width: 110px;
    padding: 5px 9px;
    background: #1a1a22;
    border: 1px solid rgba(79, 163, 247, 0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.tier-subtab-input:focus {
    outline: none;
}

.tier-subtab-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.tier-subtab-add {
    display: flex;
    align-items: center;
    padding: 7px 11px;
    background: rgba(37, 37, 64, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    box-shadow: none;
    white-space: nowrap;
}

.tier-subtab-add:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.15);
}

.tier-subtab-add:active {
    background: #1a1a22;
    transform: scale(0.97);
}

.tier-subtab-add:focus,
.tier-subtab-add:focus-visible {
    outline: none;
    box-shadow: none;
    background: rgba(37, 37, 64, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
}

/* Tier List Content Area */
.tier-list-content {
    display: flex;
    gap: 16px;
    padding: 6px 10px 12px 10px;
    flex: 1;
    overflow: hidden;
}

.tier-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #888;
    font-size: 14px;
}

/* ==================== Fearless Panel ==================== */
.fearless-panel {
    position: sticky;
    top: 110px;
    z-index: 98;
    margin-bottom: 16px;
    border-radius: 8px;
    max-width: 1270px;
}


/* 펼쳐진 상태에서 display 하단 둥글기 제거 */
.fearless-panel.expanded .fearless-display {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

/* 펼쳐진 상태에서 전체 패널 호버 효과 */
.fearless-panel.expanded:hover .fearless-display {
    border-color: rgba(79, 163, 247, 0.5);
    border-bottom-color: transparent;
}

.fearless-panel.expanded:hover .fearless-editor.open {
    border-color: rgba(79, 163, 247, 0.5);
}

/* 피어리스 목록 표시 컨테이너 */
.fearless-display {
    position: relative;
    z-index: 98;
    background: rgba(22, 22, 30, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 접힌 상태에서만 목록 호버 효과 */
.fearless-panel:not(.expanded) .fearless-display:hover {
    border-color: rgba(79, 163, 247, 0.5);
    box-shadow: 0 2px 12px rgba(79, 163, 247, 0.15);
}

.fearless-display.drag-over {
    border-color: rgba(255, 107, 107, 0.6);
    background: rgba(255, 107, 107, 0.1);
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.3);
}

.fearless-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fearless-display-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
}

.fearless-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    padding: 1px 7px;
    border-radius: 8px;
    line-height: 1.6;
}

.fearless-display-toggle {
    color: #888;
    font-size: 12px;
}

.fearless-display-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 40px;
    align-items: center;
}

.fearless-display-slot {
    width: 36px;
    height: 36px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.15s;
}

.fearless-display-slot.clickable {
    cursor: pointer;
}

.fearless-display-slot.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
    border: 1px solid rgba(255, 107, 107, 0.6);
}

.fearless-display-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fearless-empty-hint {
    color: #666;
    font-size: 12px;
}

/* 피어리스 편집 뷰어 */
.fearless-editor {
    position: relative;
    z-index: 98;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, border-color 0.2s;
    background: rgba(22, 22, 30, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
}

.fearless-editor.open {
    max-height: 600px;
    border-color: rgba(255, 255, 255, 0.15);
}

.fearless-editor-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 피어리스 목록 (편집 뷰어 내) */
.fearless-editor-list {
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px;
    min-height: 80px;
}

.fearless-editor-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #ff6b6b;
}

.btn-clear-fearless {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff6b6b;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-fearless:hover {
    background: rgba(255, 77, 77, 0.4);
}

.fearless-editor-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 50px;
}

.fearless-slot {
    width: 50px;
    height: 50px;
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.fearless-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fearless-slot-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #ff4d4d;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.fearless-slot:hover .fearless-slot-remove {
    opacity: 1;
}

.fearless-editor-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: #666;
    font-size: 12px;
}

/* 챔피언 목록 (피어리스 편집용) */
.fearless-champion-palette {
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.fearless-palette-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fearless-palette-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.fearless-palette-search {
    flex: 1;
    max-width: 200px;
    padding: 6px 10px;
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fearless-palette-search:focus {
    outline: none;
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.fearless-palette-search::placeholder {
    color: #666;
}

.fearless-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 4px;
    overflow-y: auto;
    flex: 1;
    padding: 6px;
    margin: -6px;
}

.fearless-palette-item {
    width: 44px;
    height: 44px;
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
}

.fearless-palette-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
    border-color: rgba(255, 107, 107, 0.6);
}

.fearless-palette-item.selected {
    position: relative;
    border-color: #ff4444;
}

.fearless-palette-item.selected img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.fearless-palette-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 하단 버튼 영역 */
.fearless-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 접기 버튼 */
.fearless-collapse-btn {
    padding: 4px 10px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.fearless-collapse-btn:hover {
    background: rgba(58, 58, 90, 0.5);
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
}

/* 게임 수 조절 버튼 */
.game-controls {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    min-width: 36px !important;
    width: 36px !important;
    margin-top: 30px !important; /* game-header 높이만큼 오프셋 */
    height: 548px !important; /* team-name-row(44) + 밴픽 영역(440) + info-row(64) */
    gap: 12px !important;
}

.btn-game-control {
    width: 36px !important;
    height: 268px !important; /* (548px - 12px gap) / 2 */
    min-height: 236px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: #1a1a22 !important;
    color: #888 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.btn-game-control.btn-add-game {
    color: #6a9fd9 !important;
}

.btn-game-control.btn-add-game:hover:not(:disabled) {
    background: rgba(26, 42, 62, 0.6) !important;
    border-color: rgba(79, 163, 247, 0.5) !important;
    color: #4fa3f7 !important;
    box-shadow: 0 0 12px rgba(79, 163, 247, 0.2) !important;
}

.btn-game-control.btn-remove-game {
    color: #d96a6a !important;
}

.btn-game-control.btn-remove-game:hover:not(:disabled) {
    background: rgba(62, 26, 26, 0.6) !important;
    border-color: rgba(217, 74, 74, 0.5) !important;
    color: #d94a4a !important;
    box-shadow: 0 0 12px rgba(217, 74, 74, 0.2) !important;
}

.btn-game-control:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* ========================================
   Scrim Results Tab Styles
   ======================================== */

/* TabBar - 스크림 결과 탭 */
.tab-item.scrim-results-tab {
    color: #8ab4d4;
}

.tab-item.scrim-results-tab:hover {
    color: #c0d8f0;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 163, 247, 0.2);
    border-bottom-color: transparent;
}

.tab-item.scrim-results-tab.active {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 2px solid #5a9ecd;
    border-bottom: 1px solid #16161e;
    margin-bottom: -1px;
    z-index: 2;
    color: #fff;
    font-weight: 500;
}

.scrim-count-badge {
    background: #4fa3f7;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
}

/* 스크림 결과 컨테이너 */
.scrim-results-container {
    display: flex;
    gap: 12px;
    height: calc(100vh - 115px);
    padding: 14px 0 0 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    color: #888;
}

.filter-group input,
.filter-group select {
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: rgba(79, 163, 247, 0.6);
    outline: none;
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-separator {
    color: #666;
}

.team-filter-dropdown {
    position: relative;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(37, 37, 64, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.filter-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-dropdown-item:hover {
    background: rgba(79, 163, 247, 0.15);
}

.filter-dropdown-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-clear-filter {
    padding: 6px 14px;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-filter:hover {
    background: rgba(58, 58, 90, 0.6);
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
}

.filter-info {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

/* 카드 컨테이너 */
.scrim-cards-container {
    min-height: 200px;
}

/* 매치 그리드 - 3열 배치 */
.scrim-matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1600px) {
    .scrim-matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .scrim-matches-grid {
        grid-template-columns: 1fr;
    }
}

/* 매치 카드 */
.scrim-match-card {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.scrim-match-card:hover {
    border-color: rgba(79, 163, 247, 0.5);
    box-shadow: 0 4px 12px rgba(79, 163, 247, 0.2);
}

/* 매치 헤더 */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #111118;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.match-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    align-items: center;
}

.meta-set-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.meta-opponent {
    color: #aaa;
    font-weight: 500;
}


.match-score {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: bold;
}

.score-team-name {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
}

.score-value {
    font-size: 20px;
    font-weight: bold;
    color: #999;
}

.score-value.winner {
    color: #f1c40f;
}

.score-separator {
    color: #666;
    font-size: 18px;
}

.btn-card-delete {
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 16px;
}

.btn-card-delete:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff6b6b;
}

/* 게임 컬럼 그리드 */
.match-games-grid {
    display: flex;
    gap: 1px;
    background: #2a2a4a;
    overflow-x: auto;
}

/* 개별 게임 컬럼 */
.game-column-card {
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1;
}

.game-column-card.blue-win {
    border-top: 3px solid #4fa3f7;
}

.game-column-card.red-win {
    border-top: 3px solid #d94a4a;
}

.game-column-card.empty-game {
    opacity: 0.5;
}

.game-number {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* 팀 섹션 (팀정보 + 픽 + 밴) */
.team-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.team-section.blue {
    background: rgba(79, 163, 247, 0.1);
    border-left: 3px solid #4fa3f7;
}

.team-section.red {
    background: rgba(217, 74, 74, 0.1);
    border-left: 3px solid #d94a4a;
}

.team-section.winner.blue {
    background: rgba(79, 163, 247, 0.25);
}

.team-section.winner.red {
    background: rgba(217, 74, 74, 0.25);
}

.team-section.loser {
    opacity: 0.6;
}

/* 팀 정보 (한 줄 고정) */
.team-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
    min-height: 24px;
}

.team-side-badge {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.team-side-badge.blue {
    background: #4fa3f7;
}

.team-side-badge.red {
    background: #d94a4a;
}

.team-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-code {
    color: #ccc;
    font-weight: 500;
    flex-shrink: 0;
}

.team-section.winner .team-code {
    color: #fff;
}

.first-choice-badge {
    font-size: 9px;
    color: #888;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    flex-shrink: 0;
}

.win-marker {
    font-size: 10px;
    font-weight: bold;
    color: #ffd700;
    padding: 1px 5px;
    background: rgba(255, 215, 0, 0.25);
    border-radius: 3px;
    flex-shrink: 0;
    margin-left: auto;
}

/* 팀 픽/밴 */
.team-picks, .team-bans {
    display: flex;
    gap: 3px;
}

/* 챔피언 슬롯 (카드용) */
.champ-slot {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    background: #1c1c26;
    position: relative;
}

.champ-slot.pick {
    border: 2px solid transparent;
}

.champ-slot.pick.blue {
    border-color: #4fa3f7;
}

.champ-slot.pick.red {
    border-color: #d94a4a;
}

.champ-slot.ban {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    border: 1px solid #444;
}

.champ-slot.ban.blue {
    border-color: rgba(79, 163, 247, 0.4);
}

.champ-slot.ban.red {
    border-color: rgba(217, 74, 74, 0.4);
}

.champ-slot.ban::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 0, 0, 0.4) 50%, transparent 60%);
}

.champ-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 빈 게임 플레이스홀더 */
.empty-game-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 24px;
}

/* 빈 상태 */
.scrim-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.scrim-empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #888;
}

/* 결과 저장 버튼 (BanPickItemComponent 헤더) - 파란색 테마 */
.btn-save-result {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #4fa3f7;
    border-radius: 4px;
    color: #4fa3f7;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-save-result:hover {
    background: #4fa3f7;
    color: #fff;
}

/* 반응형 - 작은 화면에서 게임 그리드 조정 */
@media (max-width: 1200px) {
    .match-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .match-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 스크림 필터 사이드바 ==================== */
.scrim-filter-sidebar {
    width: 330px;
    flex-shrink: 0;
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 0.9em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.filter-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    background: linear-gradient(135deg, rgba(26, 58, 106, 0.5) 0%, rgba(21, 42, 88, 0.45) 100%);
    border: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    writing-mode: vertical-rl;
    transition: all 0.2s;
}

.filter-toggle:hover {
    background: linear-gradient(135deg, rgba(42, 74, 122, 0.6) 0%, rgba(26, 58, 106, 0.55) 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(79, 163, 247, 0.15);
}

.filter-content {
    flex: 1;
    width: 310px;
    margin-left: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

.filter-header {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-content .filter-group {
    margin-bottom: 16px;
}

.filter-content .filter-group label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
    font-weight: 500;
}

.filter-content .filter-group input[type="text"],
.filter-content .filter-group input[type="date"],
.filter-content .filter-group select {
    width: 100%;
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-content .filter-group input:focus,
.filter-content .filter-group select:focus {
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

.filter-content .date-range-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-content .date-range-vertical .date-separator {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.filter-content .team-filter-dropdown {
    position: relative;
}

.filter-content .filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.filter-content .filter-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: #ddd;
}

.filter-content .filter-dropdown-item:hover {
    background: rgba(79, 163, 247, 0.15);
    color: #fff;
}

.filter-content .filter-dropdown-icon {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    object-fit: contain;
}

.filter-content .btn-clear-filter {
    width: 100%;
    padding: 10px;
    background: rgba(58, 58, 90, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.filter-content .btn-clear-filter:hover {
    background: rgba(74, 74, 106, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
}

.filter-content .filter-info {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 8px;
    background: #1c1c26;
    border-radius: 4px;
}

/* 스크림 결과 컨테이너 레이아웃 */
.scrim-cards-container {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
}

/* 챔피언 필터 칩 스타일 */
.champion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.champion-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 16px;
    padding: 4px 8px 4px 4px;
    font-size: 12px;
    color: #ddd;
    transition: all 0.2s;
}

.champion-chip:hover {
    background: #3a3a5a;
    border-color: #4fa3f7;
}

.champion-chip-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.champion-chip span {
    white-space: nowrap;
}

.chip-remove {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    margin-left: 2px;
    transition: color 0.2s;
}

.chip-remove:hover {
    color: #ff4d4d;
}

.champion-filter-dropdown {
    position: relative;
}

/* ==================== Scrim Filter Sidebar (Fixed) ==================== */
.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.filter-sidebar-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.4px;
}

.filter-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
}

.filter-sidebar-footer {
    padding: 10px 14px;
    border-top: 1px solid #2a2a4a;
    flex-shrink: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(79, 163, 247, 0.3);
}

.filter-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.4px;
}

.filter-result-count {
    background: rgba(79, 163, 247, 0.15);
    border: 1px solid rgba(79, 163, 247, 0.4);
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #7ab8e8;
    min-width: 28px;
    text-align: center;
}

.filter-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}

.filter-grid-row .filter-section {
    margin-bottom: 18px;
}

.filter-section {
    margin-bottom: 18px;
}

.filter-section label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    letter-spacing: 0.2px;
}

.filter-section input[type="text"],
.filter-section input[type="date"],
.filter-section select {
    width: 100%;
    padding: 8px 11px;
    background: #1c1c26;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.filter-section input[type="text"]:focus,
.filter-section input[type="date"]:focus,
.filter-section select:focus {
    outline: none;
    border-color: #4fa3f7;
    background: rgba(42, 42, 74, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 163, 247, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.filter-section input[type="text"]:hover,
.filter-section input[type="date"]:hover,
.filter-section select:hover {
    border-color: #3a3a5a;
    background: rgba(37, 37, 64, 0.8);
}

.filter-section input::placeholder {
    color: #666;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range span {
    color: #888;
    font-size: 14px;
}

.date-range input[type="date"] {
    flex: 1;
}

.filter-section input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.champion-search {
    position: relative;
}

.champion-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    background: #1a1a22;
    border: 1px solid #3a3a5a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.champion-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.champion-option:hover {
    background: rgba(79, 163, 247, 0.1);
    transform: translateX(2px);
}

.champion-option img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #2a2a4a;
    transition: border-color 0.2s;
}

.champion-option:hover img {
    border-color: #4fa3f7;
}

.champion-option span {
    color: #ddd;
    font-size: 13px;
    font-weight: 500;
}

.champion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    min-height: 30px;
}

.champion-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px 3px 4px;
    background: rgba(42, 42, 74, 0.8);
    border: 1px solid rgba(74, 74, 104, 0.6);
    border-radius: 12px;
    font-size: 11px;
    color: #a8c8e4;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.champion-chip:hover {
    background: rgba(79, 163, 247, 0.3);
    border-color: rgba(79, 163, 247, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(79, 163, 247, 0.2);
}

.champion-chip img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(79, 163, 247, 0.4);
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.champion-chip:hover img {
    border-color: #4fa3f7;
}

.champion-chip span {
    color: #e0e0e0;
    font-weight: 500;
    line-height: 1;
}

.champion-chip .chip-remove {
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}

.champion-chip .chip-remove:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.filter-footer {
    width: 325px;
    margin-left: 35px;
    padding: 12px;
    background: rgba(16, 16, 26, 0.95);
    border-top: 1px solid rgba(79, 163, 247, 0.3);
}

.btn-clear-filters {
    width: 100%;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #4fa3f7;
    border-radius: 4px;
    color: #4fa3f7;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-filters:hover {
    background: #4fa3f7;
    color: #fff;
}

/* View Controls - 보기 모드 + 정렬 */
.filter-view-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(79, 163, 247, 0.2);
}

.view-mode-toggle {
    display: flex;
    background: #1c1c26;
    border-radius: 8px;
    border: 1px solid #2a2a4a;
    overflow: hidden;
}

.view-mode-btn {
    padding: 6px 14px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    white-space: nowrap;
}

.view-mode-btn:hover {
    color: #ccc;
    background: rgba(79, 163, 247, 0.1);
}

.view-mode-btn.active {
    background: rgba(79, 163, 247, 0.2);
    color: #4fa3f7;
    font-weight: 600;
}

/* Sort Toggle Button */
.sort-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #1c1c26;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    white-space: nowrap;
}

.sort-toggle-btn:hover {
    border-color: #3a3a5a;
    color: #ccc;
    background: rgba(37, 37, 64, 0.8);
}

.sort-icon {
    font-size: 10px;
    color: #4fa3f7;
}

.sort-label {
    font-size: 11px;
}

/* Champion Chip Mode Badge (개별 챔피언 밴/픽/전체) */
.chip-mode-badge {
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    line-height: 1.4;
}

.chip-mode-badge.all {
    background: rgba(100, 100, 130, 0.3);
    border-color: #555;
    color: #aaa;
}

.chip-mode-badge.ban {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
    color: #ff6b6b;
}

.chip-mode-badge.pick {
    background: rgba(79, 163, 247, 0.2);
    border-color: #4fa3f7;
    color: #6ab0ff;
}

.chip-mode-badge:hover {
    filter: brightness(1.3);
}

.champion-chip.mode-ban {
    border-color: rgba(255, 77, 77, 0.4);
}

.champion-chip.mode-pick {
    border-color: rgba(79, 163, 247, 0.4);
}

/* Scrollbar - 스크림 필터 사이드바 (숨김, 스크롤 유지) */
.filter-sidebar-content::-webkit-scrollbar {
    display: none;
}

.filter-sidebar-content {
    scrollbar-width: none;
}


/* Adjust scrim results content when filter panel is expanded */
.tab-content-fixed {
    padding-right: 0;
    transition: padding-right 0.3s ease-in-out;
}

.tab-content-fixed.filter-expanded {
    padding-right: 350px;
}

/* Toast Message */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #16161e 0%, rgba(42, 42, 74, 0.6) 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    border: 1px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: toast-in 0.2s ease-out;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.toast-message::before {
    content: '⚠';
    margin-right: 10px;
    font-size: 16px;
}

.toast-message.fade-out {
    animation: toast-out 0.15s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ========================================
   Scrim Result Card - New Design
   ======================================== */

/* 카드 리스트 - 세로 스택 레이아웃 */
/* ============================================
   Scrim Cards List
   ============================================ */

.scrim-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

/* ============================================
   Scrim Card - List Layout v2
   ============================================ */

/* Card Container - Horizontal List Item */
.sc-card {
    width: 100%;
    background: #1a1a22;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.sc-card:hover {
    border-color: rgba(79, 163, 247, 0.5);
    box-shadow: 0 2px 12px rgba(79, 163, 247, 0.2);
}

/* ============================================
   Summary Section - Horizontal Layout
   ============================================ */

.sc-summary-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    min-height: 70px;
    cursor: pointer;
    background: #16161e;
}

.sc-card.sc-expanded .sc-summary-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-summary-section:hover {
    background: rgba(30, 30, 56, 0.4);
}

/* 1. Opponent Area (90px fixed) - Badge Style */
.sc-opponent-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 90px;
    flex-shrink: 0;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
    min-height: 38px;
}

.sc-opponent-area:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.sc-opponent-area .sc-opponent-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-opponent-area .sc-opponent-name {
    font-size: 13px;
    font-weight: 700;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 2. Meta Area (240px fixed) - Two-line Label Style */
.sc-meta-area {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    line-height: 1.2;
}

.sc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.sc-meta-label {
    font-size: 9px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.3px;
}

.sc-meta-value {
    font-size: 12px;
    font-weight: 700;
    color: #ddd;
}

/* 3. Score Area (180px fixed) */
.sc-score-area {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
}

.sc-score-team {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-align: center;
    min-width: 45px;
}

.sc-score-team.winner {
    color: #ffd700;
}

.sc-score-value {
    font-size: 20px;
    font-weight: 600;
    color: #aaa;
    line-height: 1;
}

.sc-score-value.winner {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.sc-score-sep {
    font-size: 18px;
    color: #777;
    font-weight: 600;
}

/* 4+5. Games + Delete Button Wrapper */
.sc-games-right {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 4. Games Progress Bar - Compact Design */
.sc-games-progress {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.sc-progress-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    padding: 7px 8px;
    background: rgba(79, 163, 247, 0.1);
    border: 1px solid rgba(79, 163, 247, 0.2);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
    gap: 1px;
    line-height: 1.2;
}

.sc-progress-label-sub {
    font-size: 9px;
    color: #999;
}

.sc-progress-bars {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: flex-end;
}

.sc-progress-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2a2a4a;
    border-radius: 4px;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 7px 8px;
    gap: 2px;
    position: relative;
}

.sc-progress-bar.win {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.25);
}

.sc-progress-bar.loss {
    background: rgba(244, 67, 54, 0.08);
    border-color: rgba(244, 67, 54, 0.25);
}

/* ── Filter Highlight: Meta / GameCount / Progress Bar ── */
.sc-meta-filter-highlight {
    border-color: rgba(79, 163, 247, 0.7) !important;
    background: rgba(79, 163, 247, 0.12) !important;
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.25);
}

.sc-progress-bar.sc-bar-filter-highlight {
    border-color: rgba(79, 163, 247, 0.7) !important;
    background: rgba(79, 163, 247, 0.12) !important;
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.25);
}

/* ── Filter Badge: Champion icon circles ── */
.sc-filter-badges {
    position: absolute;
    top: -8px;
    right: -3px;
    display: flex;
    flex-direction: row-reverse;
    gap: 1px;
    z-index: 2;
    pointer-events: none;
}

.sc-filter-badge {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 2px solid;
    overflow: hidden;
    background: #1a1a22;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.sc-filter-badge img {
    width: 21px;
    height: 21px;
    object-fit: cover;
    border-radius: 50%;
}

.sc-filter-badge.filter-badge-all {
    border-color: #888;
}

.sc-filter-badge.filter-badge-ban {
    border-color: #ff4d4d;
}

.sc-filter-badge.filter-badge-pick {
    border-color: #4fa3f7;
}

/* Line 1: Game number */
.sc-bar-line1 {
    font-size: 10px;
    font-weight: 600;
    color: #777;
    line-height: 1.3;
}

/* Line 2: Result with team name */
.sc-bar-line2 {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #ccc;
}

/* Line 3: Side info with highlighted side */
.sc-bar-line3 {
    font-size: 10px;
    font-weight: 500;
    color: #999;
    line-height: 1.3;
}

.sc-bar-line3 .side-blue {
    color: #64b5f6;
    font-weight: 700;
}

.sc-bar-line3 .side-red {
    color: #ef5350;
    font-weight: 700;
}

.sc-bar-line3 .first-choice {
    font-weight: 700;
}

/* 5. Actions */
.sc-actions {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-expand-btn {
    background: transparent;
    border: none;
    color: #5a5a8a;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.sc-expand-btn:hover {
    color: #4fa3f7;
}

/* Header Row */
.sc-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sc-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Delete Button */
.sc-delete-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sc-delete-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff6b6b;
}

/* Opponent Row */
.sc-opponent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sc-opponent-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-opponent-name {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    flex: 1;
}

/* Metadata Row */
.sc-metadata-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.sc-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #bbb;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.sc-meta-badge.sc-version {
    color: #ddd;
    background: rgba(255, 255, 255, 0.08);
}

.sc-meta-badge.sc-date {
    color: #aaa;
}

.sc-meta-badge.sc-game-count {
    color: #ccc;
    font-weight: 600;
}


/* Scoreboard */
.sc-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
}

.sc-score-team {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(30, 30, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    min-width: 0;
    flex: 1;
}

.sc-score-team.sc-winner {
    background: rgba(241, 196, 15, 0.18);
    border-color: rgba(241, 196, 15, 0.5);
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.2);
}

.sc-score-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-score-name {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-score-team.sc-winner .sc-score-name {
    color: #fff;
}

.sc-score-nums {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sc-score-val {
    font-size: 24px;
    font-weight: 900;
    color: #777;
    line-height: 1;
}

.sc-score-val.sc-winner {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.sc-score-sep {
    font-size: 16px;
    font-weight: 700;
    color: #555;
}

/* Game Indicators Row */
.sc-games-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.sc-game-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2a2a4a;
    border-radius: 5px;
    min-width: 42px;
    gap: 1px;
    transition: all 0.2s;
}

.sc-game-chip.sc-side-blue {
    border-left: 3px solid #4fa3f7;
    background: rgba(79, 163, 247, 0.06);
}

.sc-game-chip.sc-side-red {
    border-left: 3px solid #d94a4a;
    background: rgba(217, 74, 74, 0.06);
}

.sc-game-chip.sc-win {
    background: rgba(74, 200, 100, 0.12);
    border-color: rgba(74, 200, 100, 0.35);
}

.sc-game-chip.sc-win.sc-side-blue {
    border-left-color: #4fa3f7;
}

.sc-game-chip.sc-win.sc-side-red {
    border-left-color: #d94a4a;
}

.sc-game-chip.sc-loss {
    background: rgba(200, 74, 74, 0.1);
    border-color: rgba(200, 74, 74, 0.3);
    opacity: 0.7;
}

.sc-game-chip.sc-loss.sc-side-blue {
    border-left-color: #4fa3f7;
}

.sc-game-chip.sc-loss.sc-side-red {
    border-left-color: #d94a4a;
}

.sc-chip-num {
    font-size: 11px;
    font-weight: 800;
    color: #ccc;
    line-height: 1;
}

.sc-chip-side {
    font-size: 9px;
    font-weight: 700;
    color: #888;
    line-height: 1;
}

.sc-game-chip.sc-side-blue .sc-chip-side {
    color: #6aafe8;
}

.sc-game-chip.sc-side-red .sc-chip-side {
    color: #e86a6a;
}

.sc-chip-fp {
    font-size: 8px;
    font-weight: 500;
    color: #777;
    line-height: 1;
}

.sc-chip-result {
    font-size: 11px;
    font-weight: 900;
    color: #666;
    line-height: 1;
}

.sc-game-chip.sc-win .sc-chip-result {
    color: #6bcf6b;
}

.sc-game-chip.sc-loss .sc-chip-result {
    color: #d94a4a;
}

/* Expand Indicator */
.sc-expand-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 4px;
    color: #5a5a8a;
    font-size: 14px;
    transition: color 0.2s;
}

/* ============================================
   New Compact Styles for Redesigned Summary
   ============================================ */

/* Top Row: Opponent + Delete Button */
.sc-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sc-opponent-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sc-opponent-compact .sc-opponent-logo {
    width: 28px;
    height: 28px;
}

.sc-opponent-compact .sc-opponent-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Meta Info Inline (One Line) */
.sc-meta-inline {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    text-align: center;
}

.sc-meta-inline span {
    color: #aaa;
}

/* Simplified Score (No Logos) */
.sc-score-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sc-score-team-name {
    font-size: 13px;
    font-weight: 600;
    color: #999;
}

.sc-score-team-name.winner {
    color: #f1c40f;
}

.sc-score-simple .sc-score-val {
    font-size: 22px;
    font-weight: 900;
    color: #777;
    line-height: 1;
}

.sc-score-simple .sc-score-val.winner {
    color: #f1c40f;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.sc-score-simple .sc-score-sep {
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

/* Compact Game Chips (Horizontal) */
.sc-games-row-compact {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.sc-game-chip-compact {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.2s;
}

.sc-game-chip-compact.win {
    background: rgba(74, 200, 100, 0.15);
    border-color: rgba(74, 200, 100, 0.3);
}

.sc-game-chip-compact.loss {
    background: rgba(200, 74, 74, 0.15);
    border-color: rgba(200, 74, 74, 0.3);
}

.sc-chip-num-compact {
    color: #ccc;
    font-weight: 700;
}

.sc-chip-result-compact {
    color: #888;
    font-weight: 800;
}

.sc-chip-result-compact.win {
    color: #4ac864;
}

.sc-chip-result-compact.loss {
    color: #c84a4a;
}

.sc-chip-side-compact {
    color: #777;
    font-size: 9px;
    font-weight: 700;
}

.sc-chip-side-compact.blue {
    color: #6aafe8;
}

.sc-chip-side-compact.red {
    color: #e86a6a;
}

/* Detail Title Row */
.sc-detail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(22, 33, 62, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sc-detail-title-text {
    font-size: 14px;
    font-weight: 600;
    color: #ddd;
}

.sc-detail-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
}

/* ============================================
   Detail Section (Expanded Only)
   ============================================ */

.sc-detail-section {
    background: #1a1a22;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-scrim-time {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(22, 33, 62, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.sc-time-label {
    color: #666;
    font-weight: 500;
}

.sc-time-value {
    color: #bbb;
    font-weight: 600;
}

/* Games Grid */
.sc-games-grid {
    display: flex;
    padding: 10px 8px;
    gap: 10px;
}

.sc-game-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 225px;
    padding: 7px 9px;
    background: rgba(30, 30, 50, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sc-game-col.blue-win,
.sc-game-col.red-win {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sc-game-col.empty-game {
    opacity: 0.4;
}

/* Game Number */
.sc-game-num {
    text-align: center;
    font-size: 11px;
    color: #c0c0d0;
    font-weight: 600;
    height: 21px;
    line-height: 21px;
    border-radius: 4px;
    margin: 2px 4px;
}

.sc-game-col.blue-win .sc-game-num,
.sc-game-col.red-win .sc-game-num {
    background: rgba(140, 130, 200, 0.35);
    color: #d0d0e0;
}

/* Teams Container */
.sc-teams-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 47px;
    padding-bottom: 5px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sc-team-info {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 21px;
    padding: 0 3px;
    border-radius: 3px;
}

.sc-team-info.winner {
    background: rgba(255, 215, 0, 0.15);
}

.sc-team-badge {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.sc-team-badge.blue {
    background: #4fa3f7;
}

.sc-team-badge.red {
    background: #d94a4a;
}

.sc-team-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-team-code {
    font-size: 10px;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.sc-team-info.winner .sc-team-code {
    color: #fff;
    font-weight: 500;
}

.sc-first-choice-badge {
    font-size: 9px;
    font-weight: 500;
    color: #aaa;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 4px;
}

.sc-win-badge {
    font-size: 8px;
    font-weight: bold;
    color: #ffd700;
    padding: 1px 3px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Champions Container */
.sc-champs-container {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: stretch;
    padding: 5px 0;
}

/* Team Group Box */
.sc-team-group {
    display: flex;
    gap: 3px;
    padding: 7px 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
}

.sc-team-group.blue {
    border: 1px solid rgba(79, 163, 247, 0.3);
    background: rgba(79, 163, 247, 0.08);
}

.sc-team-group.red {
    border: 1px solid rgba(217, 74, 74, 0.3);
    background: rgba(217, 74, 74, 0.08);
}

.sc-team-group.blue.winner {
    border-color: rgba(79, 163, 247, 0.6);
    background: rgba(79, 163, 247, 0.15);
}

.sc-team-group.red.winner {
    border-color: rgba(217, 74, 74, 0.6);
    background: rgba(217, 74, 74, 0.15);
}

/* Team Divider */
.sc-team-divider {
    width: 1px;
    margin: 7px 7px;
    background: #4a4a6a;
    border-radius: 1px;
    align-self: stretch;
    flex-shrink: 0;
}

/* Champion Column */
.sc-champ-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    padding: 2px 0;
}

.sc-champ-col.pick {
    padding: 2px 3px;
}

.sc-champ-col.ban {
    padding: 2px 3px;
}

/* Champion Icon */
.sc-champ-icon {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    overflow: visible;
    background: #1c1c26;
    flex-shrink: 0;
    position: relative;
}

.sc-champ-icon.pick {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sc-champ-icon.ban {
    width: 34px;
    height: 34px;
    opacity: 0.75;
}

.sc-champ-icon.ban::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 44%, rgba(255, 0, 0, 0.5) 50%, transparent 56%);
    border-radius: 4px;
}

.sc-champ-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Order Badge */
.order-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #1a1a2e;
    border: 1px solid #4a4a6a;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 600;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sc-champ-icon.ban .order-badge {
    width: 12px;
    height: 12px;
    font-size: 8px;
    bottom: -1px;
    right: -1px;
}

/* Phase Divider */
.phase-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5a5a7a, transparent);
    margin: 3px 0;
}

.phase-divider.ban {
    width: 100%;
    background: linear-gradient(90deg, transparent, #6a4a4a, transparent);
    margin: 2px 0;
}

/* Column Label (Pick/Ban) */
.col-label {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 14px;
    border-radius: 3px;
    margin-bottom: 4px;
    text-align: center;
}

.col-label.pick {
    color: #6bcf6b;
    background: rgba(74, 180, 74, 0.18);
}

.col-label.ban {
    color: #c85a5a;
    background: rgba(160, 50, 50, 0.2);
}

/* Empty Game Placeholder */
.sc-empty-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 18px;
    min-height: 260px;
}

/* ===== Scrim Detail Modal ===== */

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Overlay */
.scrim-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    animation: fadeIn 0.1s ease-out;
}

/* Modal Container */
.scrim-detail-modal {
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    max-width: min(90vw, 900px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.15s ease-out;
}

/* Modal Header */
.scrim-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 8px 20px;
}

.scrim-detail-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.scrim-detail-modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.scrim-detail-modal-close:hover {
    color: #ff6b6b;
}

/* Modal Body */
.scrim-detail-modal-body {
    padding: 8px 20px 20px 20px;
    overflow-x: auto;
    overflow-y: auto;
    pointer-events: none;
    cursor: default;
}

/* Meta Information Row */
.scrim-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-width: 60px;
}

.detail-meta-value {
    font-size: 12px;
    color: #e0e0e0;
    font-weight: 600;
}

.detail-meta-team {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-team-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
}

.detail-meta-item .meta-label {
    text-align: left;
    padding-left: 0;
    font-size: 10px;
    color: #888;
    letter-spacing: 0.2px;
}

/* Game Grid */
.scrim-detail-grid {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Read-Only Slot Override */
.scrim-readonly-slot {
    pointer-events: none;
    cursor: default !important;
}

.scrim-readonly-slot:hover {
    filter: none !important;
    border-color: inherit !important;
}

/* Remove all hover effects in modal except close button */
.scrim-detail-modal .game-column:hover {
    background: inherit;
    transform: none;
    box-shadow: none;
}

.scrim-detail-modal .champion-slot:hover {
    border-color: inherit !important;
    filter: none !important;
    transform: none;
}

.scrim-detail-modal .team-slot:hover {
    background: inherit;
    transform: none;
}

.scrim-detail-modal .info-slot:hover {
    background: inherit;
    transform: none;
}

.scrim-detail-modal .side-label:hover {
    background: inherit;
}

.scrim-detail-modal .game-header:hover {
    background: inherit;
    color: inherit;
}

.scrim-detail-modal .game-header:hover::after {
    opacity: 0;
}

/* 모달 내부 요소 배경 불투명도 강화 (이중 반투명 방지) */
.scrim-detail-modal .game-header {
    background: rgba(42, 42, 74, 0.7);
}

.scrim-detail-modal .side-label.info-label {
    background: rgba(42, 42, 58, 0.7);
}

.scrim-detail-modal .side-label.ban {
    background: rgba(255, 77, 77, 0.18);
}

.scrim-detail-modal .side-label.pick {
    background: rgba(77, 255, 77, 0.18);
}

.scrim-detail-modal .side-label.team-label {
    background: rgba(150, 150, 150, 0.15);
}

/* Ban Overlay for Read-Only Slots */
.scrim-readonly-slot .ban-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #ff4444;
    pointer-events: none;
}

/* Team Slot Styling for Modal */
.scrim-detail-modal .team-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.scrim-detail-modal .team-slot.blue-team {
    background: rgba(79, 163, 247, 0.15);
    border: 1px solid rgba(79, 163, 247, 0.3);
}

.scrim-detail-modal .team-slot.red-team {
    background: rgba(217, 74, 74, 0.15);
    border: 1px solid rgba(217, 74, 74, 0.3);
}

/* Responsive: Smaller Screens */
@media (max-width: 768px) {
    .scrim-detail-modal {
        max-width: 95vw;
        max-height: 95vh;
    }

    .scrim-detail-modal-body {
        padding: 12px;
    }

    .scrim-detail-grid {
        gap: 8px;
    }
}

/* 엑셀 내보내기 드롭다운 */
.export-dropdown-wrapper {
    position: relative;
}

.export-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.export-dropdown-item {
    display: block;
    width: 100%;
    padding: 7px 14px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.8em;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.export-dropdown-item:hover {
    background: rgba(79, 163, 247, 0.12);
    color: #fff;
}

/* 선택해서 내보내기 모달 */
.export-select-modal {
    width: fit-content;
    max-width: 95vw;
}

.modal-footer {
    padding: 10px 20px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 선택해서 내보내기 테이블 */
.export-select-table {
    border-collapse: collapse;
    font-size: 12px;
    table-layout: auto;
}

/* colgroup 컬럼 너비 고정 */
.export-select-table col.col-check    { width: 36px; }
.export-select-table col.col-name     { width: 250px; }
.export-select-table col.col-opponent { width: 110px; }
.export-select-table col.col-date     { width: 96px; }
.export-select-table col.col-time     { width: 72px; }
.export-select-table col.col-version  { width: 64px; }

.export-select-table thead {
    background: rgba(255, 255, 255, 0.055);
}

.export-select-table thead th {
    padding: 7px 10px;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.export-select-table thead th.col-sortable {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: color 0.15s;
}

.export-select-table thead th.col-sortable:hover {
    color: #ccc;
}

.export-select-table thead th.sorted {
    color: #4fa3f7;
}

.export-select-table thead th.col-check,
.export-select-table tbody td.col-check {
    text-align: center;
}

.export-select-table .th-label {
    vertical-align: middle;
}

.export-select-table .sort-icon {
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.2);
}

.export-select-table .sort-icon.sort-active {
    color: #4fa3f7;
}

.export-select-table tbody tr {
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: background 0.1s;
}

.export-select-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.export-select-table tbody tr.selected {
    background: rgba(79, 163, 247, 0.14);
}

.export-select-table tbody td {
    padding: 7px 10px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-select-table tbody tr.selected td {
    border-bottom-color: rgba(79, 163, 247, 0.25);
}

.export-select-table tbody tr:last-child td {
    border-bottom: none;
}

.export-select-table .td-opponent-inner {
    display: flex;
    align-items: center;
    gap: 5px;
}

.export-select-table .opponent-logo {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.export-select-table input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.export-select-table input[type="checkbox"]:hover:not(:checked) {
    border-color: rgba(79, 163, 247, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.export-select-table input[type="checkbox"]:checked {
    background: #4fa3f7;
    border-color: #4fa3f7;
}

.export-select-table input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* 페이지네이션 */
.export-pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-arrow {
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
    transition: all 0.15s;
}

.page-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.page-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.page-info {
    font-size: 12px;
    color: #888;
    min-width: 44px;
    text-align: center;
}

/* 선택 내보내기 버튼 */
.btn-export-select {
    padding: 5px 14px;
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: #3cc878;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.25s ease;
}

.btn-export-select:hover:not(:disabled) {
    background: rgba(39, 174, 96, 0.25);
    color: #fff;
    border-color: rgba(39, 174, 96, 0.6);
    box-shadow: 0 0 12px rgba(39, 174, 96, 0.3), inset 0 0 8px rgba(39, 174, 96, 0.1);
}

.btn-export-select:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ==================== 챔피언 메모 기능 ==================== */

/* 메모 인디케이터 — 우측 하단 삼각형 */
.memo-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 11px 11px;
    border-color: transparent transparent #FFD700 transparent;
    pointer-events: none;
    z-index: 3;
    filter:
        drop-shadow(-1px 0px 0px rgba(0,0,0,0.9))
        drop-shadow(0px -1px 0px rgba(0,0,0,0.9))
        drop-shadow(-1px -1px 0px rgba(0,0,0,0.7))
        drop-shadow(0px 0px 3px rgba(255, 215, 0, 0.7));
}

/* 힌트 팝업 */
.memo-hint-popup {
    position: fixed;
    background: rgba(20, 20, 30, 0.97);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 10pt;
    line-height: 1.75;
    min-width: 140px;
    max-width: 260px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    pointer-events: none;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    animation: hintFadeIn 0.15s ease-out;
}

@keyframes hintFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.memo-hint-popup .memo-inline-icon {
    height: 29px;
    width: 29px;
}

/* 메모 모달 인라인 아이콘 (챔피언/팀) */
.memo-inline-icon {
    height: 29px;
    width: 29px;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 3px;
    margin: 0 2px;
    display: inline-block;
    transition: filter 0.15s, outline 0.15s;
}

.memo-editor-area .memo-inline-icon {
    cursor: pointer;
}

.memo-editor-area .memo-inline-icon:hover {
    filter: brightness(1.35) drop-shadow(0 0 4px rgba(255, 210, 60, 0.85));
    outline: 2px solid rgba(255, 210, 60, 0.75);
    outline-offset: 1px;
}

/* ---- 메모 편집 모달 ---- */
.memo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    animation: overlayFadeIn 0.12s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.memo-modal {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    width: 520px;
    max-width: 92vw;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.15s ease-out;
}

.memo-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.memo-modal-champion-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.memo-modal-champion-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* 서식 툴바 — 에디터 메뉴바 스타일 */
.memo-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    background: #252535;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.memo-fmt-btn {
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #aaa;
    padding: 4px 9px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    min-width: 30px;
    line-height: 1;
}

.memo-fmt-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.memo-fmt-btn:active {
    background: rgba(74, 144, 217, 0.3);
    color: #fff;
}

.memo-size-select {
    background: #1c1c26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    cursor: pointer;
    height: 28px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.memo-size-select:hover,
.memo-size-select:focus {
    border-color: rgba(79, 163, 247, 0.6);
    box-shadow: 0 0 8px rgba(79, 163, 247, 0.2);
}

/* 에디터 영역 */
.memo-editor-area {
    min-height: 160px;
    max-height: 300px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 14px 18px;
    font-size: 10pt;
    background: #12121c;
    color: #e0e0e0;
    outline: none;
    line-height: 1.75;
    cursor: text;
    overflow-y: auto;
    word-break: break-word;
    font-family: 'Segoe UI', sans-serif;
}

.memo-editor-area:focus {
    background: #13131e;
}

/* 모달 하단 버튼 */
.memo-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
}

.memo-btn {
    padding: 7px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.12s, transform 0.08s;
}

.memo-btn:active {
    transform: scale(0.97);
}

.memo-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #bbb;
}

.memo-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.memo-btn-save {
    background: rgba(74, 144, 217, 0.75);
    color: #fff;
}

.memo-btn-save:hover {
    background: rgba(74, 144, 217, 0.95);
}

/* 메모 편집기 색상 팔레트 */
.memo-toolbar-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    margin: 0 6px;
    vertical-align: middle;
}

.memo-color-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-right: 4px;
    vertical-align: middle;
}

.memo-color-btn {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
    margin: 0 2px;
    vertical-align: middle;
    transition: transform 0.1s, border-color 0.1s;
}

.memo-color-btn:hover {
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.8);
}

.memo-color-reset {
    background: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
