* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Header Styles */
.main-header {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0;
    line-height: 1;
}

.logo h1 span {
    color: #3498db;
}

.logo p {
    font-size: 10px;
    color: #95a5a6;
    margin: 2px 0 0 0;
    letter-spacing: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

/* Search */
.search-section {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
}

.search-box {
    display: flex;
    background: #34495e;
    border-radius: 5px;
    overflow: hidden;
}

.search-input {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    outline: none;
    width: 250px;
}

.search-input::placeholder {
    color: #95a5a6;
}

.search-btn {
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #3498db;
}


/* Breadcrumb Styles */
.breadcrumb {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 0;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: #3498db;
}

.breadcrumb .separator {
    color: #95a5a6;
}

.breadcrumb .current {
    color: #3498db;
    font-weight: bold;
}

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

.main-content {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    align-items: stretch;
}

.main-content > * {
    height: 100%;
}

/* Left Sidebar - Anime Info */
.anime-info {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.anime-poster {
    position: relative;
    width: 100%;
}

.anime-poster img {
    width: 100%;
    display: block;
}

.status-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff3333;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 2px;
    display: inline-block;
}

.action-buttons {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add {
    background: #ff3366;
    color: white;
}

.btn-add:hover {
    background: #ff1a4d;
}

.btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.synopsis {
padding: 20px;
border-top: 1px solid #eee;
}

.synopsis h3 {
margin-bottom: 10px;
color: #333;
}

.tags-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 15px 0;
}

.tag {
display: inline-flex;
align-items: center;
gap: 6px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 6px 12px;
border-radius: 15px;
font-size: 12px;
font-weight: 500;
transition: transform 0.2s, box-shadow 0.2s;
cursor: default;
}

.tag-icon {
width: 16px;
height: 16px;
object-fit: contain;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
}

.tag:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.synopsis p {
line-height: 1.6;
color: #666;
font-size: 14px;
}

.rating-box {
    padding: 25px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
    position: relative;
}

.rating-score {
    font-size: 56px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rating-stars {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    display: flex;
    justify-content: center;
    gap: 5px;
}

.rating-star {
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 215, 0, 0.3);
}

.rating-star.filled {
    color: #ffd700;
}

.rating-star.hover {
    color: #ffd700;
    transform: scale(1.2);
}

.rating-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.rating-source {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 11px;
    color: #999;
}

/* Center - Video Section */
.video-section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.video-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anime-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.episode-badge {
    background: #00bcd4;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.video-player {
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder {
    text-align: center;
}

.video-text {
    font-size: 120px;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 5px;
}

.video-info {
    padding: 15px 20px;
    background: #f8f8f8;
}

.video-info h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.video-info h3 {
    font-size: 14px;
    color: #666;
}

.server-options {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #1a1a1a;
}

.server-btn {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.server-btn:hover {
    background: #444;
}

.server-btn.active {
    background: #667eea;
}

/* Visibility Classes */
.tablet-only {
    display: none;
}

.desktop-only {
    display: block;
}

.mobile-tablet-only {
    display: none;
}

/* Episodes Carousel */
.episodes-carousel-section {
    padding: 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

.episodes-carousel-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.episodes-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.episodes-carousel::-webkit-scrollbar {
    height: 8px;
}

.episodes-carousel::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.episodes-carousel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.episodes-carousel::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.episodes-carousel .episode-item {
    min-width: 280px;
    flex-shrink: 0;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.comments-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

#commentCount {
    color: #667eea;
    font-weight: bold;
}

/* Lista de comentarios */
#commentsList {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    background: #f8f8f8;
    border-radius: 10px;
}

/* Item de comentario */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.comment-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

/* Avatar del comentario */
.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contenido del comentario */
.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.comment-time {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.comment-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Botón Ver más */
#btnLoadMore {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

#btnLoadMore:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Formulario de comentarios */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-top: 20px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form input {
    height: 45px;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

#btnSubmitComment {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btnSubmitComment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#btnSubmitComment:active {
    transform: translateY(0);
}

/* Mensaje de éxito */
.comment-success {
    padding: 12px 20px;
    background: #4caf50;
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .comment-item {
        padding: 12px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .comment-author {
        font-size: 14px;
    }
    
    .comment-text {
        font-size: 13px;
    }
    
    .comment-form {
        padding: 15px;
    }
}

/* ===== SHARE MODAL ===== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-close:hover {
    background: #f0f0f0;
    color: #333;
}

.share-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #0d65d9;
}

.share-twitter {
    background: #1da1f2;
}

.share-twitter:hover {
    background: #0d8bd9;
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #1fb855;
}

.share-copy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-copy:hover {
    opacity: 0.9;
}

.share-btn i {
    font-size: 18px;
}

/* Responsive Breakpoints para Share Modal */

/* Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
    .share-modal-content {
        padding: 20px;
        width: 95%;
        max-width: 100%;
    }
    
    .share-modal-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .share-btn {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .share-btn i {
        font-size: 16px;
    }
    
    .share-close {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }
}

/* Móvil grande (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .share-modal-content {
        padding: 25px;
        width: 85%;
        max-width: 400px;
    }
    
    .share-modal-content h3 {
        font-size: 22px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .share-btn {
        padding: 14px;
        font-size: 14px;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .share-modal-content {
        padding: 30px;
        width: 70%;
        max-width: 450px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    
    .share-btn {
        padding: 16px;
    }
}

/* Desktop pequeño (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .share-modal-content {
        padding: 30px;
        max-width: 450px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* Desktop grande (1441px+) */
@media (min-width: 1441px) {
    .share-modal-content {
        padding: 35px;
        max-width: 500px;
    }
    
    .share-modal-content h3 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .share-btn {
        padding: 18px 22px;
        font-size: 16px;
    }
    
    .share-btn i {
        font-size: 20px;
    }
}

/* ADS Top Section */
.ads-top {
    width: 100%;
}

.ads-box-horizontal {
    background: #ff0000;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
}

.ads-box-horizontal h2 {
    font-size: 60px;
    font-weight: bold;
    color: #000;
    letter-spacing: 5px;
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ads-section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ads-box {
    background: #ff0000;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-box h2 {
    font-size: 80px;
    font-weight: bold;
    color: #000;
    letter-spacing: 5px;
}

.episodes-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.episodes-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.episodes-list::-webkit-scrollbar {
    width: 8px;
}

.episodes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.episode-item:hover {
    background: #f0f0f0;
}

.episode-item.active {
    background: #e8f4f8;
}

.episode-number {
    font-size: 20px;
    color: #00bcd4;
}

.episode-item.active .episode-number {
    color: #00bcd4;
}

.episode-thumb {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 188, 212, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.episode-info {
    flex: 1;
}

.episode-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.episode-info p {
    font-size: 12px;
    color: #666;
}

/* Footer Styles */
.main-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 15px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #3498db;
}

.footer-separator {
    color: #95a5a6;
    font-size: 13px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-container {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    color: white;
    font-size: 24px;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-search {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.modal-search:focus {
    border-color: #764ba2;
}

.anime-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.anime-list-item {
    padding: 10px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    display: block;
}

.anime-list-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.anime-list-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anime-list-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    flex-shrink: 0;
}

.anime-list-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anime-list-tipo {
    font-size: 11px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-container {
        gap: 20px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .main-content {
        grid-template-columns: 220px 1fr 280px;
        gap: 15px;
    }
    
    .anime-title {
        font-size: 20px;
    }
    
    .video-text {
        font-size: 80px;
    }
}

@media (max-width: 992px) {
    .header-container {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .search-input {
        width: 150px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .anime-info {
        display: grid;
        grid-template-columns: 280px 200px 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        row-gap: 0;
    }
    
    .anime-poster {
        grid-row: 1 / 3;
        grid-column: 1;
        height: 100%;
    }
    
    .anime-poster img {
        height: 100%;
        object-fit: cover;
    }
    
    .synopsis {
        grid-column: 2 / 4;
        grid-row: 1;
        border-top: none;
        border-left: 1px solid #eee;
    }
    
    .rating-box {
        grid-column: 2;
        grid-row: 2;
        border-top: 1px solid #eee;
        border-left: 1px solid #eee;
        border-right: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 15px 10px;
    }
    
    .rating-box .rating-score {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .rating-box .rating-stars {
        font-size: 13px;
    }
    
    .action-buttons {
        grid-column: 3;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        padding: 15px;
        border-left: 1px solid #eee;
        border-top: 1px solid #eee;
    }
    
    .video-text {
        font-size: 60px;
    }
    
    .episodes-carousel .episode-item {
        min-width: 250px;
    }
    
    /* Mostrar carrusel solo en tablet */
    .tablet-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-tablet-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .main-nav {
        order: 2;
        width: auto;
        margin-left: auto;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .search-section {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 13px;
    }
    
    .breadcrumb-container {
        padding: 0 15px;
        font-size: 11px;
    }
    
    .container {
        padding: 10px;
    }
    
    .anime-info {
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }
    
    .anime-poster {
        grid-column: 1;
        grid-row: 1 / 4;
        position: relative;
    }
    
    .anime-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .status-badge {
        position: absolute;
        bottom: 10px;
        left: 10px;
        z-index: 10;
    }
    
    .synopsis {
        grid-column: 2;
        grid-row: 1;
        border-left: 1px solid #eee;
        border-top: none;
    }
    
    .action-buttons {
        grid-column: 2;
        grid-row: 2;
        padding: 0 15px 15px 15px;
        border-left: 1px solid #eee;
    }
    
    .rating-box {
        grid-column: 2;
        grid-row: 3;
        border-left: 1px solid #eee;
        border-top: 1px solid #eee;
        text-align: center;
        padding: 15px;
    }
    
    .video-text {
        font-size: 40px;
    }
    
    .anime-title {
        font-size: 18px;
    }
    
    .server-options {
        padding: 10px;
    }
    
    .server-btn {
        padding: 8px 15px;
        font-size: 11px;
    }
    
    .ads-box h2 {
        font-size: 60px;
    }
    
    .ads-box-horizontal {
        height: 80px;
    }
    
    .ads-box-horizontal h2 {
        font-size: 40px;
    }
    
    .episode-thumb {
        width: 60px;
        height: 45px;
    }
    
    /* Mostrar carrusel en mobile, ocultar sidebar */
    .tablet-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-tablet-only {
        display: block;
    }
    
    .episodes-carousel .episode-item {
        min-width: 220px;
    }
    
    .episodes-carousel-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo p {
        font-size: 8px;
    }
    
    .main-nav {
        order: 2;
        width: auto;
        margin-left: auto;
        gap: 15px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .search-section {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 12px;
    }
    
    /* Layout vertical completo */
    .anime-info {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .anime-poster {
        width: 100%;
        position: relative;
    }
    
    .anime-poster img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .status-badge {
        position: absolute;
        bottom: 10px;
        left: 10px;
        z-index: 10;
    }
    
    .synopsis {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 15px;
    }
    
    .action-buttons {
        padding: 15px;
        border-top: 1px solid #eee;
    }
    
    .rating-box {
        border-left: none;
        border-top: 1px solid #eee;
        text-align: center;
        padding: 15px;
    }
    
    .video-text {
        font-size: 30px;
    }
    
    .anime-title {
        font-size: 16px;
    }
    
    .rating-score {
        font-size: 36px;
    }
    
    .ads-box {
        height: 200px;
    }
    
    .ads-box h2 {
        font-size: 40px;
    }
    
    .ads-box-horizontal {
        height: 60px;
    }
    
    .ads-box-horizontal h2 {
        font-size: 30px;
    }
    
    .comment-box {
        flex-direction: column;
    }
    
    .comment-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    /* Ocultar carrusel, mostrar sidebar */
    .tablet-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}
