* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    min-height: 100vh;
    height: 100vh;
    position: relative;
}

/* Arte de fundo personalizada */
.background-art {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.9;
}

.background-art::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.background-art::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px);
    animation: slide 30s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(70px);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 1px;
}

.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 20px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    animation: fadeInUp 1s ease-out 0.3s both;
    backdrop-filter: blur(10px);
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    max-height: calc(100vh - 300px);
    position: relative;
}

video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 15px;
    background: #000;
    object-fit: contain;
    min-height: 200px;
}

.message {
    text-align: center;
    margin-top: 15px;
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.6s both;
    flex-shrink: 0;
}

.message p {
    margin: 10px 0;
}

.signature {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 15px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsividade - Telas grandes (desktop) */
@media (min-width: 1025px) {
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 20px;
    }
    
    header {
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    .title {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .video-wrapper {
        max-width: 450px;
        max-height: calc(100vh - 220px);
        margin: 10px 0;
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .video-wrapper video {
        max-height: calc(100vh - 240px);
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    .message {
        margin-top: 8px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    
    .message p {
        margin: 3px 0;
    }
    
    .signature {
        margin-top: 5px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .video-wrapper {
        max-width: 700px;
    }
}

/* Responsividade - Tablets e telas médias */
@media (max-width: 1024px) {
    .container {
        height: auto;
        max-height: none;
        overflow: visible;
        min-height: 100vh;
    }
    
    .title {
        font-size: 3rem;
        letter-spacing: 1.5px;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .video-wrapper {
        max-width: 95%;
        max-height: none;
        margin: 25px 0;
    }
    
    .container {
        padding: 35px 20px;
    }
}

/* Responsividade - Tablets pequenos */
@media (max-width: 768px) {
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 20px 15px;
    }
    
    .title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    header {
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    .video-wrapper {
        padding: 6px;
        margin: 10px 0;
        border-radius: 15px;
        max-height: calc(100vh - 200px);
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .video-wrapper video {
        max-height: calc(100vh - 220px);
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    video {
        border-radius: 12px;
    }
    
    .message {
        font-size: 0.9rem;
        margin-top: 8px;
        flex-shrink: 0;
    }
    
    .message p {
        margin: 3px 0;
    }
    
    .signature {
        margin-top: 5px;
    }
}

/* Responsividade - Celulares grandes */
@media (max-width: 600px) {
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 15px 12px;
    }
    
    .title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    header {
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    .video-wrapper {
        padding: 5px;
        border-radius: 12px;
        max-height: calc(100vh - 180px);
        margin: 8px 0;
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .video-wrapper video {
        max-height: calc(100vh - 200px);
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    video {
        border-radius: 10px;
    }
    
    .message {
        font-size: 0.85rem;
        margin-top: 6px;
        flex-shrink: 0;
    }
    
    .message p {
        margin: 2px 0;
    }
    
    .signature {
        font-size: 0.9rem;
        margin-top: 4px;
    }
}

/* Responsividade - Celulares pequenos */
@media (max-width: 480px) {
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 12px 10px;
    }
    
    .title {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        line-height: 1.2;
        margin-bottom: 3px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
        line-height: 1.3;
    }
    
    header {
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    
    .video-wrapper {
        padding: 4px;
        margin: 6px 0;
        border-radius: 10px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        max-height: calc(100vh - 160px);
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .video-wrapper video {
        max-height: calc(100vh - 180px);
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    video {
        border-radius: 8px;
    }
    
    .message {
        font-size: 0.8rem;
        margin-top: 5px;
        flex-shrink: 0;
    }
    
    .message p {
        margin: 2px 0;
    }
    
    .signature {
        font-size: 0.85rem;
        margin-top: 3px;
    }
}

/* Responsividade - Celulares muito pequenos */
@media (max-width: 360px) {
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 10px 8px;
    }
    
    .title {
        font-size: 1.3rem;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    header {
        margin-bottom: 5px;
        flex-shrink: 0;
    }
    
    .video-wrapper {
        padding: 3px;
        border-radius: 8px;
        max-height: calc(100vh - 140px);
        margin: 5px 0;
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .video-wrapper video {
        max-height: calc(100vh - 160px);
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    video {
        border-radius: 6px;
    }
    
    .message {
        font-size: 0.75rem;
        margin-top: 4px;
        flex-shrink: 0;
    }
    
    .message p {
        margin: 1px 0;
    }
    
    .signature {
        font-size: 0.8rem;
        margin-top: 2px;
    }
}

/* Responsividade - Modo paisagem em celulares */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 10px 15px;
    }
    
    .title {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    header {
        margin-bottom: 5px;
        flex-shrink: 0;
    }
    
    .video-wrapper {
        margin: 5px 0;
        max-width: 90%;
        max-height: calc(100vh - 120px);
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .video-wrapper video {
        max-height: calc(100vh - 140px);
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    .message {
        margin-top: 4px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .message p {
        margin: 1px 0;
    }
}

/* Otimização para telas muito pequenas em altura */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 8px 15px;
    }
    
    header {
        margin-bottom: 3px;
        flex-shrink: 0;
    }
    
    .title {
        font-size: 1.3rem;
        margin-bottom: 1px;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .video-wrapper {
        margin: 3px 0;
        max-height: calc(100vh - 100px);
        flex: 1 1 auto;
        min-height: 0;
    }
    
    .video-wrapper video {
        max-height: calc(100vh - 120px);
        width: auto;
        max-width: 100%;
        height: auto;
    }
    
    .message {
        margin-top: 3px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .message p {
        margin: 1px 0;
    }
}

/* Melhorias para acessibilidade em telas touch */
@media (hover: none) and (pointer: coarse) {
    .video-wrapper {
        -webkit-tap-highlight-color: transparent;
    }
    
    video {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Suporte para modo escuro do sistema (opcional) */
@media (prefers-color-scheme: dark) {
    /* Mantém o design atual que já é adequado para modo escuro */
}

