/* Portrait websites and WebApps use the full-screen mobile app layout. */
.mobile-tabbar {
  display: none;
}

html[data-ui="mobile"] {
    --mobile-nav-height: calc(54px + env(safe-area-inset-bottom, 0px));
    --mobile-touch-easing: cubic-bezier(.22, .7, .24, 1);
  }

html[data-ui="mobile"],
  html[data-ui="mobile"] body {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    overscroll-behavior: none;
  }

html[data-ui="mobile"] .sidebar {
    display: none;
  }

html[data-ui="mobile"] .workspace {
    width: 100%;
    height: calc(100dvh - var(--mobile-nav-height));
    margin-left: 0;
  }

html[data-ui="mobile"] .main-content {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

html[data-ui="mobile"] .watch-layout,
  html[data-ui="mobile"] .watch-layout.panel-open {
    width: 100%;
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

html[data-ui="mobile"] .watch-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 0;
  }

html[data-ui="mobile"] .watch-column > .video-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #000;
  }

html[data-ui="mobile"] .video-stage {
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    background: #000;
  }

html[data-ui="mobile"] .video-stage video {
    object-fit: contain;
    object-position: center;
    filter: none;
    background: #000;
  }

html[data-ui="mobile"] .video-vignette {
    background: linear-gradient(0deg, #000b 0%, #0004 19%, transparent 43%, transparent 80%, #0004 100%);
  }

html[data-ui="mobile"] .player-controls,
  html[data-ui="mobile"] .cinematic-title,
  html[data-ui="mobile"] .watch-column > .feed-navigation,
  html[data-ui="mobile"] .watch-column > .watch-footer,
  html[data-ui="mobile"] .social-divider,
  html[data-ui="mobile"] .record-disc,
  html[data-ui="mobile"] .clean-button,
  html[data-ui="mobile"] .quality-label,
  html[data-ui="mobile"] #volume {
    display: none;
  }

html[data-ui="mobile"] .play-overlay {
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    filter: drop-shadow(0 2px 12px #0004);
  }

html[data-ui="mobile"] .play-overlay svg {
    width: 56px;
    height: 56px;
    fill: #ffffffb3;
    stroke: #ffffffb3;
  }

html[data-ui="mobile"] .video-info {
    left: max(14px, env(safe-area-inset-left, 0px));
    right: 78px;
    bottom: 18px;
    text-shadow: 0 1px 5px #000a;
  }

html[data-ui="mobile"] .creator-row {
    margin-bottom: 9px;
  }

html[data-ui="mobile"] .creator-row strong {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
  }

html[data-ui="mobile"] .video-title-line {
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 7px;
  }

html[data-ui="mobile"] .video-title-line h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
  }

html[data-ui="mobile"] .episode-label {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.5;
  }

html[data-ui="mobile"] .video-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 12px;
    line-height: 1.7;
  }

