/*
 * Default PC shell and timeline theme.
 *
 * Existing cards stay in style.css; only the highest-viewer live card gets a
 * featured layout. This file also replaces the shell and adds the timeline.
 */
@media screen and (max-width: 768px) {
  .app-header {
    isolation: isolate;
    --header-tint-rgb: var(--fav-header-tint-rgb, 5, 8, 22);
    background: rgb(var(--header-tint-rgb));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-top {
    height: 48px;
    justify-content: center;
  }

  #title-display {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    max-width: none;
    justify-content: center;
    font-size: clamp(14px, 4.5vw, 18px);
    letter-spacing: .1em;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .mode-switch {
    top: 50%;
    right: 12px;
    width: 92px;
    height: 36px;
    transform: translateY(-50%);
  }

  #menu-btn {
    left: 8px;
  }

  .desktop-search-toggle {
    left: max(82px, calc(50% - 105px));
    width: 32px;
    height: 32px;
  }

  .notification-toggle {
    left: max(50px, calc(50% - 145px));
    width: 32px;
    height: 32px;
  }

  .desktop-search-toggle svg,
  .notification-toggle svg {
    width: 18px;
    height: 18px;
  }

  .notification-panel {
    top: 52px;
    left: 0;
    width: min(390px, calc(100vw - 32px));
  }

  .desktop-search-panel {
    top: 52px;
    left: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    width: calc(100vw - 84px);
    padding: 8px;
  }

  body.mode-all .app-header {
    --header-tint-rgb: var(--all-header-tint-rgb, 5, 8, 22);
  }

  .app-header::before,
  .app-header::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .app-header::before {
    z-index: -2;
    background-image: var(--fav-header-wallpaper, none);
    background-position: center;
    background-size: cover;
  }

  body.mode-all .app-header::before {
    background-image: var(--all-header-wallpaper, none);
  }

  .app-header::after {
    z-index: -1;
    background: linear-gradient(
      180deg,
      rgba(var(--header-tint-rgb), .68) 0%,
      rgba(5, 8, 22, .34) 42%,
      rgba(7, 17, 31, .9) 100%
    );
  }
}

@media screen and (max-width: 360px) {
  #title-display {
    font-size: 13px;
  }

  .mode-switch {
    width: 84px;
  }

  .mode-option {
    font-size: 9px;
  }
}

