/**
 * Characters Section - The Heart of Gold
 * Meet the Characters & Voice Cast
 */

/* ========================================
   Section Container & Background
======================================== */
.characters-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.characters-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.char-bg-solid {
    position: absolute;
    inset: 0;
    background: var(--color-purple-deep);
}

.char-bg-stripes {
    position: absolute;
    inset: -100%;
    width: 300%;
    height: 300%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(155, 89, 182, 0.08) 20px,
        rgba(155, 89, 182, 0.08) 40px
    );
    animation: stripesMove 30s linear infinite;
}

@keyframes stripesMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(56px, 56px); }
}

/* Character-specific stripe colors */
.characters-section[data-character="shiori"] .char-bg-stripes {
    background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(155, 89, 182, 0.08) 20px, rgba(155, 89, 182, 0.08) 40px);
}

.characters-section[data-character="irene"] .char-bg-stripes {
    background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(231, 76, 60, 0.08) 20px, rgba(231, 76, 60, 0.08) 40px);
}

.characters-section[data-character="zoe"] .char-bg-stripes {
    background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255, 105, 180, 0.08) 20px, rgba(255, 105, 180, 0.08) 40px);
}

.characters-section[data-character="maya"] .char-bg-stripes {
    background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(46, 204, 113, 0.08) 20px, rgba(46, 204, 113, 0.08) 40px);
}

.meet-characters-subsection {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-lg) var(--space-xl);
    display: grid;
    grid-template-columns: 280px 1fr 420px;
    overflow: hidden;
    width: 100%;
}

/* Top fade for smooth transition from game features - subtle */
.meet-characters-subsection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        var(--color-purple-deep) 0%,
        rgba(20, 2, 59, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 50;
}

/* Bottom fade for smooth transition to voice cast - subtle */
.meet-characters-subsection::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(20, 2, 59, 0.3) 50%,
        var(--color-purple-deep) 100%
    );
    pointer-events: none;
    z-index: 50;
}

/* ========================================
   Background Pattern
======================================== */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple-deep);
    background-image: radial-gradient(var(--color-purple-light) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 0;
}

/* ========================================
   Diagonal Divider
======================================== */
.diagonal-divider {
    position: absolute;
    left: 240px;
    top: 0;
    width: 80px;
    height: 100%;
    background-color: var(--color-divider);
    transform: skewX(-5deg);
    z-index: 2;
    box-shadow: 
        -10px 0 30px rgba(0, 0, 0, 0.5),
        10px 0 30px rgba(0, 0, 0, 0.5);
}

.diagonal-divider::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #D9307F;
    );
}

/* ========================================
   Character Selector (Left Panel)
======================================== */
.character-selector {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 200px;
}

.character-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* ========================================
   Character Cards
======================================== */
.character-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.card-frame {
    position: relative;
    width: 200px;
    height: 120px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.card-image {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5);
    transition: var(--transition-normal);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(23, 4, 38, 0.7) 0%,
        transparent 50%,
        rgba(23, 4, 38, 0.7) 100%
    );
    transition: var(--transition-normal);
}

/* Card Active State */
.character-card.active .card-frame {
    border-color: var(--color-accent);
    box-shadow: 
        0 0 20px var(--color-accent-glow),
        inset 0 0 20px rgba(217, 48, 127, 0.3);
}

.character-card.active .card-image {
    filter: grayscale(0%) brightness(1);
}

.character-card.active .card-overlay {
    background: linear-gradient(135deg, 
        rgba(217, 48, 127, 0.2) 0%,
        transparent 50%,
        rgba(129, 60, 232, 0.2) 100%
    );
}

/* Card Hover State */
.character-card:hover:not(.active) .card-frame {
    border-color: var(--color-purple-light);
    transform: translateX(10px);
}

.character-card:hover:not(.active) .card-image {
    filter: grayscale(50%) brightness(0.7);
}

/* Frame decorations */
.card-frame::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--color-divider);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

.character-card.active .card-frame::before {
    background: var(--color-accent);
}

