/* OnlyTalents discovery theme — dark marketplace aesthetic */
:root {
    --ot-bg: #0a0e17;
    --ot-surface: #121826;
    --ot-surface-2: #1a2236;
    --ot-border: rgba(255, 255, 255, 0.08);
    --ot-text: #f4f7fb;
    --ot-muted: #9aa6bd;
    --ot-accent: #7c5cff;
    --ot-accent-2: #2dd4bf;
    --ot-radius: 16px;
    --ot-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --ot-header-h: 64px;
}

.ot-body {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
                radial-gradient(900px 500px at 90% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
                var(--ot-bg);
    color: var(--ot-text);
    min-height: 100vh;
}

.ot-main { padding-bottom: 48px; }

.ot-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    isolation: isolate;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ot-border);
}

.ot-header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.ot-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ot-text);
    font-weight: 800;
}

.ot-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ot-accent), var(--ot-accent-2));
    color: #fff;
    font-size: 0.8rem;
}

.ot-header__search {
    flex: 1;
    min-width: 180px;
    display: flex;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    overflow: hidden;
}

.ot-header__search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--ot-text);
    padding: 10px 14px;
}

.ot-header__search button {
    border: 0;
    background: transparent;
    color: var(--ot-muted);
    padding: 0 14px;
    cursor: pointer;
}

.ot-nav {
    display: none;
    gap: 8px;
}

.ot-nav a {
    color: var(--ot-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
}

.ot-nav a.active,
.ot-nav a:hover {
    color: var(--ot-text);
    background: var(--ot-surface);
}

.ot-header__auth { display: flex; gap: 8px; margin-inline-start: auto; align-items: center; }

.ot-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ot-border);
    background: var(--ot-surface);
    color: var(--ot-text);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: border-color .2s, background .2s;
}

.ot-nav-toggle:hover {
    border-color: var(--ot-accent);
    background: rgba(124, 92, 255, 0.12);
}

.ot-nav-toggle[aria-expanded="true"] {
    border-color: var(--ot-accent);
    color: var(--ot-accent-2);
}

.ot-nav-backdrop {
    position: fixed;
    inset: var(--ot-header-h) 0 0;
    background: rgba(7, 11, 18, 0.72);
    backdrop-filter: blur(4px);
    z-index: 64;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.ot-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.ot-mobile-nav {
    position: fixed;
    top: var(--ot-header-h);
    right: 0;
    bottom: 0;
    width: min(360px, 100%);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ot-bg);
    border-inline-start: 1px solid var(--ot-border);
    z-index: 65;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
}

.ot-mobile-nav.open {
    transform: translateX(0);
}

.ot-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--ot-border);
    position: sticky;
    top: 0;
    background: var(--ot-bg);
    z-index: 1;
}

.ot-mobile-nav__title {
    font-size: 1.05rem;
    letter-spacing: .04em;
}

.ot-mobile-nav__close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--ot-border);
    background: var(--ot-surface);
    color: var(--ot-text);
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}

.ot-mobile-nav__close:hover {
    border-color: var(--ot-accent);
}

.ot-mobile-nav__links {
    display: grid;
    gap: 4px;
    padding: 8px 20px 24px;
}

.ot-mobile-nav__links a {
    color: var(--ot-text);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--ot-border);
}

.ot-mobile-nav__links a:last-child {
    border-bottom: 0;
}

.ot-body.ot-nav-open {
    overflow: hidden;
}

@media (min-width: 900px) {
    .ot-nav { display: flex; }
    .ot-nav-toggle, .ot-mobile-nav, .ot-nav-backdrop { display: none !important; }
}

.ot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
}

.ot-btn--primary {
    background: linear-gradient(135deg, var(--ot-accent), #5b8dff);
    color: #fff;
}

.ot-btn--ghost {
    background: transparent;
    border-color: var(--ot-border);
    color: var(--ot-text);
}

.ot-btn--sm { padding: 8px 12px; font-size: 0.85rem; }

.ot-hero {
    padding: 48px 0 32px;
}

.ot-eyebrow {
    color: var(--ot-accent-2);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.ot-hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 8px 0 12px;
}

.ot-hero__sub {
    color: var(--ot-muted);
    max-width: 680px;
    font-size: 1.05rem;
}

.ot-hero__search {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    max-width: 560px;
}

.ot-hero__search input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid var(--ot-border);
    background: var(--ot-surface);
    color: var(--ot-text);
    padding: 12px 16px;
}

.ot-section { padding: 28px 0; }
.ot-section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 16px;
}

