/* Desktop Watch views share the same shell and card rhythm. */
@media (min-width: 761px) {
  body {
    --text: #efeff1;
    --muted: #adadb8;
    color: var(--text);
    font-family: Arial, 'Segoe UI', sans-serif;
  }

  main {
    min-width: 0;
    padding-right: 24px;
    padding-left: 24px;
  }

  .top-tabs button {
    font-size: 18px;
    font-weight: 600;
  }

  .mobile-feed-tabs,
  .mobile-search-toggle,
  .mobile-search-close,
  .mobile-nav {
    display: none;
  }

  .side-home:not(.active) {
    color: var(--text);
  }

  .side-home.active,
  .side-home[aria-current='page'] {
    color: var(--yellow);
  }

  .watch-page-heading {
    margin: 0 0 24px;
    font: 700 60px/1 Arial, 'Segoe UI', sans-serif;
    letter-spacing: -1.8px;
  }

  .directory-view,
  #following-view {
    min-width: 0;
  }

  .directory-topics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
  }

  .directory-topic {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: #e7bd00;
    color: #18181b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
  }

  .directory-topic > span {
    min-width: 0;
    white-space: nowrap;
  }

  .directory-topic > svg {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    stroke-width: 1.9;
  }

  .directory-topic:hover,
  .directory-topic[aria-pressed='true'],
  .directory-topic.active {
    background: var(--yellow);
  }

  .directory-topic[aria-pressed='true'] {
    box-shadow: inset 0 -3px #18181b80;
  }

  .directory-tabs,
  .following-tabs {
    display: flex;
    align-items: stretch;
    gap: 24px;
    min-height: 42px;
    margin: 0 0 20px;
    border-bottom: 1px solid #35353b;
  }

  .directory-tabs > button,
  .following-tabs > button {
    position: relative;
    flex: none;
    padding: 0 0 13px;
    border-radius: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
  }

  .directory-tabs > button:hover,
  .following-tabs > button:hover,
  .directory-tabs > button[aria-selected='true'],
  .following-tabs > button[aria-selected='true'] {
    color: var(--yellow);
  }

  .directory-tabs > button[aria-selected='true']::after,
  .following-tabs > button[aria-selected='true']::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--yellow);
  }

  .directory-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 32px;
    margin: 0 0 20px;
  }

  .directory-search {
    display: flex;
    order: 1;
    align-items: center;
    gap: 8px;
    width: 230px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid #67676e;
    border-radius: 4px;
    background: #18181b;
    color: var(--muted);
  }

  .directory-search:focus-within {
    border-color: var(--yellow);
    box-shadow: 0 0 0 1px var(--yellow);
  }

  .directory-search > svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }

  .directory-search > input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
  }

  .directory-search > input::placeholder {
    color: var(--muted);
    opacity: 1;
  }

  .directory-sort {
    display: flex;
    order: 3;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .directory-sort select {
    min-width: 168px;
    max-width: 230px;
    height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid #67676e;
    border-radius: 4px;
    background: #18181b;
    color: var(--text);
    font: 600 13px Arial, 'Segoe UI', sans-serif;
    cursor: pointer;
  }

  .directory-sort select:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
  }

  #directory-count {
    order: 2;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
  }

  .directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    align-items: start;
    gap: 24px 12px;
  }

  .directory-grid > .game-card {
    display: block;
    min-width: 0;
    width: 100%;
    align-self: start;
  }

  .directory-grid .game-card > span {
    aspect-ratio: 3 / 4;
    border: 0;
    border-radius: 0;
    background: #18181b;
  }

  .directory-grid .game-card > span::after {
    display: none;
  }

  .directory-grid .game-card strong {
    overflow: hidden;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .directory-grid .game-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .directory-grid .game-card:hover strong {
    color: var(--yellow);
  }

  .directory-empty {
    padding: 48px 24px;
    border: 1px solid #303032;
    border-radius: 4px;
    background: #18181b;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .directory-empty h2,
  .directory-empty h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
  }

  .directory-empty p + p,
  .directory-empty .yellow-button,
  .directory-empty .secondary-button {
    margin-top: 16px;
  }

  .following-header {
    margin-bottom: 26px;
  }

  .following-header .watch-page-heading {
    margin-bottom: 12px;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.7px;
  }

  .following-header .following-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
  }

  .following-tabs {
    margin-bottom: 24px;
  }

  .following-section {
    min-width: 0;
    margin: 0 0 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #303032;
  }

  .following-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .section-heading h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
  }

  .following-section .section-heading {
    margin-bottom: 12px;
  }

  .channel-grid,
  .recent-row {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px 12px;
  }

  .card-title,
  .recent-title {
    font-size: 14px;
    line-height: 1.4;
  }

  .card-info p,
  .card-info small,
  .recent-creator,
  .recent-provider {
    color: var(--muted);
  }

  #activity-view .watch-page-heading {
    margin-bottom: 12px;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.7px;
  }

  #activity-note {
    max-width: 850px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
  }

  .activity-list {
    display: grid;
    max-width: 1000px;
    margin-top: 24px;
  }

  .activity-item {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 12px 10px;
    border-bottom: 1px solid #303032;
    border-radius: 3px;
  }

  .activity-item:hover {
    background: #18181b;
  }

  .activity-item > img {
    width: 144px;
    height: 81px;
    border-radius: 3px;
    background: #18181b;
    object-fit: cover;
  }

  .activity-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .activity-copy strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
  }

  .activity-copy > span,
  .activity-copy small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .activity-copy small {
    font-size: 12px;
  }

  .activity-open {
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    text-align: center;
  }

  .activity-item:hover .activity-copy strong,
  .activity-item:hover .activity-open {
    color: var(--yellow);
  }

  #activity-empty {
    max-width: 1000px;
    margin-top: 24px;
  }

  body[data-watch-view='browse'] footer,
  body[data-watch-view='following'] footer,
  body[data-watch-view='activity'] footer {
    margin-top: 40px;
  }
}

/* The recording retains the 530px player and 220px creator panel near 950px. */
@media (min-width: 900px) and (max-width: 1399px) {
  .feature-slide {
    width: 750px;
  }

  .feature-face {
    grid-template-columns: 530px 220px;
  }

  .feature-details {
    display: flex;
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .directory-topic {
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 20px;
  }

  .directory-topic > svg {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .directory-tools {
    gap: 12px;
  }

  .directory-search {
    width: 200px;
  }

  .directory-sort select {
    min-width: 150px;
    max-width: 190px;
  }
}
