:root {
    --primary: #fe2c55;
    --primary-hover: #e0244a;
    --dark: #121212;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border: #ececec;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.06);
    --border-radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 10000;
    transform: translateY(-150%); background: var(--dark); color: white;
    padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.header {
    position: sticky; top: 0; z-index: 1000;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
}
.nav { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 24px; font-weight: 800; text-decoration: none; color: var(--dark); white-space: nowrap; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link {
    color: #363636; text-decoration: none; font-size: .93rem; font-weight: 700;
    padding: 9px 11px; border-radius: 10px; transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active { background: #fff1f4; color: var(--primary); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: white; border-radius: 10px; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--dark); margin: 4px 0; border-radius: 99px; }
.language-menu { position: relative; margin-left: 4px; }
.language-menu summary {
    list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer;
    font-size: .9rem; font-weight: 700; border: 1px solid var(--border); border-radius: 10px;
    padding: 8px 10px; background: white; user-select: none;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: '▾'; font-size: .72rem; color: var(--gray); }
.language-menu[open] summary::after { transform: rotate(180deg); }
.language-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 145px; padding: 6px;
    background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-soft);
}
.language-option { display: block; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: .9rem; }
.language-option:hover, .language-option.active { background: var(--light); color: var(--primary); font-weight: 700; }

/* Hero */
.hero {
    background: radial-gradient(circle at top right, #fff4f6, #ffffff 62%);
    padding: 68px 0 88px; text-align: center;
}
.breadcrumbs { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--gray); font-size: .9rem; }
.breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 20px; }
h1 span { color: var(--primary); }
.subheading { max-width: 820px; margin: 0 auto 34px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--gray); }
.downloader-card {
    max-width: 820px; margin: 0 auto; background: var(--white); padding: 8px; border-radius: 24px;
    box-shadow: var(--shadow); display: flex; gap: 10px; border: 1px solid rgba(0,0,0,.025);
}
.input-wrapper { flex: 1; position: relative; display: flex; min-width: 0; }
input[type="url"], input[type="text"] {
    width: 100%; min-width: 0; padding: 18px 112px 18px 20px; border: 2px solid #f0f0f0;
    border-radius: var(--border-radius); font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(254,44,85,.08); }
