/* Custom styles for Voice Actors Database */

/* Featured Image Styling for Video Games and Animations - Exact 200x280px size */
.single-video_game .post-thumbnail img,
.single-animation .post-thumbnail img,
.single-video_game .featured-area img,
.single-animation .featured-area img,
.video-game-image img,
.animation-image img {
    width: 200px !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0 auto !important; /* Center images horizontally */
}

/* Fix container size issue for video game and animation cards */
.video-game-card, 
.animation-card {
    width: 200px !important;
    margin: 0 auto;
    box-shadow: none !important; /* Remove box shadow from card */
    background: transparent !important; /* Make background transparent */
}

/* Remove any spacing around the image */
.video-game-item,
.animation-item {
    padding: 0 10px !important;
    margin-bottom: 20px !important;
}

.video-game-image, 
.animation-image {
    padding-top: 0 !important;
    height: auto !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
}

.video-game-image img, 
.animation-image img {
    position: static !important;
}

/* Fix animation type badge position for the new layout */
.animation-type-badge {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 5px 10px !important;
    font-size: 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    z-index: 10 !important;
}

.video-game-name, 
.animation-name {
    padding: 8px 0 !important;
    margin: 0 !important;
    text-align: center;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.video-game-genre, 
.animation-genre {
    display: none;
}

/* Game/Animation details styling */
.game-meta, .animation-meta {
    font-size: 15px;
    line-height: 1.6;
}

.game-content-wrapper, .animation-content-wrapper {
    display: flex;
    margin-bottom: 20px; 
}

.game-content-wrapper .featured-area, 
.animation-content-wrapper .featured-area {
    flex: 0 0 auto;
    margin-right: 20px;
}

.game-details, .animation-details {
    flex: 1;
}

/* Responsive styles for game/animation layout */
@media (max-width: 768px) {
    .game-content-wrapper, .animation-content-wrapper {
        flex-direction: column;
    }
    
    .game-content-wrapper .featured-area,
    .animation-content-wrapper .featured-area {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
}

/* Target featured images in archive views */
.post-type-archive-video_game .post-thumbnail img,
.post-type-archive-animation .post-thumbnail img,
.tax-game_genre .post-thumbnail img,
.tax-animation_genre .post-thumbnail img,
.tax-animation_studio .post-thumbnail img,
.tax-game_developer .post-thumbnail img,
.tax-game_publisher .post-thumbnail img {
    width: 200px !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Center voice actor stats */
.voice-actor-stats-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

/* Voice Actor Grid Styling - Exact Size as Reference */
.voice-actors-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.voice-actor-item {
    padding: 10px;
    margin-bottom: 20px;
    width: 25%; /* Show 4 per row */
    box-sizing: border-box;
}

.voice-actor-card {
    background-color: #fff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    /* Match exact dimensions in reference image */
    width: 165px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    padding: 10px;
}

.voice-actor-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.voice-actor-image {
    position: relative;
    /* Match exact dimensions in reference image */
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
    overflow: hidden;
    border: none;
}

.voice-actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-actor-name {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #333;
    width: 100%;
    text-align: center;
}

.voice-actor-language {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    color: #666;
}

.voice-actor-language.english {
    background-color: #d4edda;
    color: #155724;
}

.voice-actor-language.japanese {
    background-color: #f8d7da;
    color: #721c24;
}

.voice-actor-language.both {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Language filter dropdown - increased width */
.language-filter {
    margin: 20px 0;
    text-align: center;
}

.language-filter select {
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    width: 250px; /* Wider dropdown */
    min-width: 250px; /* Ensure minimum width */
    height: auto; /* Auto height */
    appearance: menulist; /* Native dropdown appearance */
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

/* Fix the "Showing All" text below the dropdown */
.current-filter {
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Responsive styles */
@media (max-width: 991px) {
    .voice-actor-item {
        width: 33.333%; /* 3 per row on medium screens */
    }
}

@media (max-width: 768px) {
    .voice-actor-item {
        width: 50%; /* 2 per row on tablets */
    }
}

@media (max-width: 480px) {
    .voice-actor-item {
        width: 100%; /* 1 per row on mobile */
    }
    
    .language-filter select {
        width: 100%;
        max-width: 300px;
    }
}

/* Voice actor stats */
.voice-actor-stats {
    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;
    max-width: 100%;
    display: flex;
}

/* Desktop styles for tables */
.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;
}

.character-info,
.actor-info {
    display: flex;
    align-items: center;
}

.character-image,
.actor-image {
    flex: 0 0 60px;
    margin-right: 15px;
}

.character-image img,
.actor-image img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.character-name,
.actor-name {
    flex: 1;
}

/* Voice Actor grid and character voices styling */
.voices-text {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    color: #555;
    font-weight: 500;
}

.character-names {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.more-characters-btn {
    display: inline-block;
    background: #4a89dc;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    cursor: pointer;
    margin-left: 4px;
    font-weight: bold;
    vertical-align: middle;
}

.more-characters-btn:hover {
    background: #366dbe;
}

.character-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.character-popup-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.character-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.character-popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.character-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.character-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.character-popup-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.character-popup-item:last-child {
    border-bottom: none;
}

.character-popup-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.character-popup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-popup-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.character-popup-item a:hover {
    color: #4a89dc;
}

/* Hide mobile card layout on desktop */
.voice-cast-card {
    display: none;
}

/* Voice clip button styles */
.voice-clip-mobile {
    margin-top: 10px;
    text-align: center;
}

.play-voice-clip {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.play-voice-clip i {
    margin-right: 6px;
}

.play-voice-clip:hover {
    background-color: #366dbe;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.play-voice-clip.playing {
    background-color: #e74c3c;
}

/* Smaller mobile styles */
@media (max-width: 480px) {
    /* Make voice actor stats more compact */
    .voice-actor-stats {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }
    
    .voice-actor-stat-item + .voice-actor-stat-item {
        border-left: none;
        border-top: 1px solid #f2d7d5;
        margin-top: 5px;
        padding-top: 5px;
    }
    
    /* Adjust character popups for smaller screens */
    .character-popup-content {
        width: 95%;
        padding: 15px;
    }
    
    .character-popup-title {
        font-size: 16px;
    }
    
    .character-popup-item {
        padding: 6px 0;
    }
    
    .character-popup-thumb {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .character-popup-item a {
        font-size: 13px;
    }
}

/* Card layout for voice cast on mobile */
@media (max-width: 650px) {
    /* Hide the original table presentation on mobile */
    .voice-cast-table.combined-display {
        border: none !important;
        background: none !important;
    }
    
    .voice-cast-table.combined-display thead {
        display: none !important;
    }
    
    .voice-cast-table.combined-display tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    /* Hide all standard table elements in mobile view */
    .voice-cast-table.combined-display td,
    .voice-cast-table.combined-display th,
    .voice-cast-table.combined-display tr > div:not(.voice-cast-card) {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
        opacity: 0 !important;
    }
    
    /* Style table rows as cards */
    .voice-cast-table.combined-display tr {
        display: block !important;
        margin-bottom: 15px !important;
        background: transparent !important;
        border: none !important; 
        padding: 0 !important;
    }
    
    /* Show mobile card layout */
    .voice-cast-card {
        display: block !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        background: #fff !important;
        border: 1px solid #eaeaea !important;
        border-radius: 8px !important;
        padding: 15px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }
    
    /* Images container side by side */
    .voice-cast-card-images {
        display: flex !important;
        justify-content: space-between !important;
        margin-bottom: 8px !important;
    }
    
    /* Character side */
    .voice-cast-card-character {
        width: 47% !important;
        text-align: center !important;
    }
    
    /* VA side */
    .voice-cast-card-actor {
        width: 47% !important;
        text-align: center !important;
    }
    
    /* Image styling */
    .voice-cast-card .card-image {
        width: 100% !important;
        border: 1px solid #eaeaea !important;
        border-radius: 4px !important;
        overflow: hidden !important;
    }
    
    .voice-cast-card .card-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    
    /* Names below images */
    .voice-cast-card .card-name {
        font-size: 14px !important;
        color: #4a89dc !important;
        margin-top: 5px !important;
        margin-bottom: 2px !important;
    }
    
    /* Subtitle text (voiced by) */
    .voice-cast-card .card-subtitle {
        font-size: 12px !important;
        color: #888 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Japanese actor note */
    .voice-cast-card .card-jp-note {
        font-size: 12px !important;
        color: #888 !important;
        margin-top: 4px !important;
        padding: 0 !important;
        text-align: right !important;
        line-height: 1.2 !important;
    }
    
    .voice-cast-card .card-jp-note a {
        color: #888 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    
    /* Japanese flag for JP VAs */
    .jp-flag {
        width: 14px !important;
        height: 14px !important;
        border-radius: 50% !important;
        display: inline-block !important;
        background-color: #bc002d !important;
        position: relative !important;
        overflow: hidden !important;
        vertical-align: middle !important;
        margin-right: 6px !important;
    }
    
    /* Fix any empty elements that might cause rectangular shapes */
    .voice-cast-card div:empty,
    .voice-cast-card-images div:empty,
    .voice-cast-card-character div:empty,
    .voice-cast-card-actor div:empty {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    
    /* Mobile voice clip button styles */
    .voice-clip-mobile {
        margin-top: 10px !important;
        text-align: center !important;
    }
    
    .play-voice-clip {
        background-color: #4a89dc !important;
        color: white !important;
        border: none !important;
        border-radius: 20px !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        width: auto !important;
        height: auto !important;
    }
    
    .play-voice-clip i {
        margin-right: 6px !important;
    }
    
    .play-voice-clip:hover {
        background-color: #366dbe !important;
    }
    
    .play-voice-clip.playing {
        background-color: #e74c3c !important;
    }
}

/* Fix for the no-image placeholder in the more-characters-count context */
.more-characters-count {
    position: relative;
    z-index: 10; /* Higher z-index to ensure it's clickable */
    pointer-events: all;
}

.more-characters-count a,
.more-characters-count div {
    pointer-events: none; /* Prevent clicks on inner elements */
}

/* Animations browse page styles */
.animations-counter {
    text-align: center;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.animation-search {
    margin: 20px 0;
    position: relative;
}

.animation-search form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.animation-search input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.animation-search button {
    background: var(--vad-primary-color, #0088ff);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.animation-search button:hover {
    background: #0066cc;
}

/* Animation type filter */
.animation-type-filter {
    margin: 20px 0;
    text-align: center;
}

.animation-type-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    min-width: 250px; /* Wider dropdown */
    width: 250px; /* Fixed width */
    text-overflow: visible;
    -webkit-appearance: menulist; /* Re-enable native dropdown styling */
    appearance: menulist;
    height: 45px; /* Taller height */
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 1.2;
}

.animation-type-filter select option {
    padding: 10px;
    font-size: 14px;
    height: 35px; /* Taller options */
    line-height: 35px; /* Improve vertical alignment */
}

/* Animations Grid */
.animations-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.animation-item {
    padding: 10px;
    margin-bottom: 20px;
    width: 25% !important; /* Changed to display 4 items per row - half size */
    box-sizing: border-box;
}

.animation-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.animation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.animation-image {
    position: relative;
    overflow: hidden;
    padding-top: 140%; /* 10:14 aspect ratio */
}

.animation-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.animation-card:hover .animation-image img {
    transform: scale(1.05);
}

.animation-type-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.animation-name {
    padding: 10px 12px 5px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.animation-genre {
    padding: 0 12px 10px;
    font-size: 12px;
    color: #666;
}

.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:after {
    content: "\f03e";
    font-family: "Font Awesome 5 Free";
    font-size: 40px;
    color: #ccc;
}

/* Fixes for animation letter count in alphabet navigation */
.animation-letter-count {
    display: block;
    font-size: 10px;
    margin-top: 3px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for animation grid */
@media (max-width: 768px) {
    .animation-item {
        width: 33.33% !important; /* 3 items per row on medium screens */
    }
}

@media (max-width: 480px) {
    .animation-item {
        width: 50% !important; /* 2 items per row on small screens */
    }
    
    .animation-search input[type="text"] {
        font-size: 14px;
    }
    
    .animation-type-filter select {
        width: 100%;
        max-width: 100%;
    }
    
    /* Make voice actor stats more compact */
    .voice-actor-stats {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }
    
    .voice-actor-stat-item + .voice-actor-stat-item {
        border-left: none;
        border-top: 1px solid #f2d7d5;
        margin-top: 5px;
        padding-top: 5px;
    }
    
    /* Adjust character popups for smaller screens */
    .character-popup-content {
        width: 95%;
        padding: 15px;
    }
    
    .character-popup-title {
        font-size: 16px;
    }
    
    .character-popup-item {
        padding: 6px 0;
    }
    
    .character-popup-thumb {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .character-popup-item a {
        font-size: 13px;
    }
}

/* Franchise Styles */
.franchise-header {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 2rem;
}

.franchise-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.franchise-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.franchise-details {
    flex: 1;
    min-width: 300px;
}

.franchise-meta {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--vad-primary-color);
}

.franchise-meta > div {
    margin-bottom: 0.5rem;
}

.franchise-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: var(--vad-primary-color);
}

/* Franchise Grid Items */
.voice-actors-grid,
.characters-grid,
.video-games-grid,
.animations-grid,
.franchises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.voice-actor-card,
.character-card,
.video-game-card,
.animation-card,
.franchise-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.voice-actor-card:hover,
.character-card:hover,
.video-game-card:hover,
.animation-card:hover,
.franchise-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.voice-actor-link,
.character-link,
.video-game-link,
.animation-link,
.franchise-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.voice-actor-image,
.character-image,
.video-game-image,
.animation-image,
.franchise-image {
    height: 200px;
    overflow: hidden;
}

.voice-actor-image img,
.character-image img,
.video-game-image img,
.animation-image img,
.franchise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.voice-actor-link:hover img,
.character-link:hover img,
.video-game-link:hover img,
.animation-link:hover img,
.franchise-link:hover img {
    transform: scale(1.05);
}

.voice-actor-info,
.character-info,
.video-game-info,
.animation-info,
.franchise-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.voice-actor-name,
.character-name,
.video-game-name,
.animation-name,
.franchise-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--vad-primary-color);
}

.voice-actor-description,
.character-description,
.franchise-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.character-media,
.video-game-meta,
.animation-meta,
.franchise-counts,
.franchise-year {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.franchise-counts span {
    display: inline-block;
    margin-right: 1rem;
    background-color: #f5f5f5;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
}

.year-label,
.media-label {
    font-weight: bold;
}

/* Browse Franchises Page */
.browse-header {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.browse-title {
    margin-bottom: 1rem;
}

.browse-search {
    width: 100%;
    max-width: 500px;
}

.franchise-search-form {
    display: flex;
}

.franchise-search-form input[type="text"] {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-button {
    background-color: var(--vad-primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
}

.search-button:hover {
    background-color: #0077ee;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 2rem 0;
}

.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current {
    background-color: var(--vad-primary-color);
    color: #fff;
    border-color: var(--vad-primary-color);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .franchise-header {
        flex-direction: column;
    }
    
    .franchise-image {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .voice-actors-grid,
    .characters-grid,
    .video-games-grid,
    .animations-grid,
    .franchises-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .voice-actor-image,
    .character-image,
    .video-game-image,
    .animation-image,
    .franchise-image {
        height: 150px;
    }
    
    .browse-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .browse-search {
        width: 100%;
    }
}

/* Franchise Meta Display */
.franchise-meta-tag {
    display: inline-block;
    background-color: var(--vad-primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.franchise-meta-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.franchise-meta-tag i {
    margin-right: 5px;
}

/* Franchise Stats Counters */
.franchise-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.franchise-stat-counter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.franchise-stat-counter:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vad-primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Improved Franchise Featured Image */
.franchise-featured-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.franchise-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.franchise-featured-image:hover img {
    transform: scale(1.03);
}

.franchise-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Small modern thumbnails for voice actors and other items */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.thumbnail-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 2;
}

.thumbnail-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.thumbnail-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .franchise-stats {
        justify-content: center;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .thumbnail-image {
        height: 70px;
    }
}

/* Custom CSS Additions for Voice Actors Database Plugin */

/* Character and Voice Actor Column Consistency */
.voice-cast-table .character-info,
.voice-cast-table .actor-info {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Targeted fix for character column alignment - ONLY affects voice cast tables */
.voice-cast-table .character-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.voice-cast-table .character-name {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.voice-cast-table .character-name,
.voice-cast-table .actor-name {
    font-size: inherit;
    font-weight: normal;
    line-height: normal;
}

/* Ensure name text is consistently styled regardless of parent elements */
.name-text {
    font-size: inherit;
    font-weight: normal;
    line-height: normal;
    display: inline;
}

.voice-cast-table .character-image,
.voice-cast-table .actor-image {
    flex: 0 0 60px;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Fix for mobile cards */
@media only screen and (max-width: 768px) {
    .voice-cast-card-character,
    .voice-cast-card-actor {
        flex: 1;
        padding: 10px;
        text-align: center;
    }

    .voice-cast-card .card-name {
        font-size: inherit;
        font-weight: normal;
        line-height: normal;
    }

    /* Fix for character column showing with big font */
    .voice-cast-table .character-name h2,
    .voice-cast-table .character-name h3,
    .voice-cast-table .character-name h4 {
        font-size: inherit;
        margin: 0;
        padding: 0;
        line-height: normal;
        font-weight: normal;
    }

    /* Hide any theme-specific styles that might affect the character layout */
    .voice-cast-table .character-name *:not(a),
    .voice-cast-table .actor-name *:not(a) {
        font-size: inherit !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: normal !important;
        font-weight: normal !important;
    }
} 