* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    width: 100%;
    background-color: #111111;
    border-bottom: 1px solid #222222;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar .nav-logo img {
    width: 28px;
    height: 28px;
}

.navbar .nav-logo h2 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.navbar .nav-logo h2 span {
    color: #ff0000;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff0000;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 5px;
    width: auto; 
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111111;
        border-bottom: 1px solid #222222;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px 20px; 
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.container {
    background-color: #1f1f1f;
    width: 100%;
    max-width: 550px;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid #2d2d2d;
    text-align: center;
    margin-bottom: 60px;
    transition: max-width 0.4s ease;
}

.container.expanded {
    max-width: 850px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-container img {
    width: 40px;
    height: 40px;
}

.logo-container h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
}

.logo-container h1 span {
    color: #ff0000; 
}

.subtitulo {
    font-size: 15px;
    color: #aaaaaa;
    margin-bottom: 30px;
    line-height: 1.4;
}

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #2b2b2b;
    border: 2px solid #3b3b3b;
    border-radius: 10px;
    margin-bottom: 18px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input-group:focus-within {
    border-color: #ff0000;
    background-color: #333333;
}

input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    width: 100%;
}

.paste-icon {
    background: transparent;
    border: none;
    width: auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaaaaa;
    transition: color 0.2s ease, transform 0.1s ease;
}

.paste-icon svg {
    width: 20px;
    height: 20px;
}

.paste-icon:hover {
    color: #ff0000;
    background: transparent;
}

.paste-icon:active {
    transform: scale(0.9);
}

button {
    width: 100%;
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #cc0000;
}

button:active {
    transform: scale(0.99);
}

.result-wrapper {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #2d2d2d;
    display: none; 
    gap: 25px;
    text-align: left;
}

.result-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: #aaaaaa;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 2px solid #2d2d2d;
    padding-bottom: 8px;
}

.thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #0f0f0f;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

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

.video-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    color: #ffffff;
    line-height: 1.4;
}

.video-duration {
    font-size: 13px;
    color: #aaaaaa;
    margin-top: 8px; 
    font-weight: 600;
    text-align: left; 
    display: inline-block;
    background-color: #161616;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #2d2d2d;
}

.video-author-box {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-label {
    font-weight: 700;
    color: #ff0000;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    background-color: rgba(255, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.author-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.author-link:hover {
    color: #cc0000;
    text-decoration: underline;
}

.download-box {
    background-color: #161616;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2d2d2d;
}

.quality-select {
    width: 100%;
    padding: 12px;
    background-color: #2b2b2b;
    border: 2px solid #3b3b3b;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    margin-bottom: 15px;
}

.file-size-info {
    font-size: 13px;
    color: #888888;
    margin-bottom: 20px;
    text-align: center;
}

.file-size-info strong {
    color: #ff0000;
}

.btn-download {
    display: block;
    width: 100%;
    background-color: #2ecc71;
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background-color: #27ae60;
}

.terms-text {
    font-size: 11px;
    color: #555555;
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .result-wrapper {
        flex-direction: column; 
    }
    
    .container.expanded {
        max-width: 550px; 
    }
}

.supported-platforms-bar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 35px auto;
    text-align: center;
}

.platforms-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #555555;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

.platforms-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; 
    flex-wrap: wrap;
}

.platform-item {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35; 
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    cursor: help;
    filter: grayscale(100%); 
}

.platform-item img, 
.platform-item svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: #888888;
}

.platform-item:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.15);
    filter: grayscale(0%);
}

.platforms-grid p {
    font-size: 12px;
    color: #555555;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 5px;
    align-self: center;
    user-select: none;
}

.features {
    text-align: center;
    width: 100%;
    border-top: 1px solid #2d2d2d;
    padding-top: 50px;
}

.features h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 40px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #161616;
    padding: 25px 20px;
    border-radius: 12px;
    border: 1px solid #232323;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #3d3d3d;
}

.feature-card .icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
}

.main-footer {
    background-color: #111111;
    border-top: 1px solid #222222;
    padding: 25px 20px;
    width: 100%;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666666;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff0000;
    cursor: pointer;
}

@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes spinMini {
    to { transform: rotate(360deg); }
}

@keyframes spinSearch {
    to { transform: rotate(360deg); }
}

.copyright-notice {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 6px;    
    margin-bottom: 0;
    text-align: center;
    opacity: 0.35;   
    display: block;     
    width: 100%;
    letter-spacing: -0.2px;
}

.copyright-notice span {
    color: #ef4444;
    font-weight: 500;
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1523; /* Cor do tema Instagram */
    border-top: 1px solid #E1306C;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.cookie-notice p {
    color: #fff;
    font-size: 0.9rem;
}

.cookie-notice a {
    color: #E1306C;
    text-decoration: underline;
}

.btn-accept {
    background: #E1306C;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 600px) {
    .cookie-notice { flex-direction: column; text-align: center; gap: 10px; }
}