/* ============================================
   SISTEMA DE PROPORÇÕES HARMONIOSAS
   Baseado em escala tipográfica 1.25 e grid de 8px
   ============================================ */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
}

body {
    background: #000;
    color: #fff;
}

.container-fullscreen {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* ============================================
   ÁREA PRINCIPAL - Layout balanceado
   ============================================ */
.noticia-fullscreen {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.noticia-display {
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: row;
    animation: fadeInContent 0.6s ease-out;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.noticia-display.hidden {
    display: none;
}

@keyframes fadeInContent {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Seção da imagem */
.imagem-section {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 0;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 0.4s ease-out;
    transform: scale(1.15);
    transform-origin: center bottom;
}

.background-image.fade-in {
    animation: fadeInBackground 0.6s ease-out;
}

@keyframes fadeInBackground {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-imagem {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.88) 25%,
        rgba(0, 0, 0, 0.75) 45%,
        rgba(0, 0, 0, 0.5) 65%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 2;
}

.noticia-conteudo-imagem {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: clamp(10px, 2vw + 2vh, 30px);
    display: flex;
        flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(4px, 0.8vh, 10px);
    max-height: 80%;
    min-height: 0;
}

.noticia-conteudo-imagem .noticia-data-container {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 2px;
    padding-bottom: 0;
}

.noticia-conteudo-imagem .noticia-data {
    font-size: clamp(12px, 1.5vw + 1.2vh, 18px);
    font-weight: 600;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
    margin: 0;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

.noticia-conteudo-imagem .noticia-titulo {
    font-size: clamp(16px, 4vw + 2.5vh, 42px);
    font-weight: 900;
    line-height: 1.2;
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    display: block;
    flex: 1;
    min-height: 0;
    text-transform: none;
    font-variant: normal;
    text-decoration: none;
}

/* Seção do texto */
.texto-section {
    width: 0;
    height: 0;
    position: absolute;
    display: none;
    visibility: hidden;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.overlay-texto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 2;
}

.noticia-conteudo-container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: clamp(8px, 1.5vw + 1vh, 16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    row-gap: 0;
    overflow: hidden;
    min-height: 0;
}

.noticia-data-container {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 2px;
    padding-bottom: 0;
}

.noticia-data {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
    margin: 0;
    padding: 0;
    display: block;
}


/* Footer integrado na área de texto - escondido */
.footer-integrado {
    display: none;
}

/* Footer fixo na parte inferior (30% da tela) */
.footer-fixed-bottom {
    position: relative;
    width: 100%;
    height: 30%;
    z-index: 100;
    padding-top: clamp(2px, 0.5vh, 6px);
    padding-bottom: clamp(2px, 0.5vh, 6px);
    padding-left: clamp(4px, 1vh, 12px);
    padding-right: clamp(4px, 1vh, 12px);
    margin: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-content-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 0.5vh, 5px);
    width: 100%;
    max-width: 100%;
    height: 100%;
    flex-wrap: nowrap;
    position: relative;
}

.footer-left-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1px, 0.3vh, 3px);
}

/* Footer integrado - estilos */
.footer-texto {
    font-size: clamp(9.6px, 1.44vw + 0.6vh, 16.8px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    text-align: center;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.2px;
    order: 1;
}

.qrcode-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    flex-shrink: 0;
    order: 2;
}

.qrcode-image {
    width: clamp(48px, 9.6vw + 2.4vh, 114px);
    height: clamp(48px, 9.6vw + 2.4vh, 114px);
    background: white;
    padding: clamp(2.4px, 0.48vh, 6px);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
    max-width: 100%;
    border-radius: clamp(4.8px, 0.96vw, 8.4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.qrcode-image[src=""],
.qrcode-image:not([src]) {
    display: none !important;
}

.footer-logo {
    height: clamp(21.6px, 3.6vw + 1.8vh, 50.4px);
    width: auto;
    max-width: clamp(120px, 24vw + 3.6vh, 288px);
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
    flex-shrink: 0;
    order: 2;
    display: block;
}

.footer-logo[src=""],
.footer-logo:not([src]),
.footer-logo[src="#"] {
    display: none !important;
}

.footer-logo {
    height: clamp(21.6px, 3.6vw + 1.8vh, 50.4px);
    width: auto;
    max-width: clamp(120px, 24vw + 3.6vh, 288px);
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
    flex-shrink: 0;
    order: 2;
    display: block;
}

/* Footer fixo antigo - escondido */
.footer-fixed {
    display: none;
}

/* Estilos compartilhados para footer */
.footer-content-bottom .footer-texto,
.footer-content-bottom .footer-logo,
.footer-content-bottom .qrcode-container,
.footer-content-bottom .qrcode-image {
    /* Herda estilos do footer integrado */
}


/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 20;
    background: #000;
}

.loading-screen.hidden {
    display: none;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen p {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
}

/* ============================================
   RESPONSIVIDADE - Proporções mantidas
   ============================================ */

/* Telas pequenas - Layout vertical */
@media (max-width: 768px) {
    .noticia-fullscreen {
        flex-direction: column;
        padding: 0;
    }
    
    .noticia-display {
        flex-direction: column;
        height: 70%;
    }
    
    .imagem-section {
        width: 100%;
        height: 100%;
    }
    
    .texto-section {
        display: none;
        width: 0;
        height: 0;
    }
    
    .noticia-conteudo-container {
        padding: 12px;
    }
    
    .noticia-conteudo-imagem {
        padding: clamp(10px, 1.8vw + 1.8vh, 24px);
        gap: clamp(4px, 0.7vh, 8px);
        max-height: 75%;
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(10px, 1.2vw + 1vh, 16px);
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(14px, 3.5vw + 2vh, 32px);
    }
    
    .footer-fixed-bottom {
        height: 30%;
        padding-top: clamp(1.5px, 0.4vh, 5px);
        padding-bottom: clamp(1.5px, 0.4vh, 5px);
        padding-left: clamp(3px, 0.8vh, 10px);
        padding-right: clamp(3px, 0.8vh, 10px);
    }
    
    .footer-content-bottom {
        gap: clamp(2px, 0.4vh, 4px);
    }
    
    .footer-texto {
        font-size: clamp(8.4px, 1.2vw + 0.48vh, 14.4px);
    }
    
    .footer-logo {
        height: clamp(19.2px, 3vw + 1.2vh, 43.2px);
        max-width: clamp(108px, 21.6vw + 2.4vh, 252px);
    }
    
    .qrcode-image {
        width: clamp(42px, 7.2vw + 1.8vh, 96px);
        height: clamp(42px, 7.2vw + 1.8vh, 96px);
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .noticia-fullscreen {
        padding: 0;
    }
    
    .noticia-display {
        height: 70%;
    }
    
    .noticia-conteudo-container {
        padding: 10px;
    }
    
    .noticia-conteudo-imagem {
        padding: clamp(8px, 1.5vw + 1.5vh, 20px);
        gap: clamp(3px, 0.6vh, 7px);
        max-height: 75%;
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(9px, 1.1vw + 0.9vh, 15px);
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(13px, 3vw + 1.8vh, 28px);
    }
    
    .footer-fixed-bottom {
        height: 30%;
        padding-top: clamp(1.5px, 0.35vh, 4px);
        padding-bottom: clamp(1.5px, 0.35vh, 4px);
        padding-left: clamp(3px, 0.7vh, 8px);
        padding-right: clamp(3px, 0.7vh, 8px);
    }
    
    .footer-content-bottom {
        gap: clamp(2px, 0.4vh, 4px);
    }
    
    .footer-texto {
        font-size: clamp(7.2px, 1.08vw + 0.36vh, 13.2px);
    }
    
    .footer-logo {
        height: clamp(16.8px, 2.4vw + 0.96vh, 36px);
        max-width: clamp(96px, 19.2vw + 1.8vh, 216px);
    }
    
    .qrcode-image {
        width: clamp(36px, 6vw + 1.2vh, 78px);
        height: clamp(36px, 6vw + 1.2vh, 78px);
    }
}

/* Painéis LED pequenos (396x192, 240x480) */
@media (max-width: 400px) and (max-height: 200px) {
    .noticia-fullscreen {
        padding: 0;
    }
    
    .noticia-conteudo-container {
        padding: 8px;
    }
    
    .noticia-conteudo-imagem {
        padding: clamp(4px, 0.8vw + 0.6vh, 10px);
        gap: clamp(1px, 0.3vh, 3px);
        max-height: 75%;
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(6px, 0.8vw + 0.5vh, 10px);
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(9px, 2vw + 1vh, 16px);
    }
    
    .footer-fixed-bottom {
        height: 30%;
        padding-top: clamp(1px, 0.3vh, 3px);
        padding-bottom: clamp(1px, 0.3vh, 3px);
        padding-left: clamp(2px, 0.6vh, 6px);
        padding-right: clamp(2px, 0.6vh, 6px);
    }
    
    .footer-content-bottom {
        gap: clamp(1px, 0.3vh, 3px);
}

.footer-texto {
        font-size: clamp(6px, 0.84vw + 0.24vh, 10.8px);
}

.footer-logo {
        height: clamp(14.4px, 1.8vw + 0.72vh, 28.8px);
        max-width: clamp(84px, 16.8vw + 1.2vh, 156px);
    }
    
    .qrcode-image {
        width: clamp(30px, 4.8vw + 0.96vh, 60px);
        height: clamp(30px, 4.8vw + 0.96vh, 60px);
    }
    
    .qrcode-container {
        padding: 0;
    }
}

/* Telas muito pequenas (128x192px) */
@media (max-width: 140px) and (max-height: 200px) {
    .noticia-fullscreen {
        padding: 0;
    }
    
    .noticia-display {
        height: 70%;
    }
    
    .noticia-conteudo-imagem {
        padding: clamp(3px, 0.6vw + 0.5vh, 6px) !important;
        gap: clamp(1px, 0.2vh, 2px) !important;
        max-height: 80% !important;
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(5px, 0.7vw + 0.4vh, 8px) !important;
        line-height: 1.05 !important;
        margin-bottom: 1px !important;
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(7px, 1.2vw + 0.7vh, 12px) !important;
        line-height: 1.1 !important;
        max-height: 100% !important;
    }
    
    .footer-fixed-bottom {
        height: 30% !important;
        padding-top: clamp(1px, 0.25vh, 2px) !important;
        padding-bottom: clamp(1px, 0.25vh, 2px) !important;
        padding-left: clamp(1.5px, 0.4vh, 3px) !important;
        padding-right: clamp(1.5px, 0.4vh, 3px) !important;
    }
    
    .footer-content-bottom {
        gap: clamp(1.3px, 0.26vh, 2.6px) !important;
        height: 100% !important;
    }
    
    .footer-texto {
        font-size: clamp(5.85px, 0.845vw + 0.234vh, 9.1px) !important;
        line-height: 1.2 !important;
    }
    
    .footer-logo {
        height: clamp(11.7px, 1.69vw + 0.455vh, 19.5px) !important;
        max-width: clamp(58.5px, 10.4vw + 0.91vh, 97.5px) !important;
    }
    
    .qrcode-image {
        width: clamp(26px, 4.16vw + 0.78vh, 45.5px) !important;
        height: clamp(26px, 4.16vw + 0.78vh, 45.5px) !important;
        padding: clamp(1.3px, 0.195vh, 2.6px) !important;
    }
    
    .qrcode-container {
        padding: 0 !important;
    }
}

/* Modo paisagem - telas pequenas */
@media (max-width: 500px) and (orientation: landscape) {
    .noticia-fullscreen {
        flex-direction: column;
        padding: 0;
    }
    
    .noticia-display {
        flex-direction: row;
        height: 70%;
    }
    
    .imagem-section {
        width: 100%;
        height: 100%;
    }
    
    .texto-section {
    display: none;
        width: 0;
        height: 0;
}

.noticia-conteudo-container {
        padding: 8px;
    }
    
    .noticia-conteudo-imagem {
        padding: clamp(4px, 0.8vw + 0.6vh, 10px);
        gap: clamp(2px, 0.4vh, 3px);
        max-height: 75%;
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(6px, 0.8vw + 0.5vh, 10px);
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(9px, 2vw + 1vh, 16px);
        line-height: 1.15;
    }
    
    .footer-fixed-bottom {
        height: 30%;
        padding-top: clamp(1.5px, 0.35vh, 3.5px);
        padding-bottom: clamp(1.5px, 0.35vh, 3.5px);
        padding-left: clamp(3px, 0.7vh, 7px);
        padding-right: clamp(3px, 0.7vh, 7px);
    }
    
    .imagem-section {
        align-items: flex-start;
    }
    
    .background-image {
        background-position: center top;
        transform-origin: center top;
    }
    
    .footer-content-bottom {
        flex-direction: row;
        gap: clamp(4px, 1vw + 0.5vh, 8px);
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding-left: clamp(3px, 0.7vh, 7px);
        padding-right: clamp(3px, 0.7vh, 7px);
    }
    
    .footer-left-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: clamp(1px, 0.25vh, 2px);
        flex-shrink: 0;
    }
    
    .qrcode-container {
        padding: 0;
        flex-shrink: 0;
        display: flex !important;
        margin-left: auto;
    }
    
    .footer-texto {
        font-size: clamp(7.2px, 1.44vw + 0.36vh, 14.4px);
        white-space: nowrap;
        flex-shrink: 0;
        text-align: left;
    }
    
    .footer-logo {
        height: clamp(16.8px, 2.64vw + 0.96vh, 36px);
        max-width: clamp(96px, 21.6vw + 1.8vh, 192px);
        flex-shrink: 0;
    }
    
    .qrcode-image {
        width: clamp(33.6px, 6vw + 1.2vh, 72px);
        height: clamp(33.6px, 6vw + 1.2vh, 72px);
        flex-shrink: 0;
    }
    
    .qrcode-container {
        padding: 0;
        flex-shrink: 0;
        display: flex !important;
        margin-left: auto;
    }
}

/* Telas horizontais muito pequenas (384x192, 240x480 landscape) */
@media (orientation: landscape) and (max-height: 250px) {
    .noticia-fullscreen {
        flex-direction: column;
        padding: 0;
    }
    
    .noticia-display {
        height: 70%;
        flex-direction: row;
    }
    
    .imagem-section {
        width: 100%;
        height: 100%;
    }
    
    .texto-section {
        display: none;
        width: 0;
        height: 0;
    }
    
    .noticia-conteudo-container {
        padding: 6px;
    }
    
    .noticia-conteudo-imagem {
        padding: clamp(3px, 0.6vw + 0.5vh, 8px);
        gap: clamp(1px, 0.3vh, 3px);
        max-height: 75%;
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(5px, 0.7vw + 0.4vh, 9px);
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(8px, 1.5vw + 0.8vh, 14px);
        line-height: 1.1;
    }
    
    .footer-fixed-bottom {
        height: 30%;
        padding-top: clamp(1px, 0.25vh, 2.5px);
        padding-bottom: clamp(1px, 0.25vh, 2.5px);
        padding-left: clamp(2px, 0.5vh, 5px);
        padding-right: clamp(2px, 0.5vh, 5px);
    }
    
    .imagem-section {
        align-items: flex-start;
    }
    
    .background-image {
        background-position: center top;
        transform-origin: center top;
    }
    
    .footer-content-bottom {
        flex-direction: row;
        gap: clamp(4px, 1vw + 0.5vh, 8px);
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding-left: clamp(2px, 0.5vh, 5px);
        padding-right: clamp(2px, 0.5vh, 5px);
    }
    
    .footer-left-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: clamp(1px, 0.25vh, 2px);
        flex-shrink: 0;
    }
    
    .footer-texto {
        font-size: clamp(6px, 1.2vw + 0.24vh, 13.2px);
        white-space: nowrap;
        flex-shrink: 0;
        text-align: left;
    }
    
    .footer-logo {
        height: clamp(14.4px, 2.16vw + 0.72vh, 28.8px);
        max-width: clamp(84px, 19.2vw + 1.2vh, 156px);
        flex-shrink: 0;
    }
    
    .qrcode-image {
        width: clamp(26.4px, 4.8vw + 0.84vh, 54px);
        height: clamp(26.4px, 4.8vw + 0.84vh, 54px);
        flex-shrink: 0;
    }
    
    .qrcode-container {
        padding: 0;
        flex-shrink: 0;
        display: flex !important;
        margin-left: auto;
    }
}

/* Media queries específicas para telas Novastar */
/* LED_Casarão: 240×480 (vertical) */
@media (width: 240px) and (height: 480px) {
    .noticia-display {
        height: 70%;
    }
    
    .footer-fixed-bottom {
        height: 30%;
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(14px, 5.8vw + 2.9vh, 28px);
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(10px, 4.2vw + 2.1vh, 14px);
    }
    
    .footer-texto {
        font-size: clamp(8px, 3.3vw + 1.7vh, 14px);
    }
    
    .footer-logo {
        height: clamp(18px, 7.5vw + 3.8vh, 35px);
        max-width: clamp(100px, 41.7vw + 20.8vh, 200px);
    }
    
    .qrcode-image {
        width: clamp(40px, 16.7vw + 8.3vh, 80px);
        height: clamp(40px, 16.7vw + 8.3vh, 80px);
    }
}

/* LED_Rodoviária: 384×192 (horizontal) */
@media (width: 384px) and (height: 192px) {
    .noticia-display {
        height: 70%;
    }
    
    .footer-fixed-bottom {
        height: 30%;
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(12px, 3.1vw + 6.3vh, 24px);
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(8px, 2.1vw + 4.2vh, 12px);
    }
    
    .footer-texto {
        font-size: clamp(7px, 1.8vw + 3.6vh, 12px);
    }
    
    .footer-logo {
        height: clamp(14px, 3.6vw + 7.3vh, 28px);
        max-width: clamp(80px, 20.8vw + 41.7vh, 160px);
    }
    
    .qrcode-image {
        width: clamp(30px, 7.8vw + 15.6vh, 60px);
        height: clamp(30px, 7.8vw + 15.6vh, 60px);
    }
}

/* LED_Esquina_Sousa, LED_TenisClube_Crato, LED_Pombal: 288×192 (horizontal) */
@media (width: 288px) and (height: 192px) {
    .noticia-display {
        height: 70%;
    }
    
    .footer-fixed-bottom {
        height: 30%;
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(11px, 3.8vw + 5.7vh, 22px);
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(7px, 2.4vw + 3.6vh, 11px);
    }
    
    .footer-texto {
        font-size: clamp(6px, 2.1vw + 3.1vh, 11px);
    }
    
    .footer-logo {
        height: clamp(13px, 4.5vw + 6.8vh, 26px);
        max-width: clamp(75px, 26vw + 39vh, 150px);
    }
    
    .qrcode-image {
        width: clamp(28px, 9.7vw + 14.6vh, 56px);
        height: clamp(28px, 9.7vw + 14.6vh, 56px);
    }
}

/* LED_SJP: 160×240 (vertical) */
@media (width: 160px) and (height: 240px) {
    .noticia-display {
        height: 70%;
    }
    
    .footer-fixed-bottom {
        height: 30%;
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(10px, 6.3vw + 4.2vh, 20px);
    }
    
    .noticia-conteudo-imagem .noticia-data {
        font-size: clamp(7px, 4.4vw + 2.9vh, 12px);
    }
    
    .footer-texto {
        font-size: clamp(6px, 3.8vw + 2.5vh, 11px);
    }
    
    .footer-logo {
        height: clamp(12px, 7.5vw + 5vh, 24px);
        max-width: clamp(70px, 43.8vw + 29.2vh, 140px);
    }
    
    .qrcode-image {
        width: clamp(25px, 15.6vw + 10.4vh, 50px);
        height: clamp(25px, 15.6vw + 10.4vh, 50px);
    }
}

/* Telas muito baixas */
@media (max-height: 500px) {
    .noticia-fullscreen {
        padding: 0;
    }
    
    .noticia-display {
        height: 70%;
    }
    
    .noticia-conteudo-container {
        padding: 12px;
    }
    
    .noticia-conteudo-imagem {
        padding: clamp(6px, 1.2vw + 1vh, 16px);
        gap: clamp(2px, 0.4vh, 5px);
        max-height: 75%;
    }
    
    .noticia-conteudo-imagem .noticia-titulo {
        font-size: clamp(12px, 2.8vw + 1.2vh, 24px);
    }
    
    .footer-fixed-bottom {
        height: 30%;
        padding-top: clamp(2px, 0.5vh, 5px);
        padding-bottom: clamp(2px, 0.5vh, 5px);
        padding-left: clamp(4px, 1vh, 10px);
        padding-right: clamp(4px, 1vh, 10px);
    }
    
    .footer-content-bottom {
        gap: clamp(2px, 0.6vw + 0.4vh, 5px);
    }
    
    .footer-texto {
        font-size: clamp(8.4px, 1.44vw + 0.6vh, 16.8px);
    }
    
    .footer-logo {
        height: clamp(21.6px, 3.36vw + 1.44vh, 45.6px);
        max-width: clamp(120px, 24vw + 2.4vh, 228px);
    }
    
    .qrcode-image {
        width: clamp(48px, 8.4vw + 1.8vh, 96px);
        height: clamp(48px, 8.4vw + 1.8vh, 96px);
    }
}

/* Garantir que todas as imagens sejam responsivas */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Remover scrollbars */
.noticia-conteudo-container::-webkit-scrollbar {
    display: none;
}

.noticia-conteudo-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
