* {
  box-sizing: border-box;
}

html,
body {
  background: #090a0d;
  color: #f4f6fa;
  font-family: "Spline Sans", Inter, Arial, Helvetica, sans-serif;
  height: 100%;
  margin: 0;
  min-height: 100%;
  padding: 0;
}

body {
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden],
.is-hidden {
  display: none !important;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.splash {
  align-items: center;
  background: #08090b;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.splash-icon {
  height: 104px;
  width: 104px;
}

.splash-name {
  color: #f4f6fa;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.1px;
  margin-top: 17px;
}

.splash-message {
  color: #8b94a7;
  font-size: 14px;
  line-height: 20px;
  margin-top: 13px;
}

.spinner {
  animation: playguard-spin 0.9s linear infinite;
  border: 2px solid #343a45;
  border-radius: 50%;
  border-top-color: #aeb5c0;
  height: 22px;
  margin-top: 17px;
  width: 22px;
}

@keyframes playguard-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.app-shell {
  min-height: 100%;
}

.public-footer {
  color: #8f98a8;
  font-size: 13px;
  margin: 0 auto;
  max-width: 1340px;
  padding: 12px 24px 34px;
  text-align: center;
}

.public-footer a {
  color: #aeb5c0;
  text-decoration: underline;
  text-decoration-color: #4b5260;
}

.public-footer a:hover,
.public-footer a:focus {
  color: #ffffff;
  outline: none;
  text-decoration-color: #ff5a50;
}

.privacy-page {
  background: #090a0d;
  min-height: 100%;
}

.privacy-shell {
  margin: 0 auto;
  max-width: 960px;
  padding: 38px 28px 72px;
}

.privacy-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.privacy-brand {
  align-items: center;
  color: #f4f6fa;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.privacy-brand img {
  height: 46px;
  margin-right: 12px;
  width: 46px;
}

.privacy-back {
  border: 1px solid #343a45;
  border-radius: 10px;
  color: #d7dce5;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 15px;
  text-decoration: none;
}

.privacy-back:hover,
.privacy-back:focus {
  background: #20242d;
  border-color: #788596;
  color: #ffffff;
  outline: none;
}

.privacy-card {
  background: #11141a;
  border: 1px solid #292e38;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  margin-top: 28px;
  overflow: hidden;
  padding: 42px 48px 50px;
}

.privacy-kicker {
  color: #ff756c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.privacy-card h1 {
  color: #ffffff;
  font-size: 40px;
  letter-spacing: -0.8px;
  line-height: 48px;
  margin: 0;
}

.privacy-updated {
  color: #8f98a8;
  font-size: 13px;
  margin: 12px 0 0;
}

.privacy-lede {
  color: #d7dce5;
  font-size: 18px;
  line-height: 29px;
  margin: 28px 0 0;
}

.policy-section {
  border-top: 1px solid #292e38;
  margin-top: 32px;
  padding-top: 28px;
}

.policy-section h2 {
  color: #f4f6fa;
  font-size: 23px;
  line-height: 30px;
  margin: 0 0 13px;
}

.policy-section h3 {
  color: #e7eaf0;
  font-size: 17px;
  line-height: 24px;
  margin: 22px 0 8px;
}

.policy-section p,
.policy-section li {
  color: #b9c0cc;
  font-size: 16px;
  line-height: 26px;
}

.policy-section p {
  margin: 0 0 13px;
}

.policy-section ul {
  margin: 10px 0 14px;
  padding-left: 24px;
}

.policy-section li {
  margin-bottom: 7px;
}

.policy-section a {
  color: #ff8c85;
}

.policy-section a:hover,
.policy-section a:focus {
  color: #ffd1ce;
  outline: none;
}

.policy-scope {
  background: #171b23;
  border: 1px solid #303642;
  border-radius: 8px;
  color: #e7eaf0;
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 22px;
  margin-top: 7px;
  overflow-wrap: break-word;
  padding: 10px 12px;
}

.contact-placeholder {
  color: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.privacy-footer {
  color: #7f8898;
  font-size: 13px;
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 680px) {
  .privacy-shell {
    padding: 24px 16px 48px;
  }

  .privacy-topbar {
    align-items: flex-start;
    display: block;
  }

  .privacy-back {
    margin-top: 16px;
  }

  .privacy-card {
    padding: 30px 22px 36px;
  }

  .privacy-card h1 {
    font-size: 32px;
    line-height: 39px;
  }

  .privacy-lede {
    font-size: 17px;
    line-height: 27px;
  }

  .policy-section p,
  .policy-section li {
    font-size: 15px;
    line-height: 25px;
  }
}

.app-header {
  align-items: center;
  background: #11141a;
  border-bottom: 1px solid #2b303a;
  display: flex;
  height: 52px;
  left: 0;
  padding: 4px 12px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.header-menu,
.setting-button,
.settings-option,
.account-button,
.home-filter-button,
.channel-filter-button,
.search-button,
.secondary-button,
.sidebar-close,
.sidebar-item,
.history-clear-button,
.history-filter-button,
.history-video-action,
.history-search-action,
.history-remove-button,
.history-confirm-cancel,
.history-confirm-delete,
.account-close,
.account-primary-button,
.account-secondary-button,
.player-channel-link {
  border: 1px solid transparent;
  color: #f5f7fa;
}

.header-menu {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  display: flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  min-height: 42px;
  padding: 0;
  width: 46px;
}

.hamburger-icon,
.hamburger-icon span {
  display: block;
}

.hamburger-icon {
  width: 22px;
}

.hamburger-icon span {
  background: #e8ebf0;
  border-radius: 2px;
  height: 2px;
  margin: 4px 0;
  width: 22px;
}

.header-brand {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  display: flex;
  min-height: 42px;
  min-width: 0;
  margin-left: 4px;
  padding: 0 10px;
}

.youtube-logo-mark {
  background: #ff0033;
  border-radius: 5px;
  display: block;
  flex: 0 0 auto;
  height: 18px;
  position: relative;
  width: 27px;
}

.youtube-logo-mark::after {
  border-bottom: 4px solid transparent;
  border-left: 7px solid #fff;
  border-top: 4px solid transparent;
  content: "";
  left: 11px;
  position: absolute;
  top: 5px;
}

.youtube-logo-wordmark {
  color: #fff;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1.1px;
  line-height: 20px;
  margin-left: 5px;
  white-space: nowrap;
}

.header-controls {
  display: flex;
  margin-left: auto;
}

.setting-button {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  display: flex;
  margin-left: 6px;
  min-height: 42px;
  padding: 0 5px;
}

.setting-copy {
  margin-right: 6px;
  text-align: right;
}

.setting-copy strong,
.setting-copy small {
  display: block;
}

.setting-copy strong {
  color: #c4cad4;
  font-size: 11px;
  line-height: 14px;
  max-width: 78px;
}

.setting-copy small {
  display: none;
}

.switch-visual {
  background: #4b5260;
  border-radius: 16px;
  display: block;
  flex: 0 0 auto;
  height: 26px;
  position: relative;
  width: 44px;
}

.switch-visual span {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  height: 22px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: left 120ms ease;
  width: 22px;
}

.setting-button[aria-checked="true"] .switch-visual,
.settings-option[aria-checked="true"] .switch-visual {
  background: #ff453a;
}

.setting-button[aria-checked="true"] .switch-visual span,
.settings-option[aria-checked="true"] .switch-visual span {
  left: 20px;
}

.account-button {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  display: flex;
  margin-left: 6px;
  min-height: 42px;
  padding: 0 6px;
}

.account-avatar,
.account-profile-avatar {
  align-items: center;
  background: #252b35;
  border: 1px solid #4b5260;
  border-radius: 50%;
  color: #f4f6fa;
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  overflow: hidden;
  width: 28px;
}

.account-avatar img,
.account-profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.account-label {
  color: #c4cad4;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  margin-left: 6px;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-is-open {
  overflow: hidden;
}

.sidebar-backdrop {
  background: rgba(0, 0, 0, 0.62);
  bottom: 0;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 180ms ease-out;
  z-index: 810;
}

.sidebar-backdrop.is-open {
  opacity: 1;
}

.app-sidebar {
  background: #11141a;
  border-right: 1px solid #343a45;
  bottom: 0;
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.52);
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 14px 24px;
  position: fixed;
  top: 0;
  transform: translateX(-102%);
  transition: transform 180ms ease-out;
  width: 304px;
  z-index: 820;
}

.app-sidebar.is-open {
  transform: translateX(0);
}

.sidebar-header {
  align-items: center;
  border-bottom: 1px solid #292e38;
  display: flex;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 4px 16px;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  min-width: 0;
}

.sidebar-brand img {
  flex: 0 0 auto;
  height: 44px;
  margin-right: 11px;
  width: 44px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 22px;
}

.sidebar-brand span {
  color: #8f98a8;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.sidebar-close {
  background: transparent;
  border-color: #343a45;
  border-radius: 9px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 10px;
}

.sidebar-navigation {
  margin-top: 10px;
}

.sidebar-section {
  display: block;
}

.sidebar-separator {
  border-top: 1px solid #2d323c;
  margin: 12px 5px 10px;
}

.sidebar-section-title {
  color: #f2f4f7;
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  margin: 0;
  padding: 3px 11px 5px;
}

.sidebar-section-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  margin: 2px 12px 8px 48px;
}

.sidebar-item {
  align-items: center;
  background: transparent;
  border-color: transparent;
  border-radius: 10px;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0;
  min-height: 46px;
  padding: 5px 10px;
  text-align: left;
  width: 100%;
}

.sidebar-item.is-selected {
  background: #272c35;
  color: #ffffff;
}

.sidebar-item-icon {
  align-items: center;
  background: #20242d;
  border: 1px solid #343a45;
  border-radius: 9px;
  color: #dfe3e9;
  display: flex;
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  margin-right: 12px;
  width: 32px;
}

.sidebar-item.is-selected .sidebar-item-icon {
  background: #cf3029;
  border-color: #ff756c;
  color: #ffffff;
}

.sidebar-play-icon {
  font-size: 17px;
  padding-left: 2px;
}

.sidebar-shorts-icon {
  font-size: 17px;
  font-style: italic;
}

.sidebar-account-avatar,
.sidebar-channel-avatar {
  border-radius: 50%;
  overflow: hidden;
}

.sidebar-account-avatar img,
.sidebar-channel-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sidebar-item-label,
#sidebar-own-channel-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-more {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #c7cdd7;
  font-size: 13px;
  font-weight: 700;
  margin: 3px 0 1px;
  min-height: 40px;
  padding: 5px 10px 5px 54px;
  text-align: left;
  width: 100%;
}

