body {
    background-color: #161515;
    font-family: Arial, sans-serif;
    font-size: 12px;
    margin: 0;
    color: #fff;
}
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 0 0 0;
}

form {
    background: #252525;
    border-top: 3px #B71C1C solid;
    border-radius: 4px;
    padding: 20px 16px 16px 16px;
    margin-bottom: 24px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
form label {
    display: block;
    margin-bottom: 10px;
    color: #b6e0fe;
}
.input-row {
    display: flex;
    align-items: center;
    background-color: #191919;
    border: 1.5px #3c3c3c solid;
    border-radius: 8px;
    padding: 8px;
    gap: 0;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.input-row:focus-within {
    border-color: #E53935;
    box-shadow: 0 4px 16px #e5393555;
}
input[type="text"] {
    flex: 1;
    background: transparent;
    color: #7d7e9a;
    border: none;
    padding: 0 0 0 12px;
    font-size: 16px;
    outline: none;
    height: 48px;
    border-radius: 8px 0 0 8px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
select {
    background: #191919;
    color: #b6e0fe;
    border: 1px #3c3c3c solid;
    border-radius: 4px;
    padding: 10px;
    font-size: 15px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
#format-toggle, button[type="submit"] {
    height: 48px;
    border: none;
    font-size: 15px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #fff;
    background: #E53935;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px #e5393533;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
#format-toggle {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 3px;
    width: 80px;
}
button[type="submit"] {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: 0;
    width: 100px;
}
#format-toggle:hover, button[type="submit"]:hover {
    background: #D32F2F;
    transform: translateY(-1px) scale(1.03);
}
#format-toggle:active, button[type="submit"]:active {
    background: #B71C1C;
    transform: scale(0.98);
}
.status, .error, .video-info, .download-link {
    background: #191919;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 18px;
}
.status {
    color: #b6e0fe;
}
.error {
    color: #ff6b6b;
    border-left: 4px solid #b91c1c;
}
.video-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.video-info img {
    width: 96px;
    height: 54px;
    border-radius: 4px;
    object-fit: cover;
}
.video-meta {
    flex: 1;
}
.download-link a {
    color: #b6e0fe;
    text-decoration: underline;
    font-weight: bold;
}
@media (max-width: 600px) {
    .container { padding: 0 2vw; margin-top: 56px; min-width: 0; max-width: 100vw; }
    .header-title { font-size: 1.2rem; }
    .video-info img { width: 72px; height: 40px; }
    .input-row { flex-direction: column; padding: 4px; }
    #format-toggle, button[type="submit"] { width: 100%; border-radius: 8px; margin: 4px 0 0 0; }
    input[type="text"] { width: 100%; padding: 0 0 0 8px; border-radius: 8px; }
    .btn-separator { display: none; }
    .input-row {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }
    .input-row input[type="text"] {
        flex: 1;
        min-width: 0;
        font-size: 0.98rem;
    }
    #format-toggle {
        width: auto;
        min-width: 60px;
        border-radius: 8px;
        height: 38px;
        font-size: 0.88rem;
        margin-right: 4px;
        padding: 0 10px;
    }
    button[type="submit"] {
        width: auto;
        min-width: 70px;
        border-radius: 8px;
        height: 38px;
        font-size: 0.88rem;
        padding: 0 14px;
    }
}
.btn-separator {
    display: none;
}
.result-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #191919;
    border-radius: 8px;
    padding: 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    gap: 18px;
}
.result-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.result-thumb {
    width: 72px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
}
.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}
.result-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 180px;
}
.result-meta {
    color: #bdbdbd;
    font-size: 0.98rem;
}
.result-status {
    min-width: 90px;
    text-align: right;
    color: #43a047;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.result-status:not(.completed) {
    color: #E53935;
}
.result-status .loader {
    width: 18px;
    height: 18px;
    border-width: 2.5px;
    margin-left: 4px;
}
.result-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}
.result-another {
    display: inline-block;
    background: #232323;
    color: #fff;
    font-weight: 500;
    padding: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.98rem;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    width: 110px;
    text-align: center;
}
.result-another:hover {
    background: #444;
    transform: scale(1.04);
}
.result-download {
    display: inline-block;
    background: #E53935;
    color: #fff;
    font-weight: bold;
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    width: 170px;
    text-align: center;
}
.result-download:hover {
    background: #D32F2F;
    transform: scale(1.04);
}
@media (max-width: 600px) {
    .result-card {
        padding: 8px;
        gap: 10px;
    }
    .result-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .result-thumb {
        width: 100%;
        max-width: 320px;
        height: 40vw;
        max-height: 180px;
        margin: 0 auto 8px auto;
        display: block;
    }
    .result-info {
        width: 100%;
        align-items: flex-start;
    }
    .result-title {
        font-size: 1rem;
    }
    .result-meta {
        font-size: 0.95rem;
    }
    .result-status {
        justify-content: flex-start;
        text-align: left;
        margin-top: 6px;
        font-size: 0.98rem;
    }
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
    .result-download, .result-another {
        width: 100%;
        min-width: 0;
        font-size: 1rem;
    }
}
.after-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}
.after-download, .after-another {
    display: inline-block;
    background: #E53935;
    color: #fff;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}
.after-download:hover, .after-another:hover {
    background: #D32F2F;
    transform: scale(1.04);
}
.loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top: 3px solid #E53935;
    animation: spin 1s linear infinite;
    margin-left: 6px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #181818;
    z-index: 1000;
    height: 44px;
    box-shadow: 0 2px 8px #0002;
    display: flex;
    justify-content: center;
}
.sticky-header-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 10px;
}
.sticky-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}
.sticky-logo img {
    height: 30px;
    width: auto;
}

