* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #2b2f38;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .format-btn, .submit-btn {
    font-family: 'Manrope', 'Inter', sans-serif;
    letter-spacing: -0.01em;
}
main { flex: 1; }

.site-header {
    height: 72px;
    background: linear-gradient(135deg, #4f5566 0%, #5a6173 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-shadow: 0 2px 20px rgba(90, 97, 115, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
}
.logo {
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logo::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #00C853;
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.6);
}
.lang-switcher { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}
.lang-btn.active {
    background: linear-gradient(135deg, #00C853, #00b34a);
    border-color: transparent;
}

.hero-section {
    max-width: 100%;
    margin: 64px auto 0;
    padding: 0 24px;
    text-align: center;
}
/* Search bar & controls — original compact width */
.hero-section > .hero-title,
.hero-section > .input-group,
.hero-section > .formats-group,
.hero-section > .trust-signals,
.hero-section > #error-box,
.hero-section > #status-box,
.hero-section > #status-msg,
.hero-section > #preview-container,
.hero-section > #download-action,
.hero-section > .seo-content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-section > .input-group {
    width: 100%;
}
.hero-section > .formats-group,
.hero-section > .trust-signals {
    width: 100%;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #0e1016;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.input-group {
    display: flex;
    height: 66px;
    background-color: #5a6173;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(90, 97, 115, 0.28);
    margin-bottom: 22px;
}
.url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 24px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
}
.url-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.submit-btn {
    width: 104px;
    background: linear-gradient(135deg, #00C853 0%, #00b34a 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.submit-btn svg { width: 32px; height: 32px; fill: #ffffff; }

.formats-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.format-btn {
    background-color: #f5f6f8;
    border: 1.5px solid #e3e6ec;
    color: #2b2f38;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}
.format-btn:hover {
    background-color: #ffffff;
    border-color: #7c5bff;
    color: #7c5bff;
    box-shadow: 0 6px 18px rgba(124, 91, 255, 0.15);
    transform: translateY(-2px);
}

#error-box {
    display: none;
    max-width: 500px;
    margin: 0 auto 20px;
    color: #d32f2f;
    background: #ffebee;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border: 1px solid #ffcdd2;
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
    font-weight: 500;
    margin-top: 8px;
}
.trust-item { display: flex; align-items: center; gap: 7px; }
.trust-item svg { width: 18px; height: 18px; fill: #00C853; }

#preview-container {
    display: none;
    max-width: 500px;
    margin: 0 auto 22px;
    background: #ffffff;
    border: 1.5px solid #e9ecf1;
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 12px 32px rgba(20, 24, 40, 0.08);
}
#preview-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #e9ecf1;
}
.preview-info { padding: 18px 20px; }
.preview-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #0e1016;
    font-weight: 700;
}
.preview-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13.5px;
    color: #5a6173;
}

#download-action {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 28px;
}
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 12px;
  background: #00c853;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.3);
  transition: background 0.2s, transform 0.15s;
}
.download-btn:hover {
    background: linear-gradient(135deg, #00b34a 0%, #009d40 100%);
}

#status-box {
    display: none;
    max-width: 500px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}
#status-box.loading {
    display: block;
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    color: #1a5fb4;
}
#status-box.error {
    display: block;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #d32f2f;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 16, 22, 0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-window {
    background: #ffffff;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    padding: 32px 28px 28px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f2f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close svg { width: 16px; height: 16px; fill: #5a6173; }
.modal-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0e1016;
    margin-bottom: 14px;
}
.modal-desc {
    font-size: 15px;
    color: #5a6173;
    line-height: 1.65;
    margin-bottom: 24px;
}
.modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00C853 0%, #00b34a 100%);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
}

.seo-content {
    max-width: 820px;
    margin: 64px auto 0;
    padding: 48px 20px 40px;
    border-top: 1px solid #eef0f4;
}
.seo-content h2 {
    font-size: 25px;
    margin: 0 0 18px;
    color: #0e1016;
    font-weight: 800;
}
.seo-content p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #454b58;
    line-height: 1.75;
}

