/* ============================
   BASE / GLOBAL
=============================== */

body.tcc-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #15110e;
    background-image:
        radial-gradient(circle at top, rgba(255, 222, 173, 0.09), transparent 55%),
        radial-gradient(circle at bottom, rgba(0, 0, 0, 0.8), #15110e 70%);
    color: #f5f0e8;
    line-height: 1.6;
    margin: 0;
}

a {
    color: #f0d58a;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================
   HEADER
=============================== */

.tcc-header {
    background: linear-gradient(to bottom, #201812, #15110e);
    border-bottom: 1px solid #3a2b20;
    padding: 0.75rem 2rem;
}

.tcc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.tcc-logo a {
    font-size: 1.4rem;
    font-weight: 700;
}
.tcc-tagline {
    display: block;
    font-size: 0.85rem;
    color: #d9c7a2;
}

.tcc-nav .tcc-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}
.tcc-nav .tcc-menu li {
    position: relative;
}
.tcc-nav .tcc-menu li a {
    padding-bottom: 0.15rem;
}
.tcc-nav .tcc-menu li a:hover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -0.15rem;
    height: 2px;
    background: linear-gradient(to right, #f0d58a, transparent);
}

.tcc-lang-switcher {
    font-size: 0.9rem;
}

/* ============================
   LAYOUT GLOBAL
=============================== */

.tcc-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ============================
   HERO
=============================== */

.tcc-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    background: #22160f;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.tcc-hero-media {
    position: relative;
    max-height: 420px;
    overflow: hidden;
}
.tcc-hero-video,
.tcc-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tcc-hero-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8,4,2,0.9), rgba(8,4,2,0.55), transparent);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.tcc-hero-title {
    font-size: 2.4rem;
    margin: 0;
}
.tcc-hero-tagline {
    max-width: 480px;
    margin: 0;
    color: #f5ead5;
}

.tcc-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #f0d58a;
    background: transparent;
    color: #f0d58a;
    font-size: 0.95rem;
    cursor: pointer;
}
.tcc-btn-primary {
    background: #f0d58a;
    color: #2a1c12;
}
.tcc-btn:hover {
    filter: brightness(1.05);
}

/* ============================
   FILTROS HOME
=============================== */

.tcc-book-filters {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(10,7,4,0.85);
    border: 1px solid #3a2b20;
}

.tcc-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.tcc-filter-group {
    flex: 1 1 260px;
}

.tcc-alpha-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: .5rem;
}
.tcc-alpha-list button {
    border: none;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: #2a1c12;
    color: #f5f0e8;
    cursor: pointer;
    font-size: 0.75rem;
}
.tcc-alpha-list button.is-active {
    background: #f0d58a;
    color: #2a1c12;
}

/* ============================
   GRID DE LIVROS (5/4/3/2)
=============================== */

.tcc-section-latest h2 {
    margin-bottom: 1.25rem;
}

.tcc-book-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1200px) {
    .tcc-book-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .tcc-book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .tcc-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tcc-book-card {
    background: #22160f;
    border-radius: 16px;
    border: 1px solid #3a2b20;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tcc-book-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tcc-book-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow:
        inset 8px 0 10px -4px rgba(0,0,0,0.45),
        0 10px 25px rgba(0,0,0,0.6);
}

/* TÍTULO E AUTOR CENTRALIZADOS NA HOME */
.tcc-book-meta {
    padding: 0.45rem 0.5rem 0.6rem;
    text-align: center;
}
.tcc-book-title {
    margin: 0 0 0.2rem;
    font-size: .85rem;
    line-height: 1.25;
}
.tcc-book-author,
.tcc-book-genre,
.tcc-book-rating {
    font-size: .7rem;
    color: #d9c7a2;
    margin: 0.1rem 0;
}

.tcc-book-card:hover {
    transform: translateY(-3px);
    border-color: #f0d58a;
    box-shadow: 0 14px 30px rgba(0,0,0,0.7);
}

/* ============================
   SINGLE BOOK
=============================== */

.tcc-book-header {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.tcc-book-cover-large img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border: 1px solid #3a2b20;
    box-shadow:
        inset 10px 0 14px -6px rgba(0,0,0,0.55),
        0 16px 40px rgba(0,0,0,0.75);
}

/* TÍTULO E AUTOR MAIS VISÍVEIS NA PÁGINA DO LIVRO */
.tcc-book-header-meta .tcc-book-title {
    font-size: 2rem;
    margin: 0 0 0.3rem;
}
.tcc-book-header-meta .tcc-book-author {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
}

/* Sinopse justificada */
.tcc-book-summary p {
    text-align: justify;
    text-justify: inter-word;
}

/* MOBILE: capa centralizada e sinopse abaixo */
@media (max-width: 768px) {
    .tcc-book-header {
        grid-template-columns: 1fr;
    }
    .tcc-book-cover-large {
        margin: 0 auto;
        max-width: 260px;
    }
}

/* ============================
   FANART
=============================== */

.tcc-fanart-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tcc-fanart-gallery img,
.tcc-fanart-item img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px;
    border: 1px solid #3a2b20;
}

/* Lightbox */
.slb_viewer img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    object-fit: contain !important;
}

/* ============================
   PERSONAGENS (AVATARES)
=============================== */

.tcc-book-characters h2 {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: #f5ead5;
}

.tcc-character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tcc-character-card {
    background: #22160f;
    border-radius: 14px;
    border: 1px solid #3a2b20;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.tcc-character-card:hover {
    border-color: #f0d58a;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.65);
}

.tcc-character-card-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    color: inherit;
}

.tcc-character-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #3a2b20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}
.tcc-character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcc-character-name {
    font-size: 1rem;
    font-weight: 600;
}

/* MOBILE personagens */
@media (max-width: 640px) {
    .tcc-character-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .tcc-character-card {
        padding: 0.7rem;
        gap: 0.7rem;
    }
    .tcc-character-avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    .tcc-character-name {
        font-size: 0.9rem;
    }
}

/* ============================
   FOOTER
=============================== */

.tcc-footer {
    background: #110c08;
    border-top: 1px solid #3a2b20;
    padding: 1.5rem 1rem;
    color: #d9c7a2;
}

.tcc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* ============================
   RESPONSIVO GLOBAL
=============================== */

@media (max-width: 768px) {
    .tcc-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tcc-hero-content {
        position: static;
        background: #22160f;
    }

    .tcc-hero-media {
        max-height: none;
    }
}
