body {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.nav-link {
    font-family: "Nunito", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -12px;
}

.row > * {
    width: 100%;
    padding-inline: 12px;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.col-md-2,
.col-md-8,
.col-md-6,
.col-lg-4,
.col-lg-6 {
    flex: 0 0 auto;
    width: 100%;
}

.gy-4 {
    row-gap: 1.5rem;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .col-md-2 {
        width: 16.66666667%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-8 {
        width: 66.66666667%;
    }

    .mb-md-0 {
        margin-bottom: 0 !important;
    }

    .mt-md-0 {
        margin-top: 0 !important;
    }

    .px-md-4 {
        padding-inline: 1.5rem !important;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .col-lg-4 {
        width: 33.33333333%;
    }

    .col-lg-6 {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

h3 {
    font-size: 1.75rem;
}

h4,
.h4 {
    font-size: 1.5rem;
}

h5,
.h5 {
    font-size: 1.25rem;
}

h6,
.h6 {
    font-size: 1rem;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: #fff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

.border-0 {
    border: 0 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.border-bottom-0 {
    border-bottom: 0 !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.rounded-3 {
    border-radius: 0.5rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.top-0 {
    top: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.my-4 {
    margin-block: 1.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.py-3 {
    padding-block: 1rem !important;
}

.py-4 {
    padding-block: 1.5rem !important;
}

.py-5 {
    padding-block: 3rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.small {
    font-size: 0.875em !important;
}

.h5 {
    font-size: 1.25rem !important;
}

.display-1 {
    font-size: 4rem !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.material-symbols-outlined {
    display: inline-block;
    line-height: 1;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.nav-link {
    display: block;
    text-decoration: none;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:hover::after {
    opacity: 0.08;
}

.btn:focus::after,
.btn:active::after {
    opacity: 0.12;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-light {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-light {
    color: #f8f9fa;
    background-color: transparent;
    border-color: #f8f9fa;
}

.btn-outline-primary {
    color: #0d6efd;
    background-color: transparent;
    border-color: #0d6efd;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    color: #fff;
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1;
    padding: 0.3em 0.6em;
}

.card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    word-wrap: break-word;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    background-clip: border-box;
    box-shadow: none;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

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

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-header {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

.card-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-text {
    margin-top: 0;
}

.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.canal-header {
    min-height: 200px;
    position: relative;
}

.canal-header.tema-personalizada {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.canal-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
}

.canal-header .container {
    position: relative;
    z-index: 2;
}

.canal-header.header-texto-escuro .canal-titulo,
.canal-header.header-texto-escuro .canal-info,
.canal-header.header-texto-escuro .canal-descricao,
.canal-header.header-texto-escuro .canal-stats {
    color: #212529 !important;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.3);
}

.canal-header.header-texto-claro .canal-titulo,
.canal-header.header-texto-claro .canal-info,
.canal-header.header-texto-claro .canal-descricao,
.canal-header.header-texto-claro .canal-stats {
    color: white !important;
}

.canal-header.header-texto-escuro .btn-light {
    background-color: #212529;
    border-color: #212529;
    color: white;
}

.canal-header.header-texto-escuro .btn-outline-light {
    border-color: #212529;
    color: #212529;
}

.canal-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.canal-avatar img,
.canal-avatar .avatar-placeholder {
    width: 140px;
    height: 140px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.2s ease;
}

.canal-avatar img:hover,
.canal-avatar .avatar-placeholder:hover {
    transform: scale(1.05);
}

.canal-titulo {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.canal-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.logo-emblema {
    width: auto;
    height: 20px;
}

.canal-descricao {
    margin-bottom: 1rem !important;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
}

.canal-stats {
    margin-bottom: 0 !important;
    font-size: 0.9rem;
    opacity: 0.85;
}

.canal-stats span {
    font-weight: 500;
    white-space: nowrap;
}

.canal-stats .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.8;
}

.btn-seguir,
.canal-header .btn {
    min-width: 120px;
    padding: 10px 24px;
    border-width: 0;
    border-radius: 100px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-seguir:hover,
.canal-header .btn:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.btn-seguir .material-symbols-outlined,
.canal-header .btn .material-symbols-outlined {
    margin-right: 0.5rem;
    font-size: 20px;
}

.canal-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
}

.canal-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 20px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.canal-nav .nav-link:hover {
    background: rgba(108, 117, 125, 0.08);
    color: #000;
}

.canal-nav .nav-link.active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.canal-nav .nav-link.active.tema-escuro {
    color: #fff !important;
}

.canal-nav .nav-link.active.tema-claro {
    color: #212529 !important;
}

.btn-tema {
    padding: 10px 24px;
    border: none;
    border-radius: 100px;
    color: #fff;
    font-weight: 500;
    box-shadow: none;
}

.btn-tema:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn-tema.tema-escuro {
    color: white !important;
}

.btn-tema.tema-claro {
    color: #212529 !important;
}

.btn-outline-tema {
    background-color: transparent !important;
    border: 1px solid;
}

.featured-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.empty-icon {
    color: #ccc;
    font-size: 64px;
}

.atividade-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    background-color: #f8f9fa;
    transition: all 0.25s ease-out;
}

.atividade-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.atividade-thumbnail {
    height: 160px;
    border-radius: 16px 16px 0 0;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.atividade-card:hover .atividade-thumbnail {
    transform: scale(1.03);
}

.atividade-card .card-title {
    margin-bottom: 0.5rem;
    color: #343a40;
    font-weight: 700;
}

.atividade-card .btn {
    padding: 10px 24px;
    border-radius: 100px;
    box-shadow: none;
    font-weight: 500;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.content-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.content-section .display-1 {
    opacity: 0.3;
}

.atividade-stats,
.trilha-stats {
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 0.875rem;
}

.stat-icon {
    font-size: 16px;
}

.rating-stars {
    color: #ffc107;
    line-height: 1;
    letter-spacing: 0;
}

.rating-stars .material-symbols-outlined {
    margin: 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.filled-star {
    color: #ffc107;
    font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24 !important;
}

.empty-star {
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24 !important;
}

.no-rating {
    color: #dee2e6;
}

.no-rating-text {
    font-size: 0.8em;
}

.trilha-card {
    overflow: hidden;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trilha-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trilha-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
}

.trilha-thumbnail:hover {
    transform: scale(1.02);
}

.pagination {
    display: flex;
    gap: 4px;
    padding-left: 0;
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    color: #6c757d;
    font-weight: 500;
    text-decoration: none;
}

.page-item.active .page-link {
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-item.active.tema-escuro .page-link {
    color: white !important;
}

.page-item.active.tema-claro .page-link {
    color: #212529 !important;
}

.page-item.disabled .page-link {
    border-color: #dee2e6;
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: default;
    pointer-events: none;
}

.page-item.disabled .page-link .material-symbols-outlined {
    color: #adb5bd;
}

.page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
}

.page-link:hover {
    background-color: #e9ecef;
}

.page-link .material-symbols-outlined {
    font-size: 18px;
}

@keyframes heartbeat {
    0%,
    40%,
    80%,
    100% {
        transform: scale(1);
    }

    20%,
    60% {
        transform: scale(1.1);
    }
}

.animate-heartbeat {
    animation: heartbeat 0.6s ease-in-out;
}

.btn-curtir {
    transition: all 0.3s ease;
}

.btn-curtir:hover {
    transform: translateY(-1px);
}

.badge-icon {
    font-size: 14px;
}

.sequencia-wrapper {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.drag-container {
    padding: 0;
    margin: 0;
    list-style: none;
}

.roteiro-items-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.drag-item {
    display: grid;
    grid-template-columns: 40px 40px auto 1fr 50px;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.drag-item .capa {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: cover;
}

.drag-item .numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #f0f0f0;
    font-weight: 700;
}

.drag-item .tipo {
    padding: 0 5px;
    color: #36a2dc;
    font-weight: 500;
}

.drag-item .tipo[title="atividade"] {
    color: #f3ab40;
}

.drag-item .titulo {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    overflow: hidden auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    width: min(100% - 24px, 500px);
    margin: 1.75rem auto;
}

.modal-lg {
    width: min(100% - 24px, 800px);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    width: 100%;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.modal-header {
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    justify-content: flex-end;
    border-top: 1px solid #dee2e6;
}

.modal-body {
    padding: 1rem;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.btn-close {
    width: 1em;
    height: 1em;
    padding: 0.25em;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.btn-close::before {
    content: "×";
    color: #000;
    font-size: 1.5rem;
    line-height: 1;
}

.roteiro-items-container,
.roteiro-items-error {
    display: none;
}

.modal-error-icon {
    font-size: 48px;
}

.canal-not-found {
    padding: 4rem 0;
    background: #f8f9fa;
}

.not-found-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.not-found-logo {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 767px) {
    .canal-header .row {
        flex-direction: column;
        text-align: center;
    }

    .canal-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .canal-avatar img {
        width: 100px;
        height: 100px;
    }

    .canal-titulo {
        font-size: 2rem;
        text-align: center;
    }

    .canal-info,
    .canal-descricao,
    .canal-stats {
        justify-content: center;
        text-align: center;
    }

    .canal-stats {
        flex-direction: column;
        gap: 0.5rem !important;
        margin-top: 1rem;
    }

    .canal-header .col-md-2 {
        margin-top: 1.5rem;
    }

    .canal-header .btn,
    .btn-seguir {
        width: 100%;
        max-width: 250px;
        margin-top: 15px;
    }

    .canal-nav .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 10px;
        margin-bottom: -10px;
        -webkit-overflow-scrolling: touch;
    }

    .canal-nav .nav-item {
        flex-shrink: 0;
    }

    .canal-nav .nav-link {
        margin-right: 5px;
        font-size: 0.9rem;
    }

    .drag-item {
        grid-template-columns: 32px 40px 32px 1fr;
    }

    .drag-item .btn {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
}