.ot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.ot-talent-card {
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    overflow: hidden;
    box-shadow: var(--ot-shadow);
    transition: transform .15s ease, border-color .15s ease;
}

.ot-talent-card:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, 0.45); }
.ot-talent-card__link { color: inherit; text-decoration: none; display: block; }
.ot-talent-card__media { position: relative; aspect-ratio: 4/3; background: var(--ot-surface-2); }
.ot-talent-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.ot-talent-card__photo--placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ot-text);
    background: linear-gradient(145deg, var(--ot-surface-2), rgba(124, 92, 255, 0.22));
}
.ot-talent-card__type {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ot-accent-2);
}
.ot-talent-card__body { padding: 14px; }
.ot-talent-card__head { display: flex; align-items: center; gap: 8px; }
.ot-talent-card__name { margin: 0; font-size: 1rem; }
.ot-talent-card__meta { color: var(--ot-muted); font-size: 0.85rem; margin: 6px 0; }
.ot-talent-card__cta { width: 100%; margin-top: 10px; }

.ot-online {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--ot-surface);
}
.ot-online--on { background: #22c55e; }
.ot-online--recent { background: #f59e0b; }
.ot-online--off { background: #64748b; }

.ot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ot-surface-2);
}
.ot-badge--verified { color: #7dd3fc; }
.ot-badge--featured { color: #fbbf24; }

.ot-cat-grid, .ot-loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.ot-cat-grid--large, .ot-loc-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.ot-cat-card, .ot-loc-card {
    display: block;
    padding: 16px;
    border-radius: 14px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    text-decoration: none;
    color: inherit;
}
.ot-cat-card:hover, .ot-loc-card:hover { border-color: rgba(45, 212, 191, 0.5); }

.ot-video-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.ot-video-strip--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    overflow: visible;
}
.ot-video-chip, .ot-video-card {
    min-width: 180px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.ot-video-chip img, .ot-video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ot-video-card__body { padding: 10px; }

.ot-discover-layout {
    display: grid;
    gap: 20px;
    padding-bottom: 40px;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    overflow: visible;
}
@media (min-width: 960px) {
    .ot-discover-layout {
        grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
    }
    .ot-discover-sidebar {
        grid-column: 1;
        min-width: 0;
        position: relative;
        z-index: 2;
    }
    .ot-discover-layout .ot-filters {
        grid-column: 1;
        display: block;
    }
    .ot-discover-results { grid-column: 2; }
    .ot-filters-toggle { display: none; }
}

/* Override app.css shorts toolbar flex rules on the discover sidebar */
.ot-discover-layout .ot-filters {
    display: block;
    flex-wrap: unset;
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    float: none;
    clear: both;
    isolation: auto;
}

.ot-discover-results {
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: visible;
    isolation: auto;
}

.ot-discover-results .ot-grid,
.ot-discover-results .ot-discover-grid,
.ot-discover-results .ot-talent-card,
.ot-discover-results .ot-talent-card__media {
    position: relative;
    z-index: 0;
}

.ot-discover-results .ot-talent-card:hover {
    z-index: 0;
}

.ot-discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.ot-filters-toggle {
    display: none;
    width: 100%;
    margin-bottom: 12px;
}

@media (max-width: 959px) {
    .ot-discover-layout {
        grid-template-columns: 1fr;
    }
    .ot-discover-sidebar,
    .ot-discover-results {
        grid-column: 1;
        min-width: 0;
    }
    .ot-filters-toggle {
        display: inline-flex;
        justify-content: center;
    }
    .ot-discover-layout .ot-filters[hidden] { display: none !important; }
    .ot-discover-layout .ot-filters.is-open {
        display: block;
        margin-bottom: 12px;
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

.ot-filters {
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius);
    padding: 16px;
}

@media (min-width: 960px) {
    .ot-discover-layout .ot-filters {
        position: sticky;
        top: 84px;
        z-index: 5;
        max-height: calc(100vh - 100px);
        overflow: auto;
    }
}

@media (max-width: 959px) {
    .ot-filters {
        position: static;
        top: auto;
        z-index: auto;
        max-height: none;
        overflow: visible;
    }
}
.ot-filters fieldset {
    border: 0;
    margin: 0 0 14px;
    padding: 0;
}
.ot-filters legend {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--ot-muted);
    text-transform: uppercase;
}
.ot-filters select,
.ot-filters input[type="text"],
.ot-filters input[type="number"] {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid var(--ot-border);
    background: var(--ot-surface-2);
    color: var(--ot-text);
    padding: 8px 10px;
}
.ot-check { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 0.9rem; }
.ot-range { display: flex; gap: 8px; align-items: center; }
.ot-filters__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ot-page-head { padding: 28px 0 12px; }
.ot-empty, .ot-search-banner {
    padding: 24px;
    border-radius: 14px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
}
.ot-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.ot-pagination .is-active { border-color: var(--ot-accent); }

.ot-profile-hero { padding: 24px 0; }
.ot-profile-hero__inner {
    display: grid;
    gap: 20px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: 20px;
    padding: 20px;
}
@media (min-width: 768px) {
    .ot-profile-hero__inner { grid-template-columns: 200px 1fr; }
}
.ot-profile-hero__photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}
.ot-profile-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; color: var(--ot-muted); }
.ot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ot-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ot-surface-2);
    font-size: 0.8rem;
}

