/* YabancıDizi V2 — mobile navigation, isolated from V1. No runtime styles. */
body.frontend-v2 .v36-mobile-bar,
body.frontend-v2 .v36-mobile-top-search,
body.frontend-v2 .v36-mobile-sheet,
body.frontend-v2 .v36-mobile-scrim {display:none}

@media (max-width:790px) {
  /* The V1 fixed bar / overlay must not coexist with the V2 bar. */
  body.frontend-v2 .header-mobile-nav,
  body.frontend-v2 .mobile-bottom-nav,
  body.frontend-v2 #mobileMoreSheet,
  body.frontend-v2 #mobileMoreOverlay,
  body.frontend-v2 .v2-mobile-toggle,
  body.frontend-v2 #v2MenuToggle,
  body.frontend-v2 .v2-topbar .v2-nav,
  body.frontend-v2 .v2-topbar .v2-head-actions,
  body.frontend-v2 .v2-topbar .v2-search-link {display:none!important}

  body.frontend-v2 {padding-bottom:calc(78px + env(safe-area-inset-bottom, 0px))!important}
  body.frontend-v2 .v2-topbar {height:auto!important;min-height:62px!important}
  body.frontend-v2 .v2-topbar .v2-top-inner {
    height:62px!important;min-height:62px!important;
    padding:0 16px!important;gap:12px!important;
    display:flex!important;justify-content:space-between!important;align-items:center!important;
  }
  body.frontend-v2 .v2-topbar .v2-brand {min-width:0!important;max-width:calc(100% - 60px)!important}
  body.frontend-v2 .v2-topbar .v2-brand img {
    height:35px!important;max-width:min(192px,65vw)!important;
    width:auto!important;object-fit:contain!important;
  }
  body.frontend-v2 .v2-topbar .v36-mobile-top-search {
    flex:0 0 40px!important;display:grid!important;place-items:center!important;
    width:40px!important;height:40px!important;border-radius:12px!important;
    background:var(--v2-panel,#151922)!important;
    border:1px solid var(--v2-line,rgba(255,255,255,.13))!important;
    color:var(--v2-text,#f4f5fa)!important;text-decoration:none!important;
    margin-left:auto!important;padding:0!important;box-shadow:none!important;
  }
  body.frontend-v2 .v36-mobile-top-search svg{width:20px;height:20px}
  body.frontend-v2 .v36-mobile-top-search:hover {background:var(--v2-surface,#171b22)!important}

  /* Five safe-area-aware, thumb-accessible navigation tabs. */
  body.frontend-v2 .v36-mobile-bar {
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;position:fixed;left:0;right:0;bottom:0;
    z-index:7900;height:calc(66px + env(safe-area-inset-bottom, 0px));
    padding:5px max(6px,env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px,env(safe-area-inset-right, 0px));
    border-top:1px solid var(--v2-line,rgba(255,255,255,.13));
    background:color-mix(in srgb,var(--v2-panel,#151922) 95%,#111721);
    box-shadow:0 -8px 30px rgba(0,0,0,.25);
    isolation:isolate;
  }
  body.frontend-v2 .v36-mobile-bar .v36-nav-item {
    appearance:none;-webkit-appearance:none;box-sizing:border-box;
    min-width:0!important;width:100%!important;min-height:52px!important;
    margin:0!important;padding:5px 1px!important;
    display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px!important;
    border:0!important;border-radius:12px!important;background:transparent!important;
    color:var(--v2-muted,#a5adbd)!important;font-size:10px!important;font-weight:500!important;
    line-height:1.1!important;text-decoration:none!important;white-space:nowrap;
    box-shadow:none!important;transform:none!important;
    transition:color .15s ease,background-color .15s ease!important;cursor:pointer;
  }
  body.frontend-v2 .v36-mobile-bar .v36-nav-item svg {
    display:block;width:22px;height:22px;flex:0 0 22px;
    fill:none;stroke:currentColor;opacity:.95;
  }
  body.frontend-v2 .v36-mobile-bar .v36-nav-item svg[fill="currentColor"]{fill:currentColor;stroke:none}
  body.frontend-v2 .v36-mobile-bar .v36-nav-item span {
    display:block!important;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;
    font-size:10px!important;line-height:1.2!important;font-weight:500!important;
  }
  body.frontend-v2 .v36-mobile-bar .v36-nav-item:hover,
  body.frontend-v2 .v36-mobile-bar .v36-nav-item:focus-visible,
  body.frontend-v2 .v36-mobile-bar .v36-nav-item.is-active,
  body.frontend-v2 .v36-mobile-bar .v36-nav-item[aria-expanded="true"] {
    color:var(--v2-text,#f4f5fa)!important;
    background:color-mix(in srgb,var(--v2-accent,#c1224e) 13%,transparent)!important;
  }
  body.frontend-v2 .v36-mobile-bar .v36-nav-item.is-active svg,
  body.frontend-v2 .v36-mobile-bar .v36-nav-item[aria-expanded="true"] svg {
    color:var(--v2-accent,#c1224e)!important;
  }
  body.frontend-v2 .v36-mobile-bar .v36-nav-item:focus-visible,
  body.frontend-v2 .v36-sheet-close:focus-visible {
    outline:2px solid var(--v2-text,#f4f5fa)!important;outline-offset:-2px;
  }

  body.frontend-v2 .v36-mobile-scrim:not([hidden]) {
    display:block!important;position:fixed;inset:0;z-index:8000;
    background:rgba(0,0,0,.56);backdrop-filter:blur(2px);
  }
  body.frontend-v2 .v36-mobile-sheet:not([hidden]) {
    display:block!important;position:fixed;left:10px;right:10px;
    bottom:calc(70px + env(safe-area-inset-bottom,0px));
    z-index:8100;box-sizing:border-box;padding:10px 14px 14px;
    max-height:min(65dvh,480px);overflow-y:auto;overscroll-behavior:contain;
    border:1px solid var(--v2-line,rgba(255,255,255,.13));border-radius:20px;
    background:var(--v2-panel,#151922);box-shadow:0 16px 48px rgba(0,0,0,.45);
  }
  body.frontend-v2 .v36-mobile-sheet[hidden],
  body.frontend-v2 .v36-mobile-scrim[hidden],
  body.frontend-v2 .v36-sheet-section[hidden] {display:none!important}
  body.frontend-v2 .v36-sheet-head {
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    position:relative;padding:18px 6px 12px;border-bottom:1px solid var(--v2-line,rgba(255,255,255,.13));
  }
  body.frontend-v2 .v36-sheet-handle {
    position:absolute;top:0;left:50%;transform:translateX(-50%);
    width:34px;height:4px;background:rgba(255,255,255,.18);border-radius:20px;
  }
  body.frontend-v2 .v36-sheet-head h2 {font-size:16px!important;font-weight:650!important;color:var(--v2-text,#fff)!important;margin:0!important}
  body.frontend-v2 .v36-sheet-close {
    display:grid!important;place-items:center!important;min-width:32px!important;height:32px!important;
    border-radius:9px!important;border:1px solid var(--v2-line,rgba(255,255,255,.13))!important;
    background:var(--v2-surface,#191d26)!important;color:var(--v2-text,#fff)!important;
    font-size:23px!important;line-height:1!important;cursor:pointer;
  }
  body.frontend-v2 .v36-sheet-section:not([hidden]){display:grid!important;grid-template-columns:1fr;gap:4px;margin-top:10px}
  body.frontend-v2 .v36-sheet-section a {
    display:flex!important;align-items:center;justify-content:space-between;
    min-height:48px;padding:8px 10px;border-radius:11px;
    color:var(--v2-text,#fff)!important;font-size:13px!important;font-weight:530!important;text-decoration:none!important;
  }
  body.frontend-v2 .v36-sheet-section a:hover,
  body.frontend-v2 .v36-sheet-section a:focus-visible {background:var(--v2-surface,#1b2029)!important}
  body.frontend-v2 .v36-sheet-section a svg{width:18px;height:18px;opacity:.56;stroke-width:1.8}
}
@media (max-width:350px) {
  body.frontend-v2 .v36-mobile-bar .v36-nav-item span {font-size:9px!important}
  body.frontend-v2 .v2-topbar .v2-brand img {max-width:155px!important}
}
@media (min-width:791px) {
  body.frontend-v2 .v36-mobile-bar,
  body.frontend-v2 .v36-mobile-sheet,
  body.frontend-v2 .v36-mobile-scrim,
  body.frontend-v2 .v36-mobile-top-search {display:none!important}
}
@media (prefers-reduced-motion:reduce) {
  body.frontend-v2 .v36-mobile-bar .v36-nav-item{transition:none!important}
}
