/** -- BASE -- */
:root {
    --font-family: 'Nunito', sans-serif;
    --clr-primary: hsl(270, 70%, 55%);
    --clr-primary-dark: hsl(270, 70%, 45%);
    --clr-accent: hsl(340, 80%, 60%);
    --clr-accent-pink: hsl(340, 90%, 70%);
    --clr-orange: hsl(25, 88%, 53%);
    --clr-orange-hover: hsl(25, 88%, 48%);
    --clr-white: hsl(0, 0%, 100%);
    --clr-text: hsl(246, 25%, 25%);
    --clr-text-light: hsl(246, 15%, 45%);
    --clr-bg-light: hsl(0, 0%, 96%);
    --clr-bg-card: hsl(0, 0%, 94%);
    --clr-footer: #6a3c9b;
    --clr-hero-gradient: linear-gradient(135deg, hsl(270, 65%, 55%) 0%, hsl(340, 75%, 60%) 50%, hsl(25, 85%, 58%) 100%);
    --clr-btn-gradient: linear-gradient(135deg, hsl(270, 65%, 55%) 0%, hsl(25, 88%, 53%) 100%);
    --clr-yellow: hsl(45, 100%, 50%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--clr-text);
    background: var(--clr-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/** -- HEADER -- */
.header {
    background: var(--clr-hero-gradient);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

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

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-white);
    font-weight: 700;
    font-size: 1.35rem;
    text-decoration: none;
}

.logo-play {
    width: 28px;
    height: 28px;
    fill: var(--clr-accent-pink);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.75rem;
}

.nav-link {
    color: var(--clr-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    opacity: 0.95;
}

.nav-chevron {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/** -- HERO -- */
.hero {
    background: var(--clr-hero-gradient);
    padding: 4rem 0 5rem;
    text-align: center;
    color: var(--clr-white);
}

.hero-content {
    /* max-width: 740px; */
    margin: 0 auto;
}

.hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--clr-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.hero-features {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-white);
    margin-bottom: 2.5rem;
}

.hero-form {
    max-width: 635px;
    margin: 0 auto;
}

.hero-search {
    display: flex;
    align-items: stretch;
    background: var(--clr-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--clr-text);
}

.hero-search-input::placeholder {
    color: #999;
}

.hero-search-btn {
    background: var(--clr-orange);
    border: none;
    color: var(--clr-white);
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: var(--font-family);
}

.hero-search-btn:hover {
    background: var(--clr-orange-hover);
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.hero-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

/** -- HOW TO -- */
.how-to {
    padding: 4rem 0;
    background: var(--clr-white);
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 2.5rem;
}

.how-to-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 1rem;
}

.how-to-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--clr-white);
    border: 1px solid hsl(270, 35%, 85%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    width: 100%;
}

.how-to-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* Open Shopee App: purple square + white "i" + orange arrow */
.how-to-btn-icon--app {
    color: var(--clr-primary);
}

.how-to-icon-square {
    width: 28px;
    height: 28px;
    background: var(--clr-primary);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.how-to-icon-i {
    color: var(--clr-white);
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
}

.how-to-icon-arrow {
    color: var(--clr-orange);
    display: inline-flex;
}

.how-to-icon-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Share & Copy Link: share icon, purple dots + orange accent on top-right */
.how-to-btn-icon--share svg {
    width: 32px;
    height: 32px;
}

.how-to-btn-icon--share .share-dot--2,
.how-to-btn-icon--share .share-dot--3 {
    fill: var(--clr-primary);
    stroke: var(--clr-primary);
}

.how-to-btn-icon--share .share-dot--1 {
    fill: var(--clr-orange);
    stroke: var(--clr-orange);
}

.how-to-btn-icon--share line {
    stroke: var(--clr-primary);
}

/* Paste Link Here: purple clipboard with white checkmark */
.how-to-btn-icon--paste {
    color: var(--clr-primary);
}

.how-to-btn-icon--paste svg {
    width: 32px;
    height: 32px;
}

.how-to-btn-icon--paste .paste-clipboard {
    stroke: var(--clr-primary);
}

.how-to-btn-icon--paste .paste-check {
    stroke: var(--clr-primary);
    stroke-width: 2.5;
}

.how-to-btn-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--clr-text);
}