.ot-form-wrap { max-width: 720px; padding-bottom: 40px; }
.ot-form label { display: block; margin-bottom: 14px; }
.ot-form select, .ot-form input[type="text"], .ot-form input[type="number"] {
    width: 100%;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid var(--ot-border);
    background: var(--ot-surface);
    color: var(--ot-text);
    padding: 10px 12px;
}
.ot-form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

.ot-footer {
    border-top: 1px solid var(--ot-border);
    padding: 24px 0;
    margin-top: 24px;
    color: var(--ot-muted);
}
.ot-footer__inner {
    display: grid;
    gap: 16px;
}
@media (min-width: 768px) {
    .ot-footer__inner { grid-template-columns: 1fr auto auto; align-items: start; }
}
.ot-footer__links, .ot-footer__lang { display: flex; gap: 12px; flex-wrap: wrap; }
.ot-footer a { color: var(--ot-muted); text-decoration: none; }
.ot-link { color: var(--ot-accent-2); text-decoration: none; }

/* ---- OnlyTalents landing: TikTok-style shorts ---- */
body.ot-landing-shorts {
    overflow: hidden;
    background: #000;
}

body.ot-landing-shorts .ot-main--shorts {
    padding: 0;
    max-width: none;
    min-height: 100dvh;
}

body.ot-landing-shorts .ot-header,
body.ot-landing-shorts .ot-footer {
    display: none;
}

.ot-shorts-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.ot-shorts-nav > * { pointer-events: auto; }

.ot-shorts-nav__brand {
    display: inline-flex;
    text-decoration: none;
}

.ot-shorts-nav__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ot-accent), var(--ot-accent-2));
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.ot-shorts-nav__links {
    display: flex;
    gap: 6px;
    margin-left: 4px;
}

.ot-shorts-nav__links a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}

.ot-shorts-nav__auth { margin-left: auto; }

.ot-shorts-nav__login {
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.35);
}

.ot-shorts-nav__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    background: rgba(124, 92, 255, .45);
    border: 1px solid rgba(255,255,255,.25);
}

.ot-shorts-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px 10px max(10px, env(safe-area-inset-bottom));
    background: rgba(5, 10, 18, .92);
    border-top: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.ot-shorts-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(255,255,255,.62);
    font-size: .64rem;
    font-weight: 600;
    padding: 6px 4px;
    border-radius: 10px;
}

.ot-shorts-bottom a span[aria-hidden="true"] {
    font-size: 1rem;
    line-height: 1;
}

.ot-shorts-bottom a.is-active,
.ot-shorts-bottom a:hover {
    color: #fff;
    background: rgba(124, 92, 255, .18);
}

.ot-profile-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}
.ot-profile-socials{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ot-profile-rate{margin-left:4px}

.ot-tiktok--landing {
    --ot-shorts-top: max(52px, calc(44px + env(safe-area-inset-top, 0px)));
    --ot-shorts-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    --ot-scroll-h: calc(100dvh - var(--ot-shorts-top) - var(--ot-shorts-bottom));
    height: 100dvh;
    min-height: 100dvh;
    background: #000;
    overflow: hidden;
}

.ot-tiktok--landing .ot-tiktok__chrome--minimal {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 55;
    padding: 0 12px;
    pointer-events: none;
}

.ot-tiktok--landing .ot-tiktok__chrome--minimal > * {
    pointer-events: auto;
}

.ot-tiktok--landing .ot-tiktok__toolbar {
    margin: 0;
    justify-content: center;
}

.ot-tiktok--landing .ot-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.ot-category-chips {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ot-category-chips--scroll .ot-filter-pill {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ot-section-title {
    font-size: 1.1rem;
    margin: 0 0 16px;
}

.ot-cat-card__cta {
    display: block;
    margin-top: 8px;
    font-size: .8rem;
    color: #2dd4bf;
}

.ot-cat-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ot-shorts-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.ot-shorts-preview__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-size: .75rem;
}

.ot-shorts-preview__item img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
}

.ot-filter-pill {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .74rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
}

.ot-filter-pill.is-active {
    color: #fff;
    background: rgba(124, 92, 255, .55);
    border-color: rgba(124, 92, 255, .8);
}

.ot-tiktok--landing .ot-tiktok__scroll {
    position: fixed;
    top: var(--ot-shorts-top);
    left: 0;
    right: 0;
    bottom: var(--ot-shorts-bottom);
    height: var(--ot-scroll-h);
    max-height: var(--ot-scroll-h);
    width: 100%;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
    scroll-padding: 0;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    outline: none;
    touch-action: pan-y pinch-zoom;
    z-index: 1;
}

.ot-tiktok--landing .ot-tiktok__scroll:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(124, 92, 255, .55);
}