.main-content {
  padding: 76px 24px 40px;
}

.view {
  margin: 0 auto;
  max-width: 1180px;
}

.browse-view {
  max-width: 1480px;
}

.player-view {
  max-width: 1640px;
}

.browse-toolbar {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.page-heading {
  max-width: 760px;
}

.eyebrow {
  color: #ff6259;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 6px;
}

.page-heading h1 {
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 34px;
  margin: 0;
}

.page-heading p:last-child {
  color: #aab1be;
  font-size: 15px;
  line-height: 22px;
  margin: 6px 0 0;
}

.channel-header {
  background: linear-gradient(135deg, rgba(47, 54, 68, 0.58), rgba(17, 20, 26, 0.96));
  border: 1px solid #303642;
  border-radius: 18px;
  max-width: 900px;
  padding: 22px 24px 18px;
  width: 100%;
}

.channel-identity {
  align-items: center;
  display: flex;
  min-width: 0;
}

.channel-view-avatar {
  align-items: center;
  background: #292e38;
  border: 2px solid #4a5261;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex: 0 0 76px;
  font-size: 28px;
  font-weight: 800;
  height: 76px;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  width: 76px;
}

.channel-view-avatar img,
.player-channel-avatar img,
.video-channel-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.channel-identity-copy {
  margin-left: 18px;
  min-width: 0;
}

.channel-identity-copy h1 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.45px;
  line-height: 37px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-identity-copy > p:last-child {
  color: #aab1be;
  font-size: 14px;
  line-height: 21px;
  margin: 5px 0 0;
}

.channel-filter-row {
  display: flex;
  margin: 20px -5px 0;
}

.channel-filter-button {
  background: transparent;
  border-radius: 12px;
  color: #b9c0cc;
  font-size: 15px;
  font-weight: 800;
  margin: 0 5px;
  min-height: 44px;
  min-width: 112px;
  padding: 0 18px;
}

.channel-filter-button.is-selected {
  background: #f1f3f6;
  border-color: #f1f3f6;
  color: #101217;
}

.search-form {
  display: flex;
  margin: 16px 0 0;
  max-width: 780px;
  position: relative;
  width: 100%;
}

.search-input {
  background: #171a21;
  border: 1px solid #343a46;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  height: 52px;
  margin-right: 10px;
  min-width: 0;
  padding: 0 15px;
  width: calc(100% - 120px);
}

.search-input::placeholder {
  color: #8f98a8;
  opacity: 1;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-button {
  background: #d52d25;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  height: 52px;
  width: 110px;
}

.search-suggestions {
  background: #171a21;
  border: 1px solid #343a46;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 120px;
  top: 62px;
  z-index: 90;
}

.suggestion-button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #292e38;
  color: #f0f2f5;
  display: block;
  font-size: 15px;
  min-height: 48px;
  padding: 11px 15px;
  text-align: left;
  width: 100%;
}

.suggestion-button:last-child {
  border-bottom: 0;
}

.home-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 18px -5px 16px;
}

.home-filter-button {
  background: #151820;
  border-color: #292e38;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 5px;
  min-height: 44px;
  padding: 0 18px;
}

.home-filter-button.is-selected {
  background: #f1f3f6;
  border-color: #f1f3f6;
  color: #101217;
}

.feed-message {
  color: #8f98a8;
  font-size: 13px;
  min-height: 23px;
  padding: 1px 1px 8px;
}

.feed-section {
  background: #11141a;
  border: 1px solid #292e38;
  border-radius: 18px;
  min-width: 0;
  padding: 18px;
}

