/* --- CONFIGURAÇÕES GERAIS E BOTÕES --- */
.btn {
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary-green);
    color: black;
    box-shadow: 0 0 15px rgba(46, 248, 97, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-gray);
    color: var(--text-gray);
}

/* --- HERO SECTION --- */
.anime-poster {
    flex: 0 0 300px;
    position: relative;
    border: 3px solid var(--primary-green);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(46, 248, 97, 0.2);
}

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

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-orange);
    color: black;
    padding: 2px 10px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 2;
}

.anime-info-header {
    flex: 1;
    padding-top: 10px;
}

.anime-info-header h1 {
    font-family: 'Righteous', cursive;
    font-size: 3rem;
    margin-bottom: 5px;
    color: white;
}

.native-title {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(46, 248, 97, 0.05);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.rating {
    color: var(--accent-orange);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.action-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.external-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ext-icon {
    width: 32px;
    height: 32px;
    transition: 0.3s;
    filter: grayscale(0.6);
}

.ext-icon:hover {
    transform: scale(1.15);
    filter: grayscale(0);
}

/* --- CONTEÚDO PRINCIPAL --- */
.content-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 3rem 5%;
}

.section-title {
    border-left: 5px solid var(--accent-orange);
    padding-left: 15px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
}

.description {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #222;
}

/* --- LISTA DE EPISÓDIOS --- */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.episode-container {
    background: #1a1a1a;
    border-radius: 4px;
    border-left: 4px solid transparent;
    transition: 0.3s;
}

.episode-container:hover {
    border-left: 4px solid var(--primary-green);
}

.episode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
}

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

.ep-info .ep-num {
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 10px;
}

.ep-info .ep-title {
    color: white;
}

.ep-play-btn {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.episode-options {
    display: none;
    padding: 10px 20px 20px 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    gap: 10px;
    flex-wrap: wrap;
}

.opt-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.opt-btn:hover {
    background: var(--primary-green);
    color: black;
}

/* --- SIDEBAR E LISTAS --- */
.sidebar {
    min-width: 0;
}

.sidebar-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid var(--primary-green);
    margin-bottom: 25px;
    overflow: hidden;
}

.info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    font-size: 0.85rem;
    gap: 15px;
}

.info-label {
    color: var(--text-gray);
    font-weight: 600;
    white-space: nowrap;
}

.info-value {
    color: white;
    text-align: right;
}

.elenco-row {
    flex-direction: column;
    align-items: flex-start;
}

.elenco-value {
    color: #ccc;
    text-align: left;
    margin-top: 5px;
    line-height: 1.4;
    font-size: 0.8rem;
}

/* ÚLTIMOS LANÇAMENTOS */
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.latest-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    overflow: hidden;
}

.latest-item span:not(.ep-tag) {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-item .ep-tag {
    color: var(--primary-green);
    font-weight: bold;
}


/* RECOMENDADOS */
.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.rec-item {
    display: flex;
    gap: 12px;
    align-items: center;
    transition: 0.3s;
    padding: 5px;
    border-radius: 4px;
    text-decoration: none;
    width: 100%;
    min-width: 0;
}

.rec-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.rec-thumb {
    width: 60px;
    height: 85px;
    min-width: 60px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #333;
}

.rec-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.rec-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

.rec-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- SESSÃO DE COMENTÁRIOS --- */
.comment-box {
    background: var(--bg-comment);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-comment);
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comment-input-area {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input-area textarea {
    width: 100%;
    background: #0f1113;
    border: 1px solid var(--border-comment);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: 0.3s;
}

.comment-input-area textarea:focus {
    border-color: var(--accent-comment);
    box-shadow: 0 0 10px rgba(62, 148, 255, 0.1);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-bottom: 1px solid var(--border-comment);
    position: relative;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    background: #2d3135;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-comment);
    border: 1px solid var(--border-comment);
}

.comment-content {
    flex: 1;
}

.user-name {
    font-weight: bold;
    color: var(--accent-comment);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 0.95rem;
    color: #d1d1d1;
    padding-right: 30px;
}

.comment-date {
    font-size: 0.75rem;
    color: #666;
    margin-top: 10px;
    display: block;
}

.delete-comment {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.delete-comment:hover {
    color: var(--danger-red);
    transform: scale(1.1);
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .content-container {
        grid-template-columns: 1fr;
    }

    .anime-hero {
        justify-content: center;
        text-align: center;
        gap: 20px;
    }

    .anime-info-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .meta-tags, .action-container, .rating {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .anime-poster {
        flex: 0 0 260px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .comment-item {
        flex-direction: column;
    }

    .delete-comment {
        top: 10px;
        right: 10px;
    }
}

.episodes-disclaimer {
    background: rgba(255, 255, 255, 0.05); /* Fundo levemente claro */
    border-left: 3px solid var(--accent-orange); /* Borda laranja para destaque */
    padding: 5px 15px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #bbb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Opcional: ícone se você usar FontAwesome, senão pode remover */
.episodes-disclaimer::before {
    content: "ⓘ";
    color: var(--accent-orange);
    font-weight: bold;
}