/* Voice Actors Database Styles */
.voice-cast-container {
    margin: 30px 0;
}

/* Fix for rectangular shapes showing in tables */
.voice-cast-table tr > div.voice-cast-card,
.voice-cast-table tr > div.voice-cast-card *,
.voice-cast-table tr > div:not(td):not(th) {
    display: none !important;
}

/* Fix for NO IMAGE placeholder size in voice cast tables */
.voice-cast-table td img,
.voice-cast-table .actor-image img,
.voice-cast-table .character-image img {
    max-width: 60px !important;
    height: auto !important;
    width: 60px !important;
}

/* Set fixed size for No Image placeholder to match other images */
.voice-cast-table .no-image,
.voice-cast-table td .no-image {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important; 
    max-height: 60px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f1f1f1 !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    text-align: center !important;
    overflow: hidden !important;
}

.voice-cast-table-wrapper {
    overflow-x: auto;
}

.voice-cast-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.voice-cast-table th,
.voice-cast-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #eaeaea;
}

.voice-cast-table th {
    background-color: #333333;
    color: #ffffff;
    font-weight: bold;
}

.voice-cast-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Table styles - Striped */
.voice-cast-table-striped tr:nth-child(odd) {
    background-color: #ffffff;
}

.voice-cast-table-striped tr:nth-child(even) {
    background-color: #f5f7fa;
}

/* Table styles - Bordered */
.voice-cast-table-bordered {
    border: 2px solid #e1e1e1;
}

.voice-cast-table-bordered th,
.voice-cast-table-bordered td {
    border: 2px solid #e1e1e1;
}

.voice-cast-table-bordered th {
    border-bottom: 3px solid #d1d1d1;
}

/* Table styles - Compact */
.voice-cast-table-compact th,
.voice-cast-table-compact td {
    padding: 8px 10px;
    font-size: 0.9em;
}

.voice-cast-table-compact .character-image,
.voice-cast-table-compact .actor-image {
    flex: 0 0 40px;
    margin-right: 10px;
}

.character-info,
.actor-info {
    display: flex;
    align-items: center;
}