.regular-videos-section {
  background: linear-gradient(180deg, rgba(52, 62, 78, 0.24) 0, #11141a 108px);
}

.shorts-section {
  background: linear-gradient(180deg, rgba(86, 31, 34, 0.2) 0, #11141a 108px);
  border-color: #382b30;
}

.feed-section + .feed-section {
  margin-top: 32px;
}

.shorts-section.is-standalone {
  margin-top: 0;
}

.feed-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
  min-height: 30px;
}

.feed-section-title {
  align-items: center;
  display: flex;
  min-width: 0;
}

.feed-section-heading h2 {
  color: #f4f6fa;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 27px;
  margin: 0;
}

.regular-videos-section-mark {
  background: #778397;
  border-radius: 3px;
  display: block;
  height: 24px;
  margin-right: 10px;
  width: 5px;
}

.feed-section-count {
  background: #1b2029;
  border: 1px solid #343b48;
  border-radius: 999px;
  color: #aeb6c4;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  margin-left: 14px;
  padding: 2px 10px;
}

.shorts-section-count {
  background: rgba(84, 29, 32, 0.46);
  border-color: #61363a;
  color: #ffc1bd;
}

.shorts-section-mark {
  background: #ff453a;
  border-radius: 4px;
  display: block;
  height: 24px;
  margin-right: 10px;
  position: relative;
  transform: skew(-8deg);
  width: 15px;
}

.shorts-section-mark::after {
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  content: "";
  left: 5px;
  position: absolute;
  top: 7px;
  transform: skew(8deg);
}

.video-grid {
  display: grid;
  grid-column-gap: 14px;
  grid-row-gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid.channel-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  align-items: stretch;
  background: #151820;
  border: 1px solid #292e38;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.video-grid > .video-card,
.shorts-grid > .video-card {
  align-items: stretch;
  flex-direction: column;
}

.shorts-grid {
  display: grid;
  grid-column-gap: 14px;
  grid-row-gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shorts-grid .thumbnail-wrap {
  height: 0;
  min-height: 0;
  padding-bottom: 177.777778%;
  width: 100%;
}

.shorts-grid .video-thumbnail-image {
  object-position: center center;
}

.shorts-grid .video-copy {
  min-height: 108px;
}

.shorts-grid .video-title {
  max-height: 42px;
}

.video-card.filter-hidden {
  display: none;
}

.thumbnail-wrap {
  background: #262b35;
  display: block;
  flex: 0 0 auto;
  height: 0;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  width: 100%;
}

.thumbnail-fallback {
  align-items: flex-end;
  background-color: #11141a;
  background-image: url("../assets/playguard-icon.svg"), radial-gradient(circle at 25% 15%, #18243c 0, #11141a 52%, #211018 100%);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 72px 72px, cover;
  bottom: 0;
  color: #8b94a7;
  display: flex;
  font-size: 0;
  font-weight: 700;
  justify-content: center;
  left: 0;
  padding-bottom: 0;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  top: 0;
  z-index: 0;
}

.thumbnail-wrap.is-fallback .thumbnail-fallback {
  color: #aeb5c0;
}

.video-thumbnail-image {
  display: block;
  height: 100%;
  left: 0;
  max-width: none;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.duration-pill,
.shorts-pill,
.ai-badge {
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
  position: absolute;
  z-index: 2;
}

.duration-pill {
  background: rgba(0, 0, 0, 0.78);
  bottom: 7px;
  right: 7px;
}

.shorts-pill {
  background: rgba(20, 20, 24, 0.88);
  bottom: 7px;
  left: 7px;
}

.ai-badge {
  background: rgba(104, 25, 22, 0.96);
  border: 2px solid rgba(255, 145, 136, 0.9);
  color: #fff5f3;
  font-size: 14px;
  left: 8px;
  line-height: 18px;
  min-width: 40px;
  padding: 3px 8px;
  text-align: center;
  top: 8px;
}

.video-copy {
  display: block;
  flex: 0 0 auto;
  min-height: 108px;
  min-width: 0;
  padding: 14px 14px 15px;
  width: 100%;
}

.video-grid .thumbnail-wrap {
  height: 0;
  min-height: 0;
  padding-bottom: 56.25%;
  width: 100%;
}

.video-grid .video-copy,
.shorts-grid .video-copy {
  width: 100%;
}

.video-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 21px;
  max-height: 42px;
  overflow: hidden;
}

.video-channel,
.video-date {
  color: #9ba3b1;
  display: block;
  font-size: 13px;
  line-height: 17px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-channel-static {
  align-items: center;
  display: flex;
  max-width: 100%;
  padding: 3px 0;
  text-align: left;
}

.video-channel-avatar {
  align-items: center;
  background: #2a303a;
  border: 1px solid #424a57;
  border-radius: 50%;
  color: #f5f7fa;
  display: flex;
  flex: 0 0 24px;
  font-size: 10px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  margin-right: 7px;
  overflow: hidden;
  text-transform: uppercase;
  width: 24px;
}

.video-channel-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-date {
  display: block;
}

.empty-state {
  align-items: center;
  color: #929aa8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  text-align: center;
}

.empty-state strong {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.load-more-row {
  min-height: 78px;
  padding-top: 24px;
  text-align: center;
}

.secondary-button {
  background: #23272f;
  border-color: #404754;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
}

.history-view {
  max-width: 1280px;
}

.history-page-heading {
  margin-bottom: 24px;
  max-width: 820px;
}

.history-page-heading h1 {
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 38px;
  margin: 0;
}

.history-page-heading > p:last-child {
  color: #aab1be;
  font-size: 15px;
  line-height: 23px;
  margin: 7px 0 0;
}

.history-section {
  background: #11141a;
  border: 1px solid #292e38;
  border-radius: 18px;
  padding: 20px;
}

.history-section + .history-section {
  margin-top: 28px;
}

.history-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.history-section-heading h2 {
  color: #f5f7fa;
  font-size: 22px;
  line-height: 28px;
  margin: 0;
}

.history-section-heading p {
  color: #8f98a8;
  font-size: 13px;
  line-height: 18px;
  margin: 4px 0 0;
}

.history-clear-button {
  background: #1b1e25;
  border-color: #553336;
  border-radius: 10px;
  color: #ffaaa4;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  margin-left: 16px;
  min-height: 42px;
  padding: 0 14px;
}

.history-clear-button:disabled {
  color: #656d7a;
  cursor: default;
  opacity: 0.62;
}

.history-filters {
  display: flex;
  margin: 0 -4px 16px;
}

.history-filter-button {
  background: #191d24;
  border-color: #323844;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 4px;
  min-height: 42px;
  padding: 0 16px;
}

.history-filter-button.is-selected {
  background: #f1f3f6;
  border-color: #f1f3f6;
  color: #11141a;
}

.history-list {
  min-width: 0;
}

.history-watch-item,
.history-search-item {
  align-items: stretch;
  background: #151820;
  border: 1px solid #292e38;
  border-radius: 14px;
  display: flex;
  margin-top: 10px;
  min-width: 0;
  padding: 6px;
}

.history-video-action,
.history-search-action {
  align-items: center;
  background: transparent;
  border-color: transparent;
  border-radius: 10px;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.history-thumbnail {
  background: #0c0e12;
  border-radius: 9px;
  display: block;
  flex: 0 0 196px;
  height: 110px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 196px;
}

.history-thumbnail img {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.history-thumbnail-fallback {
  align-items: center;
  color: #778193;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  width: 100%;
}

.history-thumbnail .duration-pill,
.history-thumbnail .shorts-pill {
  z-index: 2;
}

.history-video-copy,
.history-search-copy {
  display: block;
  min-width: 0;
}

.history-video-copy {
  padding: 8px 16px;
}

.history-video-title,
.history-video-channel,
.history-video-meta,
.history-search-query,
.history-search-meta {
  display: block;
}

.history-video-title {
  color: #f5f7fa;
  font-size: 17px;
  line-height: 23px;
  max-height: 46px;
  overflow: hidden;
}

.history-video-channel {
  color: #b3bbc8;
  font-size: 14px;
  line-height: 19px;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-video-meta,
.history-search-meta {
  color: #858f9f;
  font-size: 12px;
  line-height: 18px;
  margin-top: 4px;
}

.history-remove-button {
  align-self: center;
  background: transparent;
  border-color: #3b414d;
  border-radius: 9px;
  color: #c5cbd4;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  margin: 0 6px 0 10px;
  min-height: 42px;
  padding: 0 12px;
}

.history-search-action {
  min-height: 64px;
  padding: 7px 12px;
}

.history-search-icon {
  align-items: center;
  background: #242a33;
  border: 1px solid #3a424f;
  border-radius: 50%;
  color: #e6e9ee;
  display: flex;
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
  font-size: 24px;
  height: 40px;
  justify-content: center;
  margin-right: 13px;
  width: 40px;
}

.history-search-query {
  color: #f5f7fa;
  font-size: 16px;
  line-height: 22px;
}

.history-empty {
  color: #8f98a8;
  font-size: 14px;
  line-height: 21px;
  margin: 20px 2px 4px;
}

.history-confirm-overlay {
  align-items: center;
  background: rgba(5, 6, 8, 0.82);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 920;
}

.history-confirm-dialog {
  background: #151820;
  border: 1px solid #3a414e;
  border-radius: 18px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.56);
  max-width: 540px;
  padding: 28px;
  width: 100%;
}

.history-confirm-dialog h2 {
  color: #ffffff;
  font-size: 23px;
  line-height: 29px;
  margin: 0;
}

.history-confirm-dialog > p:not(.eyebrow) {
  color: #b0b8c5;
  font-size: 15px;
  line-height: 23px;
  margin: 10px 0 0;
}

.history-confirm-actions {
  display: flex;
  justify-content: flex-end;
  margin: 24px -5px -5px;
}

.history-confirm-cancel,
.history-confirm-delete {
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  margin: 5px;
  min-height: 46px;
  padding: 0 20px;
}

.history-confirm-cancel {
  background: #252a33;
  border-color: #454d5a;
}

.history-confirm-delete {
  background: #ce3028;
  border-color: #e65a52;
}

.settings-view {
  max-width: 980px;
}

.settings-page-heading {
  margin-bottom: 24px;
  max-width: 760px;
}

.settings-page-heading h1 {
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
  line-height: 38px;
  margin: 0;
}

.settings-page-heading > p:last-child {
  color: #aab1be;
  font-size: 15px;
  line-height: 23px;
  margin: 7px 0 0;
}

.settings-panel {
  background: #11141a;
  border: 1px solid #292e38;
  border-radius: 18px;
  overflow: hidden;
}

.settings-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #292e38;
  display: flex;
  min-height: 78px;
  padding: 14px 18px;
  text-align: left;
  width: 100%;
}

.settings-option:last-child {
  border-bottom: 0;
}

.settings-option-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-option-copy strong,
.settings-option-copy small {
  display: block;
}

.settings-option-copy strong {
  color: #f4f6fa;
  font-size: 17px;
  line-height: 22px;
}

.settings-option-copy small {
  color: #969fac;
  font-size: 13px;
  line-height: 19px;
  margin-top: 4px;
}

.settings-option-state {
  color: #aeb6c3;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  margin: 0 12px;
  min-width: 20px;
  text-align: center;
}

.player-search-toolbar {
  margin-bottom: 20px;
  max-width: 780px;
}

.player-search-toolbar .search-form {
  margin-top: 0;
}

.player-layout {
  align-items: flex-start;
  display: flex;
}

.player-column {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - 434px);
}

.related-column {
  background: #101319;
  border: 1px solid #282e38;
  border-radius: 16px;
  flex: 0 0 410px;
  margin-left: 24px;
  min-width: 0;
  padding: 16px;
  width: 410px;
}

.player-frame {
  background: #000;
  border: 1px solid #303641;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  height: 0;
  overflow: hidden;
  order: 1;
  padding-bottom: 56.25%;
  position: relative;
  width: 100%;
}

.player-frame iframe,
.player-frame #youtube-player {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.player-frame iframe {
  pointer-events: none;
}

.player-subtitle-overlay {
  bottom: 5%;
  box-sizing: border-box;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  left: 4%;
  line-height: 1.3;
  padding: 0 12px;
  pointer-events: none;
  position: absolute;
  right: 4%;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95);
  z-index: 5;
}

.player-subtitle-overlay span {
  background: rgba(0, 0, 0, 0.78);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 7px 0 rgba(0, 0, 0, 0.78), -7px 0 rgba(0, 0, 0, 0.78);
  padding: 3px 0;
  white-space: pre-wrap;
}

.player-subtitle-overlay[data-caption-size="-1"] {
  font-size: 24px;
}

.player-subtitle-overlay[data-caption-size="1"] {
  font-size: 36px;
}

.player-subtitle-overlay[data-caption-size="2"] {
  font-size: 42px;
}

.player-subtitle-overlay[data-caption-size="3"] {
  font-size: 48px;
}

.player-quality-debug {
  background: rgba(5, 7, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #ffffff;
  max-width: calc(100% - 24px);
  padding: 7px 10px 8px;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
}

.player-quality-debug span,
.player-quality-debug strong,
.player-quality-debug small {
  display: block;
}

.player-quality-debug span {
  color: #ff756c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  line-height: 12px;
}

.player-quality-debug strong {
  font-size: 16px;
  line-height: 20px;
}

.player-quality-debug small {
  color: #b9c0cb;
  font-size: 10px;
  line-height: 14px;
}

.player-loading {
  align-items: center;
  background: #000;
  bottom: 0;
  color: #aab1be;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.player-loading .spinner {
  margin: 0 0 18px;
}

.player-loading span {
  font-size: 15px;
  line-height: 22px;
}

.player-meta {
  border-bottom: 1px solid #272c35;
  order: 3;
  padding: 18px 2px 16px;
}

.player-title-row {
  align-items: flex-start;
  display: flex;
  min-width: 0;
}

.player-meta h1 {
  color: #f7f8fa;
  flex: 1 1 auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.35px;
  line-height: 29px;
  margin: 0;
  min-width: 0;
}

.player-meta-action {
  align-items: center;
  background: #20242d;
  border: 1px solid #3b424e;
  border-radius: 9px;
  color: #e7eaf0;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  margin-left: 12px;
  min-height: 38px;
  padding: 0 13px;
  text-decoration: none;
}

.player-meta-action:hover,
.player-meta-action:focus,
.player-meta-action.tv-focus {
  background: #2b303a;
  border-color: #ff756c;
  box-shadow: 0 0 0 2px rgba(255, 90, 80, 0.34);
  color: #ffffff;
  outline: none;
}

.player-quality-select {
  flex: 0 0 auto;
  margin-left: 12px;
  position: relative;
  z-index: 12;
}

.quality-size-select-button {
  cursor: pointer;
  font-family: inherit;
  margin-left: 0;
}

.quality-size-select-button::after {
  content: "▾";
  font-size: 11px;
  margin-left: 9px;
}

.quality-size-select-button:disabled {
  cursor: default;
  opacity: 0.46;
}

.player-quality-menu {
  background: #171b23;
  border: 1px solid #3d4552;
  border-radius: 11px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.58);
  min-width: 220px;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  z-index: 40;
}

.player-quality-menu-list {
  display: block;
}

.player-quality-option {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e7eaf0;
  display: block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  padding: 0 38px 0 13px;
  position: relative;
  text-align: left;
  width: 100%;
}

.player-quality-option[aria-selected="true"] {
  background: rgba(255, 69, 58, 0.12);
  color: #ffffff;
}

.player-quality-option[aria-selected="true"]::after {
  color: #ff756c;
  content: "✓";
  font-size: 15px;
  position: absolute;
  right: 13px;
  top: 11px;
}

.player-quality-option:hover,
.player-quality-option:focus,
.player-quality-option.tv-focus {
  background: #2b303a;
  border-color: #ff756c;
  box-shadow: 0 0 0 2px rgba(255, 90, 80, 0.28);
  color: #ffffff;
  outline: none;
}

.leanback-test-actions {
  margin-top: 22px;
}

.leanback-launch-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.leanback-launch-button[aria-disabled="true"] {
  background: #30343d;
  border-color: #454b57;
  color: #8f98a8;
}

.player-byline {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  min-width: 0;
}

.player-channel-link {
  align-items: center;
  background: transparent;
  border-radius: 12px;
  display: flex;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  padding: 5px 11px 5px 5px;
  text-align: left;
}

.player-channel-link:disabled {
  cursor: default;
}

.player-channel-avatar {
  align-items: center;
  background: #292e38;
  border: 1px solid #424a57;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 42px;
  font-size: 17px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin-right: 12px;
  overflow: hidden;
  text-transform: uppercase;
  width: 42px;
}

.player-byline-copy {
  display: block;
  min-width: 0;
}

.player-byline-copy strong {
  color: #f1f3f6;
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-details {
  color: #9ea6b4;
  display: block;
  font-size: 13px;
  line-height: 18px;
  margin: 4px 0 0;
  overflow: hidden;
  padding-left: 59px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.inline-ai-badge {
  align-items: center;
  background: #681916;
  border: 2px solid #ff9188;
  border-radius: 8px;
  color: #fff5f3;
  display: flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  margin: 2px 0 0 14px;
  min-height: 30px;
  padding: 4px 9px;
}

.player-controls {
  background: linear-gradient(180deg, #171a21 0%, #11141a 100%);
  border: 1px solid #292f39;
  border-radius: 12px;
  margin-top: 10px;
  overflow: visible;
  order: 2;
  padding: 8px 10px 9px;
}

.player-info-section {
  background: #101319;
  border: 1px solid #282e38;
  border-radius: 14px;
  margin-top: 14px;
  overflow: hidden;
}

.player-description-section {
  order: 4;
}

.player-comments-section {
  order: 5;
}

.player-section-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #f3f5f8;
  display: flex;
  font-family: inherit;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
}

.player-section-toggle:hover,
.player-section-toggle:focus,
.player-section-toggle.tv-focus {
  background: #20242c;
  box-shadow: inset 3px 0 0 #ff5a50;
  outline: none;
}

.player-section-heading {
  display: block;
  min-width: 0;
}

.player-section-heading strong,
.player-section-heading small {
  display: block;
}

.player-section-heading strong {
  color: #f5f7fa;
  font-size: 17px;
  line-height: 22px;
}

.player-section-heading small {
  color: #929ba9;
  font-size: 11px;
  line-height: 16px;
  margin-top: 2px;
}

.player-section-action {
  color: #ff9188;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  margin-left: 20px;
  text-transform: uppercase;
}

.player-description-body {
  border-top: 1px solid #252b34;
  max-height: 102px;
  overflow: hidden;
  padding: 14px 16px 17px;
  position: relative;
}

.player-description-body:not(.is-expanded)::after {
  background: linear-gradient(180deg, rgba(16, 19, 25, 0), #101319);
  bottom: 0;
  content: "";
  height: 32px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.player-description-body.is-expanded {
  max-height: none;
}

.player-description-text {
  color: #d4d8df;
  font-size: 14px;
  line-height: 21px;
  margin: 0;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.player-comments-body {
  border-top: 1px solid #252b34;
  padding: 4px 16px 8px;
}

.player-comments-status {
  color: #a7afbb;
  font-size: 13px;
  line-height: 19px;
  margin: 0;
  padding: 16px 0;
}

.player-comments-list {
  display: block;
}

.player-comments-more {
  background: #1d222b;
  border: 1px solid #3a424f;
  border-radius: 8px;
  color: #f2f4f7;
  display: block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  margin: 8px 0 12px;
  min-height: 42px;
  padding: 8px 16px;
}

.player-comments-more:hover,
.player-comments-more:focus,
.player-comments-more.tv-focus {
  background: #2a303b;
  border-color: #ff9188;
  box-shadow: 0 0 0 2px rgba(255, 90, 80, 0.24);
  outline: none;
}

.player-comments-more:disabled {
  color: #858d99;
  opacity: 0.7;
}

.player-comment {
  align-items: flex-start;
  border-top: 1px solid #232832;
  display: flex;
  padding: 15px 0;
}

.player-comment:first-child {
  border-top: 0;
}

.player-comment-avatar {
  align-items: center;
  background: #292e38;
  border: 1px solid #424a57;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex: 0 0 38px;
  font-size: 14px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  width: 38px;
}

.player-comment-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.player-comment-copy {
  flex: 1 1 auto;
  margin-left: 12px;
  min-width: 0;
}

.player-comment-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
}

.player-comment-author {
  color: #f0f2f5;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
}

.player-comment-time {
  color: #89929f;
  font-size: 11px;
  line-height: 16px;
  margin-left: 8px;
}

.player-comment-text {
  color: #d8dce2;
  display: block;
  font-size: 13px;
  line-height: 20px;
  margin: 5px 0 0;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.player-comment-likes {
  color: #969eaa;
  display: block;
  font-size: 11px;
  line-height: 16px;
  margin: 6px 0 0;
}

.player-progress-row {
  align-items: center;
  display: flex;
  min-height: 24px;
  padding: 0 4px 4px;
}

.player-seek {
  -webkit-appearance: none;
  appearance: none;
  background: #434a56;
  border: 0;
  border-radius: 4px;
  flex: 1 1 auto;
  height: 5px;
  margin: 0;
  min-width: 80px;
  padding: 0;
}

.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #ff453a;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);
  height: 16px;
  width: 16px;
}

.player-seek:disabled {
  opacity: 0.42;
}

.player-controls-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 46px;
}

.player-control-group {
  align-items: center;
  display: flex;
  min-width: 0;
}

.player-control-left {
  flex: 1 1 auto;
}

.player-control-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.player-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #f4f6fa;
  display: flex;
  flex: 0 0 44px;
  height: 42px;
  justify-content: center;
  margin: 0 2px;
  min-height: 42px;
  padding: 0;
  position: relative;
  width: 44px;
}

.player-icon-button:disabled {
  color: #656d78;
  cursor: default;
  opacity: 0.58;
}

.player-icon-button.is-active {
  color: #ff6259;
}

.player-icon-button-primary {
  color: #ffffff;
}

.player-control-icon {
  align-items: center;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
}

.player-play-icon {
  font-size: 22px;
}

.player-skip-icon {
  font-size: 25px;
  position: relative;
}

.player-skip-icon small {
  font-size: 8px;
  font-weight: 900;
  left: 9px;
  position: absolute;
  top: 9px;
}

.player-volume-icon,
.player-fullscreen-icon {
  font-size: 21px;
}

.player-cc-button .player-control-icon {
  border: 2px solid currentColor;
  border-radius: 3px;
  font-size: 10px;
  height: 17px;
  letter-spacing: -0.3px;
  width: 23px;
}

.player-timecode {
  color: #cbd1da;
  flex: 0 0 auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 18px;
  margin-left: 8px;
  white-space: nowrap;
}

.player-icon-button::after {
  background: rgba(12, 14, 18, 0.96);
  border: 1px solid #3d4450;
  border-radius: 6px;
  bottom: calc(100% + 7px);
  color: #f4f6fa;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 700;
  left: 50%;
  line-height: 15px;
  max-width: 190px;
  opacity: 0;
  padding: 5px 8px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 100ms ease;
  visibility: hidden;
  white-space: nowrap;
  z-index: 30;
}

.player-icon-button:hover::after,
.player-icon-button:focus::after,
.player-icon-button.tv-focus::after {
  opacity: 1;
  visibility: visible;
}

.player-control-right .player-icon-button::after {
  left: auto;
  right: 0;
  transform: none;
}

.player-settings-overlay {
  align-items: center;
  background: rgba(5, 6, 8, 0.88);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  overflow-y: auto;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 890;
}

.player-settings-dialog {
  background: #151820;
  border: 1px solid #3a414d;
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.62);
  max-height: calc(100vh - 44px);
  max-width: 720px;
  overflow-y: auto;
  width: 100%;
}

.player-settings-header {
  align-items: center;
  border-bottom: 1px solid #2d333d;
  display: flex;
  justify-content: space-between;
  padding: 20px 22px;
}

.player-settings-header .eyebrow {
  margin-bottom: 4px;
}

.player-settings-header h2 {
  color: #ffffff;
  font-size: 24px;
  line-height: 30px;
  margin: 0;
}

.player-settings-close {
  background: #252a33;
  border: 1px solid #444c59;
  border-radius: 9px;
  color: #f1f3f6;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  margin-left: 20px;
  min-height: 44px;
  padding: 0 15px;
}

.player-settings-list {
  padding: 8px;
}

.player-settings-row {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #f2f4f7;
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 13px;
  text-align: left;
  width: 100%;
}

.player-settings-row + .player-settings-row {
  border-top-color: #292f38;
}

.player-settings-row > span {
  flex: 1 1 auto;
  min-width: 0;
}

.player-settings-row strong,
.player-settings-row small {
  display: block;
}

.player-settings-row strong {
  color: #f5f7fa;
  font-size: 15px;
  line-height: 20px;
}

.player-settings-row small {
  color: #929ba9;
  font-size: 12px;
  line-height: 17px;
  margin-top: 3px;
}

.player-settings-row > b {
  color: #ff9188;
  flex: 0 0 auto;
  font-size: 13px;
  margin-left: 20px;
  max-width: 150px;
  text-align: right;
}

.player-settings-row:disabled {
  cursor: default;
  opacity: 0.5;
}

.player-settings-info {
  cursor: default;
}

.player-settings-row[aria-checked="true"] {
  background: rgba(255, 69, 58, 0.08);
}

html.playguard-fullscreen-active,
body.playguard-fullscreen-active {
  background: #000 !important;
  height: 100% !important;
  overflow: hidden !important;
  width: 100% !important;
}

.playguard-fullscreen-active .player-settings-overlay {
  z-index: 1000000;
}

.playguard-fullscreen-active .player-column {
  background: #000 !important;
  box-sizing: border-box;
  display: block;
  height: 100% !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  position: relative;
  width: 100% !important;
}

.player-column:fullscreen {
  background: #000 !important;
  height: 100% !important;
  width: 100% !important;
}

.player-column:-webkit-full-screen {
  background: #000 !important;
  height: 100% !important;
  width: 100% !important;
}

.player-column:-moz-full-screen {
  background: #000 !important;
  height: 100% !important;
  width: 100% !important;
}

.player-column:-ms-fullscreen {
  background: #000 !important;
  height: 100% !important;
  width: 100% !important;
}

.player-column.playguard-fullscreen {
  bottom: 0;
  height: 100% !important;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100% !important;
  z-index: 999999;
}

.playguard-fullscreen-active .player-column .player-frame {
  background: #000 !important;
  border: 0;
  border-radius: 0;
  bottom: 0;
  box-shadow: none;
  flex: none;
  height: 100% !important;
  left: 0;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  position: absolute;
  right: 0;
  top: 0;
  width: 100% !important;
}

.playguard-fullscreen-active .player-column .player-meta,
.playguard-fullscreen-active .player-column .player-info-section {
  display: none;
}

.playguard-fullscreen-active .player-column .player-controls {
  background: linear-gradient(
    180deg,
    rgba(9, 11, 15, 0.18) 0%,
    rgba(9, 11, 15, 0.96) 42%,
    #090b0f 100%
  );
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  bottom: 0;
  box-sizing: border-box;
  left: 0;
  margin: 0;
  opacity: 1;
  position: absolute;
  right: 0;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 0s;
  visibility: visible;
  width: 100%;
  z-index: 20;
}

.playguard-fullscreen-active .player-controls.controls-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

.playguard-fullscreen-active .player-controls.controls-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  visibility: hidden;
}

.playguard-fullscreen-active .player-quality-debug {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 0s;
  visibility: visible;
}

.playguard-fullscreen-active .player-quality-debug.controls-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

.playguard-fullscreen-active .player-quality-debug.controls-hidden {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  visibility: hidden;
}

.playguard-fullscreen-active .player-column .player-frame iframe,
.playguard-fullscreen-active .player-column .player-frame #youtube-player {
  border: 0 !important;
  height: 100% !important;
  left: 0 !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  position: absolute !important;
  top: 0 !important;
  transform: none !important;
  width: 100% !important;
}

.playguard-fullscreen-active .player-column .player-frame video {
  height: 100% !important;
  left: 0 !important;
  object-fit: contain !important;
  position: absolute !important;
  top: 0 !important;
  width: 100% !important;
}

.related-heading {
  border-bottom: 1px solid #292f38;
  margin-bottom: 12px;
  padding: 1px 2px 13px;
}

.related-heading h2 {
  color: #f5f7fa;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 26px;
  margin: 0;
}

.related-heading p {
  color: #929ba9;
  font-size: 12px;
  line-height: 17px;
  margin: 3px 0 0;
}

.related-grid {
  color: #aab1be;
  font-size: 13px;
  line-height: 19px;
}

.related-grid .video-card {
  align-items: center;
  background: transparent;
  border-color: transparent;
  border-radius: 11px;
  flex-direction: row;
  margin: 0 0 8px;
  min-height: 102px;
  padding: 4px;
  width: 100%;
}

.related-grid .thumbnail-wrap {
  border-radius: 8px;
  flex: 0 0 168px;
  height: 94px;
  min-height: 94px;
  padding-bottom: 0;
  width: 168px;
}

.related-grid .thumbnail-fallback {
  background-size: 48px 48px, cover;
  font-size: 0;
  padding-bottom: 0;
}

.related-grid .video-copy {
  align-self: stretch;
  min-height: 94px;
  min-width: 0;
  padding: 5px 7px 4px 11px;
  width: calc(100% - 168px);
}

.related-grid .video-title {
  font-size: 14px;
  line-height: 20px;
  max-height: 40px;
}

.related-grid .video-channel {
  font-size: 12px;
  line-height: 16px;
  margin-top: 6px;
}

.related-grid .video-channel-static {
  max-width: 100%;
  padding-bottom: 2px;
  padding-top: 2px;
}

.related-grid .video-channel-avatar {
  flex-basis: 20px;
  height: 20px;
  margin-right: 5px;
  width: 20px;
}

.related-grid .video-date {
  color: #7f8897;
  display: block;
  font-size: 11px;
  line-height: 15px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-grid .duration-pill,
.related-grid .shorts-pill {
  bottom: 5px;
  font-size: 10px;
  padding: 3px 5px;
}

.related-grid .duration-pill {
  right: 5px;
}

.related-grid .shorts-pill {
  left: 5px;
}

.related-grid .ai-badge {
  font-size: 11px;
  left: 5px;
  line-height: 15px;
  min-width: 34px;
  padding: 2px 6px;
  top: 5px;
}

.account-overlay {
  align-items: center;
  background: rgba(8, 9, 11, 0.96);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 880;
}

.account-dialog {
  background: #151820;
  border: 1px solid #343a46;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
  max-height: calc(100vh - 48px);
  max-width: 720px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  position: relative;
  width: 100%;
}

.account-dialog-header {
  align-items: center;
  border-bottom: 1px solid #2c313b;
  display: flex;
  justify-content: space-between;
  min-height: 112px;
  padding: 22px 28px;
}

.account-close {
  background: #20242c;
  border-color: #3e4552;
  border-radius: 10px;
  color: #e1e5eb;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  margin-left: 28px;
  min-height: 48px;
  min-width: 104px;
  padding: 0 18px;
}

.account-heading {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.account-heading > img {
  height: 64px;
  margin-right: 16px;
  width: 64px;
}

.account-heading .eyebrow {
  margin-bottom: 5px;
}

.account-heading h2 {
  color: #fff;
  font-size: 24px;
  line-height: 30px;
  margin: 0;
}

.account-dialog-body {
  padding: 26px 30px 30px;
}

.account-state {
  color: #aab1be;
  margin: 0;
}

.account-state > .account-intro {
  color: #c2c8d2;
  font-size: 15px;
  line-height: 23px;
  margin: 0;
}

#account-loading {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  text-align: center;
}

#account-loading .spinner {
  margin: 0 0 16px;
}

#account-loading > p {
  font-size: 15px;
  line-height: 22px;
  margin: 0;
}

.account-primary-button,
.account-secondary-button {
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  min-height: 52px;
  min-width: 190px;
  padding: 0 22px;
}

.account-primary-button {
  background: #d52d25;
  border-color: #e45750;
  min-width: 270px;
}

.account-primary-button:disabled {
  background: #30343d;
  border-color: #454b57;
  color: #8f98a8;
  cursor: default;
}

.account-secondary-button {
  background: #23272f;
  border-color: #404754;
}

.account-state > .account-note {
  color: #8f98a8;
  font-size: 13px;
  line-height: 20px;
  margin: 16px 0 0;
}

.account-actions {
  align-items: center;
  border-top: 1px solid #2c313b;
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  padding-top: 22px;
}

.account-verification-url {
  color: #ff9188;
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  overflow-wrap: break-word;
  margin-top: 20px;
  word-wrap: break-word;
}

.account-user-code {
  background: #090a0d;
  border: 1px solid #3b414d;
  border-radius: 12px;
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-top: 14px;
  padding: 16px;
  text-align: center;
  white-space: nowrap;
}

.account-profile {
  align-items: center;
  background: #101319;
  border: 1px solid #303641;
  border-radius: 13px;
  display: flex;
  padding: 18px;
}

.account-profile-avatar {
  border-color: #596273;
  font-size: 24px;
  height: 62px;
  margin-right: 18px;
  width: 62px;
}

.account-profile-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.account-profile strong,
.account-profile span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile strong {
  color: #f4f6fa;
  font-size: 18px;
  line-height: 24px;
}

.account-profile span {
  color: #9ba3b1;
  font-size: 14px;
  line-height: 20px;
  margin-top: 4px;
}

.account-profile #account-youtube-channel {
  color: #ff9188;
  font-weight: 700;
  margin-top: 7px;
}

.account-success-message {
  background: #191d24;
  border-left: 3px solid #ff5a50;
  border-radius: 0 10px 10px 0;
  margin-top: 22px;
  padding: 15px 17px;
}

.account-success-message strong,
.account-success-message span {
  display: block;
}

.account-success-message strong {
  color: #f4f6fa;
  font-size: 15px;
  line-height: 21px;
}

.account-success-message span {
  color: #aeb5c0;
  font-size: 14px;
  line-height: 20px;
  margin-top: 5px;
}

.account-state > .account-security-note {
  margin-top: 13px;
}

.account-actions-logout {
  margin-top: 22px;
}

.error-overlay {
  align-items: center;
  background: rgba(8, 9, 11, 0.99);
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  padding: 40px;
  position: fixed;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 900;
}

.error-overlay img {
  height: 72px;
  width: 72px;
}

.error-overlay h2 {
  color: #f1f3f6;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 18px 0 8px;
}

.error-overlay p {
  color: #aab1be;
  font-size: 15px;
  line-height: 21px;
  margin: 0 0 16px;
  max-width: 640px;
}

.error-overlay .search-button {
  background: #ff453a;
  border-radius: 8px;
  min-height: 42px;
  width: auto;
  padding: 0 18px;
}

.toast {
  background: #252b35;
  border: 1px solid #565e6d;
  border-radius: 9px;
  bottom: 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 15px;
  left: 50%;
  max-width: 720px;
  padding: 14px 20px;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  z-index: 950;
}

.tv-target:focus {
  outline: none;
}

.tv-target.tv-focus,
.tv-target:focus {
  background-color: #252b35;
  border-color: #788596;
  box-shadow: 0 0 0 2px rgba(120, 133, 150, 0.38), 0 4px 14px rgba(0, 0, 0, 0.34);
  position: relative;
  transform: scale(1.01);
  z-index: 20;
}

.tv-target:active {
  opacity: 0.82;
}

.video-card.tv-focus,
.video-card:focus {
  background-color: #20242d;
  border-color: #ff5a50;
  box-shadow: 0 0 0 2px rgba(255, 90, 80, 0.5), 0 8px 22px rgba(0, 0, 0, 0.46);
  transform: scale(1.012);
}

.player-channel-link.tv-focus,
.player-channel-link:focus {
  background-color: #2b303a;
  border-color: #ff9188;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 0 12px rgba(255, 90, 80, 0.2);
  transform: none;
}

.suggestion-button.tv-focus,
.suggestion-button:focus {
  background: #252b35;
  border-left: 3px solid #ff5a50;
  outline: none;
}

.player-icon-button.tv-focus,
.player-icon-button:focus {
  background: #303640;
  border-color: #f4f6fa;
  box-shadow: 0 0 0 2px rgba(255, 69, 58, 0.72);
  transform: none;
}

.player-settings-row.tv-focus,
.player-settings-row:focus,
.player-settings-close.tv-focus,
.player-settings-close:focus {
  background: #292f39;
  border-color: #ff756c;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.44);
  transform: none;
}

.sidebar-item.tv-focus,
.sidebar-item:focus {
  background: #2a303a;
  border-color: #ff756c;
  box-shadow: 0 0 0 2px rgba(255, 90, 80, 0.34);
  transform: none;
}

.sidebar-item.is-selected.tv-focus,
.sidebar-item.is-selected:focus {
  background: #343a45;
}

.history-video-action.tv-focus,
.history-video-action:focus,
.history-search-action.tv-focus,
.history-search-action:focus {
  background: #20242d;
  border-color: #ff756c;
  box-shadow: 0 0 0 2px rgba(255, 90, 80, 0.3);
  transform: none;
}

.history-filter-button.is-selected.tv-focus,
.history-filter-button.is-selected:focus {
  background: #ffffff;
  border-color: #ff8c85;
  color: #11141a;
}

.history-clear-button.tv-focus,
.history-clear-button:focus,
.history-remove-button.tv-focus,
.history-remove-button:focus,
.history-confirm-cancel.tv-focus,
.history-confirm-cancel:focus,
.sidebar-close.tv-focus,
.sidebar-close:focus {
  background: #2b303a;
  border-color: #ff9188;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.48);
}

.history-confirm-delete.tv-focus,
.history-confirm-delete:focus {
  background: #ff453a;
  border-color: #ffd1ce;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.62), 0 0 14px rgba(255, 69, 58, 0.28);
}

.search-button.tv-focus,
.search-button:focus,
.account-primary-button.tv-focus,
.account-primary-button:focus {
  background-color: #ff453a;
  border-color: #ffd1ce;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.62), 0 0 14px rgba(255, 69, 58, 0.28);
}

.account-close.tv-focus,
.account-close:focus,
.account-secondary-button.tv-focus,
.account-secondary-button:focus {
  background-color: #2b303a;
  border-color: #ff9188;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.52), 0 0 14px rgba(255, 90, 80, 0.22);
}

.home-filter-button.is-selected.tv-focus,
.home-filter-button.is-selected:focus,
.channel-filter-button.is-selected.tv-focus,
.channel-filter-button.is-selected:focus {
  background-color: #fff;
  border-color: #ff8c85;
  color: #101217;
}

.player-seek.tv-focus,
.player-seek:focus {
  background: #6a717d;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72), 0 0 14px rgba(255, 69, 58, 0.38);
  outline: none;
  transform: none;
}

@media (min-width: 1280px) {
  .app-sidebar {
    width: 326px;
  }

  .sidebar-item {
    font-size: 16px;
    min-height: 48px;
  }
}

@media (max-width: 1180px) {
  .main-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .player-column {
    width: calc(100% - 378px);
  }

  .related-column {
    flex-basis: 360px;
    margin-left: 18px;
    padding: 14px;
    width: 360px;
  }

  .related-grid .thumbnail-wrap {
    flex-basis: 144px;
    height: 81px;
    min-height: 81px;
    width: 144px;
  }

  .related-grid .video-card {
    min-height: 89px;
  }

  .related-grid .video-copy {
    min-height: 81px;
    width: calc(100% - 144px);
  }

  .shorts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .player-layout {
    display: block;
  }

  .player-column,
  .related-column {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .related-column {
    flex: none;
    margin-top: 24px;
    padding: 16px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid.channel-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shorts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-header {
    height: auto;
    min-height: 68px;
  }

  .setting-copy,
  .account-label {
    display: none;
  }

  .setting-button {
    padding-left: 5px;
  }

  .main-content {
    padding-top: 92px;
  }

  .search-form {
    width: 100%;
  }

  .video-card,
  .player-column,
  .related-column {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .video-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .related-column {
    margin-top: 24px;
  }

  .history-thumbnail {
    flex-basis: 160px;
    height: 90px;
    width: 160px;
  }
}

@media (max-width: 620px) {
  .app-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-menu {
    width: 42px;
  }

  .header-brand {
    padding-left: 10px;
  }

  .setting-button {
    margin-left: 5px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-sidebar {
    max-width: 310px;
    padding: 14px 11px 20px;
    width: calc(100% - 42px);
  }

  .sidebar-header {
    padding-bottom: 13px;
  }

  .sidebar-brand img {
    height: 40px;
    margin-right: 9px;
    width: 40px;
  }

  .sidebar-item {
    font-size: 15px;
    min-height: 46px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .sidebar-item-icon {
    height: 32px;
    margin-right: 11px;
    width: 32px;
  }

  .home-filter-button {
    flex: 1 1 auto;
    padding-left: 12px;
    padding-right: 12px;
  }

  .channel-header {
    border-radius: 14px;
    padding: 17px 15px 14px;
  }

  .channel-view-avatar {
    flex-basis: 58px;
    font-size: 22px;
    height: 58px;
    width: 58px;
  }

  .channel-identity-copy {
    margin-left: 13px;
  }

  .channel-identity-copy h1 {
    font-size: 23px;
    line-height: 29px;
  }

  .channel-identity-copy > p:last-child {
    font-size: 13px;
    line-height: 19px;
  }

  .channel-filter-row {
    margin-top: 16px;
  }

  .channel-filter-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .feed-section {
    border-radius: 14px;
    padding: 12px;
  }

  .feed-section + .feed-section {
    margin-top: 24px;
  }

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

  .feed-section-heading h2 {
    font-size: 19px;
    line-height: 25px;
  }

  .feed-section-count {
    font-size: 11px;
    margin-left: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .history-page-heading h1 {
    font-size: 27px;
    line-height: 34px;
  }

  .settings-page-heading h1 {
    font-size: 27px;
    line-height: 34px;
  }

  .settings-panel {
    border-radius: 14px;
  }

  .settings-option {
    min-height: 74px;
    padding: 12px;
  }

  .settings-option-copy strong {
    font-size: 15px;
    line-height: 20px;
  }

  .settings-option-copy small {
    font-size: 12px;
    line-height: 17px;
  }

  .settings-option-state {
    margin-left: 8px;
    margin-right: 8px;
  }

  .history-section {
    border-radius: 14px;
    padding: 13px;
  }

  .history-section + .history-section {
    margin-top: 22px;
  }

  .history-section-heading {
    align-items: flex-start;
  }

  .history-section-heading h2 {
    font-size: 19px;
    line-height: 25px;
  }

  .history-clear-button {
    margin-left: 10px;
    min-height: 40px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .history-filters {
    display: flex;
  }

  .history-filter-button {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 7px;
    padding-right: 7px;
  }

  .history-watch-item,
  .history-search-item {
    display: block;
    padding: 5px;
  }

  .history-video-action {
    width: 100%;
  }

  .history-thumbnail {
    flex-basis: 128px;
    height: 72px;
    width: 128px;
  }

  .history-video-copy {
    padding: 4px 8px 4px 10px;
  }

  .history-video-title {
    font-size: 14px;
    line-height: 19px;
    max-height: 38px;
  }

  .history-video-channel {
    font-size: 12px;
    line-height: 17px;
    margin-top: 3px;
  }

  .history-video-meta {
    font-size: 11px;
    line-height: 16px;
    margin-top: 2px;
  }

  .history-remove-button {
    margin: 6px 0 0;
    min-height: 38px;
    width: 100%;
  }

  .history-search-action {
    min-height: 58px;
  }

  .history-confirm-overlay {
    padding: 14px;
  }

  .history-confirm-dialog {
    border-radius: 14px;
    padding: 22px 18px;
  }

  .history-confirm-actions {
    display: block;
    margin-top: 18px;
  }

  .history-confirm-cancel,
  .history-confirm-delete {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-grid.channel-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .page-heading p:last-child {
    font-size: 15px;
    line-height: 22px;
  }

  .search-form {
    display: block;
  }

  .search-input,
  .search-button {
    margin: 0;
    width: 100%;
  }

  .search-button {
    margin-top: 10px;
  }

  .search-suggestions {
    right: 0;
    top: 62px;
  }

  .player-controls {
    margin-left: 0;
    margin-right: 0;
    padding: 7px;
  }

  .player-subtitle-overlay {
    bottom: 4%;
    font-size: 19px;
    left: 2%;
    line-height: 1.25;
    right: 2%;
  }

  .player-subtitle-overlay[data-caption-size="-1"] {
    font-size: 16px;
  }

  .player-subtitle-overlay[data-caption-size="1"] {
    font-size: 22px;
  }

  .player-subtitle-overlay[data-caption-size="2"] {
    font-size: 25px;
  }

  .player-subtitle-overlay[data-caption-size="3"] {
    font-size: 28px;
  }

  .player-controls-row {
    flex-wrap: wrap;
  }

  .player-progress-row {
    padding: 4px 1px 6px;
  }

  .player-seek {
    margin: 0;
  }

  .player-control-left,
  .player-control-right {
    width: 100%;
  }

  .player-control-left {
    justify-content: flex-start;
  }

  .player-control-right {
    border-top: 1px solid #292f38;
    justify-content: flex-end;
    margin-top: 4px;
    padding-top: 4px;
  }

  .player-icon-button {
    flex-basis: 39px;
    height: 40px;
    margin-left: 0;
    margin-right: 1px;
    min-height: 40px;
    width: 39px;
  }

  .player-timecode {
    font-size: 11px;
    margin-left: 5px;
  }

  .player-settings-overlay {
    align-items: flex-start;
    padding: 8px;
  }

  .player-settings-dialog {
    max-height: calc(100vh - 16px);
  }

  .player-settings-header {
    padding: 15px;
  }

  .player-settings-header h2 {
    font-size: 21px;
    line-height: 27px;
  }

  .player-settings-row {
    min-height: 62px;
    padding: 9px;
  }

  .player-settings-row small {
    display: none;
  }

  .player-settings-row > b {
    margin-left: 12px;
    max-width: 118px;
  }

  .player-meta {
    padding-top: 14px;
  }

  .player-meta h1 {
    font-size: 19px;
    line-height: 25px;
  }

  .player-title-row {
    flex-wrap: wrap;
  }

  .player-quality-select {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }

  .quality-size-select-button {
    width: 100%;
  }

  .player-quality-menu {
    left: 0;
    max-width: 100%;
    right: auto;
    width: 100%;
  }

  .player-channel-avatar {
    flex-basis: 38px;
    height: 38px;
    width: 38px;
  }

  .player-channel-link {
    max-width: 100%;
  }

  .player-details {
    margin-left: 0;
    margin-top: 5px;
    padding-left: 55px;
    width: 100%;
  }

  .player-info-section {
    border-radius: 12px;
  }

  .player-section-toggle {
    min-height: 58px;
    padding: 10px 12px;
  }

  .player-section-heading strong {
    font-size: 15px;
    line-height: 20px;
  }

  .player-section-heading small {
    display: none;
  }

  .player-section-action {
    font-size: 11px;
    margin-left: 12px;
  }

  .player-description-body {
    max-height: 94px;
    padding: 12px;
  }

  .player-description-body.is-expanded {
    max-height: none;
  }

  .player-description-text {
    font-size: 13px;
    line-height: 20px;
  }

  .player-comments-body {
    padding: 3px 12px 6px;
  }

  .player-comment {
    padding: 13px 0;
  }

  .player-comment-avatar {
    flex-basis: 34px;
    height: 34px;
    width: 34px;
  }

  .player-comment-copy {
    margin-left: 10px;
  }

  .related-column {
    padding: 11px;
  }

  .related-grid .video-card {
    min-height: 82px;
  }

  .related-grid .thumbnail-wrap {
    flex-basis: 132px;
    height: 74px;
    min-height: 74px;
    width: 132px;
  }

  .related-grid .video-copy {
    min-height: 74px;
    padding: 3px 5px 3px 9px;
    width: calc(100% - 132px);
  }

  .related-grid .video-title {
    font-size: 13px;
    line-height: 18px;
    max-height: 36px;
  }

  .related-grid .video-channel {
    margin-top: 4px;
  }

  .account-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .account-dialog {
    max-height: calc(100vh - 20px);
    min-height: 0;
  }

  .account-dialog-header {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
  }

  .account-close {
    align-self: flex-end;
    margin-left: 0;
    margin-top: 16px;
    min-width: 112px;
  }

  .account-dialog-body {
    padding: 20px 18px 22px;
  }

  .account-heading > img {
    height: 52px;
    margin-right: 12px;
    width: 52px;
  }

  .account-heading h2 {
    font-size: 21px;
    line-height: 27px;
  }

  .account-user-code {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .account-profile {
    align-items: flex-start;
    padding: 15px;
  }

  .account-profile-avatar {
    height: 52px;
    margin-right: 13px;
    width: 52px;
  }

  .account-actions {
    display: block;
  }

  .account-primary-button,
  .account-secondary-button {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar,
  .sidebar-backdrop {
    transition: none;
  }

  .spinner {
    animation-duration: 1.8s;
  }

  .video-card.tv-focus,
  .video-card:focus {
    transform: none;
  }

  .tv-target.tv-focus,
  .tv-target:focus {
    transform: none;
  }
}
