/* --- การตั้งค่าพื้นฐาน --- */
body {
    background: transparent;
    font-family: Arial, sans-serif;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.showcase-container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* --- ส่วนแสดงผลหลัก (2 คอลัมน์) --- */
.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    /* 100px (แถบล่าง) + 20px (margin) */
    height: calc(100% - 120px); 
    flex: 1;
    min-height: 0;
}

/* --- 1. ฝั่งซ้าย (รูปตัวละคร) --- */
.character-display {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    min-width: 0;
}

.character-name-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    min-height: 40px;
}

#hero-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100% - 60px);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 15px rgba(255, 223, 150, 0.5));
    display: block;
}

/* --- 2. ฝั่งขวา (ข้อมูล) --- */
.character-info {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    min-width: 0;
}

.class-name {
    width: 140px; 
    height: 40px; 
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* กรอบวิดีโอ (ปรับปรุงใหม่ให้คม มน และเรียบง่ายขึ้น) */
.video-wrapper {
    border: 1px solid #c8a464; 
    padding: 3px; 
    background-color: #1a1a1a; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
    flex: 1; 
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%; 
    max-width: 100%; 
    border-radius: 6px; 
    box-sizing: border-box; 
}

#hero-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 4px; 
}


/* --- 3. แถบเลือกตัวละคร (ด้านล่าง) --- */
.class-selector {
    height: 100px; 
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
}

.class-selector ul {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px; 
    height: 100%;
    align-items: center;
}

.class-selector li {
    padding: 0;
    position: relative; 
}

.class-selector button {
    background-color: #333;
    border: 2px solid #555;
    border-radius: 50%;
    width: 60px; 
    height: 60px; 
    padding: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.class-selector button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.class-selector button:hover {
    border-color: #f3d183;
    transform: scale(1.1);
}

.class-selector button.active {
    border-color: #ffbf40; 
    background-color: #6a5a3a;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 191, 64, 0.7);
}