.how-to-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--clr-text-light);
    margin: 0;
}

/** -- VIDEO PREVIEW -- */
.video-preview {
    padding: 4rem 0;
    background: var(--clr-bg-light);
}

.video-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.video-preview-player {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 200px;
    background: #1a1a1a;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.phone-screen {
    background: #000;
    border-radius: 18px;
    aspect-ratio: 9 / 19;
    overflow: hidden;
}

.phone-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.phone-video-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.phone-video-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: auto;
}

.phone-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    margin-top: auto;
}

.phone-controls svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.video-preview-options-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 1.25rem;
}

.quality-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.quality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--clr-bg-card);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border: 2px solid transparent;
}

.quality-item--best {
    border-color: var(--clr-yellow);
    box-shadow: 0 0 0 1px var(--clr-yellow);
}

.quality-info {
    font-size: 0.95rem;
    color: var(--clr-text);
}

.quality-info strong {
    margin-right: 0.35rem;
}

.quality-star {
    color: var(--clr-yellow);
    font-size: 1rem;
    margin-left: 0.25rem;
}

.btn-download-quality {
    background: var(--clr-btn-gradient);
    color: var(--clr-white);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    white-space: nowrap;
}

.btn-download-quality:not(:disabled):hover {
    opacity: 0.95;
}

.btn-download-quality:disabled {
    opacity: 0.7;
    cursor: default;
}

a.btn-download-quality {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--clr-white);
}

a.btn-download-quality:hover {
    color: var(--clr-white);
    opacity: 0.95;
}