.character-image,
.actor-image {
    flex: 0 0 60px;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.character-image img,
.actor-image img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.character-image a:hover img,
.actor-image a:hover img {
    opacity: 0.8;
}

.character-name,
.actor-name {
    flex: 1;
    font-size: inherit;
    font-weight: normal;
    line-height: normal;
}

/* Video Game Single Page */
.game-meta {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 3px solid var(--vad-primary-color, #0088ff);
}

.game-genres {
    margin-top: 10px;
    margin-bottom: 20px;
}

.video-games-grid {
    margin-bottom: 30px;
}

.video-game-item {
    margin-bottom: 30px;
}

.video-game-title {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
}

/* Character Single Page */
.character-profile {
    margin-bottom: 30px;
}

.character-header {
    display: flex;
    margin-bottom: 20px;
}

.character-featured-image {
    flex: 0 0 200px;
    margin-right: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.character-featured-image img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.character-featured-image a:hover img {
    opacity: 0.8;
}

/* Voice clip play button */
.voice-clip-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

.voice-clip-icon i {
    color: white;
    font-size: 16px;
}

/* Hide the no-clip icon completely */
.voice-clip-icon.no-clip {
    display: none;
}

.voice-clip-icon:hover {
    background-color: var(--vad-primary-color, #0088ff);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 10px 3px rgba(0, 136, 255, 0.5);
}

/* Special hover effect when mouse approaches the image containing voice clip */
.character-image a:hover .voice-clip-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0, 136, 255, 0.8);
    box-shadow: 0 0 10px 3px rgba(0, 136, 255, 0.5);
}

.voice-clip-icon.playing {
    background-color: var(--vad-primary-color, #0088ff);
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px 3px rgba(0, 136, 255, 0.5);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Adjust for single character page */
.character-featured-image .voice-clip-icon {
    width: 50px;
    height: 50px;
}

.character-featured-image .voice-clip-icon i {
    font-size: 20px;
}

/* Voiced by label for SEO */
.voiced-by-label {
    position: absolute;
    left: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.character-meta {
    flex: 1;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.character-meta > div {
    margin-bottom: 10px;
}

.character-aliases ul {
    margin: 5px 0 0 20px;
}

.voice-actors-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.voice-actor-box {
    flex: 0 0 calc(50% - 30px);
    margin: 0 15px 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.voice-actor-box h4 {
    background-color: var(--primary-color, #0088ff);
    color: #fff;
    padding: 10px 15px;
    margin: 0;
}

.voice-actor-info {
    display: flex;
    padding: 15px;
}

.voice-actor-image {
    flex: 0 0 80px;
    margin-right: 15px;
}

.voice-actor-details {
    flex: 1;
}

.voice-actor-name {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Voice actor profile page */
.actor-profile {
    margin-bottom: 30px;
}

.actor-header {
    display: flex;
    margin-bottom: 20px;
}

.actor-photo {
    flex: 0 0 200px;
    margin-right: 30px;
}

.actor-meta {
    flex: 1;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.actor-meta > div {
    margin-bottom: 10px;
}

.actor-website {
    margin-bottom: 10px;
}

.actor-website a {
    color: #0088ff;
    text-decoration: none;
}

.actor-website a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    color: var(--primary-color, #0088ff);
    transition: opacity 0.3s ease;
}

.social-links a i {
    font-size: 24px;
}

.actor-roles {
    margin-top: 40px;
}

.actor-roles h3 {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid var(--vad-primary-color, #0088ff);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.actor-roles h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--vad-primary-color, #0088ff);
}

.roles-grid {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.role-item {
    display: flex;
    margin-bottom: 0;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.role-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.role-image {
    flex: 0 0 100px;
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.role-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.role-image img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.role-image a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    z-index: 1;
}

.role-image a:hover:before {
    background-color: rgba(0, 0, 0, 0.2);
}

.role-image a:hover img {
    transform: scale(1.1);
}

.role-image .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-image .no-image:after {
    content: "\f007"; /* Person icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 48px;
    color: #ccc;
}

.role-details {
    flex: 1;
    padding: 15px 20px;
}

.role-video-game {
    margin-bottom: 8px;
    font-size: 14px;
}

.role-video-game a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.role-video-game a:hover {
    color: var(--vad-primary-color, #0088ff);
}

.role-character {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.role-character a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.role-character a:hover {
    color: var(--vad-primary-color, #0088ff);
}

.role-language {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    color: #666;
    margin-left: 8px;
}

.role-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image:before {
    content: '\f11b'; /* Controller icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 48px;
    color: #ccc;
}

/* Ensure dashicons are displayed properly */
.no-image .dashicons {
    font-size: 24px;
    color: #999;
    display: inline-block !important;
}

/* Force dashicons to be visible and properly styled */
.dashicons {
    font-family: dashicons !important;
    speak: never;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.voice-actors-database-settings .form-table th {
    width: 250px;
}

.sample-data-options {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.sample-data-options button {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .character-header,
    .actor-header {
        flex-direction: column;
    }
    
    .character-featured-image,
    .actor-photo {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .voice-actors-wrapper {
        flex-direction: column;
    }
    
    .voice-actor-box {
        flex: 0 0 auto;
        margin: 0 0 20px;
    }
}

/* Voice Actor Stats */
.voice-actor-stats {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    width: fit-content;
}

.voice-actor-stat-item {
    padding: 5px 15px;
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
}

.voice-actor-stat-item + .voice-actor-stat-item {
    border-left: 1px solid #f2d7d5;
}

.stat-count {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #e74c3c;
}

.stat-label {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    color: #e74c3c;
}

/* Voice Cast Navigation */
.voice-cast-navigation {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-label {
    font-weight: bold;
    margin-right: 15px;
    color: #333;
    font-size: 14px;
}

.view-by-options {
    display: flex;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.view-by-options li {
    margin: 0;
    position: relative;
    list-style: none !important;
    list-style-type: none !important;
}

.view-by-options li::marker {
    display: none !important;
    content: none !important;
}

.view-by-options li::before {
    display: none !important;
}

.view-by-options li:first-child::marker {
    display: none !important;
    content: none !important;
}

.view-by-options li a {
    display: block;
    padding: 5px 10px;
    color: #137cbd;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.view-by-options li a:hover {
    background-color: #f5f5f5;
}

.view-by-options li.active a {
    color: #e74c3c;
    background-color: #f8f8f8;
}

.view-by-options li + li:before {
    content: "|";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ddd;
    font-weight: normal;
    font-size: 12px;
    display: block !important;
}

/* Additional comprehensive list marker removal */
.voice-cast-navigation * {
    list-style: none !important;
    list-style-type: none !important;
}

.voice-cast-navigation *::marker {
    display: none !important;
    content: none !important;
}

.voice-cast-navigation *::before {
    content: none !important;
}

.voice-cast-navigation ul,
.voice-cast-navigation ol {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Restore the pipe separators specifically */
.view-by-options li + li:before {
    content: "|" !important;
    display: block !important;
}

/* Video Game Title */
.video-game-title {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

/* Character Groups Styles */
.character-groups-navigation {
    margin-bottom: 30px;
}

.character-groups-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e1e1e1;
}

.character-groups-list li {
    margin: 0;
    padding: 0;
}

.character-groups-list li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.character-groups-list li a:hover {
    background-color: #f5f5f5;
}

.character-groups-list li.active a {
    color: var(--vad-primary-color, #0088ff);
    font-weight: bold;
}

.character-groups-list li.active a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--vad-primary-color, #0088ff);
}

.group-description {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 3px solid var(--vad-primary-color, #0088ff);
}

.character-subgroups {
    margin-bottom: 30px;
}

.subgroups-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.subgroups-list li {
    margin: 0;
    padding: 0;
}

.subgroups-list li a {
    display: block;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.subgroups-list li a:hover {
    background-color: var(--vad-primary-color, #0088ff);
    color: #fff;
}

.character-voice-actors {
    margin-top: 8px;
    font-size: 0.9em;
}

.jp-actor, .en-actor {
    display: inline-block;
    margin-right: 10px;
}

.select-group-prompt,
.no-characters-found,
.no-groups-found {
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current {
    background-color: var(--vad-primary-color, #0088ff);
    color: #fff;
    border-color: var(--vad-primary-color, #0088ff);
}

.pagination .page-numbers:hover {
    background-color: #f5f5f5;
}

.pagination .page-numbers.current:hover {
    background-color: var(--vad-primary-color, #0088ff);
}

.character-groups {
    margin-top: 15px;
}

.groups-list {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.character-group-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.character-group-tag a {
    color: #333;
    text-decoration: none;
}

.character-group-tag:hover {
    background-color: var(--vad-primary-color, #0088ff);
}

.character-group-tag:hover a {
    color: #fff;
}

/* Browse Voice Actors Page Styles */
.voice-actors-browse-container {
    margin: 30px 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Voice Actor Search Box Styles */
.voice-actor-search {
    margin-bottom: 25px;
    position: relative;
}

.voice-actor-search input[type="text"] {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.voice-actor-search input[type="text"]:focus {
    border-color: var(--vad-primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.2);
}

.voice-actor-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--vad-primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: all 0.3s;
}

.voice-actor-search button:hover {
    background: #0066cc;
}

/* Voice Actors Counter */
.voice-actors-counter {
    text-align: center;
    margin: 40px auto;
    background: linear-gradient(135deg, var(--vad-primary-color) 0%, rgba(0,136,255,0.7) 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,136,255,0.15);
    max-width: 300px;
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.counter-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Alphabet Navigation */
.alphabet-nav {
    background-color: #2c3e50;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alphabet-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.letter-link {
    display: inline-block;
    padding: 12px 15px;
    margin: 0;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
    min-width: 48px;
}

.letter-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.letter-link.active {
    background-color: var(--vad-primary-color);
    color: white;
    box-shadow: 0 0 10px rgba(0,136,255,0.5);
}

.letter-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Language Filter */
.language-filter {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.language-filter select {
    padding: 10px 15px;
    border: 2px solid var(--vad-primary-color);
    border-radius: 30px;
    font-size: 16px;
    color: #333;
    background-color: white;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0.5 0.5 12 12"><path d="M1 4 L6.5 9.5 L12 4" stroke="%230088ff" stroke-width="2" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.language-filter select:focus {
    outline: none;
    border-color: var(--vad-primary-color);
    box-shadow: 0 0 0 3px rgba(0,136,255,0.25);
}

/* Current Filter */
.current-filter {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Voice Actors Grid */
.voice-actors-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.voice-actor-item {
    padding: 15px;
    margin-bottom: 30px;
}

.voice-actor-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.voice-actor-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.voice-actor-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.voice-actor-image {
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.voice-actor-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.voice-actor-card:hover .voice-actor-image img {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Add overlay effect */
.voice-actor-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: all 0.3s ease;
    pointer-events: none;
}

.voice-actor-card:hover .voice-actor-image:after {
    background: rgba(0,0,0,0.1);
}

.voice-actor-name {
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.voice-actor-language {
    margin: -5px 15px 15px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
    text-align: center;
    width: auto;
    background-color: #f0f0f0;
    color: #333;
    align-self: center;
}

.voice-actor-language.japanese {
    background-color: #ffecb3;
    color: #947100;
}

.voice-actor-language.english {
    background-color: #d1e7ff;
    color: #0062cc;
}

.voice-actor-language.both {
    background-color: #d4f4e2;
    color: #148f54;
}

.voice-actor-image .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.voice-actor-image .no-image:after {
    content: "\f007"; /* Person icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 48px;
    color: #ccc;
}

.voice-actor-card:hover .voice-actor-image .no-image {
    background-color: #dddddd;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers.current {
    background-color: var(--vad-primary-color);
    color: white;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #e0e0e0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .alphabet-nav-inner {
        flex-wrap: wrap;
    }
    
    .letter-link {
        padding: 10px;
        font-size: 16px;
        min-width: 38px;
    }
    
    .voice-actor-item {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .voice-actor-item {
        width: 100%;
    }
    
    .alphabet-nav-inner {
        justify-content: center;
    }
    
    .letter-link {
        padding: 8px;
        font-size: 14px;
        min-width: 34px;
    }
}

/* Video Games Browser Styles */
.video-games-browse-container {
    margin: 30px 0;
}

.video-game-search {
    margin-bottom: 25px;
    position: relative;
}

.video-game-search input[type="text"] {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.video-game-search input[type="text"]:focus {
    border-color: var(--vad-primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.2);
}

.video-game-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--vad-primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: all 0.3s;
}

.video-game-search button:hover {
    background: #0066cc;
}

/* Alphabet Navigation */
.alphabet-nav {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.alphabet-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    min-width: 600px;
}

.letter-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s;
    padding: 5px;
}

.letter-link:hover:not(.disabled) {
    background-color: rgba(0, 136, 255, 0.1);
    color: var(--vad-primary-color);
}

.letter-link.active {
    background-color: var(--vad-primary-color);
    color: white;
}

.letter-link.disabled {
    color: #ccc;
    cursor: default;
}

.letter-count {
    font-size: 12px;
    margin-top: 2px;
    color: #888;
    display: block;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.letter-link.active .letter-count {
    color: rgba(255, 255, 255, 0.8);
}

.letter-link.disabled .letter-count {
    color: #ddd;
}

/* Current Filter */
.current-filter {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Video Games Grid */
.video-games-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.video-game-item {
    padding: 0 15px;
    margin-bottom: 30px;
}

.video-game-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.video-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-game-image {
    position: relative;
    overflow: hidden;
    padding-top: 133%; /* 3:4 aspect ratio for game covers */
}

.video-game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-game-card:hover .video-game-image img {
    transform: scale(1.05);
}

.video-game-name {
    padding: 15px 15px 5px;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.video-game-genre {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #888;
}

.video-game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image:before {
    content: '\f11b'; /* Controller icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 48px;
    color: #ccc;
}

/* Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers.current {
    background: var(--vad-primary-color);
    color: white;
    border-color: var(--vad-primary-color);
}

.pagination .page-numbers:hover:not(.current) {
    background: #f5f5f5;
    border-color: #ccc;
}

/* No Results */
.no-results {
    padding: 30px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .letter-link {
        min-width: 20px;
        font-size: 16px;
    }
    
    .video-game-item {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .video-game-item {
        width: 100%;
    }
    
    .alphabet-nav-inner {
        justify-content: flex-start;
    }
}

.voice-actor-image:before {
    content: 'View Details';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 136, 255, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.voice-actor-card:hover .voice-actor-image:before {
    opacity: 1;
}

.role-image a:after {
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 136, 255, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.role-image a:hover:after {
    opacity: 1;
}

.section-header {
    margin-bottom: 30px;
}

.actor-roles .section-header {
    position: relative;
    margin-bottom: 35px;
    background-color: #f4f6f8;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--vad-primary-color, #0088ff);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.actor-roles .section-header h3 {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    color: #333;
    font-size: 22px;
}

.actor-roles .section-header h3:after {
    display: none;
}

/* Voice Actor Image Container - Single Template Only */
.voice-actor-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background-color: #f8f8f8;
    padding: 0;
    margin: 0;
    max-width: 100%;
    display: inline-block;
    transition: all 0.3s ease;
}

.voice-actor-image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.voice-actor-image-container:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.voice-actor-image-container:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .voice-actor-image-container {
        width: 80%;
        margin: 0 auto 20px;
    }
}

/* Additional Voices Section */
.additional-voices-section {
    margin-top: 40px;
    margin-bottom: 20px;
    border-top: 2px solid #eaeaea;
    padding-top: 20px;
}

.additional-voices-section .section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c2f34;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.additional-voices-section .section-title:after {
    content: "";
    width: 50px;
    height: 3px;
    background: var(--vad-primary-color, #0088ff);
    position: absolute;
    bottom: 0;
    left: 0;
}

.additional-voices-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.additional-voices-grid .voice-actor-item {
    padding: 10px;
    margin-bottom: 20px;
}

.additional-voices-grid .voice-actor-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.additional-voices-grid .voice-actor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.additional-voices-grid .voice-actor-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f5f5f5;
}

.additional-voices-grid .voice-actor-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.additional-voices-grid .voice-actor-name {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2c2f34;
}

.additional-voices-grid .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5 url('../images/placeholder.png') no-repeat center center;
    background-size: 60%;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .additional-voices-grid .voice-actor-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 479px) {
    .additional-voices-grid .voice-actor-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Narrator Section */
.narrator-section {
    margin: 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.narrator-section .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #8B0000; /* Dark red color */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B0000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.narrator-info {
    display: flex;
    align-items: center;
}

.narrator-image {
    flex: 0 0 120px;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.narrator-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.narrator-image:hover img {
    transform: scale(1.05);
}

.narrator-details {
    flex: 1;
}

.narrator-name {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.narrator-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.narrator-name a:hover {
    color: var(--vad-primary-color, #0088ff);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .narrator-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .narrator-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100px;
    }
} 