/* Copyright 2026 nowtour.net. NowTour site customization. */
/* Portrait feed; keep the downloaded theme navigation and local links. */
.shorts-layout .king-editorschoice { display: none !important; }
.shorts-layout #primary { padding-top: 26px; padding-bottom: 40px; }
.shorts-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.shorts-heading h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.25; font-weight: 800; }
.shorts-heading p { margin: 0; font-size: 14px; color: #777; }
.shorts-logo { display: grid; place-items: center; width: 38px; height: 46px; border-radius: 12px; background: #ff1744; color: white; font-size: 21px; transform: rotate(-9deg); }
.shorts-layout .king-posts { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 18px; height: auto !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.shorts-layout .king-posts .grid-sizer,
.shorts-layout .king-posts .gutter-sizer { display: none !important; }
.shorts-layout .king-posts .king-post-item { position: relative !important; top: auto !important; left: auto !important; transform: none !important; float: none !important; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
.shorts-layout .king-posts .king-post-item[hidden] { display: none !important; }
.shorts-layout .king-posts article { width: 100%; margin: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.shorts-layout .king-posts .entry-image-link { display: block; position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; background: #222; isolation: isolate; }
.shorts-layout .king-posts .entry-image { width: 100% !important; height: 100% !important; min-height: 0 !important; position: absolute !important; inset: 0; margin: 0 !important; border-radius: 0; }
.shorts-layout .king-posts .king-box-bg,
.shorts-layout .king-posts .king-box-bg > span { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover !important; background-position: center !important; }
.shorts-layout .king-posts .entry-image-link::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,#0008); pointer-events: none; }
.shorts-badge { position: absolute; left: 12px; bottom: 12px; z-index: 2; color: white; font: 800 10px/1.2 Arial,sans-serif; letter-spacing: 1px; background: #ffffff26; border: 1px solid #ffffff50; border-radius: 5px; padding: 5px 7px; }
.shorts-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; border-radius: 50%; color: white; background: #0005; font-size: 19px; opacity: 0; transition: opacity .18s; }
.entry-image-link:hover .shorts-play,.entry-image-link:focus-visible .shorts-play { opacity: 1; }
.shorts-layout .king-posts .post-featured-trending { display: none; }
.shorts-layout .king-posts .article-meta-11 { display: flex; gap: 9px; padding: 12px 0 0; margin: 0; }
.shorts-layout .king-posts .meta-11-left { flex: 0 0 28px; width: 28px; margin: 0; }
.shorts-layout .king-posts .content-author-avatar { width: 28px; height: 28px; border-radius: 50%; }
.shorts-layout .king-posts .meta-11-right { min-width: 0; flex: 1; padding: 0; }
.shorts-layout .king-posts .entry-title { margin: 0 0 5px; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shorts-layout .king-posts .content-11-user,
.shorts-layout .king-posts .content-11-post-views { font-size: 12px; line-height: 1.6; color: #777; }
.shorts-layout .king-posts .content-11-post-views { display: block; }
.king-night .shorts-heading p,.king-night .shorts-layout .king-posts .content-11-user,.king-night .shorts-layout .king-posts .content-11-post-views { color: #aaa; }
@media (max-width: 1250px) { .shorts-layout .king-posts { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1000px) { .shorts-layout .king-posts { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 600px) {
  .shorts-layout #primary { padding: 20px 12px 30px; }
  .shorts-layout .king-posts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .shorts-heading { gap: 11px; margin-bottom: 20px; }
  .shorts-heading h1 { font-size: 22px; }
  .shorts-heading p { font-size: 12px; }
  .shorts-layout .king-posts .entry-image-link { border-radius: 12px; }
  .shorts-layout .king-posts .meta-11-left { display: none; }
  .shorts-layout .king-posts .entry-title { font-size: 14px; }
}

/* Size the feed from available space, including after rotation or zoom. */
.shorts-layout .site-content,.shorts-layout #primary,.shorts-layout #main { min-width: 0; }
.shorts-layout #primary { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: clamp(12px,2vw,32px) !important; }
.shorts-layout #primary .site-main-top { width: 100%; margin: 0; }
.shorts-layout #primary #main { width: 100%; padding: 0; flex: 1; }
.shorts-layout .king-posts { grid-template-columns: repeat(auto-fill,minmax(min(100%,200px),1fr)); }
.shorts-layout .king-posts .entry-title a { font-size: inherit !important; line-height: inherit !important; overflow-wrap: anywhere; }
.shorts-layout .king-posts .meta-11-left { padding: 0; }
.shorts-layout .shorts-heading > div { min-width: 0; }
.shorts-layout .shorts-logo { flex-shrink: 0; }
.shorts-layout .header-template-09 .site-content,
.shorts-layout .header-template-09 .site-footer { padding-left: 0 !important; transition: none; }
.shorts-layout .header-template-09.shorts-menu-open .site-content,
.shorts-layout .header-template-09.shorts-menu-open .site-footer { padding-left: 240px !important; }
.shorts-layout .header-template-09 .king-leftmenu { left: -280px !important; visibility: hidden !important; padding: 20px 16px; width: 240px; overflow-y: auto; overscroll-behavior: contain; }
.shorts-layout .header-template-09.shorts-menu-open .king-leftmenu { left: 0 !important; visibility: visible !important; }
@media (min-width:1101px) {
  .shorts-layout .header-template-09:not([data-shorts-menu-ready]) .site-content,
  .shorts-layout .header-template-09:not([data-shorts-menu-ready]) .site-footer { padding-left:240px!important; }
  .shorts-layout .header-template-09:not([data-shorts-menu-ready]) .king-leftmenu { left:0!important; visibility:visible!important; }
}
.shorts-layout .king-leftmenu-nav { margin-top: 12px; }
.shorts-layout .king-leftmenu a { min-height: 44px; display: flex; align-items: center; }
.shorts-layout .king-header { gap: 12px; padding-inline: clamp(12px,2vw,28px); }
.shorts-layout #t09-toggle { flex: 0 0 44px; width: 44px; height: 44px; }
.shorts-layout .site-branding { flex-shrink: 0; }
.shorts-layout .king-search-top { flex: 1; min-width: 0; max-width: 600px; }
.shorts-layout .header-template-09 .king-search-top .king-search { width: 100%; margin: 0; }
.shorts-layout .header-search-form { width: 100%; }
.shorts-layout .header-search-field { width: 100%; min-width: 0; font-size: 16px; }
.shorts-layout .king-header-right { flex: 0 0 auto; }
.shorts-layout .head-icons { min-width: 44px; min-height: 44px; }
.shorts-menu-backdrop { display: none; }
.shorts-layout a:focus-visible,.shorts-layout [role=button]:focus-visible,.shorts-layout button:focus-visible { outline: 3px solid #ff1744; outline-offset: 3px; }
@media (max-width: 1100px) {
  .shorts-layout .header-template-09.shorts-menu-open .site-content,
  .shorts-layout .header-template-09.shorts-menu-open .site-footer { padding-left: 0 !important; }
  .shorts-layout .header-template-09 .king-leftmenu { z-index: 30; width: min(280px,85vw); }
  .shorts-layout .shorts-menu-open .shorts-menu-backdrop { display: block; position: fixed; inset: 66px 0 0; z-index: 20; background: #0006; border: 0; width: 100%; height: calc(100dvh - 66px); border-radius: 0; }
}
@media (max-width: 768px) {
  .shorts-layout .king-header { height: 116px; flex-wrap: wrap; align-content: flex-start; gap: 0 8px; padding: 8px 12px; }
  .shorts-layout .site-branding { margin-right: auto; height: 44px; display: flex; align-items: center; }
  .shorts-layout .king-search-top { display: block !important; order: 4; flex: 0 0 100%; max-width: none; height: 44px; margin-top: 8px; }
  .shorts-layout .king-search { display: block !important; }
  .shorts-layout .header-search-form,.shorts-layout .header-search-field { height: 44px; }
  .shorts-layout .header-search-submit { height: 44px; }
  .shorts-layout .header-template-09 .king-leftmenu { top: 116px; }
  .shorts-layout .shorts-menu-open .shorts-menu-backdrop { top: 116px; height: calc(100dvh - 116px); }
  .shorts-layout .king-posts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 14px; }
}
@media (max-width: 600px) {
  .shorts-layout .king-posts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .shorts-layout .king-posts .entry-title { font-size: 14px; }
  .shorts-layout .king-posts .content-11-post-views { overflow-wrap: anywhere; }
  .shorts-layout .shorts-heading h1 { font-size: clamp(19px,5vw,22px); }
}
@media (max-width: 299px) { .shorts-layout .king-posts { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  .shorts-layout .king-leftmenu,.shorts-layout .shorts-play { transition: none !important; }
}

/* Native YouTube players with voice translation controls outside the iframe. */
.shorts-layout .shorts-heading { flex-wrap: wrap; }
.dubbed-language { margin-left: auto; display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.dubbed-language select { min-height: 44px; min-width: 170px; padding: 8px 34px 8px 12px; border: 1px solid #d7dbe0; border-radius: 9px; background: white; color: #30343c; font: 16px/1.3 inherit; }
.nowtour-language-picker { position: relative; min-width: 195px; text-align: left; }
.nowtour-language-toggle,.nowtour-language-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d7dbe0; background: #fff; color: #30343c; font-family: inherit; font-size: 15px; line-height: 1.4; cursor: pointer; text-align: left; }
.nowtour-language-toggle { border-radius: 9px; }
.shorts-layout .nowtour-language-toggle:hover,.shorts-layout .nowtour-language-toggle:focus,.shorts-layout .nowtour-language-toggle:active { color: #30343c; background: #fff; }
.nowtour-language-chevron { margin-left: auto; }
.nowtour-language-flag { display: block; width: 24px !important; height: 18px !important; object-fit: contain; flex: 0 0 24px; }
.nowtour-language-options { position: absolute; inset: calc(100% + 5px) 0 auto; z-index: 100; padding: 5px; border: 1px solid #d7dbe0; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #0002; }
.nowtour-language-options[hidden] { display: none; }
.nowtour-language-option { border: 0; border-radius: 6px; }
.nowtour-language-option:hover,.nowtour-language-option:focus-visible,.nowtour-language-option[aria-selected=true] { background: #eef3fa; outline-offset: -2px; }
.king-night .nowtour-language-toggle,.king-night .nowtour-language-options,.king-night .nowtour-language-option { background: #282c34; color: #eee; border-color: #444b57; }
.king-night .shorts-layout .nowtour-language-toggle:hover,.king-night .shorts-layout .nowtour-language-toggle:focus,.king-night .shorts-layout .nowtour-language-toggle:active { background: #282c34; color: #eee; }
.king-night .nowtour-language-option:hover,.king-night .nowtour-language-option:focus-visible,.king-night .nowtour-language-option[aria-selected=true] { background: #3b4351; }
.dubbed-summary { margin: -8px 0 22px; color: #69727e; font-size: 14px; }
.dubbed-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #111; border-radius: 14px; overflow: hidden; }
.dubbed-frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.dubbed-preview iframe { pointer-events: none; }
.dubbed-thumbnail { display: block; position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.dubbed-detail-link { position: absolute; inset: 0; z-index: 2; display: block; cursor: pointer; }
.dubbed-detail-link:focus-visible { outline-offset: -4px !important; }
.dubbed-poster { display: block; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #111; color: white; cursor: pointer; }
.dubbed-poster img { width: 100%; height: 100%; object-fit: cover; }
.dubbed-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #0008; font-size: 23px; padding-left: 3px; }
.dubbed-start::before,.shorts-logo:empty::before { content: ''; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 15px solid white; }
.shorts-layout .king-posts .dubbed-card .entry-title { margin: 12px 0 5px; }
.shorts-layout .king-posts .dubbed-card .entry-title,
.shorts-layout .king-posts .dubbed-card .entry-title a {
  display:block!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  white-space:normal!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere;
  word-break:normal;
}
.dubbed-meta { font-size: 12px; color: #777; margin: 0 0 10px; overflow-wrap: anywhere; }
.dubbed-views { font-size: 12px; line-height: 1.5; color: #69727e; margin: -4px 0 12px; }
.king-night .dubbed-views { color: #a8b0bd; }
.dubbed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dubbed-control { background: #eef0f4; color: #30343c; border: 1px solid #d7dbe0; padding: 8px 10px; min-height: 44px; border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; }
.dubbed-control:disabled { opacity: .5; cursor: default; }
.dubbed-voice { display: flex; align-items: center; gap: 3px; min-height: 44px; margin: 0; font-size: 12px; cursor: pointer; }
.dubbed-voice input { width: 18px; height: 18px; margin: 0; accent-color: #ff1744; }
.dubbed-subtitle { min-height: 3.2em; margin: 10px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.dubbed-status { color: #9a5200; font-size: 12px; line-height: 1.5; margin: 6px 0; }
.dubbed-status:empty { display: none; }
.dubbed-source { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.dubbed-resume[hidden] { display: none; }
.king-night .dubbed-meta,.king-night .dubbed-summary { color: #a8b0bd; }
.king-night .dubbed-control,.king-night .dubbed-language select { color: #eee; background: #282c34; border-color: #444b57; }
.king-night .dubbed-status { color: #ffca89; }
@media (max-width: 600px) {
  .shorts-layout #primary:has(.dubbed-item) { padding-inline: 0 !important; }
  .shorts-layout #primary:has(.dubbed-item) .shorts-heading { margin-inline: 12px; }
  .shorts-layout #primary:has(.dubbed-item) .dubbed-summary { padding-inline: 12px; }
  .shorts-layout .king-posts:has(.dubbed-item) { grid-template-columns: minmax(0,1fr); max-width: none; margin-inline: 0 !important; }
  .dubbed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-inline: 0;
    border-radius: 0;
  }
  .shorts-layout .king-posts .dubbed-card .entry-title { margin-inline: 12px; }
  .dubbed-card > :not(.dubbed-frame) { padding-inline: 12px; }
  .dubbed-language { margin-left: 0; width: 100%; }
  .dubbed-language select { width: 100%; }
  .shorts-layout .king-posts .dubbed-playing { grid-column: 1 / -1; width: 100% !important; }
}

/* NowTour destination navigation, managed in the database. */
.shorts-layout [data-nowtour-nav-hidden][hidden] { display:none!important; }
[data-nowtour-feature-hidden][hidden] { display:none!important; }
.shorts-layout .header-nav { height:auto!important; min-height:54px; }
.shorts-layout #primary-menu.nowtour-destinations { display:flex!important; flex-wrap:wrap; gap:5px 8px; padding:10px!important; height:auto!important; }
.shorts-layout #primary-menu.nowtour-destinations li { float:none!important; margin:0!important; display:block!important; }
.shorts-layout #primary-menu.nowtour-destinations a { display:block; padding:8px 10px!important; line-height:1.4!important; border-radius:8px; white-space:nowrap; }
.shorts-layout #primary-menu.nowtour-destinations a[aria-current] { background:#ffeded; color:#c7243a; }
@media(max-width:767px) {
.shorts-layout .main-navigation,.shorts-layout .menu-navbar-container { display:block!important; height:auto!important; }
.shorts-layout #primary-menu.nowtour-destinations { flex-wrap:nowrap; overflow-x:auto; max-width:100%; box-sizing:border-box; }
.shorts-layout #primary-menu.nowtour-destinations li { flex:0 0 auto; }
}

.shorts-layout #primary-menu.nowtour-destinations { visibility:visible!important; opacity:1!important; margin:0!important; }
.shorts-layout #primary-menu.nowtour-destinations li { height:auto!important; min-height:0!important; }
.shorts-layout .main-navigation:has(.nowtour-destinations) > .king-menu-toggle { display:none!important; }
.shorts-layout .header-nav:has(.nowtour-destinations) { padding:0!important; margin:0!important; }