.ot-tiktok--landing .ot-tiktok__slide {
    height: var(--ot-scroll-h);
    min-height: var(--ot-scroll-h);
    max-height: var(--ot-scroll-h);
    flex: 0 0 var(--ot-scroll-h);
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    touch-action: pan-y;
}

/* ot-shorts-scroll-v4 */
.ot-tiktok--landing [data-ot-slide-media] {
    cursor: default;
    touch-action: pan-y;
    pointer-events: none;
}

.ot-tiktok--landing .ot-tiktok__media iframe,
.ot-tiktok--landing .ot-tiktok__media video,
.ot-tiktok--landing .ot-tiktok__poster {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.ot-tiktok--landing .ot-tiktok__play,
.ot-tiktok--landing .ot-tiktok__side,
.ot-tiktok--landing .ot-tiktok__meta {
    pointer-events: auto;
}

.ot-tiktok__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: none;
    transform: translate(-50%, -50%);
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.ot-tiktok__slide.is-active:not(.is-engaged) .ot-tiktok__play {
    display: block;
}

.ot-tiktok__play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-size: 1.05rem;
    padding-left: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.ot-tiktok--landing .ot-tiktok__hint {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    transition: opacity .3s, transform .3s;
}

.ot-tiktok--landing .ot-tiktok__hint.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
}

.ot-tiktok__hint-dismiss {
    border: 0;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.75);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
}

.ot-tiktok__badge--cat {
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: .62rem;
}

.ot-tiktok__actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.ot-tiktok__follow {
    box-shadow: 0 8px 24px rgba(124, 92, 255, .28);
}

.ot-tiktok__upload-link {
    color: rgba(255,255,255,.85) !important;
    border-color: rgba(255,255,255,.2) !important;
}

@media (min-width: 900px) {
    .ot-tiktok--landing .ot-tiktok__scroll {
        left: 50%;
        right: auto;
        width: min(460px, 100vw);
        transform: translateX(-50%);
        border-radius: 18px;
    }

    .ot-shorts-bottom {
        max-width: 460px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 768px) {
    .ot-tiktok--landing {
        --ot-shorts-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    }

    .ot-shorts-nav__links { display: none; }
}

/* RTL — Arabic */
[dir="rtl"] .ot-body {
    font-family: 'Inter', 'Tahoma', 'Segoe UI', sans-serif;
}

[dir="rtl"] .ot-header__inner,
[dir="rtl"] .ot-footer__inner,
[dir="rtl"] .ot-section-head,
[dir="rtl"] .ot-discover-layout,
[dir="rtl"] .ot-filter-panel,
[dir="rtl"] .ot-cat-card,
[dir="rtl"] .ot-talent-card__body {
    text-align: right;
}

[dir="rtl"] .ot-header__search input {
    text-align: right;
}

[dir="rtl"] .ot-mobile-nav {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.45);
}

[dir="rtl"] .ot-mobile-nav.open {
    transform: translateX(0);
}

[dir="rtl"] .ot-mobile-nav__head {
    flex-direction: row-reverse;
}

[dir="rtl"] .ot-footer__links,
[dir="rtl"] .ot-footer__lang {
    flex-direction: row-reverse;
}

[dir="rtl"] .ot-cat-actions,
[dir="rtl"] .ot-filter-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .ot-shorts-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .ot-shorts-nav__links {
    margin-left: 0;
    margin-right: 4px;
}

[dir="rtl"] .ot-shorts-nav__auth {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .ot-lang-menu {
    right: auto;
    left: 0;
}

.ot-lang-switch {
    position: relative;
    display: none;
}

@media (min-width: 900px) {
    .ot-lang-switch { display: block; }
}

.ot-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    color: var(--ot-muted);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .78rem;
}

