/* 
 * Premium Download Portal Style - Absolute Fidelity
 * Theme: X-Ref Style
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
    --bg-color: #0b0b0b;
    --primary-color: #e74c3c; /* Fallback */
    --accent-color: var(--primary-color);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --transition: all 0.2s ease-in-out;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Open Sans', sans-serif;
    line-height: normal;
}

.container, .container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Banner */
.site-header-wrapper {
    position: relative;
    background: #000;
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: 30px;
}

.characters-banner {
    height: 160px;
    background: #000 url('https://www.xfilmehds.com.br/wp-content/themes/xfilmes/images/bg-topo.jpg') center bottom no-repeat;
    background-size: cover;
    opacity: 1; /* Aumentado para visibilidade total */
}

.header-content-top {
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}

.nav-links-ref {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.nav-links-ref a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links-ref a:hover, .nav-links-ref a.active {
    color: var(--accent-color);
}

.header-main-brand {
    text-align: center;
    padding: 20px 0;
    background: transparent;
}

.logo-ref {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -2px;
}

.header-search-box {
    padding-bottom: 25px;
    position: relative;
    z-index: 100;
}

.search-form-ref {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.search-form-ref input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.search-form-ref button {
    background: var(--accent-color);
    border: none;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Main Content */
main {
    min-height: 80vh;
}

.section-title {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-left: 5px solid var(--accent-color);
    margin: 30px 0 20px;
    text-transform: uppercase;
}

/* Grid & Cards */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.media-card {
    background: #151515;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.media-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
}

.poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
}

.media-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay i { font-size: 2.5rem; margin-bottom: 10px; }
.card-overlay span { font-weight: 800; font-size: 0.9rem; }

.media-info {
    padding: 12px;
}

.media-title {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    color: #fff;
}

.media-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* Content Page (Reference Style) */
.white-card {
    background: #fff;
    border-radius: 4px;
    padding: 0;
    color: #333;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.utility-bar {
    display: flex;
}

.util-box {
    flex: 1;
    padding: 15px;
    font-weight: 800;
    text-align: center;
}

.util-box.yellow { background: #ffc107; color: #000; }
.util-box.red { background: #c62828; color: #fff; }

.disclaimer-bar {
    background: #f5f5f5;
    color: #888;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
}

.content-cols {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.poster-col { flex: 0 0 240px; }
.poster-main-ref { width: 100%; border-radius: 4px; }
.info-col { flex: 1; }

.info-title-ref { color: #0d47a1; font-weight: 800; margin-bottom: 10px; font-size: 1.2rem; }
.info-list-ref { list-style: none; }
.info-item-ref { margin-bottom: 5px; font-size: 14px; }
.info-item-ref strong { color: #000; }

.download-section-ref {
    padding: 30px 20px;
    background: #000;
    color: #fff;
    text-align: center;
}

.download-box-ref {
    background: #222;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.quality-tag {
    background: #c62828;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.btn-download-ref {
    background: #000;
    color: #fff;
    padding: 12px 25px;
    border: 1px solid #fff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
}

/* Footer */
footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
}

.copyright { color: #444; font-size: 12px; }

@media (max-width: 768px) {
    .content-cols { flex-direction: column; align-items: center; }
}

/* --- Protector Page (go.php) --- */
.protector-layout {
    background: #0b0b0b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    color: #fff;
    text-align: center;
}

.protector-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.adblock-warning {
    background: #ff4d4d;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 700px;
}

.instructions-box {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid #222;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    margin-bottom: 40px;
}

.instructions-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #fff;
}

.instructions-box p {
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.small-note {
    font-size: 0.8rem;
    color: #888;
}

.btn-magnet-released {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.btn-magnet-released .small {
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
}

.btn-safe-site {
    background: #27ae60;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.3);
}