/* Result page: video preview (real video) */
.result-video-wrap {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.result-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.result-no-streams {
    padding: 2rem 0;
    text-align: center;
}

.result-no-streams p {
    color: var(--clr-text-light);
    margin-bottom: 1rem;
}

.result-back-link {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: none;
}

.result-back-link:hover {
    text-decoration: underline;
}

.quality-codec-note {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    margin: 0;
}

/** -- FAQ -- */
.faq {
    padding: 4rem 0;
    background: var(--clr-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--clr-bg-card);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--clr-text);
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--clr-text-light);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.faq-item[open] .faq-question::after {
    border-top: none;
    border-bottom: 8px solid var(--clr-text-light);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

/** -- FOOTER -- */
.footer {
    background: var(--clr-footer);
    color: var(--clr-white);
    padding: 3rem 0 2rem;
    margin-top: auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-logo-play {
    width: 28px;
    height: 28px;
    fill: var(--clr-accent-pink);
}

.footer-copyright {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--clr-white);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/** -- ERROR -- */
.error-alert {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #f44336;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #c62828;
    text-align: left;
}

/** -- RESULT PAGE (unchanged layout) -- */
.result-section {
    padding: 3rem 0;
}

.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.result-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 1rem;
}

.video-info-card {
    background: var(--clr-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.video-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item h4 {
    color: var(--clr-text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.meta-item p {
    color: var(--clr-text);
    font-weight: 600;
    word-break: break-all;
}

.preview-button {
    background: var(--clr-btn-gradient);
    color: var(--clr-white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.preview-button:hover {
    transform: translateY(-1px);
    color: var(--clr-white);
    text-decoration: none;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stream-card {
    background: var(--clr-white);
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stream-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: var(--clr-primary);
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stream-header .quality-badge {
    background: var(--clr-btn-gradient);
    color: var(--clr-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.codec-badge {
    background: var(--clr-bg-card);
    color: var(--clr-text);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stream-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

.stream-card .download-button {
    background: var(--clr-btn-gradient);
    color: var(--clr-white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
}

.stream-card .download-button:hover {
    transform: translateY(-1px);
    color: var(--clr-white);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.info-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    color: #1565c0;
}

.info-alert strong {
    color: #0d47a1;
}

.no-streams {
    text-align: center;
    padding: 3rem;
    color: var(--clr-text-light);
}

.no-streams svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    fill: var(--clr-text-light);
}

/** -- RESPONSIVE -- */
@media (max-width: 900px) {
    .video-preview-grid {
        grid-template-columns: 1fr;
    }

    .video-preview-player {
        order: 1;
    }

    .video-preview-options {
        order: 2;
    }
}

/** -- LANGUAGE DROPDOWN -- */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background: none;
    border: none;
    color: var(--clr-text);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
}

.language-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--clr-primary);
}

.nav-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.language-dropdown.active .nav-chevron {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.language-option {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--clr-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8f9fa;
    color: var(--clr-primary);
    transform: translateX(4px);
}

.language-option.active {
    background: var(--clr-primary-gradient);
    color: #9a43c9;
    font-weight: 600;
}

.language-option.active:hover {
    background: var(--clr-primary-gradient--reverse);
    color: white;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .language-menu {
        right: -1rem;
        min-width: 160px;
    }
    
    .language-toggle {
        padding: 0.5rem;
    }
}
/** -- MOBILE OPTIMIZATIONS -- */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: var(--clr-text);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Close Button */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--clr-text);
    transition: all 0.2s ease;
    z-index: 10001;
}

.mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.mobile-close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Desktop only elements */
.desktop-only {
    display: block;
}

/* Mobile Language Section */
.mobile-language-section {
    display: none;
}

.mobile-lang-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--clr-primary);
}

.mobile-language-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-language-option:hover {
    background: #e9ecef;
    color: var(--clr-primary);
    transform: translateX(4px);
}

.mobile-language-option.active {
    background: var(--clr-primary-gradient);
    font-weight: 600;
}

.mobile-language-option.active:hover {
    background: var(--clr-primary-gradient--reverse);
    transform: translateX(0);
}

.lang-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Logo responsive */
.logo-text {
    display: inline;
}

/* Mobile Menu Logo */
.mobile-menu-logo {
    display: none;
        gap: 0.5rem;
    margin-bottom: 0rem;
    padding-bottom: 1.0rem;
    border-bottom: 2px solid #f0f0f0;
}

.mobile-menu-logo .logo-play {
    width: 2rem;
    height: 2rem;
    color: var(--clr-primary);
}

.mobile-menu-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text);
}

@media (max-width: 768px) {
    .logo a {
        font-size: 1.1rem;
    }
    
    .logo-play {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    /* Show logo text on mobile header */
    .logo-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    /* Keep logo text visible even on small screens */
    .logo-text {
        display: inline;
        font-size: 1rem;
    }
    
    .logo-play {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-content {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 2;
    }
    
    .mobile-close-btn {
        display: flex;
    }
    
    .mobile-menu-logo {
        display: flex;
    }
    
    .logo {
        order: 1;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 4rem 2rem 2rem;
    }
    
    .nav.mobile-open {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        height: 100%;
        padding: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
        /* margin-top: auto; */
    }
    
    .nav-link {
        display: block;
        padding: 0.7rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--clr-text);
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .nav-link:hover {
        color: var(--clr-primary);
    }
    
    /* Hide desktop language dropdown on mobile */
    .desktop-only {
        display: none;
    }
    
    /* Show mobile language section */
    .mobile-language-section {
        display: block;
    }
    
    /* Language section in mobile */
    .nav-lang {
        margin-top: 2rem;
        padding-top: 2rem;
        border-bottom: none;
    }
}

/* Hero Section Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero-search {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .hero-search-input {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .hero-search-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
        justify-content: center;
    }
    
    .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .hero-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.375rem;
        justify-content: center;
        text-align: center;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .hero-badge-icon svg {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
        margin-top: 1rem;
    }
    
    .hero-badge {
        padding: 0.375rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.25rem;
        flex-direction: column;
        line-height: 1.2;
    }
    
    .hero-badge-icon svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* How-to Section Mobile */
@media (max-width: 768px) {
    .how-to {
        padding: 2rem 0;
    }
    
    .how-to-steps {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        max-width: 100%;
        margin: 0 auto 1rem;
    }
    
    .how-to-btn {
        padding: 1.25rem;
        text-align: left;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .how-to-btn-icon {
        flex-shrink: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .how-to-btn-label {
        font-size: 1rem;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .how-to-btn {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .how-to-btn-label {
        font-size: 0.9rem;
    }
    
    .how-to-icon-square {
        width: 24px;
        height: 24px;
    }
    
    .how-to-icon-i {
        font-size: 0.85rem;
    }
}

/* Video Preview Mobile */
@media (max-width: 768px) {
    .video-preview {
        padding: 2rem 0;
    }
    
    .video-preview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-mockup {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .quality-list {
        gap: 0.75rem;
    }
    
    .quality-item {
        padding: 1rem;
    }
    
    .quality-info {
        margin-bottom: 0.75rem;
    }
    
    .btn-download-quality {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* FAQ Mobile */
@media (max-width: 768px) {
    .faq {
        padding: 2rem 0;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 0 1.25rem 0;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .footer-copyright,
    .footer-disclaimer {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .footer-disclaimer {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        gap: 0.75rem 1rem;
    }
    
    .footer-nav a {
        font-size: 0.8rem;
    }
    
    .footer-copyright,
    .footer-disclaimer {
        font-size: 0.8rem;
    }
}

/* Container Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Section Titles Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}
/** -- AJAX FORM ENHANCEMENTS -- */

/* Loading spinner */
.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Button loading state */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error alert styles */
.error-alert {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #f44336;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #c62828;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

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

/* Result video wrapper */
.result-video-wrap {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.result-video {
    width: 100%;
    height: auto;
    display: block;
}

/* No streams result */
.result-no-streams {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.result-back-link {
    background: none;
    border: none;
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.result-back-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Smooth transitions for showing/hiding sections */
#videoResultContainer {
    transition: all 0.3s ease;
}

#videoResultContainer[style*="display: none"] {
    opacity: 0;
    transform: translateY(20px);
}

#videoResultContainer[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

/** -- STATIC PAGES -- */
.static-page {
    padding: 4rem 0;
    background: var(--clr-white);
    min-height: 60vh;
}

.static-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.static-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.2;
}

.static-page-intro {
    font-size: 1.2rem;
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 500;
}

.static-page-body {
    line-height: 1.7;
    color: var(--clr-text);
}

.static-page-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--clr-primary);
}

.static-page-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-text);
    margin: 2rem 0 1rem;
}

.static-page-body p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.static-page-body ul {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.static-page-body li {
    margin-bottom: 0.5rem;
}

.static-page-body a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

.static-page-body a:hover {
    text-decoration: underline;
}

.static-page-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

/** -- CONTACT PAGE -- */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--clr-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.contact-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0 0 0.5rem;
}

.contact-details p {
    margin: 0;
    font-size: 1rem;
}

.contact-details a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-note {
    background: var(--clr-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--clr-primary);
}

.contact-note p {
    margin: 0;
    color: var(--clr-text);
}

.contact-form-section {
    margin-top: 3rem;
}

.contact-form-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    background: var(--clr-bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--clr-white);
    color: var(--clr-text);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    background: var(--clr-btn-gradient);
    color: var(--clr-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    width: 100%;
}

.contact-submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/** -- STATIC PAGES MOBILE -- */
@media (max-width: 768px) {
    .static-page {
        padding: 2rem 0;
    }
    
    .static-page-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .static-page-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .static-page-body h2 {
        font-size: 1.35rem;
        margin: 2rem 0 1rem;
    }
    
    .static-page-body h3 {
        font-size: 1.15rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .static-page-title {
        font-size: 1.75rem;
    }
    
    .static-page-intro {
        font-size: 1rem;
    }
    
    .static-page-body h2 {
        font-size: 1.25rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
}

/** -- iOS VIDEO FIXES -- */
/* Fix video playback on iOS */
video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.result-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    object-fit: contain;
    max-height: 70vh;
}

/* Prevent iOS video fullscreen issues */
.result-video-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* iOS specific video container */
@supports (-webkit-touch-callout: none) {
    .result-video-wrap {
        -webkit-overflow-scrolling: touch;
    }
    
    .result-video {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    /* Prevent orientation change zoom */
    video::-webkit-media-controls-panel {
        display: flex !important;
        opacity: 1 !important;
    }
}

/* Prevent video from triggering fullscreen on tap */
video::-webkit-media-controls-fullscreen-button {
    display: none;
}

video::-webkit-media-controls-play-button {
    display: block;
}

/* Fix for iOS Safari video controls */
@media screen and (max-width: 768px) {
    .result-video-wrap {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .result-video {
        max-height: 60vh;
    }
}

/* Prevent body scroll when video is playing on iOS */
body.video-playing {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* iOS orientation lock hint */
@media screen and (orientation: landscape) and (max-width: 896px) {
    .result-video-wrap {
        max-width: 50vw;
    }
}