.faq-section { max-width: 820px; margin: 0 auto 72px; padding: 0 20px; }
.faq-section h2 {
    font-size: 25px;
    margin-bottom: 24px;
    text-align: center;
    color: #0e1016;
    font-weight: 800;
}
.faq-item {
    border-bottom: 1px solid #eef0f4;
    padding: 20px 0;
}
.faq-item h3 {
    font-weight: 700;
    font-size: 16.5px;
    color: #0e1016;
    margin-bottom: 9px;
    padding-left: 20px;
    position: relative;
}
.faq-item h3::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #7c5bff;
    font-weight: 800;
}
.faq-item p {
    font-size: 15px;
    color: #5a6173;
    line-height: 1.7;
    padding-left: 20px;
}

.site-footer {
    background: linear-gradient(135deg, #1a1d24 0%, #212529 100%);
    color: #8b93a1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    width: 100%;
}

@media (max-width: 600px) {
    .site-header { height: 64px; padding: 0 16px; }
    .logo { font-size: 16px; }
    .hero-title { font-size: 18px; }
    .input-group { height: 58px; }
    .url-input { font-size: 15px; padding: 0 16px; }
    .submit-btn { width: 76px; }
    .format-btn { padding: 9px 14px; font-size: 12.5px; }
}
/* --- Error page --- */
.error-page {
    max-width: 520px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}
.error-code {
    font-family: 'Manrope', sans-serif;
    font-size: 96px;
    font-weight: 800;
    color: #e3e6ec;
    line-height: 1;
    margin-bottom: 8px;
}
.error-title {
    font-size: 24px;
    font-weight: 800;
    color: #0e1016;
    margin-bottom: 12px;
}
.error-text {
    font-size: 16px;
    color: #5a6173;
    line-height: 1.6;
}

/* --- PWA modal extras --- */
.pwa-window { text-align: center; }
.pwa-icon { margin-bottom: 12px; }
.pwa-benefits {
    list-style: none;
    text-align: left;
    margin: 0 auto 20px;
    max-width: 280px;
    padding: 0;
}
.pwa-benefits li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 14px;
    color: #454b58;
}
.pwa-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00C853 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pwa-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.btn-pwa-primary {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #00C853, #00b34a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.btn-pwa-secondary {
    flex: 1;
    padding: 12px 16px;
    background: #f0f2f6;
    color: #333;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* Submit button spinner */
.submit-btn, .dropdown-btn {
    position: relative;
    overflow: hidden;
}
.submit-btn .arrow-icon {
    width: 28px;
    height: 28px;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.3s ease;
}
.submit-btn .spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.3s ease;
}
.submit-btn.loading {
    pointer-events: none;
    cursor: wait;
    opacity: 1;
}
.submit-btn.loading .arrow-icon {
    opacity: 0;
    transform: scale(0.5) translateY(-8px);
}
.submit-btn.loading .spinner {
    opacity: 1;
    animation: axspin 0.8s linear infinite;
}
@keyframes axspin {
    to { transform: rotate(360deg) scale(1); }
}