/* ========================================
   Character Display (Center)
======================================== */
.character-display {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.character-name-container {
    position: absolute;
    top: 40px;
    right: 60px;
    text-align: right;
    z-index: 5;
}

.character-name {
    font-family: var(--font-pixel);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-text);
    text-shadow: 
        0 0 10px var(--color-accent-glow),
        0 0 30px var(--color-accent-glow),
        2px 2px 0 var(--color-purple-deep);
    letter-spacing: 3px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.character-level {
    font-family: var(--font-pixel-alt);
    font-size: 1.2rem;
    color: var(--color-accent);
    letter-spacing: 2px;
}

@keyframes titleGlow {
    from {
        text-shadow: 
            0 0 10px var(--color-accent-glow),
            0 0 30px var(--color-accent-glow),
            2px 2px 0 var(--color-purple-deep);
    }
    to {
        text-shadow: 
            0 0 20px var(--color-accent-glow),
            0 0 50px var(--color-accent-glow),
            2px 2px 0 var(--color-purple-deep);
    }
}

.character-splash {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-image {
  width: 100%;
    max-width: 800%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(129, 60, 232, 0.5));
    animation: 4s ease-in-out infinite;
    transition: var(--transition-slow);
    image-rendering: pixelated;
}


/* Floating Particles */
.splash-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 6s ease-in-out infinite;
}

.floating-particle:nth-child(1) {
    left: 20%;
    top: 60%;
    animation-delay: 0s;
}

.floating-particle:nth-child(2) {
    left: 70%;
    top: 30%;
    animation-delay: 1s;
    background: var(--color-purple-light);
}

.floating-particle:nth-child(3) {
    left: 40%;
    top: 80%;
    animation-delay: 2s;
    width: 15px;
    height: 15px;
}

.floating-particle:nth-child(4) {
    left: 80%;
    top: 70%;
    animation-delay: 3s;
    background: rgb(255, 0, 60);
}

