:root {
    --primary-color: #D32F2F;
    /* Deep Red */
    --accent-color: #FF5252;
    --dark-bg: #1e1e1e;
    --light-bg: #f4f6f8;
    --white: #ffffff;
    --text-main: #333333;
    --text-light: #777777;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 700;
}

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

.mt-5 {
    margin-top: 40px;
}

.mt-4 {
    margin-top: 30px;
}

.mt-3 {
    margin-top: 20px;
}

.mt-2 {
    margin-top: 5px;
}

/* Reduced from 8px */

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 60px;
    /* Reduced by 50% (was 120px) */
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 25px;
    margin-left: 30px;
}

.nav-btn {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    color: var(--primary-color);
}

.nav-btn i {
    font-size: 1rem;
}

.social-header {
    display: flex;
    align-items: center;
}

.social-label {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-header a {
    color: var(--text-light);
    margin-left: 10px;
    font-size: 24px;
    /* Increased from 18px */
    width: 50px;
    /* Increased from 35px */
    height: 50px;
    /* Increased from 35px */
    border-radius: 50%;
    background: #eee;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.social-header a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Radio Player Bar */
.radio-player-bar {
    background: var(--dark-bg);
    padding: 10px 0;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.player-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-indicator {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* 3-Column Layout */
.three-col-layout {
    display: grid;
    /* Main Video (approx 60%) | List (20%) | Banners (20%) */
    /* This reduction in sidebar width will shrink the thumbnails */
    grid-template-columns: 3fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    /* Reduced margin */
}

.section-header h3 {
    text-transform: uppercase;
    font-size: 1rem;
    /* Slightly smaller header */
    color: var(--primary-color);
    white-space: nowrap;
}

.section-header .line {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

/* Col 1: Main Video */
.main-video-card {
    background: var(--white);
    padding: 15px;
    /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.video-frame-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    /* Reduced margin */
}

.video-frame-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-video-info h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.main-video-info .desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.main-video-info .meta {
    font-size: 0.8rem;
    color: #999;
}

/* Col 2: Video List (COMPACT) */
.vertical-video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced gap between items */
}

.vertical-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Minimal gap inside item */
    background: var(--white);
    padding: 8px;
    /* TIGHTER PADDING */
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ImageWrapper Middle */
.thumb-wrapper-list {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 4px;
    /* Smaller radius */
    overflow: hidden;
}

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

.play-overlay-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    /* Smaller icon */
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 30px;
    /* Smaller button */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.vertical-item:hover .play-overlay-small {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Date Overlay */
.date-overlay {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.65rem;
    /* Smaller date font */
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1;
}

/* Title (Now Below) */
.info-top h5 {
    font-size: 0.8rem;
    /* Even smaller font */
    line-height: 1.3;
    margin-bottom: 0;
    color: var(--text-main);
    display: block;
}


/* Col 3: Banners */
.vertical-banner-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banner-box {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    height: 100px;
    /* Slightly Reduced Height */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-placeholder {
    color: #ccc;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Bottom Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.grid-video-item {
    background: var(--white);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thumb-wrapper.small {
    width: 100%;
    height: 110px;
    /* Reduced height */
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

.grid-details h5 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.grid-details small {
    font-size: 0.75rem;
    color: #aaa;
}

/* Button See All */
.btn-see-all {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    /* Reduced padding */
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
    border: none;
    margin-top: 10px;
}

.btn-see-all:hover {
    background-color: #b71c1c;
    /* Darker Red */
    color: white;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

/* Footer */
footer {
    background: #111;
    color: #888;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
}

.footer-social a {
    background: #222;
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-left: 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .three-col-layout {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card a {
    text-decoration: none;
    color: inherit;
}

.news-thumb {
    height: 160px;
    overflow: hidden;
    background: #eee;
    position: relative;
    display: flex;
    /* Centering placeholder */
    align-items: center;
    justify-content: center;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.no-image-placeholder {
    font-size: 3rem;
    color: #ccc;
}

.news-content {
    padding: 15px;
}

.news-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
    min-height: 4.2em;
    /* Ensure uniform height for titles */
}

.news-date {
    font-size: 0.8rem;
    color: #888;
}

.btn-see-all-news {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f4f6f9;
    color: #333;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-see-all-news:hover {
    background-color: #e2e6ea;
    color: #ff3e3e;
}

/* Noticia Detalhe */
.news-detail-header h1 {
    font-weight: 800;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 2rem;
}

.news-detail-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.news-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    /* Changed to contain to show full image if needed, or cover */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    background: #f9f9f9;
}

.news-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    text-align: justify;
}

.news-content-body p {
    margin-bottom: 1.5rem;
}

/* News Top Grid (2 Cols) */
.news-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .news-top-grid {
        grid-template-columns: 1fr;
    }
}

/* Horizontal News Card */
.news-card-horizontal {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    height: 90px;
}

.news-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-card-horizontal a {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-thumb-horizontal {
    flex: 0 0 112px;
    /* Fixed width for image */
    background: #eee;
    position: relative;
    overflow: hidden;
}

.news-thumb-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder-small {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #ccc;
    font-size: 1.5rem;
}

.news-content-horizontal {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
}

.news-content-horizontal h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit lines */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Radio Page Player */
.radio-page-player {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
}

.player-header-large {
    margin-bottom: 30px;
}

.player-header-large i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.player-header-large h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.live-badge-large {
    display: inline-block;
    background: #FFEBEE;
    color: #D32F2F;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.live-badge-large i {
    color: #D32F2F;
    animation: pulse 2s infinite;
}

.player-embed-large {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.player-embed-large iframe {
    width: 100%;
    min-height: 150px;
}