.ot-lang-btn:hover {
    border-color: var(--ot-accent);
    color: var(--ot-text);
}

.ot-lang-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    box-shadow: var(--ot-shadow);
    display: none !important;
    z-index: 80;
}

.ot-lang-menu.open {
    display: block !important;
}

/* Shorts landing: show language control; keep menu collapsed until tapped */
.ot-shorts-nav .ot-lang-switch {
    display: block;
    position: relative;
}
.ot-shorts-nav .ot-lang-menu:not(.open) {
    display: none !important;
}

.ot-lang-menu a {
    display: flex;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: .88rem;
    color: var(--ot-muted);
    text-decoration: none;
}

.ot-lang-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ot-text);
}

.ot-lang-menu a.active {
    color: var(--ot-accent-2);
}

.ot-mobile-nav__lang {
    display: flex;
    gap: 10px;
    padding: 12px 20px 0;
    border-top: 1px solid var(--ot-border);
    margin-top: 8px;
}

@media (min-width: 900px) {
    .ot-mobile-nav__lang { display: none; }
}

.ot-mobile-nav__lang a {
    color: var(--ot-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--ot-border);
}

.ot-mobile-nav__lang a.active,
.ot-mobile-nav__lang a:hover {
    color: var(--ot-accent-2);
    border-color: var(--ot-accent);
}

/* ---- ot-shorts-immersive-v5 (TikTok / OnlyFans full-viewport feed) ---- */
html:has(body.ot-landing-shorts) {
    overflow: hidden;
    height: 100%;
    background: #000;
}

body.ot-landing-shorts,
body.ot-landing-shorts .ot-body,
body.ot-landing-shorts .ot-main--shorts,
body.ot-landing-shorts .ot-tiktok--landing {
    background: #000 !important;
}

body.ot-landing-shorts {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.ot-landing-shorts * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.ot-landing-shorts *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

body.ot-landing-shorts .ot-tiktok--landing {
    --ot-shorts-top: 0;
    --ot-shorts-bottom: 0;
    --ot-scroll-h: 100dvh;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__scroll {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    transform: none;
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    background: #000;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    z-index: 1;
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__slide {
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    flex: 0 0 100dvh;
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__chrome--minimal {
    position: fixed;
    top: max(48px, calc(40px + env(safe-area-inset-top, 0px)));
    left: 0;
    right: 0;
    z-index: 56;
    padding: 0 10px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 100%);
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__toolbar--immersive {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    pointer-events: auto;
    padding: 2px 0 8px;
}

body.ot-landing-shorts .ot-filters--immersive {
    display: flex;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}

body.ot-landing-shorts .ot-filters--immersive .ot-filter-pill {
    flex: 0 0 auto;
    font-size: .68rem;
    padding: 5px 10px;
}

body.ot-landing-shorts .ot-filter-pill--categories,
body.ot-landing-shorts .ot-filter-pill--category-clear {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .68rem;
    padding: 5px 10px;
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__counter {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: .68rem;
    color: rgba(255, 255, 255, .72);
    background: rgba(0, 0, 0, .35);
    padding: 4px 8px;
    border-radius: 999px;
    pointer-events: none;
}

body.ot-landing-shorts .ot-shorts-nav {
    z-index: 60;
    background: linear-gradient(180deg, rgba(0, 0, 0, .65) 0%, transparent 100%);
}

body.ot-landing-shorts .ot-shorts-bottom {
    z-index: 60;
    background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 70%, transparent 100%);
    border-top: 0;
    backdrop-filter: blur(10px);
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__meta {
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 4px;
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__side {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__hint {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 58;
}

body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__dots,
body.ot-landing-shorts .ot-category-chips--scroll {
    display: none !important;
}

body.ot-landing-shorts .skip-link {
    position: absolute;
    left: -9999px;
}

@media (min-width: 900px) {
    body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__scroll {
        left: 50%;
        right: auto;
        width: min(420px, 100vw);
        max-width: min(420px, 100vw);
        transform: translateX(-50%);
        border-radius: 0;
        box-shadow: none;
    }

    body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__slide {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.ot-landing-shorts .ot-shorts-bottom {
        left: 50%;
        right: auto;
        width: min(420px, 100vw);
        max-width: min(420px, 100vw);
        transform: translateX(-50%);
        border-radius: 0;
    }

    body.ot-landing-shorts .ot-tiktok--landing .ot-tiktok__chrome--minimal {
        left: 50%;
        right: auto;
        width: min(420px, 100vw);
        transform: translateX(-50%);
    }
}
