/* Your Fav Movie Theme — main stylesheet
   ------------------------------------------------------------------ */

:root {
        --yfm-bg: #0f1020;
        --yfm-surface: #ffffff;
        --yfm-ink: #15161f;
        --yfm-muted: #5c6070;
        --yfm-line: #e6e6ef;
        --yfm-accent: #e0245e;
        --yfm-accent-2: #7c3aed;
        --yfm-card-bg: #ffffff;
        --yfm-radius: 14px;
        --yfm-shadow: 0 1px 3px rgba(15, 16, 32, 0.08);
        --yfm-shadow-lg: 0 18px 40px rgba(15, 16, 32, 0.16);
        --yfm-maxw: 1200px;
        --yfm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        --yfm-head: "Sora", var(--yfm-font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
        margin: 0;
        font-family: var(--yfm-font);
        color: var(--yfm-ink);
        background: #f6f6fb;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--yfm-head); line-height: 1.2; }

a { color: var(--yfm-accent); }

img { max-width: 100%; height: auto; }

.yfmt-container { max-width: var(--yfm-maxw); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
        border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
        height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
        position: absolute; left: -9999px; top: 0; z-index: 1000;
        background: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.yfmt-btn {
        display: inline-flex; align-items: center; justify-content: center;
        padding: 11px 20px; border-radius: 999px; font-weight: 700;
        text-decoration: none; cursor: pointer; border: none; font: inherit; font-weight: 700;
        transition: transform 0.15s ease, opacity 0.15s ease;
}
.yfmt-btn:hover { transform: translateY(-1px); }
.yfmt-btn--accent { background: var(--yfm-accent); color: #fff; }
.yfmt-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.yfmt-btn--lg { padding: 14px 28px; font-size: 1.05rem; }

/* ---- Header ---- */
.yfmt-header {
        position: sticky; top: 0; z-index: 100;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: saturate(180%) blur(10px);
        border-bottom: 1px solid var(--yfm-line);
}
.yfmt-header__inner {
        max-width: var(--yfm-maxw); margin: 0 auto; padding: 12px 20px;
        display: flex; align-items: center; gap: 18px;
}
.yfmt-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--yfm-ink); font-family: var(--yfm-head); font-weight: 800; }
.yfmt-logo__mark {
        display: inline-grid; place-items: center; width: 38px; height: 38px;
        border-radius: 10px; color: #fff; font-size: 0.8rem; letter-spacing: 0.02em;
        background: linear-gradient(135deg, var(--yfm-accent), var(--yfm-accent-2));
}
.yfmt-logo__text { font-size: 1.15rem; }
.custom-logo { max-height: 48px; width: auto; }

.yfmt-nav { margin-left: auto; }
.yfmt-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.yfmt-menu a {
        display: inline-block; padding: 8px 14px; text-decoration: none;
        color: var(--yfm-ink); font-weight: 600; border-radius: 8px;
}
.yfmt-menu a:hover, .yfmt-menu .current-menu-item > a { background: #f1f1f8; color: var(--yfm-accent); }
.yfmt-nav__toggle { display: none; }

.yfmt-header__actions { display: flex; align-items: center; gap: 12px; }
.yfmt-search-toggle { color: var(--yfm-ink); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.yfmt-search-toggle:hover { background: #f1f1f8; }

.yfmt-search-panel { display: none; border-top: 1px solid var(--yfm-line); background: #fff; }
.yfmt-search-panel.is-open { display: block; }
.yfmt-search-panel__inner { max-width: var(--yfm-maxw); margin: 0 auto; padding: 14px 20px; }

/* ---- Hero ---- */
.yfmt-hero {
        position: relative; color: #fff; text-align: center;
        padding: 80px 20px 90px;
        background:
                radial-gradient(1200px 500px at 50% -10%, rgba(124, 58, 237, 0.55), transparent 60%),
                radial-gradient(900px 500px at 80% 120%, rgba(224, 36, 94, 0.45), transparent 60%),
                var(--yfm-bg);
}
.yfmt-hero__inner { max-width: 820px; margin: 0 auto; }
.yfmt-hero__eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; opacity: 0.8; margin: 0 0 14px; }
.yfmt-hero__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 18px; }
.yfmt-hero__sub { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.86; max-width: 640px; margin: 0 auto 28px; }
.yfmt-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.yfmt-hero__search { max-width: 560px; margin: 0 auto; }

/* ---- Rows / sections ---- */
.yfmt-row { margin: 44px 0; }
.yfmt-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.yfmt-row__title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin: 0; }
.yfmt-row__more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---- Movie card (theme styling layered on plugin markup) ---- */
.yfm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.yfm-movie-grid .yfm-card {
        background: var(--yfm-card-bg); border-radius: var(--yfm-radius);
        overflow: hidden; box-shadow: var(--yfm-shadow); display: flex; flex-direction: column;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.yfm-movie-grid .yfm-card:hover { transform: translateY(-5px); box-shadow: var(--yfm-shadow-lg); }

/* ---- Genres block ---- */
.yfmt-genres-block { margin: 44px 0; }

/* ---- How it works ---- */
.yfmt-how { margin: 56px 0; }
.yfmt-how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.yfmt-how__step { background: #fff; border-radius: var(--yfm-radius); padding: 24px; box-shadow: var(--yfm-shadow); }
.yfmt-how__num {
        display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
        background: linear-gradient(135deg, var(--yfm-accent), var(--yfm-accent-2)); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.yfmt-how__step h3 { margin: 0 0 6px; }
.yfmt-how__step p { margin: 0; color: var(--yfm-muted); }

/* ---- Newsletter ---- */
.yfmt-newsletter { margin: 56px 0; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--yfm-accent-2), var(--yfm-accent)); color: #fff; }
.yfmt-newsletter__inner { padding: 40px 28px; text-align: center; max-width: 620px; margin: 0 auto; }
.yfmt-newsletter__title { margin: 0 0 8px; }
.yfmt-newsletter__sub { margin: 0 0 20px; opacity: 0.9; }
.yfmt-newsletter__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.yfmt-newsletter__form input { flex: 1; padding: 13px 16px; border: none; border-radius: 999px; font: inherit; }
.yfmt-newsletter__form button { padding: 13px 24px; border: none; border-radius: 999px; background: #15161f; color: #fff; font-weight: 700; cursor: pointer; }

/* ---- Breadcrumbs ---- */
.yfmt-breadcrumbs { font-size: 0.85rem; color: var(--yfm-muted); padding: 18px 0 4px; }
.yfmt-breadcrumbs a { color: var(--yfm-muted); text-decoration: none; }
.yfmt-breadcrumbs a:hover { color: var(--yfm-accent); }

/* ---- Archive ---- */
.yfmt-archive__head { padding: 24px 0; }
.yfmt-archive__title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 6px; }
.yfmt-archive__sub { color: var(--yfm-muted); margin: 0; }
.yfmt-archive__search { margin-top: 16px; }

/* ---- Sort bar ---- */
.yfmt-sortbar { display: flex; align-items: center; gap: 12px; margin: 8px 0 24px; flex-wrap: wrap; }
.yfmt-sortbar__label { font-weight: 700; color: var(--yfm-muted); }
.yfmt-sortbar__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.yfmt-sortbar__link { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--yfm-line); text-decoration: none; color: var(--yfm-ink); font-weight: 600; font-size: 0.9rem; }
.yfmt-sortbar__link.is-active, .yfmt-sortbar__link:hover { background: var(--yfm-accent); color: #fff; border-color: transparent; }

/* ---- Single movie ---- */
.yfmt-movie__hero { background: linear-gradient(180deg, #14152b, #1d1d3a); color: #fff; padding: 30px 0 36px; }
.yfmt-movie__hero-inner { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.yfmt-movie__poster img, .yfmt-movie__poster .yfm-card__noposter { width: 100%; border-radius: var(--yfm-radius); box-shadow: var(--yfm-shadow-lg); aspect-ratio: 2/3; object-fit: cover; }
.yfmt-movie__title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 14px; }
.yfmt-movie__year { opacity: 0.7; font-weight: 400; }
.yfmt-movie__facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; color: rgba(255,255,255,0.85); }
.yfmt-movie__facts a { color: #ffd0de; }
.yfmt-movie__engage { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; margin-bottom: 18px; background: rgba(255,255,255,0.06); padding: 16px; border-radius: var(--yfm-radius); }

.yfmt-movie__layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding-top: 32px; padding-bottom: 32px; }
.yfmt-movie__section { margin-bottom: 36px; }
.yfmt-movie__section h2 { font-size: 1.4rem; margin: 0 0 14px; }
.yfmt-movie__trailer { position: relative; aspect-ratio: 16/9; }
.yfmt-movie__trailer iframe { width: 100%; height: 100%; border-radius: var(--yfm-radius); }

.yfmt-watch-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.yfmt-watch-list__item { display: inline-block; padding: 10px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--yfm-line); text-decoration: none; font-weight: 600; color: var(--yfm-ink); }
.yfmt-watch-list__item:hover { border-color: var(--yfm-accent); color: var(--yfm-accent); }
.yfmt-watch-note { font-size: 0.85rem; color: var(--yfm-muted); }

/* ---- Share ---- */
.yfmt-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yfmt-share__label { font-weight: 700; opacity: 0.8; }
.yfmt-share__btn { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.yfmt-movie__main .yfmt-share__btn, .yfmt-post-card .yfmt-share__btn { background: #f1f1f8; color: var(--yfm-ink); }
.yfmt-share__btn:hover { background: var(--yfm-accent); color: #fff; }

/* ---- Sidebar / widgets ---- */
.yfmt-sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: #fff; border-radius: var(--yfm-radius); padding: 20px; box-shadow: var(--yfm-shadow); }
.widget-title { font-size: 1.1rem; margin: 0 0 14px; }
.yfmt-widget .yfm-list { list-style: none; margin: 0; padding: 0; }

/* ---- Blog ---- */
.yfmt-blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding-top: 24px; padding-bottom: 36px; }
.yfmt-postlist { display: grid; gap: 28px; }
.yfmt-post-card { background: #fff; border-radius: var(--yfm-radius); overflow: hidden; box-shadow: var(--yfm-shadow); }
.yfmt-post-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.yfmt-post-card__body { padding: 22px 24px 26px; }
.yfmt-post-card__meta { display: flex; gap: 12px; font-size: 0.82rem; color: var(--yfm-muted); margin-bottom: 8px; }
.yfmt-post-card__title { margin: 0 0 10px; font-size: 1.5rem; }
.yfmt-post-card__title a { color: inherit; text-decoration: none; }
.yfmt-readmore { font-weight: 700; text-decoration: none; }

.yfmt-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.yfmt-postnav a { text-decoration: none; font-weight: 600; }

/* ---- Comments ---- */
.yfmt-comments { margin-top: 28px; background: #fff; border-radius: var(--yfm-radius); padding: 24px; box-shadow: var(--yfm-shadow); }
.yfmt-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.yfmt-comment-list .children { list-style: none; margin-left: 24px; }
.yfmt-comments .comment-body { border-bottom: 1px solid var(--yfm-line); padding: 16px 0; }
.yfmt-comments .comment-author { font-weight: 700; }
.yfmt-comments .comment-form input[type="text"],
.yfmt-comments .comment-form input[type="email"],
.yfmt-comments .comment-form input[type="url"],
.yfmt-comments .comment-form textarea {
        width: 100%; padding: 12px 14px; border: 1px solid var(--yfm-line); border-radius: 10px; font: inherit; box-sizing: border-box;
}
.yfmt-comments .comment-form p { margin-bottom: 14px; }

/* ---- Page ---- */
.yfmt-page { padding-top: 12px; padding-bottom: 40px; max-width: 820px; }
.yfmt-page--wide { max-width: var(--yfm-maxw); }
.yfmt-page__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 22px; }
.yfmt-page__content { font-size: 1.05rem; }
.yfmt-page__content h2 { margin-top: 1.6em; }

/* ---- 404 ---- */
.yfmt-404 { text-align: center; padding: 60px 20px; }
.yfmt-404__code { font-size: clamp(4rem, 14vw, 9rem); margin: 0; background: linear-gradient(135deg, var(--yfm-accent), var(--yfm-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.yfmt-404__title { margin: 0 0 8px; }
.yfmt-404__sub { color: var(--yfm-muted); }
.yfmt-404__search { max-width: 480px; margin: 22px auto; }

/* ---- Pagination ---- */
.pagination, .navigation.pagination { margin: 36px 0; display: flex; justify-content: center; }
.pagination .nav-links, .navigation .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
        display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
        border-radius: 10px; background: #fff; border: 1px solid var(--yfm-line); text-decoration: none; color: var(--yfm-ink); font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--yfm-accent); color: #fff; border-color: transparent; }

/* ---- Footer ---- */
.yfmt-footer { background: var(--yfm-bg); color: #c9cad8; margin-top: 60px; }
.yfmt-footer__inner { max-width: var(--yfm-maxw); margin: 0 auto; padding: 48px 20px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.yfmt-footer .yfmt-logo { color: #fff; }
.yfmt-footer__tag { margin: 14px 0 0; opacity: 0.7; max-width: 320px; }
.yfmt-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.yfmt-footer__menu a { color: #c9cad8; text-decoration: none; }
.yfmt-footer__menu a:hover { color: #fff; }
.yfmt-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 20px; text-align: center; font-size: 0.85rem; opacity: 0.7; }
.yfmt-footer__bottom p { margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
        .yfmt-movie__layout, .yfmt-blog-layout { grid-template-columns: 1fr; }
        .yfmt-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
        .yfmt-nav { position: fixed; inset: 64px 0 auto 0; margin: 0; background: #fff; border-bottom: 1px solid var(--yfm-line); transform: translateY(-120%); transition: transform 0.25s ease; }
        .yfmt-nav.is-open { transform: translateY(0); }
        .yfmt-menu { flex-direction: column; padding: 12px 20px; }
        .yfmt-nav__toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--yfm-line); border-radius: 10px; background: #fff; cursor: pointer; }
        .yfmt-nav__bar, .yfmt-nav__bar::before, .yfmt-nav__bar::after { display: block; width: 20px; height: 2px; background: var(--yfm-ink); position: relative; }
        .yfmt-nav__bar::before, .yfmt-nav__bar::after { content: ""; position: absolute; left: 0; }
        .yfmt-nav__bar::before { top: -6px; }
        .yfmt-nav__bar::after { top: 6px; }
        .yfmt-movie__hero-inner { grid-template-columns: 140px 1fr; gap: 18px; }
        .yfmt-header__actions .yfmt-btn { display: none; }
}
@media (max-width: 480px) {
        .yfmt-footer__inner { grid-template-columns: 1fr; }
        .yfm-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
        .yfmt-newsletter__form { flex-direction: column; }
}

/* ---- Accessibility & motion ---- */
@media (prefers-reduced-motion: reduce) {
        * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 3px solid var(--yfm-accent-2); outline-offset: 2px; }