.btn-paste {
    position: absolute; right: 9px; top: 50%; transform: translateY(-50%); background: #f3f3f3; border: 0;
    padding: 8px 12px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700;
}
.btn-paste:hover { background: #eaeaea; }
.btn-main {
    background: var(--primary); color: white; border: none; padding: 17px 28px; border-radius: var(--border-radius);
    font-size: 1rem; font-weight: 800; cursor: pointer; min-width: 190px;
    display: flex; justify-content: center; align-items: center; transition: transform .2s, background .2s, opacity .2s;
}
.btn-main:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-2px); }
.btn-main:disabled { cursor: wait; opacity: .72; }
.tool-hint { margin: 14px auto 0; max-width: 760px; color: #777; font-size: .84rem; }
.trust-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: #555; font-size: .88rem; font-weight: 600; }
.trust-badges span::first-letter { color: var(--primary); }
.loader { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.35); border-radius: 50%; border-top-color: white; animation: spin .8s infinite linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section-block { padding: 82px 0; }
.features { background: white; }
.section-title { text-align: center; font-size: clamp(1.85rem, 4vw, 2.35rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.feature-card, .tool-card { padding: 34px; border-radius: 20px; background: var(--light); border: 1px solid transparent; }
.feature-card { transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-card .icon { font-size: 38px; margin-bottom: 14px; }
.feature-card h3, .tool-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.feature-card p, .tool-card p { color: #565656; }
.how-to { background: #fcfcfc; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 34px; }
.step { text-align: center; }
.step-num { width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-weight: 800; box-shadow: 0 8px 18px rgba(254,44,85,.18); }
.step h3 { margin-bottom: 8px; font-size: 1.08rem; }
.step p { color: #5a5a5a; }
.seo-content { padding-top: 82px; padding-bottom: 22px; max-width: 850px; }
.seo-content h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.25; margin-bottom: 16px; }
.seo-content h3 { font-size: 1.35rem; margin: 32px 0 10px; }
.seo-content p { margin-bottom: 16px; color: #444; }
.article-lead { font-size: 1.08rem; }
.faq { max-width: 850px; }
.accordion details { background: var(--light); margin-bottom: 12px; border-radius: 14px; border: 1px solid #efefef; overflow: hidden; }
.accordion summary { font-weight: 750; cursor: pointer; list-style: none; padding: 18px 20px; position: relative; padding-right: 48px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; position: absolute; right: 20px; top: 14px; font-size: 1.45rem; color: var(--primary); }
.accordion details[open] summary::after { content: '−'; }
.accordion .content { padding: 0 20px 18px; color: #555; }
.related-tools { padding-top: 35px; }
.tool-card { display: block; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.tool-card:hover { transform: translateY(-3px); border-color: #ffd2da; background: #fff8f9; }
.tool-link { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 800; font-size: .92rem; }

/* Download results */
.result-container { margin: 30px auto 0; max-width: 720px; }
.result-card { background: white; border-radius: 18px; box-shadow: var(--shadow); display: flex; padding: 18px; gap: 20px; text-align: left; animation: fadeIn .35s ease-out; border: 1px solid #f1f1f1; }
.video-preview { position: relative; flex: 0 0 150px; }
.video-preview video, .video-preview img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; background: #111; display: block; }
.duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.76); color: white; padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.video-details { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.video-title { font-size: 1.15rem; line-height: 1.35; margin-bottom: 5px; word-break: break-word; }
.author { color: #666; font-size: .9rem; margin-bottom: 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: .85rem; color: #444; }
.download-actions { display: grid; gap: 9px; }
.btn-download-now, .btn-download-server, .photo-download {
    display: inline-block; background: var(--primary); color: white; padding: 11px 16px; border-radius: 9px;
    text-decoration: none; font-weight: 750; text-align: center; transition: background .2s, transform .2s;
}
.btn-download-now:hover, .photo-download:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-download-server { background: var(--dark); }
.photo-results { margin-top: 30px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.photo-card { overflow: hidden; border-radius: 16px; background: white; box-shadow: var(--shadow-soft); border: 1px solid #eee; }
.photo-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eee; }
.photo-card .photo-download { display: block; margin: 10px; }
.audio-result { margin-top: 30px; background: white; max-width: 720px; margin-left: auto; margin-right: auto; padding: 22px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid #eee; text-align: left; }
.audio-result h3 { margin-bottom: 5px; }
.audio-player-area { display: flex; align-items: center; gap: 20px; }
.audio-player-area > img, .audio-placeholder { width: 132px; height: 132px; border-radius: 16px; flex: 0 0 132px; object-fit: cover; background: linear-gradient(135deg, #111, #fe2c55); }
.audio-placeholder { display: grid; place-items: center; color: white; font-size: 3rem; font-weight: 800; }
.audio-content { flex: 1; min-width: 0; }
.audio-content audio { width: 100%; margin: 10px 0 12px; }
.photo-result-container { max-width: 820px; }
.photo-result-info { text-align: left; background: white; border: 1px solid #eee; box-shadow: var(--shadow-soft); border-radius: 16px; padding: 18px 20px; }
.photo-result-info .stats { margin-bottom: 0; }
.result-error { margin: 24px auto 0; max-width: 700px; background: #fff4f6; border: 1px solid #ffd7df; color: #a31532; padding: 14px 16px; border-radius: 12px; font-weight: 650; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Notifications */
.notification-container { position: fixed; top: 82px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.notification-toast { pointer-events: auto; min-width: 280px; max-width: 400px; background: #111; color: white; border-left: 4px solid var(--primary); padding: 14px 15px; border-radius: 9px; box-shadow: 0 10px 20px rgba(0,0,0,.22); display: flex; justify-content: space-between; align-items: center; gap: 12px; animation: slideIn .25s ease-out forwards; }
.notification-content { font-size: .9rem; font-weight: 600; }
.notification-close { background: none; border: 0; color: #ff6583; font-size: 20px; cursor: pointer; line-height: 1; }
.fade-out { animation: fadeOut .22s ease-in forwards; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { transform: translateX(20px); opacity: 0; } }

/* Footer */
.footer { background: var(--dark); color: white; padding: 58px 0 22px; margin-top: 72px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-logo { color: white; display: inline-block; margin-bottom: 8px; }
.footer-grid p { color: #aaa; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: white; }
.disclaimer { margin-top: 34px; font-size: .82rem; color: #777; border-top: 1px solid #303030; padding-top: 18px; }
.copyright { margin-top: 14px; color: #666; font-size: .8rem; }

:focus-visible { outline: 3px solid rgba(254,44,85,.35); outline-offset: 3px; }

@media (max-width: 860px) {
    .nav-toggle { display: block; margin-left: auto; }
    .nav-menu {
        display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; margin: 0;
        padding: 14px 20px 18px; background: white; border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px rgba(0,0,0,.05);
        flex-direction: column; align-items: stretch; gap: 5px;
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: 11px 12px; }
    .language-menu { margin: 4px 0 0; }
    .language-menu summary { justify-content: space-between; }
    .language-dropdown { position: static; margin-top: 7px; box-shadow: none; border-radius: 10px; }
    .grid, .steps-grid { grid-template-columns: 1fr; }
    .section-block { padding: 64px 0; }
    .feature-card { padding: 28px; }
}

@media (max-width: 680px) {
    .hero { padding: 50px 0 68px; }
    .downloader-card { flex-direction: column; padding: 10px; border-radius: 20px; }
    .btn-main { width: 100%; min-width: 0; }
    .trust-badges { gap: 8px 14px; }
    .result-card { flex-direction: column; }
    .video-preview { flex: none; }
    .video-preview video, .video-preview img { height: 280px; }
    .photo-results { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 9px; }
}

@media (max-width: 420px) {
    .container { padding-left: 16px; padding-right: 16px; }
    h1 { font-size: 2.25rem; }
    .btn-paste span { display: none; }
    input[type="url"], input[type="text"] { padding-right: 58px; }
    .notification-container { left: 12px; right: 12px; top: 74px; }
    .notification-toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared media-result demo shown automatically on every localized page. */
.media-demo-section { background: #fbfbfc; border-top: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2; }
.media-demo-heading { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.media-demo-heading .section-title { margin: 10px 0 8px; }
.media-demo-heading p { color: #666; }
.demo-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #fff0f3; color: var(--primary); border: 1px solid #ffd4dc; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.media-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.media-demo-card { position: relative; overflow: hidden; background: white; border: 1px solid #ececec; border-radius: 20px; box-shadow: var(--shadow-soft); text-align: left; }
.demo-card-label { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; color: white; background: rgba(18,18,18,.78); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 800; }
.demo-video-box { height: 220px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 65% 25%, rgba(254,44,85,.9), transparent 28%), linear-gradient(145deg, #171717 12%, #3d2130 58%, #111); }
.demo-play { width: 58px; height: 58px; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--primary); font-size: 1.25rem; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.demo-photo-grid { height: 220px; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr 1fr; gap: 4px; background: #f1f1f1; }
.demo-photo-grid span { display: block; min-width: 0; background: linear-gradient(145deg, #ff7d96, #fe2c55 50%, #6b1530); }
.demo-photo-grid span:first-child { grid-row: 1 / 3; background: linear-gradient(145deg, #171717, #63283b 55%, #ff5475); }
.demo-photo-grid span:nth-child(2) { background: linear-gradient(145deg, #ffb14f, #fe2c55); }
.demo-photo-grid span:nth-child(3) { background: linear-gradient(145deg, #7a5cff, #242044); }
.demo-audio-box { height: 220px; padding: 28px 22px; display: flex; align-items: center; gap: 18px; background: linear-gradient(145deg, #151515, #291d24 62%, #4f1b2b); }
.demo-disc { width: 90px; height: 90px; flex: 0 0 90px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 2rem; background: radial-gradient(circle, #fe2c55 0 13%, #191919 14% 37%, #454545 38% 40%, #151515 41%); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.demo-wave { height: 80px; flex: 1; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.demo-wave i { width: 3px; min-height: 10px; height: var(--bar); border-radius: 99px; background: rgba(255,255,255,.82); }
.demo-media-info { padding: 18px; }
.demo-media-info h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: 4px; }
.demo-media-info > p { color: #6b6b6b; font-size: .88rem; margin-bottom: 10px; }
.demo-stats { display: flex; flex-wrap: wrap; gap: 10px; color: #555; font-size: .8rem; margin-bottom: 12px; }
.demo-media-info .btn-download-now { width: 100%; border: 0; font: inherit; cursor: not-allowed; opacity: .72; }
.demo-audio-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 12px 0; font-size: .76rem; color: #5d5d5d; }
.demo-audio-controls div { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--primary) 0 38%, #e7e7e7 38%); }

@media (max-width: 900px) {
    .media-demo-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
    .demo-video-box, .demo-photo-grid, .demo-audio-box { height: 250px; }
}

@media (max-width: 680px) {
    .audio-player-area { flex-direction: column; align-items: stretch; }
    .audio-player-area > img, .audio-placeholder { width: 100%; height: 220px; flex-basis: auto; }
    .demo-audio-box { height: 210px; }
}

/* Legal and trust pages */
.legal-hero { padding: 64px 0 36px; background: linear-gradient(180deg, #fff8fa 0%, #fff 100%); border-bottom: 1px solid var(--border); }
.legal-shell { max-width: 860px; }
.legal-eyebrow { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 20px 0 8px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin-bottom: 18px; }
.legal-intro { font-size: 1.08rem; color: #555; max-width: 760px; }
.legal-updated { margin-top: 18px; color: #747474; font-size: .9rem; }
.legal-content { padding-top: 42px; padding-bottom: 18px; }
.legal-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.legal-section:first-child { padding-top: 0; }
.legal-section h2 { font-size: 1.45rem; margin-bottom: 12px; }
.legal-section p { color: #4f4f4f; margin-top: 10px; }
.legal-contact-card { margin-top: 30px; padding: 24px; border: 1px solid #ffd9e0; background: #fff7f9; border-radius: 16px; }
.legal-contact-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.legal-contact-card a { color: var(--primary); font-weight: 800; overflow-wrap: anywhere; }
.legal-contact-note { color: #666; font-size: .92rem; }

/* Cloudflare Turnstile is public-client verification only; secrets remain server-side. */
.turnstile-container {
  width: 100%;
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
}

.turnstile-container:empty {
  min-height: 0;
  margin-top: 0;
}

/* Shared creator-tools and guides dropdowns: rendered on every page type. */
.tools-menu .tools-dropdown { min-width: 280px; max-height: 70vh; overflow-y: auto; }
.tools-menu summary span { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guides-menu .guides-dropdown { min-width: 320px; }
.related-guides .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.guide-card-link { display: block; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; border: 1px solid #efefef; }
.guide-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #ffd3dc; }

@media (max-width: 1040px) and (min-width: 861px) {
  .nav { gap: 12px; }
  .nav-menu { gap: 4px; }
  .nav-link { padding-left: 8px; padding-right: 8px; font-size: .88rem; }
  .language-menu summary { padding-left: 8px; padding-right: 8px; font-size: .86rem; }
  .tools-menu summary span { max-width: 130px; }
}

@media (max-width: 860px) {
  .nav-menu { max-height: calc(100vh - 76px); overflow-y: auto; }
  .tools-menu .tools-dropdown, .guides-menu .guides-dropdown { min-width: 0; max-height: none; overflow: visible; }
  .tools-menu summary span { max-width: none; }
}

/* Multilingual/RTL hardening */
.language-dropdown-locales {
    min-width: 220px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
[dir="rtl"] .nav-menu { margin-left: 0; margin-right: auto; }
[dir="rtl"] .language-menu { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .language-dropdown { right: auto; left: 0; text-align: right; }
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="text"] { padding: 18px 20px 18px 112px; text-align: right; }
[dir="rtl"] .btn-paste { right: auto; left: 9px; }
[dir="rtl"] .accordion summary { padding-right: 20px; padding-left: 48px; }
[dir="rtl"] .accordion summary::after { right: auto; left: 20px; }
[dir="rtl"] .result-card,
[dir="rtl"] .audio-result,
[dir="rtl"] .photo-result-info,
[dir="rtl"] .media-demo-card { text-align: right; }
[dir="rtl"] .demo-card-label { left: auto; right: 12px; }
[dir="rtl"] .demo-play { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .notification-container { right: auto; left: 20px; }
[dir="rtl"] .notification-toast { border-left: 0; border-right: 4px solid var(--primary); }

@media (max-width: 860px) {
    [dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
    [dir="rtl"] .language-menu { margin: 4px 0 0; }
    [dir="rtl"] .language-dropdown { text-align: right; }
}

@media (max-width: 680px) {
    .language-dropdown-locales { max-height: 52vh; }
}