@media screen and (min-width: 769px) {
  html.desktop-layout {
    --sticky-date-top: 174px;
  }

  html.desktop-layout #side-menu {
    width: 260px;
  }

  html.desktop-layout .menu-title-logo {
    width: 185px;
  }

  html.desktop-layout body::before,
  html.desktop-layout body::after {
    top: 174px;
  }

  html.desktop-layout body {
    --theme-rgb: 0, 230, 255;
    --timeline-tone-a: #00e6ff;
    --timeline-tone-a-rgb: 0, 230, 255;
    --timeline-tone-b: #a855f7;
    --timeline-tone-b-rgb: 168, 85, 247;
    background-color: #07111f;
  }

  html.desktop-layout body.mode-all {
    --theme-rgb: 255, 0, 85;
  }

  html.desktop-layout body::before {
    background-image: var(--fav-portrait-wallpaper, none);
    background-position: center;
    background-size: cover;
    opacity: 1;
  }

  html.desktop-layout body.mode-all::before {
    background-image: var(--all-portrait-wallpaper, none);
    opacity: 1;
  }

  html.desktop-layout body::after,
  html.desktop-layout body.mode-all::after {
    opacity: 0;
  }

  html.desktop-layout .app-header {
    min-height: 174px;
    padding: 0 22px 12px;
    overflow: visible;
    isolation: isolate;
    border-bottom: 1px solid rgba(var(--theme-rgb), .55);
    background: rgba(4, 8, 24, .35);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .46);
  }

  html.desktop-layout .app-header::before,
  html.desktop-layout .app-header::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  html.desktop-layout .app-header::before {
    z-index: -2;
    background-image: var(--fav-header-wallpaper, var(--fav-landscape-wallpaper, none));
    background-position: center;
    background-size: cover;
  }

  html.desktop-layout body.mode-all .app-header::before {
    background-image: var(--all-header-wallpaper, var(--all-landscape-wallpaper, none));
  }

  html.desktop-layout .app-header::after {
    z-index: -1;
    background:
      linear-gradient(90deg, rgba(3, 7, 24, .58), rgba(3, 7, 24, .2) 48%, rgba(3, 7, 24, .56)),
      linear-gradient(180deg, rgba(5, 8, 22, .12), rgba(5, 8, 22, .68));
  }

  html.desktop-layout .header-top {
    height: 92px;
    max-width: 1500px;
    margin: 0 auto;
  }

  html.desktop-layout #title-display {
    position: fixed;
    top: 46px;
    left: 84px;
    right: auto;
    font-size: clamp(26px, 2.1vw, 38px);
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
    transform: translateY(-50%);
    text-shadow: 0 0 18px rgba(255,255,255,.48), 0 3px 15px rgba(0,0,0,.9);
  }

  html.desktop-layout .title-logo {
    height: 72px;
  }

  html.desktop-layout .tabs {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    gap: 8px;
  }

  html.desktop-layout .tab-btn {
    min-height: 48px;
    border-color: rgba(255, 255, 255, .17);
    border-radius: 8px;
    background: rgba(15, 23, 42, .46);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  html.desktop-layout .tab-btn.active {
    border-color: var(--hour-accent);
    background: linear-gradient(180deg, rgba(var(--theme-rgb), .16), rgba(15, 23, 42, .56));
    box-shadow: 0 0 16px var(--neon-glow), inset 0 0 12px rgba(var(--theme-rgb), .12);
  }

  html.desktop-layout #menu-btn {
    top: 24px;
    left: 24px;
    border-color: rgba(var(--theme-rgb), .35);
    background: rgba(5, 10, 28, .5);
  }

  html.desktop-layout .mode-switch {
    top: 26px;
    right: 0;
    width: 108px;
    height: 36px;
    background: rgba(5, 10, 28, .48);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 16px rgba(var(--theme-rgb), .25);
  }

  html.desktop-layout .switch-thumb {
    background: color-mix(in srgb, var(--hour-accent) 88%, transparent);
  }

  html.desktop-layout .desktop-search-toggle {
    left: auto;
    right: 132px;
    background: rgba(6, 14, 38, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  html.desktop-layout .notification-toggle {
    left: auto;
    right: 180px;
    background: rgba(6, 14, 38, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  html.desktop-layout .notification-panel {
    top: 70px;
    right: 180px;
    left: auto;
  }

  html.desktop-layout .desktop-search-panel {
    top: 18px;
    right: 230px;
  }

  html.desktop-layout #content {
    padding-top: 194px !important;
  }

  html.desktop-layout .monitor-warning {
    top: 184px;
  }

  /* The rail is measured from the real marker centres. No card/grid rule lives here. */
  html.desktop-layout #scheduled-section.desktop-timeline-enabled,
  html.desktop-layout #recent-section.desktop-timeline-enabled {
    position: relative;
    padding-left: 56px !important;
  }

  html.desktop-layout .desktop-timeline-marker {
    position: relative;
  }

  html.desktop-layout .desktop-timeline-marker::before {
    content: '';
    position: absolute;
    z-index: 4;
    top: 50%;
    left: -40px;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.88);
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--timeline-marker-color);
    box-shadow:
      0 0 0 4px rgba(var(--timeline-marker-rgb), .14),
      0 0 16px var(--timeline-marker-color);
  }

  html.desktop-layout .desktop-timeline-marker.hour-band::before {
    left: -37px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  html.desktop-layout .desktop-timeline-segment {
    position: absolute;
    z-index: 1;
    left: 12px;
    display: block;
    width: 26px;
    min-height: 1px;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(5, 8, 22, .72) 18%,
      rgba(5, 8, 22, .88) 50%,
      rgba(5, 8, 22, .72) 82%,
      transparent 100%
    );
  }

  html.desktop-layout .desktop-timeline-segment::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 12px;
    width: 2px;
    background: var(--timeline-marker-color);
    box-shadow: 0 0 8px var(--timeline-marker-color), 0 0 18px rgba(var(--timeline-marker-rgb), .35);
  }

  html.desktop-layout .timeline-tone-a {
    --timeline-marker-color: var(--timeline-tone-a);
    --timeline-marker-rgb: var(--timeline-tone-a-rgb);
  }

  html.desktop-layout .timeline-tone-b {
    --timeline-marker-color: var(--timeline-tone-b);
    --timeline-marker-rgb: var(--timeline-tone-b-rgb);
  }

  html.desktop-layout #live-section .live-featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    min-height: clamp(280px, 30vw, 430px);
    border: 2px solid var(--live-danger);
    box-shadow: 0 0 20px var(--live-danger-glow), 0 0 24px rgba(var(--theme-rgb), .18);
  }

  html.desktop-layout #live-section .live-featured .featured-live-media {
    display: contents;
  }

  html.desktop-layout #live-section .live-featured .featured-live-footer,
  html.desktop-layout #live-section .live-featured .featured-live-details {
    display: none;
  }

  html.desktop-layout #live-section .live-featured .card-thumb {
    height: 100%;
    min-height: 280px;
    aspect-ratio: auto;
  }

  html.desktop-layout #live-section .live-featured .card-body {
    align-items: stretch !important;
    justify-content: center;
    gap: 14px !important;
    padding: 24px !important;
  }

  html.desktop-layout #live-section .live-featured .card-title,
  html.desktop-layout #live-section .live-featured .card-channel,
  html.desktop-layout #live-section .live-featured .card-keyword {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    padding: 0 !important;
    border: 0;
    background: none !important;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    color: #f8fafc !important;
    text-align: left;
    text-shadow: none !important;
  }

  html.desktop-layout #live-section .live-featured .card-title {
    order: 1;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 900;
    line-height: 1.4;
  }

  html.desktop-layout #live-section .live-featured .card-channel {
    order: 2;
    font-size: 17px !important;
    font-weight: 800;
  }

  html.desktop-layout #live-section .live-featured .card-time {
    order: 3;
    position: relative;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
  }

  html.desktop-layout #live-section .live-featured .card-time .card-actions {
    position: static;
    width: auto;
    margin-left: auto;
    transform: none;
    pointer-events: auto;
  }

  html.desktop-layout #live-section .live-featured .live-viewers {
    position: static !important;
    inset: auto !important;
    order: 4;
    align-self: flex-start;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
  }

  html.desktop-layout #live-section .live-featured .live-viewers strong {
    font-size: 24px;
  }

  html.desktop-layout #live-section .live-featured .card-keyword {
    order: 5;
    align-self: flex-start;
    padding: 6px 12px !important;
    border: 1px solid rgba(var(--theme-rgb), .6);
    border-radius: 999px;
    color: #a5f3fc !important;
  }

  html.desktop-layout #live-section .live-featured .card-guests {
    order: 6;
    justify-content: flex-start !important;
    margin-top: auto;
  }

  html.desktop-layout #live-section .live-featured .card-comments-btn {
    order: 7;
    align-self: flex-start;
  }

  html.desktop-layout #live-section .live-featured:hover .card-title,
  html.desktop-layout #live-section .live-featured:hover .card-channel,
  html.desktop-layout #live-section .live-featured:hover .card-keyword {
    transform: none;
  }

  @media (orientation: landscape) {
  html.desktop-layout #live-section .live-featured .card-body {
    display: none !important;
  }

  html.desktop-layout #live-section .live-featured .featured-live-media {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    background: #07111f;
  }

  html.desktop-layout #live-section .live-featured .card-thumb {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  html.desktop-layout #live-section .live-featured .featured-live-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "viewers time"
      "actions actions";
    align-items: center;
    gap: 12px 16px;
    padding: 16px 20px;
    border-top: 1px solid rgba(var(--theme-rgb), .22);
    background-color: #07111f;
    background-image: linear-gradient(135deg, rgba(5, 14, 32, .68), rgba(8, 20, 40, .6)), var(--card-surface-wallpaper);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  html.desktop-layout #live-section .live-featured .featured-live-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(12px, 1.4vw, 20px);
    padding: clamp(20px, 2.1vw, 34px);
    background-color: #0f172a;
    background-image: linear-gradient(145deg, rgba(15, 23, 42, .68), rgba(8, 15, 30, .62)), var(--card-surface-wallpaper);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  html.desktop-layout #live-section .live-featured .featured-live-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  html.desktop-layout #live-section .live-featured .featured-live-status {
    padding: 5px 11px;
    border: 1px solid rgba(239, 68, 68, .55);
    border-radius: 999px;
    background: rgba(239, 68, 68, .14);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
  }

  html.desktop-layout #live-section .live-featured .card-keyword {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    padding: 5px 10px !important;
    border: 1px solid rgba(var(--theme-rgb), .42);
    border-radius: 999px;
    background: rgba(var(--theme-rgb), .08) !important;
    color: #bae6fd !important;
    font-size: 12px;
    opacity: 1;
    transform: none;
  }

  html.desktop-layout #live-section .live-featured .card-title {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    color: #f8fafc !important;
    font-size: clamp(20px, 1.8vw, 30px);
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
    text-shadow: none !important;
    opacity: 1;
    transform: none;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  html.desktop-layout #live-section .live-featured .card-channel {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    color: #cbd5e1 !important;
    font-size: 16px !important;
    font-weight: 800;
    text-align: left;
    text-shadow: none !important;
    opacity: 1;
    transform: none;
  }



  html.desktop-layout #live-section .live-featured .card-channel .channel-name-link {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 800;
  }

  html.desktop-layout #live-section .live-featured .featured-live-guests {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .2);
    color: #cbd5e1;
  }

  html.desktop-layout #live-section .live-featured .featured-live-guests-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
  }

  html.desktop-layout #live-section .live-featured .card-guests {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  html.desktop-layout #live-section .live-featured .card-guests img {
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    border: 2px solid rgba(var(--theme-rgb), .55) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  }

  html.desktop-layout #live-section .live-featured .live-viewers {
    position: static !important;
    grid-area: viewers;
    align-self: center;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(250, 204, 21, .65) !important;
    border-radius: 12px;
    background: rgba(30, 41, 59, .72);
    font-size: 15px !important;
  }

  html.desktop-layout #live-section .live-featured .live-viewers strong {
    font-size: 22px;
  }

  html.desktop-layout #live-section .live-featured .card-time {
    grid-area: time;
    position: static;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    color: #cbd5e1;
    font-size: 13px;
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, .2);
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .x-post-btn,
  html.desktop-layout #live-section .live-featured .featured-live-actions .watch-later-btn,
  html.desktop-layout #live-section .live-featured .featured-live-actions .card-comments-btn,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .x-post-btn,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .watch-later-btn {
    display: inline-flex;
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .55);
    border-radius: 14px;
    background: rgba(15, 23, 42, .88);
    color: #e2e8f0;
    font-size: 30px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 16px rgba(0, 0, 0, .2);
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .x-post-btn,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .x-post-btn {
    border-color: rgba(56, 189, 248, .65);
    color: #f8fafc;
    font-size: 28px;
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .x-post-btn span,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .x-post-btn span {
    display: none;
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .watch-later-btn,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .watch-later-btn {
    border-color: rgba(244, 114, 182, .58);
    color: #f9a8d4;
    font: 500 38px/1 system-ui, sans-serif;
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .watch-later-btn.active,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .watch-later-btn.active {
    border-color: #fb4f9b;
    background: rgba(190, 24, 93, .2);
    color: #fb4f9b;
    box-shadow: 0 0 18px rgba(236, 72, 153, .2);
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .card-comments-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 56px;
    padding: 0 18px;
    border-color: rgba(34, 211, 238, .72);
    border-radius: 14px;
    background: rgba(8, 145, 178, .16);
    color: #a5f3fc;
    font-size: 17px;
    font-weight: 800;
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .x-post-btn:hover,
  html.desktop-layout #live-section .live-featured .featured-live-actions .watch-later-btn:hover,
  html.desktop-layout #live-section .live-featured .featured-live-actions .card-comments-btn:hover,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .x-post-btn:hover,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .watch-later-btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, .98);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  }

  html.desktop-layout #live-section .live-featured .featured-live-actions .card-comments-btn {
    margin-left: auto;
  }

  html.desktop-layout #live-section .live-featured:hover .card-title,
  html.desktop-layout #live-section .live-featured:hover .card-channel,
  html.desktop-layout #live-section .live-featured:hover .card-keyword {
    transform: none;
  }

}

@media screen and (min-width: 769px) and (orientation: landscape) {
  /* 横画面では縦の表示領域を優先し、ヘッダーとタイムライン見出しを圧縮する。 */
  html.desktop-layout {
    --sticky-date-top: 144px;
  }

  html.desktop-layout body::before,
  html.desktop-layout body::after {
    top: 144px;
  }

  html.desktop-layout .app-header {
    min-height: 144px;
    padding-bottom: 8px;
  }

  html.desktop-layout .header-top {
    height: 72px;
  }

  html.desktop-layout #title-display {
    top: 36px;
    left: 76px;
  }

  html.desktop-layout .title-logo {
    height: 54px;
  }

  html.desktop-layout #menu-btn {
    top: 15px;
    left: 18px;
  }

  html.desktop-layout .mode-switch {
    top: 18px;
  }

  html.desktop-layout .tabs {
    height: 42px;
  }

  html.desktop-layout .tab-btn {
    min-height: 42px;
    padding-block: 7px;
    font-size: 14px;
  }

  html.desktop-layout #content {
    padding-top: 152px !important;
  }

  html.desktop-layout .monitor-warning {
    top: 148px;
  }

  html.desktop-layout .date-group {
    margin-top: 18px;
  }

  html.desktop-layout .date-band {
    margin: 18px 0 10px;
    padding: 7px 16px;
    border-left-width: 6px;
    font-size: clamp(17px, 1.2vw, 20px);
  }

  html.desktop-layout .date-group.first-group > .date-band {
    margin: 6px 0 8px;
    padding: 7px 16px;
    font-size: clamp(17px, 1.2vw, 20px);
  }

  html.desktop-layout body::before {
    background-image: var(--fav-landscape-wallpaper, none);
  }

  html.desktop-layout body.mode-all::before {
    background-image: var(--all-landscape-wallpaper, none);
  }

  html.desktop-layout #live-section .cards.grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row dense;
    grid-auto-rows: auto;
    gap: 12px !important;
  }

  html.desktop-layout #live-section .live-featured {
    grid-column: span 3;
    grid-row: auto;
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
    grid-template-rows: minmax(0, 1fr);
    align-self: start;
    height: auto;
    min-height: clamp(300px, 18vw, 430px);
  }

  html.desktop-layout #live-section .live-featured .featured-live-media {
    display: contents;
  }

  html.desktop-layout #live-section .live-featured .featured-live-footer,
  html.desktop-layout #live-section .live-featured .featured-live-details {
    display: none !important;
  }

  html.desktop-layout #live-section .live-featured .featured-live-portrait-body {
    display: flex !important;
    min-width: 0;
    justify-content: center;
    gap: 12px !important;
    padding: clamp(18px, 1.6vw, 28px) !important;
  }

  html.desktop-layout #live-section .live-featured .card-thumb {
    width: 100%;
    height: 100%;
    min-height: 300px;
    aspect-ratio: auto;
  }

  html.desktop-layout #live-section .live-featured .card-time {
    grid-area: auto;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px !important;
    white-space: nowrap;
  }

  html.desktop-layout #live-section .live-featured .card-time span {
    overflow: hidden;
    font-size: 14px !important;
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  html.desktop-layout #live-section .live-featured .card-time .card-actions {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }

  html.desktop-layout #live-section .live-featured .card-time .card-actions .x-post-btn,
  html.desktop-layout #live-section .live-featured .card-time .card-actions .watch-later-btn {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    font-size: 20px;
  }

  html.desktop-layout #live-section .live-featured .card-time .card-actions .watch-later-btn {
    color: #f9a8d4;
    font: 500 28px/1 system-ui, sans-serif;
  }

  html.desktop-layout #live-section .live-featured .card-title {
    font-size: clamp(18px, 1.3vw, 25px);
    overflow: hidden;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  html.desktop-layout #live-section .live-featured .card-channel,
  html.desktop-layout #live-section .live-featured .card-channel .channel-name-link {
    min-width: 0;
    font-size: 15px !important;
  }

  html.desktop-layout #live-section .live-featured .card-channel {
    width: 100% !important;
  }

  html.desktop-layout #live-section .live-featured .card-guests {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0;
  }


  html.desktop-layout #live-section .live-featured .guest-icon {
    width: 36px !important;
    height: 36px !important;
  }

  html.desktop-layout #live-section .live-featured .live-viewers {
    grid-area: auto;
    align-self: flex-start;
    padding: 8px 12px !important;
    font-size: 15px !important;
  }

  html.desktop-layout #live-section .live-featured .live-viewers strong {
    font-size: 22px;
  }

  html.desktop-layout #live-section .live-featured .card-comments-btn {
    align-self: flex-start;
    min-width: 0;
    white-space: nowrap;
  }
}

@media screen and (min-width: 769px) and (max-width: 1099px) and (orientation: landscape) {
  html.desktop-layout #live-section .cards.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html.desktop-layout #live-section .live-featured {
    grid-column: span 3;
  }
}

@media screen and (min-width: 1100px) and (max-width: 1499px) and (orientation: landscape) {
  html.desktop-layout #live-section .cards.grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html.desktop-layout #live-section .live-featured {
    grid-column: span 3;
  }
}

@media screen and (min-width: 1500px) and (max-width: 1899px) and (orientation: landscape) {
  html.desktop-layout #live-section .cards.grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media screen and (min-width: 1900px) and (max-width: 2599px) and (orientation: landscape) {
  html.desktop-layout #live-section .cards.grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media screen and (min-width: 2600px) and (orientation: landscape) {
  html.desktop-layout #live-section .cards.grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  html.desktop-layout #live-section .live-featured {
    grid-column: span 2;
  }
}