html[data-ui="mobile"] .video-info p span {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #f3f3f3;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

html[data-ui="mobile"] .music-line {
    margin-top: 9px;
    font-size: 10px;
  }

html[data-ui="mobile"] .social-rail {
    right: max(7px, env(safe-area-inset-right, 0px));
    bottom: 17px;
    width: 56px;
    gap: 13px;
  }

html[data-ui="mobile"] .creator-action {
    width: 48px;
    height: 72px;
  }

html[data-ui="mobile"] .creator-profile-button {
    top: 0;
    left: 2px;
    width: 44px;
    height: 44px;
  }

html[data-ui="mobile"] .avatar-follow-button {
    top: 28px;
    left: 2px;
    width: 44px;
    height: 44px;
  }

html[data-ui="mobile"] .avatar-follow-button > svg,
  html[data-ui="mobile"] .avatar-follow-button > span > svg {
    width: 24px;
    height: 24px;
    padding: 4px;
  }

html[data-ui="mobile"] .social-button {
    width: 52px;
    min-width: 44px;
    height: 55px;
    min-height: 44px;
    padding: 0;
    gap: 5px;
  }

html[data-ui="mobile"] .social-button svg {
    width: 31px;
    height: 31px;
  }

html[data-ui="mobile"] .social-button small {
    font-size: 11px;
    line-height: 16px;
  }

html[data-ui="mobile"] .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    height: var(--mobile-nav-height);
    padding: 0 max(5px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(5px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #ffffff0d;
    background: #080808;
    -webkit-user-select: none;
    user-select: none;
  }

html[data-ui="mobile"] .mobile-tabbar > button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 53px;
    min-height: 44px;
    padding: 0 4px;
    color: #b1b1b6;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    touch-action: manipulation;
    transition: color 160ms ease, opacity 160ms ease;
  }

html[data-ui="mobile"] .mobile-tabbar > button.is-active,
  html[data-ui="mobile"] .mobile-tabbar > button[aria-current="page"] {
    color: #fff;
  }

html[data-ui="mobile"] .mobile-tabbar > button.is-active::after,
  html[data-ui="mobile"] .mobile-tabbar > button[aria-current="page"]::after {
    position: absolute;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: "";
  }

html[data-ui="mobile"] .mobile-tabbar > .mobile-publish {
    align-self: center;
    justify-self: center;
    width: 43px;
    height: 30px;
    min-height: 30px;
    margin-bottom: 1px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 7px;
    background: #fff;
    color: #111;
    box-shadow: -3px 0 #22d2db, 3px 0 #ff365d;
  }

html[data-ui="mobile"] .mobile-publish svg {
    width: 24px;
    height: 24px;
    stroke-width: 3;
  }

html[data-ui="mobile"] .account-login-trigger {
    display: none;
  }

html[data-ui="mobile"] .guest-account-menu {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    max-height: calc(100dvh - var(--mobile-nav-height) - 24px - env(safe-area-inset-top, 0px));
  }

html[data-ui="mobile"] .drawer {
    top: 0;
    bottom: var(--mobile-nav-height);
    width: min(100vw, 420px);
    max-width: 100%;
    overscroll-behavior: contain;
  }

html[data-ui="mobile"] .watch-layout.panel-open .series-panel {
    top: 0;
    bottom: var(--mobile-nav-height);
    width: min(100vw, 390px);
    max-width: 100%;
    overscroll-behavior: contain;
  }

html[data-ui="mobile"] .toast {
    bottom: calc(var(--mobile-nav-height) + 18px);
  }

html[data-ui="mobile"] .watch-column:fullscreen {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    gap: 0;
  }

html[data-ui="mobile"] .watch-column:fullscreen > .video-shell {
    height: 100%;
  }

@media (max-width: 360px) {
  html[data-ui="mobile"] .video-info {
    left: 12px;
    right: 72px;
    bottom: 15px;
  }

  html[data-ui="mobile"] .creator-row strong {
    font-size: 14px;
  }

  html[data-ui="mobile"] .video-title-line h2 {
    font-size: 13px;
  }

  html[data-ui="mobile"] .video-info p {
    font-size: 11px;
  }

  html[data-ui="mobile"] .video-info p span,
  html[data-ui="mobile"] .music-line {
    font-size: 9px;
  }

  html[data-ui="mobile"] .social-rail {
    right: 4px;
    gap: 10px;
  }

  html[data-ui="mobile"] .mobile-tabbar > button {
    font-size: 15px;
  }
}

@media (max-height: 650px) {
  html[data-ui="mobile"] .social-rail {
    bottom: 12px;
    gap: 7px;
  }

  html[data-ui="mobile"] .creator-action {
    height: 68px;
  }

  html[data-ui="mobile"] .social-button {
    height: 48px;
  }

  html[data-ui="mobile"] .social-button svg {
    width: 28px;
    height: 28px;
  }

  html[data-ui="mobile"] .music-line {
    display: none;
  }
}

html[data-ui="mobile"] .mobile-tabbar>button{position:relative}

html[data-ui="mobile"] .mobile-tabbar>button.is-active::after,html[data-ui="mobile"] .mobile-tabbar>button[aria-current="page"]::after{bottom:7px}

html[data-ui="mobile"] .mobile-tabbar>.mobile-publish{position:relative;width:52px;height:53px;min-height:44px;margin:0;border:0;background:none;box-shadow:none}

html[data-ui="mobile"] .mobile-tabbar>.mobile-publish::before{content:"";position:absolute;left:6px;right:6px;top:12px;height:29px;border-radius:6px;background:#fff;box-shadow:-3px 0 #22d2db,3px 0 #ff365d}

html[data-ui="mobile"] .mobile-publish>span{position:relative;z-index:1}