.floating-particle:nth-child(5) {
    left: 30%;
    top: 20%;
    animation-delay: 4s;
    width: 8px;
    height: 8px;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

/* ========================================
   Character Info (Right Panel)
======================================== */
.character-info {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    align-items: center;
}

.info-panel {
    width: 100%;
    background: var(--color-card-bg);
    border: 1px solid var(--color-purple-light);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(129, 60, 232, 0.3),
        inset 0 0 30px rgba(129, 60, 232, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

/* Banner */
.character-banner {
    width: 90%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

/* ========================================
   Stats
======================================== */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.stat-row {
    display: grid;
    grid-template-columns: 30px 80px 1fr 60px;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 1.2rem;
    text-align: center;
}

.stat-name {
    font-family: var(--font-pixel-alt);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-bar {
    height: 8px;
    background: var(--color-stat-bar-bg);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 4px;
    transition: width var(--transition-slow);
    position: relative;
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.stat-value {
    font-family: var(--font-pixel-alt);
    font-size: 0.7rem;
    color: var(--color-text);
    text-align: right;
}

/* ========================================
   Description Section
======================================== */
.description-container {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(23, 4, 38, 0.6);
}

.description-title {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-purple-light);
}

.character-description {
    font-family: var(--font-pixel-alt);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Sprite Container
======================================== */
.sprite-container {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.character-sprite {
    width: 180px;
    height: 180px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* ========================================
   Custom Scrollbar
======================================== */
.info-panel::-webkit-scrollbar {
    width: 6px;
}

.info-panel::-webkit-scrollbar-track {
    background: var(--color-purple-deep);
    border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb {
    background: var(--color-purple-light);
    border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ========================================
   Animation for character switch
======================================== */
.character-display.switching .splash-image {
    opacity: 0;
    transform: scale(0.9);
}

.splash-image {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ========================================
   Section Divider
======================================== */
.section-divider {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
}

.divider-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(196, 30, 92, 0.15) 20%,
        rgba(255, 179, 217, 0.25) 50%,
        rgba(196, 30, 92, 0.15) 80%,
        transparent 100%
    );
}

/* ========================================
   Voice Cast Subsection (MANTENIDO IGUAL)
======================================== */
.voice-cast-subsection {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-2xl) var(--space-lg);
    padding-top: var(--space-4xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Top fade for smooth transition from meet characters - subtle */
.voice-cast-subsection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        var(--color-purple-deep) 0%,
        rgba(20, 2, 59, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   CSS Variables
======================================== */
:root {
    --color-purple-dark: #170426;
    --color-purple-light: #813ce8;
    --color-purple-deep: #14023b;
    --color-divider: #070010;
    --color-accent: #D9307F;
    --color-accent-glow: rgba(217, 48, 127, 0.6);
    --color-text: #ffffff;
    --color-text-secondary: #b8a9c9;
    --color-card-bg: rgba(20, 2, 59, 0.85);
    --color-stat-bar-bg: #2a1845;
    --color-stat-bar-fill: linear-gradient(90deg, #813ce8, #D9307F);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Responsive Design - Meet Characters
======================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .meet-characters-subsection {
        grid-template-columns: 250px 1fr 380px;
    }
    
    .character-selector {
        left: 180px;
    }
}

/* Tablet */
@media (max-width: 1200px) {
    .meet-characters-subsection {
        grid-template-columns: 220px 1fr 350px;
        padding: var(--space-md) var(--space-lg);
    }
    
    .character-name {
        font-size: 2.2rem;
    }
    
    .card-frame {
        width: 170px;
        height: 100px;
    }
    
    .diagonal-divider {
        left: 190px;
        width: 60px;
    }
    
    .character-selector {
        left: 160px;
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 992px) {
    .meet-characters-subsection {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        overflow-y: auto;
        min-height: auto;
        height: auto;
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    /* Adjust fades for mobile layout */
    .meet-characters-subsection::before,
    .meet-characters-subsection::after {
        height: 120px;
    }
    
    .diagonal-divider {
        display: none;
    }
    
    /* Section height and fades - Tablet */
    .meet-characters-subsection {
        min-height: 120vh;
        min-height: 120dvh;
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }
    
    .meet-characters-subsection::before {
        height: 220px;
    }
    
    .meet-characters-subsection::after {
        height: 250px;
    }
    
    .character-selector {
        order: 1;
        left: 0;
        flex-direction: row;
        align-items: center;
        padding: var(--space-sm) var(--space-md);
        background: rgba(7, 0, 16, 0.9);
        border-radius: var(--radius-lg);
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .character-selector::-webkit-scrollbar {
        display: none;
    }
    
    .character-list {
        flex-direction: row;
        margin-top: 0;
        gap: var(--space-sm);
        flex-wrap: nowrap;
        padding: var(--space-xs) 0;
    }
    
    .character-card {
        flex-shrink: 0;
    }
    
    .card-frame {
        width: 100px;
        height: 70px;
    }
    
    .character-display {
        order: 2;
        padding: var(--space-lg);
        min-height: 45vh;
    }
    
    .character-name-container {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin-bottom: var(--space-md);
    }
    
    .character-name {
        font-size: 2rem;
    }
    
    .splash-image {
        max-height: 45vh;
        width: auto;
        max-width: 100%;
    }
    
    .character-info {
        order: 3;
        padding: var(--space-md);
    }
    
    .info-panel {
        max-height: none;
        padding: var(--space-md);
    }
}

/* Mobile Portrait */
@media (max-width: 768px) {
    .meet-characters-subsection {
        padding: var(--space-sm);
        gap: var(--space-sm);
        min-height: 130vh;
        min-height: 130dvh;
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }
    
    .meet-characters-subsection::before {
        height: 200px;
    }
    
    .meet-characters-subsection::after {
        height: 220px;
    }
    
    .character-selector {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .character-list {
        gap: var(--space-xs);
    }
    
    .card-frame {
        width: 75px;
        height: 55px;
    }
    
    .card-frame::before {
        width: 20px;
        height: 20px;
    }
    
    .character-display {
        padding: var(--space-md);
        min-height: 40vh;
    }
    
    .character-name {
        font-size: 1.6rem;
    }
    
    .character-level {
        font-size: 0.85rem;
    }
    
    .splash-image {
        max-height: 35vh;
    }
    
    .character-info {
        padding: var(--space-sm);
    }
    
    .info-panel {
        padding: var(--space-sm);
    }
    
    .stats-container {
        gap: 8px;
        margin-bottom: var(--space-md);
    }
    
    .stat-row {
        grid-template-columns: 22px 55px 1fr 45px;
        gap: 6px;
    }
    
    .stat-icon {
        font-size: 1rem;
    }
    
    .stat-name {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 0.6rem;
    }
    
    .stat-bar {
        height: 6px;
    }
    
    .description-container {
        padding: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .description-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .character-description {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    
    .sprite-container {
        padding: var(--space-xs);
    }
    
    .character-sprite {
        width: 70px;
        height: 70px;
    }
    
    .character-banner {
        width: 100%;
        margin-bottom: var(--space-xs);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .meet-characters-subsection {
        padding: var(--space-xs);
        min-height: 140vh;
        min-height: 140dvh;
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    
    .meet-characters-subsection::before {
        height: 180px;
    }
    
    .meet-characters-subsection::after {
        height: 200px;
    }
    
    .character-selector {
        border-radius: var(--radius-md);
    }
    
    .card-frame {
        width: 65px;
        height: 48px;
    }
    
    .card-frame::before {
        width: 15px;
        height: 15px;
    }
    
    .character-display {
        padding: var(--space-sm);
        min-height: 35vh;
    }
    
    .character-name {
        font-size: 1.3rem;
    }
    
    .character-level {
        font-size: 0.75rem;
    }
    
    .splash-image {
        max-height: 30vh;
    }
    
    .stat-row {
        grid-template-columns: 20px 50px 1fr 40px;
        gap: 4px;
    }
    
    .stat-icon {
        font-size: 0.9rem;
    }
    
    .stat-name {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 0.55rem;
    }
    
    .stat-bar {
        height: 5px;
    }
    
    .description-title {
        font-size: 0.75rem;
    }
    
    .character-description {
        font-size: 0.65rem;
    }
    
    .character-sprite {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   Responsive Design - Voice Cast
======================================== */

@media (max-width: 1600px) {
    .vc-accordion-container {
        height: clamp(380px, 48vh, 520px);
    }
}

@media (max-width: 1400px) {
    .vc-accordion-container {
        height: clamp(340px, 42vh, 460px);
        gap: 10px;
    }
    
    .vc-control-panel {
        max-width: 850px;
    }
}

@media (max-width: 1100px) {
    .voice-cast-subsection {
        padding: var(--space-lg) var(--space-md);
        padding-top: var(--space-3xl);
        min-height: auto;
    }
    
    .voice-cast-subsection::before {
        height: 150px;
    }
    
    .vc-accordion-container {
        height: clamp(280px, 38vh, 380px);
        gap: 8px;
    }
    
    .vc-accordion-item {
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    }
    
    .vc-control-panel {
        max-width: 100%;
        padding: var(--space-lg);
    }
    
    .vc-actor-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .vc-bg-splash {
        opacity: 0.4;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .voice-cast-subsection {
        padding: var(--space-md);
        padding-top: var(--space-2xl);
    }
    
    .vc-title-container {
        padding: 25px 80px;
    }
    
    .vc-section-title {
        font-size: 1.3rem;
    }
    
    .vc-accordion-container {
        height: auto;
        min-height: 300px;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .vc-accordion-item {
        flex: 1 1 calc(33.333% - 12px);
        min-width: calc(33.333% - 12px);
        height: 200px;
        clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    }
    
    .vc-accordion-item.active {
        flex: 1 1 100%;
        height: 280px;
    }
    
    .vc-control-panel {
        padding: var(--space-md);
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    .voice-cast-subsection {
        padding: var(--space-md);
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
        min-height: 130vh;
        min-height: 130dvh;
    }
    
    .voice-cast-subsection::before {
        height: 200px;
    }
    
    .voice-cast-header {
        margin-bottom: var(--space-lg);
    }
    
    .vc-title-wrapper {
        gap: var(--space-xs);
    }
    
    .vc-section-label {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
    }
    
    .vc-section-title {
        font-size: 1.1rem;
    }
    
    .vc-title-container {
        padding: 18px 50px;
    }
    
    /* Horizontal scrollable accordion for mobile */
    .vc-accordion-container {
        flex-direction: row;
        flex-wrap: nowrap;
        height: 200px;
        min-height: 200px;
        gap: var(--space-sm);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: var(--space-xs) var(--space-sm);
        margin: 0 calc(-1 * var(--space-md));
        width: calc(100% + var(--space-md) * 2);
    }
    
    .vc-accordion-container::-webkit-scrollbar {
        display: none;
    }
    
    .vc-accordion-item {
        flex: 0 0 auto;
        width: 120px;
        height: 180px;
        min-width: 120px;
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
        transition: width 0.4s ease, min-width 0.4s ease;
    }
    
    .vc-accordion-item.active {
        width: 220px;
        min-width: 220px;
        height: 180px;
    }
    
    .vc-accordion-name {
        font-size: 0.75rem;
        writing-mode: horizontal-tb;
        padding: var(--space-xs);
    }
    
    .vc-control-panel {
        padding: var(--space-sm);
        margin-top: var(--space-lg);
    }
    
    .vc-language-buttons {
        flex-direction: row;
        gap: var(--space-xs);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .vc-lang-btn {
        flex: 1 1 auto;
        min-width: 90px;
        text-align: center;
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.65rem;
        clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    }
    
    .vc-player-section {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .vc-play-btn {
        width: 60px;
        height: 60px;
    }
    
    .vc-waveform {
        height: 50px;
        width: 100%;
    }
    
    .vc-actor-card {
        padding: var(--space-sm);
    }
    
    .vc-actor-name {
        font-size: 1.2rem;
    }
    
    .vc-actor-role {
        font-size: 0.7rem;
    }
    
    .vc-bg-splash-5,
    .vc-bg-splash-6 {
        display: none;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .voice-cast-subsection {
        padding: var(--space-sm);
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
        min-height: 140vh;
        min-height: 140dvh;
    }
    
    .voice-cast-subsection::before {
        height: 180px;
    }
    
    .voice-cast-header {
        margin-bottom: var(--space-md);
    }
    
    .vc-section-label {
        font-size: 0.5rem;
    }
    
    .vc-section-title {
        font-size: 0.95rem;
    }
    
    .vc-title-container {
        padding: 14px 35px;
    }
    
    .vc-title-splash-bg {
        inset: -10px -20px;
    }
    
    /* Horizontal scrollable accordion for small mobile */
    .vc-accordion-container {
        height: 160px;
        min-height: 160px;
        gap: var(--space-xs);
        margin: 0 calc(-1 * var(--space-sm));
        width: calc(100% + var(--space-sm) * 2);
        padding: var(--space-xs);
    }
    
    .vc-accordion-item {
        width: 100px;
        min-width: 100px;
        height: 140px;
        clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    }
    
    .vc-accordion-item.active {
        width: 180px;
        min-width: 180px;
        height: 140px;
    }
    
    .vc-accordion-name {
        font-size: 0.65rem;
        padding: var(--space-xs);
    }
    
    .vc-control-panel {
        padding: var(--space-xs);
        border-radius: var(--radius-md);
    }
    
    .vc-lang-btn {
        font-size: 0.6rem;
        padding: 6px 10px;
        min-width: 75px;
    }
    
    .vc-play-btn {
        width: 50px;
        height: 50px;
    }
    
    .vc-play-icon {
        font-size: 1.2rem;
    }
    
    .vc-waveform {
        height: 40px;
    }
    
    .vc-wave-bar {
        width: 3px;
    }
    
    .vc-actor-name {
        font-size: 1rem;
    }
    
    .vc-actor-role {
        font-size: 0.6rem;
    }
    
    .vc-progress-container {
        height: 12px;
    }
    
    .vc-bg-splash {
        display: none;
    }
}

/* ========================================
   Reduced Motion
======================================== */
@media (prefers-reduced-motion: reduce) {
    .char-bg-stripes,
    .vc-bg-splash {
        animation: none;
    }
    
    .character-card,
    .character-display.switching,
    .splash-image,
    .floating-particle,
    .vc-accordion-item,
    .vc-control-panel {
        transition: opacity 0.3s ease;
    }
    
    .vc-drop,
    .vc-wave-bar,
    .vc-play-btn.playing,
    .stat-fill::after {
        animation: none;
    }
    
    .vc-spotlight {
        display: none;
    }
    
    .character-name {
        animation: none;
    }
    
    .splash-image {
        animation: none;
    }
}