/* Complementos do tema: componentes do site Laravel (menu sem jQuery, player,
   comentários, formulários, área do membro). Mesmas cores do tema. */

/* ===== Cabeçalho ===== */
header .navbar { padding-left: 0; padding-right: 0; }
.header-logo img { max-height: 72px; width: auto; }
.header-logo .brand-text { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: .5px; color: #fff; line-height: 1; }
.header-logo .brand-text small { display: block; font-size: .55rem; letter-spacing: 3px; color: #8fa6ff; font-weight: 600; margin-top: 4px; }
.navbar-nav .nav-item > .dropdown-item { background: transparent; padding: .5rem 1rem; color: rgba(255,255,255,.75); white-space: nowrap; }
.navbar-nav .nav-item > .dropdown-item:hover, .navbar-nav .nav-item > .dropdown-item[aria-current="page"] { color: #fff; background: transparent; }
.navbar-nav .nav-link { color: rgba(255,255,255,.75) !important; }
.navbar-nav .dropdown-menu { border: 0; padding: .4rem 0; min-width: 220px; }
.navbar-nav .dropdown-menu .dropdown-item { font-size: .9rem; }
.navbar-nav .dropdown-menu.genres-menu { columns: 2; min-width: 340px; }
.navbar-toggler { border: 0; }
.profile .dropdown-menu { min-width: 200px; }
.profile .dropdown-item i { width: 20px; margin-right: 6px; text-align: center; }
.profile .unread-badge { position: absolute; top: -4px; right: -4px; background: #d64040; color: #fff; border-radius: 10px; font-size: .65rem; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; }
.profile .unread-badge:empty { display: none; }
#rightMenu { margin-left: auto; }
.header-search .suggestions { position: absolute; top: 46px; right: 0; width: 320px; max-width: 86vw; background: #22202a; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 50; overflow: hidden; }
.header-search .suggestions a { display: flex; align-items: center; padding: 8px 10px; gap: 10px; color: #fff; }
.header-search .suggestions a:hover, .header-search .suggestions a.active { background: #403f49; }
.header-search .suggestions img { width: 38px; height: 54px; object-fit: cover; border-radius: 3px; flex: none; }
.header-search .suggestions strong { display: block; font-size: .9rem; font-weight: 500; }
.header-search .suggestions small { color: #aaa; }
.header-search .suggestions .all { justify-content: center; font-size: .85rem; color: #8fa6ff; }

/* ===== Mensagens ===== */
.site-notice { background: rgba(11,54,205,.18); border-left: 3px solid #0b36cd; color: #e8ecff; padding: 12px 16px; border-radius: 4px; margin: 0 0 1rem; }
.site-errors { background: rgba(214,64,64,.15); border-left: 3px solid #d64040; color: #ffdcdc; padding: 12px 16px; border-radius: 4px; margin: 0 0 1rem; }
.site-errors ul { margin: 0; padding-left: 18px; }
.empty-state { text-align: center; padding: 48px 16px; color: #c3c3c3; }
.empty-state i { font-size: 2.4rem; color: #0b36cd; margin-bottom: 12px; display: block; }
.text-soft { color: #aaa !important; }

/* ===== Cards ===== */
.card-episodes span { font-weight: 600; }
.card-vertical-img img, .new-added .card-vertical-img img { background: #22202a; }
.card-horizontal .card-img img { background: #22202a; }
.new-added .card-title h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.highlight-card .highlight-body .highlight-genres span { margin: 0 4px 4px 0; }
.section-title .btn { padding: 4px 12px; font-size: .85rem; border-radius: 20px; }

/* ===== Página do anime / episódio ===== */
.anime-down-share .btn-share, .anime-down-share form { display: inline-flex; vertical-align: middle; }
.anime-down-share .btn-share { width: 40px; height: 40px; border-radius: 50% !important; align-items: center; justify-content: center; padding: 0 !important; margin: 0 5px 6px 0; color: #fff !important; transition: all .3s ease; border: none; cursor: pointer; text-decoration: none; background: rgba(204,175,238,.1); }
.anime-down-share .btn-share:hover { transform: scale(1.15); box-shadow: 0 4px 15px rgba(0,0,0,.3); }
.anime-down-share .btn-share i { font-size: 18px; width: auto; height: auto; background: transparent; line-height: 1; }
.anime-down-share .btn-share.favorite { background: rgba(255,193,7,.5); }
.anime-down-share .btn-share.favorited { background: rgba(231,76,60,.8) !important; animation: heartPulse .3s ease; }
.anime-down-share .btn-share.facebook { background: #1877f2; }
.anime-down-share .btn-share.twitter { background: #000; }
.anime-down-share .btn-share.whatsapp { background: #25d366; }
.anime-down-share .btn-share.telegram { background: #0088cc; }
.anime-down-share .btn-share.reddit { background: #ff4500; }
.anime-down-share .btn-share.copy { background: rgba(255,255,255,.15); }
@keyframes heartPulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.anime-votes { display: inline-flex; gap: 6px; margin-left: 4px; vertical-align: middle; }
.anime-votes .btn { border-radius: 20px; font-size: .8rem; padding: 6px 12px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.anime-votes .btn[aria-pressed="true"] { background: #0b36cd; border-color: #0b36cd; }
.infos-img img { width: 100%; height: auto; aspect-ratio: 185 / 250; object-fit: cover; background: #22202a; }
.anime-description p:last-child { margin-bottom: 0; }
.anime-description { padding-right: 6px; }
.episode-synopsis { color: #d0d0d0; font-size: .95rem; max-width: 900px; margin-top: 12px; }
.share-status { font-size: .8rem; color: #8fa6ff; min-height: 1em; }

.temporada-titulo { background: #193186 !important; color: #fff !important; font-weight: bold; font-size: 16px; padding: 10px 15px; margin-top: 5px; border-radius: 4px !important; border: none !important; }
.temporada-titulo span { font-size: 13px; font-weight: normal; opacity: .8; margin-left: 4px; }
.list-group-item.watched { background: rgba(39,174,96,.08); border-left: 3px solid #0b36cd; }
.list-group-item.watched a h3 { color: #6f8dff; }
.list-group-item.active { background: #2d3436; border-color: #f39c12; }
.list-group-item.active a { color: #fff; }
.list-group-item.active .btn-primary { background: #f39c12; border-color: #f39c12; }
.list-group-item h3 small { color: #9a9a9a; font-size: .8rem; margin-left: 6px; }
.list-group-item form { display: inline; }
.watched-toggle { transition: all .3s ease; min-width: 110px; }
.watched-toggle:hover { transform: scale(1.05); }
.mark-all form { display: inline; }

.btn-control { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(255,255,255,.1); color: #fff; border-radius: 4px; text-decoration: none; transition: background .3s; border: 0; cursor: pointer; font-size: 1rem; }
.btn-control:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }
.btn-control i { height: 32px; width: 32px; line-height: 32px; margin-left: 0; font-size: .9rem; }
.btn-control i.fa-exclamation { background: #f39c12; border-color: #f39c12; }

/* Player */
.player-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.player-tabs button { background: #282730; color: #ddd; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 6px 14px; font-size: .85rem; cursor: pointer; transition: all .3s; }
.player-tabs button:hover { background: #37363e; color: #fff; }
.player-tabs button[aria-pressed="true"] { background: #0b36cd; border-color: #0b36cd; color: #fff; box-shadow: 0 0 20px 0 rgba(15,7,148,.6); }
.player-tabs button small { opacity: .75; margin-left: 4px; }
.pframe { background: #000; border-radius: 6px; overflow: hidden; }
.pframe iframe, .pframe .video-host, .pframe .video-host video, .pframe .video-host > div { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.player-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; background: radial-gradient(circle at center, rgba(11,54,205,.25), rgba(0,0,0,.85)), var(--poster, none) center/cover no-repeat; cursor: pointer; border: 0; width: 100%; }
.player-start .play-circle { width: 78px; height: 78px; border-radius: 50%; background: #0b36cd; box-shadow: 0 0 40px 0 rgba(15,7,148,.9); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; transition: transform .3s; }
.player-start:hover .play-circle { transform: scale(1.08); }
.player-start span { font-size: .9rem; text-shadow: 0 1px 4px #000; }
.player-message { min-height: 1.4em; font-size: .85rem; color: #f3c35b; margin: 6px 0 0; }
.player-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #fff; }
.player-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: #aaa; }
.player-tools select { background: #282730; color: #fff; border: 0; border-radius: 4px; padding: 4px 8px; }
.episode-nav { gap: 8px; }

/* Modal "Episódio com erro?" */
.report-wrapper { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 9999; display: none; }
.report-wrapper.open { display: block; }
.report-wrapper .content-wrapper { display: flex; align-items: center; justify-content: center; height: 100%; }
.report-wrapper .content-container { background: #1a1a2e; border-radius: 10px; padding: 30px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.report-wrapper .close { text-align: right; float: none; opacity: 1; }
.report-wrapper .close button { background: none; color: #fff; font-size: 24px; cursor: pointer; }
.report-wrapper .close svg { width: 18px; fill: #fff; }
.report-wrapper .report-title { color: #fff; font-size: 24px; margin-bottom: 20px; }
.report-wrapper .checkboxes { list-style: none; padding: 0; }
.report-wrapper .checkboxes li { margin-bottom: 10px; }
.report-wrapper .checkboxes label { color: #ccc; margin-left: 10px; cursor: pointer; }
.report-wrapper .report-button { background: #f39c12; color: #fff; border: none; padding: 10px 30px; border-radius: 5px; cursor: pointer; font-size: 16px; margin-top: 20px; }
.report-wrapper .report-button:hover { background: #e67e22; }

/* ===== Lista de animes (filtros com select nativo) ===== */
.filter-type { display: flex; flex-wrap: wrap; }
.dropdown-filter { width: calc(100% / 7); padding-right: 9px; margin-bottom: 8px; }
.dropdown-filter:last-child { padding-right: 0; }
.dropdown-filter select, .dropdown-filter .btn { width: 100%; height: 38px; color: #fff; background: #282730; border: none; border-radius: .25rem; padding: 0 10px; }
.dropdown-filter select[multiple] { height: 38px; }
.genre-picker { position: relative; }
.genre-picker summary { list-style: none; height: 38px; line-height: 38px; background: #282730; border-radius: .25rem; padding: 0 30px 0 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre-picker summary::-webkit-details-marker { display: none; }
.genre-picker summary:after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 10px; top: 0; }
.genre-picker .genre-options { position: absolute; z-index: 20; top: 42px; left: 0; width: 280px; max-height: 320px; overflow-y: auto; background: #282730; border-radius: 6px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.genre-picker label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; margin: 0; border-radius: 4px; cursor: pointer; font-size: .9rem; }
.genre-picker label:hover { background: #37363e; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; }
.letters a { min-width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 4px; background: #282730; font-size: .85rem; color: #ddd; padding: 0 6px; }
.letters a:hover, .letters a.selected { background: #0b36cd; color: #fff; }
.card-vertical .card-info { left: 8px; right: auto; }
.list-summary { color: #aaa; font-size: .9rem; margin-bottom: 14px; }

/* ===== Gêneros ===== */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.genre-grid a { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 18px; background: #242327; border: 1px solid rgba(52,51,60,.74); border-radius: 6px; transition: all .3s; }
.genre-grid a:hover { background: #0b36cd; border-color: #0b36cd; box-shadow: 0 0 30px 0 rgba(11,54,205,.6); }
.genre-grid span { color: #aaa; font-size: .8rem; }
.genre-grid a:hover span { color: #fff; }
.genre-description { color: #ccc; max-width: 900px; margin: -24px auto 24px; text-align: center; }
.sort-links { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.sort-links a { padding: 6px 14px; border-radius: 20px; background: #282730; font-size: .85rem; }
.sort-links a.selected, .sort-links a:hover { background: #0b36cd; }

/* ===== Comentários ===== */
.comments-panel { background: #1c1b22; border-radius: 8px; padding: 20px; margin: 30px 0 40px; }
.comments-panel h2 { font-size: 1.2rem; font-weight: 400; margin-bottom: 14px; }
.comment-form textarea { width: 100%; background: #282730; color: #fff; border-radius: 6px; padding: 10px 12px; resize: vertical; }
.comment-form label { display: block; width: 100%; color: #ccc; font-size: .9rem; }
.comment-submit { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.comment-submit small { color: #999; }
.comment-item { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.06); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author small { display: block; color: #8d8d8d; font-size: .75rem; }
.member-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: #193186; color: #fff; font-weight: 700; }
.comment-state { margin-left: auto; font-size: .7rem; background: #f39c12; color: #000; border-radius: 10px; padding: 2px 8px; }
.comment-body { margin: 8px 0 0 50px; white-space: pre-wrap; word-break: break-word; color: #e0e0e0; font-size: .95rem; }
.comment-controls { margin: 6px 0 0 50px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; font-size: .8rem; }
.comment-controls summary { cursor: pointer; color: #8fa6ff; }
.comment-controls form { margin-top: 6px; }
.comment-controls input, .comment-controls textarea { background: #282730; color: #fff; border-radius: 4px; padding: 6px 8px; width: 100%; min-width: 240px; }
.comment-replies { margin-left: 50px; border-left: 2px solid rgba(11,54,205,.4); padding-left: 14px; }
.text-button { background: none; border: 0; color: #8fa6ff; cursor: pointer; padding: 0; font-size: inherit; }
.text-button:hover { color: #fff; }
.comment-login { color: #ccc; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Área do membro ===== */
.member-card { background: #1c1b22; border-radius: 15px; border: 0; color: #fff; }
.member-card .card-header { border-radius: 15px 15px 0 0 !important; background: #193186 !important; border: 0; }
.member-card label { color: #ccc; font-size: .9rem; }
.member-card .form-check-label { color: #ccc; }
.member-card hr { border-color: rgba(255,255,255,.1); }
.member-card .text-muted { color: #9a9a9a !important; }
.social-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.social-buttons .btn { flex: 1 1 140px; border-radius: 6px; }
.btn-google { background: #fff; color: #222; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-google:hover { color: #000; background: #eee; }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.message-card { background: #242327; border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.message-card h3 { font-size: 1rem; margin: 0; }
.message-card small { color: #999; }
.team-response { background: rgba(11,54,205,.15); border-radius: 6px; padding: 10px 12px; margin-top: 8px; }
.alert-unread { border-left: 3px solid #0b36cd; }
.danger-zone details { margin-top: 10px; }
.danger-zone summary { cursor: pointer; color: #ff8a8a; }
.fav-remove { position: absolute; top: 8px; right: 22px; z-index: 5; }
.fav-remove button { width: 30px; height: 30px; border-radius: 50%; padding: 0; line-height: 30px; }
.public-member { text-align: center; padding: 30px 0; }
.public-member .member-avatar { width: 96px; height: 96px; font-size: 2rem; }

/* ===== Páginas de texto ===== */
.text-page { max-width: 900px; margin: 0 auto 50px; color: #ddd; line-height: 1.7; }
.text-page h2 { font-size: 1.3rem; margin: 26px 0 8px; color: #fff; }
.text-page a { color: #8fa6ff; }

/* ===== Rodapé ===== */
.footer-logo .brand-text { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 2rem; }
.footer-logo .disclaimer { margin-top: 14px; text-align: center; max-width: 900px; color: #ffef6b; font-size: .8rem; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 4px; }
.footer-nav ul { flex-wrap: wrap; justify-content: center; }
.footer-online { z-index: 2; color: #aaa; font-size: .8rem; margin-top: 10px; }
.footer-online b { color: #fff; }
.android-download img { height: 48px; width: auto; margin-top: 12px; }

/* ===== Paginação (componente do Laravel) ===== */
nav .pagination { justify-content: center; flex-wrap: wrap; }
.pagination .page-item { margin-bottom: 6px; }

@media (max-width: 991px) {
    .navbar-collapse { background: rgba(19,18,25,.97); border-radius: 8px; margin-top: 10px; padding: 8px 0; }
    .navbar-nav .dropdown-menu.genres-menu { columns: 2; min-width: 0; }
    .dropdown-filter { width: calc(100% / 4); }
}
@media (max-width: 768px) {
    .dropdown-filter { width: 50%; }
    .dropdown-filter:nth-child(2n) { padding-right: 0; }
    .comment-body, .comment-controls { margin-left: 0; }
    .comment-replies { margin-left: 10px; }
    .anime-votes { margin: 6px 0 0; }
    .player-start .play-circle { width: 60px; height: 60px; font-size: 1.4rem; }
    form.header-search.active { width: 180px; }
}
@media (max-width: 576px) {
    .genre-picker .genre-options { width: 100%; }
    .highlights .highlight-card { width: 50%; display: block; }
    .highlights .highlight-card:nth-of-type(n+3) { display: none; }
}

/* Títulos principais em h1 com o mesmo visual dos h2 do tema */
.anime-info h1 { padding-top: 20px; font-size: 2.2rem; width: 90%; font-weight: 500; }
.anime-title h1 { width: auto; padding-top: 0; margin-bottom: 0; font-size: 2.2rem; font-weight: 500; }
.anime-title h1 a:hover { color: #8fa6ff; }
.player-start { isolation: isolate; overflow: hidden; }
.player-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; z-index: -1; }
@media (max-width: 768px) { .anime-info h1, .anime-title h1 { font-size: 1.6rem; width: 100%; } }

/* Cabeçalho no celular: menu, logo, busca e perfil na mesma linha */
@media (max-width: 991px) {
    header .navbar { flex-wrap: wrap; }
    header .navbar-toggler { order: 0; padding-left: 0; }
    header .navbar-brand { order: 1; margin-right: auto; }
    header #rightMenu { order: 2; margin-left: 0; }
    header #profileMenu { order: 3; }
    header .navbar-collapse { order: 4; flex-basis: 100%; }
    .header-logo .brand-text { font-size: 1.25rem; }
    .header-logo img { max-height: 48px; }
}
@media (max-width: 400px) {
    .header-logo .brand-text small { display: none; }
    form.header-search { margin-right: 6px; }
}
.episode-nav { flex-wrap: wrap; }
@media (max-width: 576px) {
    .episode-nav .btn-control { padding: 6px 10px; font-size: .9rem; }
    .episode-nav .btn-control i { height: 28px; width: 28px; line-height: 28px; }
}
