body {
    font-family: Arial, sans-serif;
}

.voice-actor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-actor-name {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: #444;
    background-color: #e7e7e7;
    border-radius: 6px;
    padding: 3px 8px;
}

.mic-icon {
    margin-right: 3px;
    margin-bottom: 1px;
    font-size: 0.7rem;
}

.name-title {
    margin-top: 1px;
}

.info-box {
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 7px;
    background-color: #fafafa;
}

.info-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.7rem;
    cursor: pointer;
    color: #555;
}

.info-toggle {
    margin-top: 1px;
    font-size: 0.7rem;
    color: #999;
}

.info-content {
    font-size: 0.7rem;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    padding: 0 10px;
}

.info-content.active {
    max-height: 100px;
    padding-bottom: 6px;
}

.voice-actor-buttons {
    display: flex;
    gap: 3px;
}

.tabs-container {
    overflow-x: auto;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-top: 2px;
    overflow-x: auto;
    gap: 6px;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    padding: 0 10px 6px;
    margin-bottom: 1px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.tab.active {
    font-weight: 700;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: black;
    border-radius: 2px;
}

.sub-tabs {
    display: none;
    gap: 5px;
    padding: 10px 0 10px 2px;
    overflow-x: auto;
    white-space: nowrap;
}

.sub-tabs.active {
    display: flex;
}

.sub-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 14px;
    background-color: #f2f2f2;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
}

.sub-tab.active {
    background-color: #111;
    color: white;
    border: none;
}

.tab-content {
    display: none;
    padding: 2px;
}

.tab-content.active {
    display: block;
}

.total-count {
    font-size: 12px;
    padding: 8px 4px 4px;
}

.sub-tab-total-count {
    font-size: 12px;
    padding: 2px 4px 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    white-space: nowrap;
    text-align: center;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.clickable-cell {
    cursor: pointer;
}

a.no-underline {
    text-decoration: none;
    color: inherit;
}

a.no-underline:visited {
    color: inherit;
}

a.no-underline:hover {
    text-decoration: none;
}

a.no-underline:active {
    color: inherit;
}

/**/

button {
    font-size: 8pt;
    width: 100%;
    color: #000000;
    background-color: #f3f3f3;
    border: none;
    border-radius: 12px;
    padding: 3px 12px;
    cursor: pointer;
}

button:hover {
    background-color: #efefef;
}

button:active {
    background-color: #dadada;
}

/**/

th.platform, td.platform {
    width: 5%;
    font-size: small;
    text-align: center;
    white-space: nowrap;
    padding: 7px;
}

th.product-title, td.product-title {
    width: 60%;
    font-size: small;
}

th.role-type, td.role-type {
    width: 15%;
    font-size: small;
    text-align: center;
    white-space: nowrap;
    padding: 5px;
}

th.role-name, td.role-name {
    width: 20%;
    font-size: small;
    text-align: center;
    padding: 7px;
}

/**/

th.role-tab-platform, td.role-tab-platform {
    width: 5%;
    font-size: small;
    text-align: center;
    white-space: nowrap;
}

th.role-tab-product-title, td.role-tab-product-title {
    width: 65%;
    font-size: small;
}

th.role-tab-role-name, td.role-tab-role-name {
    width: 30%;
    font-size: small;
    text-align: center;
}

/**/

th.platform-tab-product-title, td.platform-tab-product-title {
    width: 60%;
    font-size: small;
}

th.platform-tab-role-type, td.platform-tab-role-type {
    width: 15%;
    font-size: small;
    text-align: center;
    white-space: nowrap;
    padding: 5px;
}

th.platform-tab-role-name, td.platform-tab-role-name {
    width: 25%;
    font-size: small;
    text-align: center;
}

/**/

.bg-yellow {
    background-color: #fff9c4; /* 밝은 노랑 */
}

.bg-skyblue {
    background-color: #e3f2fd; /* 밝은 하늘색 */
}

.bg-green {
    background-color: #e3fde6; /* 밝은 연두색 */
}

.role-top {
    font-weight: bold;
    color: #3367d6;
}

.role-bottom {
    font-weight: bold;
    color: #057c16;
}

.role-both {
    font-weight: bold;
    color: #444;
}

.role-male {
    font-weight: bold;
    color: #3367d6;
}

.role-female {
    font-weight: bold;
    color: #851e8f;
}

.role-main {
    font-weight: bold;
    color: #444;
}

/**/

@media (max-width: 768px) {
    .info-text {
        font-size: small;
    }

    table, th, td {
        font-size: small;
    }
}

@media (min-width: 769px) {
    body {
        max-width: 500px;
        margin: 10px auto;
    }
}
