:root {
    --primary-color: #ffb100;
    --secondary-color: #222;
    --text-color: #333;
    --text-muted: #666;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --border-color: #e1e1e1;
    --font-main: 'Outfit', 'Inter', sans-serif;
    --container-width: 1400px;
    --transition: all 0.3s ease;

    /* Section Colors */
    --color-pink: #e91e63;
    --color-green: #00a884;
    --color-blue: #007bff;
    --color-dark-green: #0b3b24;
}

/* Ad Slider Generic */
.ad-slider {
    width: 100%;
    background: #000;
    overflow: hidden;
}

#top-slider {
    height: auto;
    max-height: 400px;
    /* Limite opcional para não ficar alto demais */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#top-slider .slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

#middle-slider {
    height: 120px;
    margin: 20px 0;
    border-radius: 4px;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Agora ocupa 100% da largura e preenche o espaço */
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Nav */
.top-ad {
    background: #f0f0f0;
    padding: 10px 0;
    text-align: center;
}

.top-nav-row {
    background: #fff;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.top-nav-row .container {
    display: flex;
    justify-content: space-between;
}

.orange-header {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.orange-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* Search Bar Styles */
.search-input-full {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-close-btn {
    margin-left: 20px;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-close-btn:hover {
    transform: rotate(90deg);
}

#header-search-bar {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-menu {
    display: flex;
    gap: 15px;
}

#header-menu-mobile {
    display: none;
    /* Esconde o mobile por padrão em tudo */
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.header-menu a {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.logo-center img {
    height: 60px;
    width: auto;
}

/* Layout Parts */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
    /* Importante para o sticky funcionar */
}

.sidebar-area {
    position: sticky;
    top: 70px;
    /* Logo abaixo do menu fixo */
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* 50%, 25% e 25% de largura */
    grid-template-rows: repeat(2, 250px);
    gap: 10px;
    margin-bottom: 20px;
}

.hero-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Garante que preenche o grid */
}

.hero-item.large {
    grid-column: 1;
    /* Ocupa a primeira coluna (50%) */
    grid-row: span 2;
    /* Ocupa as duas linhas */
}

/* Os outros itens preenchem automaticamente as colunas 2 e 3 */

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.hero-overlay h2 {
    font-size: 16px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-overlay .badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    background: var(--color-blue);
    margin-bottom: 5px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-title {
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
    padding-right: 25px;
}

.section-title.pink {
    background-color: var(--color-pink);
}

.section-title.blue {
    background-color: var(--color-blue);
}

.section-title.green {
    background-color: var(--color-green);
}

.section-links {
    margin-left: auto;
    font-size: 11px;
    color: #999;
}

.section-links a {
    margin-left: 10px;
    text-transform: uppercase;
}

/* Entertainment Section */
.ent-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.post-card-large {
    position: relative;
}

.post-card-large img {
    border-radius: 4px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card-large h3 {
    font-size: 16px;
    margin-top: 10px;
    color: var(--color-pink);
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.post-card-large p {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.grid-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.grid-item h4 {
    font-size: 12px;
    margin-top: 8px;
    color: var(--color-pink);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

/* Video Section */
.video-section {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.video-main {
    position: relative;
    margin-bottom: 20px;
}

.video-main img {
    width: 100%;
    height: 400px;
    /* Altura fixa para o player principal */
    object-fit: cover;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-thumbs {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.video-thumb {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.video-thumb img {
    width: 100%;
    height: 180px;
    /* Altura ajustada para os mini players */
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumb:hover img {
    transform: scale(1.05);
}

.video-thumb:hover .play-overlay {
    opacity: 1;
}

/* Desporto (Sports) Full Width */
.desporto-full {
    background: var(--color-dark-green);
    padding: 40px 0;
    color: #fff;
    margin: 30px 0;
}

.desporto-grid {
    display: grid;
    grid-template-columns: 350px 1fr 1fr;
    grid-template-rows: repeat(2, 120px);
    gap: 15px;
}

.desp-main {
    grid-row: span 2;
    position: relative;
}

.desp-main img {
    height: 100%;
    object-fit: cover;
}

.desp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.desp-small {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100px;
    overflow: hidden;
}

.desp-small img {
    width: 100px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.desp-small h4 {
    font-size: 13px;
    padding-right: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Fama & Musica */
.fama-musica-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.row-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    height: 80px;
}

.row-post img {
    width: 110px;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.row-post h4 {
    font-size: 14px;
    color: var(--color-pink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Mixed Section */
.mixed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.mixed-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.mixed-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}

.mixed-item h4 {
    font-size: 13px;
    color: var(--color-pink);
    margin-top: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

/* Sidebar Widgets */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    background: #eee;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-right: 4px solid var(--color-green);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.sidebar-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.social-box {
    padding: 10px;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-box.fb {
    background: #3b5998;
}

.social-box.tw {
    background: #1da1f2;
}

.social-box.ig {
    background: #e1306c;
}

.social-box.yt {
    background: #ff0000;
}

.latest-list-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.latest-list-item img {
    width: 60px;
    height: 60px;
}

.latest-list-item h4 {
    font-size: 12px;
}

/* Footer */
footer {
    background: #111;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #222;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
    width: auto;
}

.footer-social {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.footer-widget h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-posts .row-post {
    margin-bottom: 10px;
}

.footer-posts .row-post h4 {
    color: #fff;
    font-size: 12px;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #555;
}

/* Responsive Improvements */
@media (max-width: 992px) {
    :root {
        --container-width: 100%;
    }

    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar-area {
        position: static;
        margin-top: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .desporto-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .desp-main {
        height: 300px;
    }
}

@media (max-width: 768px) {

    .desktop-only {
        display: none !important;
    }

    #header-menu-mobile {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    #header-menu-mobile.active {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .orange-header .container {
        flex-direction: row;
        justify-content: center;
        height: 70px;
        position: relative;
    }

    .logo-center {
        margin: 0 auto;
    }

    #header-menu-mobile a {
        color: #fff;
        font-weight: bold;
        font-size: 14px;
        width: 100%;
        text-align: center;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Grid Adjustments */
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 5px;
    }

    .hero-item.large {
        height: 250px;
    }

    .hero-item {
        height: 180px;
    }

    .ent-top {
        grid-template-columns: 1fr;
    }

    .ent-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .grid-item img {
        height: 100px;
    }

    .mixed-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fama-musica-row {
        grid-template-columns: 1fr;
    }

    /* Video Section Mobile */
    .video-main iframe {
        height: 250px;
    }

    .video-thumb {
        min-width: calc(50% - 10px) !important;
    }

    /* Footer Mobile */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-social {
        justify-content: center;
    }

    .footer-logo img {
        margin: 0 auto 15px;
    }

    .footer-links a {
        padding: 8px 0;
        border-bottom: 1px solid #222;
    }

    /* Article Content */
    article {
        padding: 15px !important;
    }

    .post-header h1 {
        font-size: 24px !important;
    }

    .post-body {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {

    .ent-grid,
    .mixed-grid {
        grid-template-columns: 1fr;
    }

    .video-thumb {
        min-width: 100% !important;
    }
}