.sticky-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.sticky-nav a {
    color: #e3faff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: color 0.2s;
}
.sticky-nav a:hover {
    color: #90caf9;
}
.container {
    margin-top: 56px;
}
.info-section {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background: none;
    color: #bdbdbd;
    font-size: 0.85rem;
    line-height: 1.8;
}
.info-section h1 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}
.info-section ol {
    margin: 16px 0 0 20px;
    padding: 0 0 0 18px;
}
.info-section li {
    margin-bottom: 10px;
}
.info-section strong {
    color: #fff;
}
.info-section a, .info-section a:visited, .info-section a:active, .info-section a:focus { color: #E53935 !important; text-decoration: underline; }
.main-footer {
    text-align: center;
    max-width: 600px;
    border-top: 1px #1d1d1d solid;
    margin: 56px auto 0 auto;
    padding: 20px 0 0 0;
    color: #9d9d9d;
    font-size: 0.98rem;
    background: transparent;
}
.main-footer a {
    color: #9d9d9d;
    text-decoration: none;
    margin: 0 8px;
}

/* FAQ Page Styles */
.faq-collapse {
    margin-bottom: 8px;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #191919;
}

.faq-collapse:last-child {
    margin-bottom: 0;
}

.opener {
    background: #252525;
    color: #fff;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    position: relative;
    user-select: none;
}

.opener.active {
    background: #1e1e1e;
    color: #E53935;
}

.opener::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #E53935;
    transition: transform 0.2s, content 0.2s;
}

.opener.active::after {
    content: '-';
    color: #E53935;
    transform: translateY(-50%) scale(1.2);
}

.content {
    background: #191919;
    color: #bdbdbd;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s cubic-bezier(0.4,0,0.2,1);
    line-height: 1.6;
    box-shadow: none;
}

.content.active {
    padding: 20px 20px;
    max-height: 3000px;
    box-shadow: 0 2px 16px #0003;
}

.content a {
    color: #E53935;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

/* Add-On Page Styles */
.addon-features ul, .features ul, .use-cases ul {
    margin: 16px 0 0 20px;
    padding: 0 0 0 18px;
}

.addon-features li, .features li, .use-cases li {
    margin-bottom: 10px;
    color: #bdbdbd;
}

.browser-buttons {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.browser-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: #252525;
    border: 2px solid #444;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    min-width: 120px;
}

.browser-btn:hover {
    border-color: #E53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #e5393533;
}

.browser-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.browser-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.browser-version {
    font-size: 0.8rem;
    color: #bdbdbd;
}

/* Coming Soon Page Styles */
.coming-soon {
    text-align: center;
    padding: 20px 0;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s;
}

.feature-item:hover {
    border-color: #E53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #e5393533;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    color: #bdbdbd;
    font-weight: 500;
}

.notify-section {
    background: #252525;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #444;
    margin: 24px 0;
}

.notify-form {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.notify-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #232323;
    color: #fff;
    font-size: 1rem;
}

.notify-form input:focus {
    outline: none;
    border-color: #E53935;
    box-shadow: 0 0 0 3px #E5393520;
}

.notify-form button {
    padding: 12px 24px;
    background: #E53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.notify-form button:hover {
    background: #D32F2F;
}

.progress-section {
    background: #252525;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #444;
    margin: 24px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E53935, #D32F2F);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progress-glow 2s ease-in-out infinite alternate;
}

@keyframes progress-glow {
    0% {
        box-shadow: 0 0 5px #E53935;
    }
    100% {
        box-shadow: 0 0 20px #E53935, 0 0 30px #E53935;
    }
}

/* Mobile Responsive for new pages */
@media (max-width: 600px) {
    .browser-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .browser-btn {
        min-width: auto;
        padding: 12px 16px;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .notify-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .notify-form input,
    .notify-form button {
        width: 100%;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 2vw;
        margin-top: 56px;
        min-width: 0;
        max-width: 100vw;
    }
    .info-section {
        font-size: 1rem;
        padding: 0 2vw;
    }
    .info-section h1 {
        font-size: 1.1rem;
    }
    .main-footer {
        margin-top: 64px;
        padding: 24px 0 8px 0;
        font-size: 1.08rem;
        background: #181818;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 -2px 16px #0002;
        max-width: 100vw;
        width: 100vw;
    }
    .main-footer a {
        display: inline-block;
        margin: 8px 10px;
        font-size: 1.08rem;
        word-break: break-word;
    }
    form, .result-card {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .faq-collapse {
        margin-bottom: 14px;
        border-radius: 10px;
    }
    .opener {
        font-size: 1.12rem;
        padding: 18px 14px;
        line-height: 1.6;
        letter-spacing: 0.01em;
        border-radius: 10px 10px 0 0;
    }
    .opener.active {
        background: #181818;
        color: #E53935;
    }
    .content,
    .content.active {
        font-size: 1.04rem;
        padding: 18px 14px;
        line-height: 1.8;
        word-break: break-word;
        border-radius: 0 0 10px 10px;
    }
    .content.active {
        box-shadow: 0 2px 12px #0005;
    }
}

/* Hide Addon link in header on mobile */
@media (max-width: 600px) {
  .sticky-nav .nav-addon-link {
    display: none !important;
  }
}

.lang-sticky-dropdown {
  position: fixed;
  left: 24px;
  bottom: 32px;
  z-index: 9999;
  background: #232323;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0005;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 600px) {
  .lang-sticky-dropdown {
    left: 8px;
    bottom: 12px;
    padding: 8px 10px;
    font-size: 0.98rem;
  }
}
