/* =====================================================================
   Kinoo – device & orientation tweaks (phones, tablets, desktops, TVs)
   ===================================================================== */

/* Big screens & TVs: the theme is sized in rem/em, so scaling the root
   font scales the whole layout (text, cards, spacing) proportionally. */
@media (min-width: 2200px) { html { font-size: 125%; } }
@media (min-width: 2800px) { html { font-size: 150%; } }
@media (min-width: 3600px) { html { font-size: 200%; } }

/* TV remotes / keyboards: make the focused item obvious */
a:focus-visible, button:focus-visible, .nav-link:focus-visible, .btn:focus-visible,
.inline-watch-trigger:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #e50914 !important;
  outline-offset: 3px;
  border-radius: 6px;
}
.iq-card:focus-within { transform: translateY(-2px); }

/* Phones turned sideways (short landscape screens) */
@media (orientation: landscape) and (max-height: 540px) {
  /* home hero */
  .iq-banner-thumb-slider .slider .slider-bg .slider-images .swiper-wrapper .banner-bg .slider-content-full-height {
    min-height: calc(100vh - 3em);
    padding: 4.5em 0 3.75em;
  }
  .iq-banner-thumb-slider .slider-content .big-font { font-size: 2em; margin-bottom: .2em !important; }
  .iq-banner-thumb-slider .slider-content p.line-count-3 { -webkit-line-clamp: 2; margin: .35em 0 !important; }
  .iq-banner-thumb-slider .slider-content .RightAnimate-three { padding: .15em 0 !important; }
  .iq-banner-thumb-slider .slider-content .RightAnimate-four { margin-top: .6em !important; padding-top: 0 !important; }
  .iq-banner-thumb-slider .horizontal_thumb_slider { display: none; }

  /* movies / shows hero */
  .movie-banner .movie-banner-image,
  .movie-banner .slider-content-full-height { min-height: calc(100vh - 3em); }
  .movie-banner .big-font { font-size: 2em; }
  .movie-banner .movie-banner-text { -webkit-line-clamp: 2; margin-bottom: .6em; }

  /* title pages: smaller backdrop so the title & play button are visible */
  .iq-main-slider.site-video { padding-bottom: 46vh !important; }
  .movie-detail-part .trending-text { font-size: 1.6em; }
  .movie-detail-part .my-5 { margin-top: 1.25em !important; margin-bottom: 1.25em !important; }

  /* compact bottom bar */
  .streamit-mobile-footer-menu .footer-menu { padding: .25em 1em !important; }
  .streamit-mobile-footer-menu .footer-menu li a span { display: none; }

  /* inline player uses the whole height */
  .inline-watch-section .inline-watch-player-wrap { max-height: calc(100vh - 4em); }
}

/* Small phones */
@media (max-width: 380px) {
  .iq-banner-thumb-slider .slider-content .big-font,
  .movie-banner .big-font { font-size: 1.8em; }
  .catalog-poster-grid.row-cols-3 > * { flex: 0 0 auto; width: 50%; }
}

/* Notches / rounded corners (iPhone, Android cut-outs) */
@supports (padding: env(safe-area-inset-left)) {
  .apna-watch-bar { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); padding-top: max(14px, env(safe-area-inset-top)); }
  .streamit-mobile-footer-menu { padding-bottom: env(safe-area-inset-bottom); }
}

/* Full-window player: keep controls reachable on touch screens */
@media (hover: none) {
  .apna-player .vjs-control-bar { font-size: 1.15em; }
  .apna-player .vjs-big-play-button { transform: scale(1.2); }
}
.apna-player .apna-tap-zone { position: absolute; top: 0; bottom: 3em; width: 33%; z-index: 1; }
.apna-player .apna-seek-flash { position: absolute; top: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.6); color: #fff;
  border-radius: 50%; width: 4.5em; height: 4.5em; display: flex; align-items: center; justify-content: center; font: 600 14px/1 Roboto, sans-serif;
  opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 6; }
.apna-player .apna-seek-flash.show { opacity: 1; }

/* 4K header: logo & menu sized in px by the theme */
@media (min-width: 2800px) {
  header .logo, .logo-default img.logo { height: 3.2rem !important; width: auto; }
  header .navbar-nav .nav-link, header .nav-link { font-size: 1.05rem !important; }
  .apna-search-input { font-size: 1rem !important; height: 2.6rem; }
}

/* Banner titles: never cut a long name down to its first word */
.big-font.banner-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;word-break:normal;overflow-wrap:anywhere;line-height:1.08;max-width:100%}
.big-font.banner-title-md{font-size:3.6em}
.big-font.banner-title-lg{font-size:3em}
.big-font.banner-title-xl{font-size:2.5em}
@media (max-width:991px){.big-font.banner-title-md{font-size:2.4em}.big-font.banner-title-lg{font-size:2em}.big-font.banner-title-xl{font-size:1.7em}}
@media (max-width:575px){.big-font.banner-title{font-size:1.9em}.big-font.banner-title-lg,.big-font.banner-title-xl{font-size:1.5em}}

/* Software without a poster: show its icon centred on a soft card */
img.apna-icon-card{object-fit:contain!important;padding:24%;background:radial-gradient(circle at 50% 40%,#2b2b33 0,#141418 70%)}

.dev-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.dev-credit a:hover{color:var(--bs-primary,#e50914)}
