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: 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;
}

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;
}

/**/

.search-wrapper {
    width: 35%;
    margin: 10px auto;
}

#searchInput {
    display: block;
    width: 100%;
    padding: 10px 10px 6px 10px;
    font-size: small;
    border: none;
    border-bottom: 1px solid #666;
    outline: none;
    background-color: transparent;
    box-sizing: border-box;
}

th.search-name, td.search-name {
    font-size: small;
    text-align: center;
}

/**/

.group-header td {
    font-size: small;
    text-align: center;
    font-weight: bold;
    background-color: #f4f4f4;
}

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

/**/

@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;
    }
}