.site-footer-tall {
    height: auto !important;
    min-height: 48px;
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.footer-legal {
    font-size: 12px;
    color: #8b93a1;
    max-width: 640px;
    line-height: 1.5;
}
.footer-legal a {
    color: #00C853;
    text-decoration: underline;
}
.footer-copy {
    font-size: 12px;
    color: #6c757d;
}

/* ===== Multi-column footer (like product sites) ===== */
.site-footer { display: none; } /* old bar */

.site-footer-main {
    background: #1a1d24;
    color: #8b93a1;
    padding: 48px 24px 28px;
    margin-top: auto;
    width: 100%;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-muted {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}
.footer-email {
    font-size: 14px;
    margin-bottom: 12px;
    color: #a0a8b8;
}
.footer-email a {
    color: #c5cbd6;
    text-decoration: none;
}
.footer-email a:hover { color: #00C853; }
.footer-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #6c757d;
    max-width: 240px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #8b93a1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.footer-links a:hover { color: #00C853; }

.footer-bottom {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.footer-legal {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (max-width: 720px) {
    .footer-legal {
        white-space: normal;
        text-overflow: unset;
    }
}
.footer-legal a {
    color: #00C853;
    text-decoration: underline;
}
.footer-copy {
    font-size: 12px;
    color: #5a6173;
}

@media (max-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-desc { max-width: none; }
}

/* ========== SEO content (from admin HTML) ========== */
.seo-content {
    max-width: 820px;
    margin: 64px auto 0;
    padding: 48px 20px 40px;
    border-top: 1px solid #eef0f4;
    text-align: left;
}
.seo-content h2 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 25px;
    margin: 0 0 18px;
    color: #0e1016;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.seo-content h2 + h2 { margin-top: 36px; }
.seo-content h3 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 19px;
    margin: 34px 0 16px;
    color: #0e1016;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.seo-content p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #454b58;
    line-height: 1.75;
}
.seo-content p strong { color: #0e1016; font-weight: 700; }
.seo-content ul {
    margin-bottom: 22px;
    padding-left: 0;
    list-style: none;
}
.seo-content ol {
    margin-bottom: 22px;
    padding-left: 22px;
    color: #454b58;
}
.seo-content li {
    margin-bottom: 12px;
    color: #454b58;
    line-height: 1.7;
    position: relative;
    padding-left: 26px;
}
.seo-content ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00C853, #7c5bff);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.12);
}
.seo-content li strong { color: #0e1016; font-weight: 700; }
.seo-content a { color: #00C853; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 22px 0 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(20, 24, 40, 0.06);
}
.seo-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 15px;
}
.seo-table th,
.seo-table td {
    border: 1px solid #eef0f4;
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}
.seo-table th {
    background: linear-gradient(135deg, #f7f8fa 0%, #f0f2f6 100%);
    font-weight: 700;
    color: #0e1016;
    font-family: 'Manrope', sans-serif;
}
.seo-table td { color: #454b58; }
.seo-table td strong { color: #0e1016; font-weight: 700; }
.seo-table small { color: #7a8090; font-size: 13px; }
.seo-table tbody tr:hover { background-color: #fafbfd; }

/* ========== FAQ ========== */
.faq-section {
    max-width: 820px;
    margin: 0 auto 72px;
    padding: 0 20px;
    text-align: left;
}
.faq-section h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    margin-bottom: 24px;
    text-align: center;
    color: #0e1016;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.faq-item {
    border-bottom: 1px solid #eef0f4;
    padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
    font-weight: 700;
    font-size: 16.5px;
    color: #0e1016;
    margin-bottom: 9px;
    position: relative;
    padding-left: 20px;
    line-height: 1.45;
    font-family: 'Manrope', sans-serif;
}
.faq-item h3::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    color: #7c5bff;
    font-weight: 800;
    font-size: 15px;
}
.faq-item p {
    font-size: 15px;
    color: #5a6173;
    line-height: 1.7;
    padding-left: 20px;
}

/* ========== Download option buttons (dl-btn) ========== */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 8px 16px 18px;
}
.dl-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f5f6f8;
    border: 1.5px solid #e3e6ec;
    border-radius: 10px;
    padding: 13px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #2b2f38;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s ease;
    text-align: left;
}
.dl-btn:hover {
    background: linear-gradient(135deg, #00C853 0%, #00b34a 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 200, 83, 0.28);
}
.dl-btn:hover .dl-size { color: rgba(255, 255, 255, 0.92); }
.dl-btn:hover svg { color: #ffffff; }
.dl-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dl-label svg {
    color: #00C853;
    transition: color 0.2s ease;
    flex-shrink: 0;
}
.dl-size {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #7a8090;
    white-space: nowrap;
}

#status-msg {
    display: none;
    max-width: 500px;
    margin: 0 auto 18px;
    color: #00695c;
    background: #e0f2f1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border: 1px solid #b2dfdb;
}

/* Article body (legal pages etc.) */
.article-body,
.seo-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .seo-content { margin-top: 40px; padding-top: 32px; }
    .seo-content h2 { font-size: 20px; }
    .seo-content h3 { font-size: 17px; }
    .seo-content p { font-size: 15px; }
    .faq-section h2 { font-size: 20px; }
    .faq-item h3 { font-size: 15.5px; }
    .faq-item p { font-size: 14px; }
    .dl-btn { padding: 11px 14px; font-size: 14px; }
}

.trust-link {
    text-decoration: none;
    color: #5a6173;
}
.trust-link:hover { color: #00C853; }

.search-results {
    width: 90%;
    max-width: 1400px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
    text-align: left;
    box-sizing: border-box;
}
.search-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    cursor: pointer;
    transition: opacity .15s;
}
.search-card:hover { opacity: 0.92; }
.search-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #e9ecf1;
    box-shadow: 0 4px 18px rgba(20,24,40,.08);
}
.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.search-card-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,.88);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
}
.search-card-body {
    padding: 12px 2px 0;
    min-width: 0;
}
.search-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0e1016;
    margin: 0 0 5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-card-meta {
    font-size: 13px;
    color: #7a8090;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.search-card-actions button {
    border: none;
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    flex: 1;
}
.btn-dl {
    background: #00C853;
    color: #fff;
}
.btn-dl:hover { background: #00b34a; }
.btn-watch {
    background: #f0f2f6;
    color: #2b2f38;
}
.btn-watch:hover { background: #e3e6ec; }

.footer-bottom .footer-legal {
    white-space: nowrap;
}
@media (max-width: 720px) {
    .footer-bottom .footer-legal { white-space: normal; }
    .search-results,
    #search-results {
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px 0 0 !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .search-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .search-card-thumb {
        width: 100% !important;
        border-radius: 12px;
    }
    .search-card-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .search-card-title { font-size: 14px; }
    .hero-section { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 480px) {
    .search-results {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* Download + Watch buttons under preview */
#download-action {
    display: none;
    max-width: 500px;
    margin: 0 auto 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.watch-page-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 12px;
  background: #1e3a8a;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
  transition: background 0.2s, transform 0.15s;
}
.watch-page-btn .wb-ico { flex-shrink: 0; margin-right: 2px; letter-spacing: 0; }
.watch-page-btn .wb-txt { letter-spacing: 0.01em; }
.watch-page-btn:hover {
  background: #1e40af;
  color: #fff !important;
  transform: translateY(-1px);
}
.footer-langs a.active {
    color: #00C853;
    font-weight: 700;
}


/* Footer: 4 columns on one row — Ax Group | Platforms | Nav | Languages */
.site-footer-main .footer-inner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 28px;
    box-sizing: border-box;
}
.site-footer-main .footer-col {
    min-width: 0;
    width: 100%;
}
@media (max-width: 900px) {
    .site-footer-main .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .site-footer-main .footer-inner {
        grid-template-columns: 1fr;
    }
}

.header-auth { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #00C853; color: #0e1016;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; text-decoration: none;
    text-transform: uppercase;
}
.user-avatar:hover { filter: brightness(1.05); }


/* equal watch / download buttons */
#download-action {
  display: none;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#download-action .watch-page-btn,
#download-action .download-btn {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}
#download-action .watch-page-btn { background: #1e3a8a !important; color: #fff !important; }
#download-action .watch-page-btn .wb-ico { margin-right: 4px; }
#download-action .download-btn { background: #00c853 !important; color: #fff !important; }


/* search full-bleed mobile */
@media (max-width: 720px) {
  .hero-section .search-results,
  #search-results.search-results {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    grid-template-columns: 1fr !important;
  }
}
