:root {
    --primary: #00c2ff;
    --primary-rgb: 0, 194, 255;
    --accent: #ff0055;
    --bg: #06070d;
    --card: #0d0f1a;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 80% 15%, rgba(var(--primary-rgb), 0.07) 0%, transparent 45%),
        radial-gradient(circle at 15% 75%, rgba(255, 0, 85, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.player-wrapper {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin-bottom: 35px;
}

@media (min-width: 1024px) {
    .player-wrapper {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 25px;
    }
    .container {
        display: flex;
        flex-direction: column;
    }
    
    .season-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 10px;
        width: 100%;
    }

    .season-btn {
        flex-shrink: 1;
    }
}

.video-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
                0 0 50px -10px rgba(var(--primary-rgb), 0.05);
    aspect-ratio: 16/9;
}

#video, #external-player {
    width: 100%;
    height: 100%;
    display: none;
    border: none;
}

.video-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(6,7,13,0.95) 100%), 
                var(--capa-player) center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-trigger {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--primary), #0082ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    animation: pulse 2.5s infinite;
}

.video-cover:hover .play-trigger {
    transform: scale(1.12);
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.6);
}

.play-trigger svg { 
    width: 32px; 
    fill: #000; 
    margin-left: 6px; 
}

.performance-tip {
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.performance-tip summary {
    padding: 14px 20px;
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Rajdhani';
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    outline: none;
    user-select: none;
}

.performance-tip summary::-webkit-details-marker { display: none; }

.performance-tip[open] {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.1);
}

.performance-content {
    padding: 0 20px 18px 48px;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.performance-content p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: #cbd5e1;
}

.anime-header {
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.00) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.anime-info-content h1 {
    font-family: 'Rajdhani';
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.anime-info-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.header-list {
    font-family: 'Rajdhani';
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 25px 0 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
}

.header-list::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.3), transparent);
}

.season-tabs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 1px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.season-tabs::-webkit-scrollbar {
    display: none;
}

.season-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Rajdhani';
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.season-btn:hover {
    background: var(--glass-hover);
    color: #fff;
    border-color: rgba(var(--primary-rgb), 0.3);
}

.season-btn.active {
    background: linear-gradient(135deg, var(--primary), #0082ff);
    color: #000;
    border-color: var(--primary);
    box-shadow: inset 0 0 12px rgba(var(--primary-rgb), 0.8), 
                0 2px 4px rgba(0, 0, 0, 0.4);
}

.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.ep-card {
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ep-card:hover {
    background: var(--glass-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
}

.ep-card.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-color: var(--primary);
    box-shadow: 0 12px 25px -5px rgba(var(--primary-rgb), 0.15);
}

.ep-img {
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani';
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ep-card.active .ep-img { 
    background: var(--primary); 
    color: #000; 
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.ep-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ep-meta b {
    display: block; 
    font-size: 14px; 
    font-weight: 600; 
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
}

.ep-tag {
    align-self: flex-start;
    font-size: 9px; 
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px; 
    border-radius: 6px; 
    color: var(--text-muted); 
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ep-card.active .ep-tag { 
    background: rgba(var(--primary-rgb), 0.12); 
    color: var(--primary); 
}

.feedback-sect {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 30px;
    background: linear-gradient(180deg, var(--card) 0%, rgba(13,15,26,0.5) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.feedback-sect h2 {
    font-family: 'Rajdhani';
    color: #fff;
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.feedback-sect form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-sect input, .feedback-sect textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.feedback-sect input:focus, .feedback-sect textarea:focus {
    border-color: rgba(var(--primary-rgb), 0.6);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), #0082ff);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-family: 'Rajdhani';
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.btn-submit:hover {
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.35);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(1px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .container { padding: 16px 12px; }
    .ep-grid { grid-template-columns: 1fr; gap: 10px; }
    .anime-header { padding: 18px; border-radius: var(--radius-md); }
    .anime-info-content h1 { font-size: 1.4rem; }
    .video-box { border-radius: var(--radius-md); }
    .feedback-sect { padding: 20px; border-radius: var(--radius-md); }
    .performance-content { padding: 0 16px 16px 20px; }
    .performance-tip summary { gap: 8px; font-size: 12px; }
    .player-wrapper { top: 12px; margin-bottom: 25px; }
    .season-tabs { gap: 8px; margin-top: 10px; padding-bottom: 8px; }
    .season-btn { padding: 10px 18px; font-size: 13px; border-radius: var(--radius-sm); }
}

@media (orientation: landscape) and (max-height: 600px) {
    .player-wrapper {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px;
    }
}