.ytl-main {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.ytl-heading {
  max-width: 900px;
  margin-inline: auto;
}

.ytl-channel-link,
.ytl-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #1a73e8;
  font-weight: 700;
  text-decoration: none;
}

.ytl-search-panel,
.ytl-playlists,
.ytl-related,
.ytl-description,
.ytl-video-playlists,
.ytl-playlist-videos {
  margin-top: 32px;
}

.ytl-search-panel {
  padding: 24px;
  border: 1px solid #dadce0;
  border-radius: 14px;
  background: #fff;
}

.ytl-search-panel h2,
.ytl-section-heading h2,
.ytl-related h2,
.ytl-description h2,
.ytl-video-playlists h2 {
  margin-top: 0;
}

.ytl-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 12px;
}

.ytl-search-field input,
.ytl-filter-field select,
.ytl-playlist-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #bdc1c6;
  border-radius: 10px;
  background: #fff;
  color: #202124;
  font: inherit;
}

.ytl-search-field input:focus,
.ytl-filter-field select:focus,
.ytl-playlist-search input:focus {
  outline: 3px solid #e8f0fe;
  border-color: #1a73e8;
}

.ytl-result-summary {
  margin: 14px 0;
  color: #5f6368;
}

.ytl-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(240px, 1fr)
  );
  gap: 20px;
}

.ytl-video-card,
.ytl-playlist-card {
  min-width: 0;
  border: 1px solid #e0e3e7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ytl-video-card a,
.ytl-playlist-card a {
  color: inherit;
  text-decoration: none;
}

.ytl-thumb,
.ytl-playlist-thumb,
.ytl-nonembed {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #f1f3f4;
  overflow: hidden;
}

.ytl-thumb img,
.ytl-playlist-thumb img,
.ytl-nonembed img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ytl-duration {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(32, 33, 36, .9);
  color: #fff;
  direction: ltr;
  font: 600 12px/1.3 system-ui, sans-serif;
}

.ytl-video-body,
.ytl-playlist-body {
  padding: 14px;
}

.ytl-video-body h2,
.ytl-video-body h3,
.ytl-playlist-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.ytl-video-meta,
.ytl-playlist-body p {
  margin: 9px 0 0;
  color: #5f6368;
  font: 13px/1.5 system-ui, sans-serif;
}

.ytl-more {
  display: block;
  margin: 22px auto 0;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid #1a73e8;
  border-radius: 8px;
  background: #fff;
  color: #1a73e8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ytl-more:hover {
  background: #e8f0fe;
}

.ytl-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.ytl-section-heading p {
  margin: 0;
  color: #5f6368;
}

.ytl-playlist-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(230px, 1fr)
  );
  gap: 18px;
}

.ytl-playlist-thumb {
  display: grid;
  place-items: center;
  color: #5f6368;
}

.ytl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
  color: #5f6368;
  font-size: .92rem;
}

.ytl-breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
}

.ytl-watch {
  max-width: 960px;
  margin-inline: auto;
}

.ytl-watch-heading h1 {
  margin-bottom: 10px;
  line-height: 1.55;
}

.ytl-watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #5f6368;
  direction: ltr;
  justify-content: flex-end;
}

.ytl-player {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ytl-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ytl-watch-actions {
  margin-top: 14px;
}

.ytl-description,
.ytl-video-playlists,
.ytl-playlist-description {
  padding: 20px;
  border: 1px solid #e0e3e7;
  border-radius: 12px;
  background: #fff;
}

.ytl-description p {
  margin-bottom: 0;
  white-space: normal;
  line-height: 1.9;
}

.ytl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ytl-tags a {
  padding: 7px 11px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  color: #1a73e8;
  text-decoration: none;
}

.ytl-playlist-search {
  display: block;
  max-width: 600px;
  margin-bottom: 12px;
}

.ytl-playlist-search span {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.ytl-empty,
.ytl-not-found {
  margin: 60px auto;
  max-width: 720px;
  padding: 28px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

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

@media (max-width: 720px) {
  .ytl-main {
    width: min(100% - 20px, 1180px);
  }

  .ytl-search-panel {
    padding: 16px;
  }

  .ytl-search-controls {
    grid-template-columns: 1fr;
  }

  .ytl-grid,
  .ytl-playlist-grid {
    grid-template-columns: 1fr;
  }

  .ytl-section-heading {
    display: block;
  }

  .ytl-watch-meta {
    justify-content: flex-start;
  }
}

/* BEGIN KISAANTIME YOUTUBE SEARCH UX V2 */

.ytl-field-label {
  display: block;
  margin-bottom: 7px;
  color: #3c4043;
  font-weight: 700;
}

.ytl-type-filters {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ytl-type-filter {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #3c4043;
  font: inherit;
  cursor: pointer;
}

.ytl-type-filter:hover {
  background: #f8f9fa;
}

.ytl-type-filter.is-active {
  border-color: #1a73e8;
  background: #e8f0fe;
  color: #174ea6;
  font-weight: 700;
}

.ytl-type-filter:focus-visible,
.ytl-mini-tag:focus-visible,
.ytl-video-card a:focus-visible {
  outline: 3px solid #aecbfa;
  outline-offset: 2px;
}

.ytl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.ytl-mini-tag,
.ytl-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #f8f9fa;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.ytl-status-badge {
  border-color: #aecbfa;
  background: #e8f0fe;
  color: #174ea6;
  font-weight: 700;
}

.ytl-mini-tag {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ytl-mini-tag:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

.ytl-no-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #f8f9fa;
  text-align: center;
  color: #5f6368;
}

.ytl-no-results strong {
  color: #202124;
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .ytl-type-filters {
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .ytl-card-tags {
    margin-top: 9px;
  }
}

/* END KISAANTIME YOUTUBE SEARCH UX V2 */

/* BEGIN KISAANTIME SHORTS LIVE UX */

.ytl-short-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #bdc1c6;
  border-radius: 999px;
  background: #fff;
  color: #202124;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.ytl-watch-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.ytl-schedule {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  color: #5f6368;
  font-size: .92rem;
}

.ytl-schedule time {
  direction: ltr;
  unicode-bidi: isolate;
}

.ytl-player-short {
  width: min(100%, 520px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

/* END KISAANTIME SHORTS LIVE UX */

/* BEGIN KISAANTIME LIBRARY VISUAL V4 */

/*
 * Main /youtube/ page only.
 * Watch pages and playlist pages are intentionally excluded.
 */

.ytl-library-page {
  background: #f8f9fa;
  color: #202124;
}

.ytl-library-page .ytl-main {
  width: min(1180px, calc(100% - 40px));
  padding-top: 26px;
  padding-bottom: 54px;
}

/* Page introduction */

.ytl-library-page .ytl-heading {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: center;
}

.ytl-library-page .ytl-heading h1 {
  margin: 0 0 10px;
  color: #202124;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.45;
}

.ytl-library-page .ytl-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: #5f6368;
  font-size: 1.02rem;
  line-height: 1.9;
}

.ytl-library-page .ytl-channel-link {
  margin-top: 15px;
  padding: 7px 2px;
}

/* Search */

.ytl-library-page .ytl-search-panel {
  margin-top: 0;
  padding: 24px;
  border: 1px solid #dadce0;
  border-radius: 16px;
  background: #fff;
}

.ytl-library-page .ytl-search-panel > h2 {
  margin: 0 0 18px;
  color: #202124;
  font-size: 1.25rem;
}

.ytl-library-page .ytl-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, .8fr);
  gap: 14px;
  align-items: end;
}

.ytl-library-page .ytl-field-label {
  margin-bottom: 7px;
  color: #3c4043;
  font-size: .92rem;
}

.ytl-library-page .ytl-search-field input,
.ytl-library-page .ytl-filter-field select {
  min-height: 54px;
  border: 1px solid #bdc1c6;
  border-radius: 10px;
  background: #fff;
  color: #202124;
}

.ytl-library-page .ytl-search-field input {
  padding-inline: 16px;
}

.ytl-library-page .ytl-search-field input::placeholder {
  color: #80868b;
  opacity: 1;
}

.ytl-library-page .ytl-search-field input:hover,
.ytl-library-page .ytl-filter-field select:hover {
  border-color: #80868b;
}

.ytl-library-page .ytl-search-field input:focus,
.ytl-library-page .ytl-filter-field select:focus {
  border-color: #1a73e8;
  outline: 3px solid #e8f0fe;
}

/* Type filters */

.ytl-library-page .ytl-type-filters {
  gap: 8px;
  margin-top: 18px;
}

.ytl-library-page .ytl-type-filter {
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 20px;
}

.ytl-library-page .ytl-type-filter.is-active {
  border-color: #1a73e8;
  background: #e8f0fe;
  color: #174ea6;
}

.ytl-library-page .ytl-result-summary {
  margin: 18px 0 14px;
  color: #5f6368;
  font-size: .92rem;
}

/* Video grid */

.ytl-library-page #ytVideoResults {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ytl-library-page .ytl-video-card {
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ytl-library-page .ytl-video-card:hover {
  border-color: #bdc1c6;
}

.ytl-library-page .ytl-thumb {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid #e8eaed;
  background: #f1f3f4;
}

.ytl-library-page .ytl-thumb img {
  object-fit: contain;
}

.ytl-library-page .ytl-video-body {
  padding: 14px 15px 15px;
}

.ytl-library-page .ytl-video-body h2 {
  display: -webkit-box;
  min-height: 4.55em;
  margin: 0;
  overflow: hidden;
  color: #202124;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.52;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ytl-library-page .ytl-video-body h2 a:hover {
  color: #1a73e8;
}

.ytl-library-page .ytl-video-meta {
  margin-top: 10px;
  color: #80868b;
}

.ytl-library-page .ytl-card-tags {
  margin-top: 11px;
}

.ytl-library-page .ytl-mini-tag,
.ytl-library-page .ytl-short-badge,
.ytl-library-page .ytl-status-badge {
  max-width: 100%;
  font-size: 11px;
}

.ytl-library-page .ytl-more {
  min-width: 180px;
  margin-top: 25px;
  border-radius: 8px;
}

/* Playlist section */

.ytl-library-page .ytl-playlists {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid #dadce0;
}

.ytl-library-page .ytl-section-heading {
  align-items: center;
  margin-bottom: 18px;
}

.ytl-library-page .ytl-section-heading h2 {
  margin: 0;
  color: #202124;
  font-size: 1.45rem;
}

.ytl-library-page .ytl-section-heading p {
  color: #80868b;
  direction: ltr;
  unicode-bidi: isolate;
}

.ytl-library-page .ytl-playlist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ytl-library-page .ytl-playlist-card {
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
}

.ytl-library-page .ytl-playlist-card:hover {
  border-color: #bdc1c6;
}

.ytl-library-page .ytl-playlist-thumb {
  border-bottom: 1px solid #e8eaed;
  background: #f1f3f4;
}

.ytl-library-page .ytl-playlist-thumb img {
  object-fit: contain;
}

.ytl-library-page .ytl-playlist-body {
  padding: 13px 14px 14px;
}

.ytl-library-page .ytl-playlist-body h3 {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0;
  overflow: hidden;
  font-size: .96rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ytl-library-page .ytl-playlist-body p {
  margin-top: 8px;
}

/* Empty/no-result panel */

.ytl-library-page .ytl-no-results {
  min-height: 180px;
  place-content: center;
  border-style: dashed;
  background: #fff;
}

/* Tablet */

@media (max-width: 980px) {

  .ytl-library-page #ytVideoResults {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ytl-library-page .ytl-playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ytl-library-page .ytl-search-controls {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  }
}

/* Mobile */

@media (max-width: 720px) {

  .ytl-library-page .ytl-main {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
    padding-bottom: 38px;
  }

  .ytl-library-page .ytl-heading {
    margin-bottom: 22px;
    text-align: start;
  }

  .ytl-library-page .ytl-heading h1 {
    font-size: 1.65rem;
  }

  .ytl-library-page .ytl-heading p {
    margin-inline: 0;
    font-size: .98rem;
  }

  .ytl-library-page .ytl-search-panel {
    padding: 16px;
    border-radius: 12px;
  }

  .ytl-library-page .ytl-search-controls {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ytl-library-page #ytVideoResults,
  .ytl-library-page .ytl-playlist-grid {
    grid-template-columns: 1fr;
  }

  .ytl-library-page .ytl-video-body h2 {
    min-height: 0;
  }

  .ytl-library-page .ytl-playlist-body h3 {
    min-height: 0;
  }

  .ytl-library-page .ytl-section-heading {
    display: block;
  }

  .ytl-library-page .ytl-section-heading p {
    margin-top: 5px;
  }

  .ytl-library-page .ytl-playlists {
    margin-top: 38px;
    padding-top: 24px;
  }
}

/* END KISAANTIME LIBRARY VISUAL V4 */

/* BEGIN KISAANTIME SOLID FILTER BUTTONS V5 */

/*
 * Professional solid controls:
 * selected   = solid blue + white text
 * unselected = white + solid blue border/text
 */

.ytl-library-page .ytl-type-filter {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #1a73e8;
  border-radius: 8px;
  background: #ffffff;
  color: #1a73e8;
  box-shadow: none;
  font-weight: 700;
}

.ytl-library-page .ytl-type-filter:hover {
  border-color: #1765cc;
  background: #ffffff;
  color: #1765cc;
}

.ytl-library-page .ytl-type-filter.is-active,
.ytl-library-page .ytl-type-filter[aria-pressed="true"] {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #ffffff;
}

.ytl-library-page .ytl-type-filter.is-active:hover,
.ytl-library-page .ytl-type-filter[aria-pressed="true"]:hover {
  border-color: #1765cc;
  background: #1765cc;
  color: #ffffff;
}

.ytl-library-page .ytl-type-filter:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

/*
 * Mixed Urdu / English titles:
 * browser chooses direction from actual title text.
 */
.ytl-library-page .ytl-video-body h2[dir="auto"],
.ytl-library-page .ytl-playlist-body h3[dir="auto"] {
  unicode-bidi: plaintext;
  text-align: start;
}

/* END KISAANTIME SOLID FILTER BUTTONS V5 */

/* BEGIN KISAANTIME SEMANTIC CONTROLS V7 */

/*
 * 1. FILTER BUTTONS
 * Medium interactive controls.
 */

.ytl-library-page .ytl-type-filter {
  min-height: 40px;
  padding: 8px 16px;

  border: 1px solid #1a73e8;
  border-radius: 8px;

  background: #ffffff;
  color: #1a73e8;

  box-shadow: none;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;

  cursor: pointer;

  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.ytl-library-page .ytl-type-filter:hover {
  border-color: #1765cc;
  background: #f4f8ff;
  color: #1765cc;
}

.ytl-library-page .ytl-type-filter.is-active,
.ytl-library-page .ytl-type-filter[aria-pressed="true"] {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #ffffff;
}

.ytl-library-page .ytl-type-filter.is-active:hover,
.ytl-library-page .ytl-type-filter[aria-pressed="true"]:hover {
  border-color: #1765cc;
  background: #1765cc;
  color: #ffffff;
}


/*
 * 2. LIVE / UPCOMING STATUS
 * Small non-clickable state badge.
 */

.ytl-status-badge {
  display: inline-flex;
  align-items: center;

  min-height: 26px;
  padding: 4px 8px;

  border: 1px solid #1a73e8;
  border-radius: 6px;

  background: #1a73e8;
  color: #ffffff;

  box-shadow: none;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;

  cursor: default;
}


/*
 * 3. SHORTS STATUS
 * Also a small state badge, kept as its own component.
 */

.ytl-short-badge {
  display: inline-flex;
  align-items: center;

  min-height: 26px;
  padding: 4px 8px;

  border: 1px solid #1a73e8;
  border-radius: 6px;

  background: #1a73e8;
  color: #ffffff;

  box-shadow: none;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;

  cursor: default;
}


/*
 * 4. PLAYLIST NAME ON VIDEO CARDS
 * Compact clickable category/playlist control.
 */

.ytl-card-playlist-tag {
  display: inline-flex;
  align-items: center;

  min-height: 28px;
  max-width: 100%;

  padding: 5px 9px;

  border: 1px solid #1a73e8;
  border-radius: 7px;

  background: #1a73e8;
  color: #ffffff;

  box-shadow: none;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;

  text-decoration: none;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  transition:
    background-color .15s ease,
    border-color .15s ease;
}

a.ytl-card-playlist-tag:hover {
  border-color: #1765cc;
  background: #1765cc;
  color: #ffffff;
}

.ytl-card-playlist-tag-static {
  cursor: default;
}


/*
 * 5. RELATED PLAYLIST ON WATCH PAGE
 * Larger than card tags because this is a navigational link.
 */

.ytl-tags a.ytl-related-playlist {
  display: inline-flex;
  align-items: center;

  min-height: 34px;
  padding: 7px 11px;

  border: 1px solid #1a73e8;
  border-radius: 8px;

  background: #1a73e8;
  color: #ffffff;

  box-shadow: none;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;

  text-decoration: none;

  transition:
    background-color .15s ease,
    border-color .15s ease;
}

.ytl-tags a.ytl-related-playlist:hover {
  border-color: #1765cc;
  background: #1765cc;
  color: #ffffff;
}


/*
 * Keyboard focus only on interactive elements.
 */

.ytl-library-page .ytl-type-filter:focus-visible,
a.ytl-card-playlist-tag:focus-visible,
.ytl-tags a.ytl-related-playlist:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}


/*
 * Mobile sizes remain distinct.
 */

@media (max-width: 720px) {

  .ytl-library-page .ytl-type-filter {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 13px;
  }

  .ytl-status-badge,
  .ytl-short-badge {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 11px;
  }

  .ytl-card-playlist-tag {
    min-height: 27px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .ytl-tags a.ytl-related-playlist {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* END KISAANTIME SEMANTIC CONTROLS V7 */

/* BEGIN KISAANTIME TYPOGRAPHY AND CONTROL POLISH V8 */

/* =========================================================
   CLICKABLE CONTROL COLOR FIX
   ========================================================= */

/*
 * Old generic card-link rules were stronger than the tag rule.
 * Keep playlist/category buttons white at all times.
 */
.ytl-video-card a.ytl-card-playlist-tag,
.ytl-video-card a.ytl-card-playlist-tag:link,
.ytl-video-card a.ytl-card-playlist-tag:visited {
  color: #ffffff;
  background: #1a73e8;
  border-color: #1a73e8;
}

/*
 * Small, clean scale effect.
 * No glow and no shadow.
 */
a.ytl-card-playlist-tag {
  transform: scale(1);
  transform-origin: center;
  transition:
    transform .15s ease,
    background-color .15s ease,
    border-color .15s ease;
}

a.ytl-card-playlist-tag:hover {
  color: #ffffff;
  background: #1765cc;
  border-color: #1765cc;
  transform: scale(1.04);
}

a.ytl-card-playlist-tag:active {
  transform: scale(1.01);
}


/* Other Videos is informational, not clickable. */
.ytl-card-playlist-tag-static {
  color: #ffffff;
  background: #1a73e8;
  border-color: #1a73e8;
}


/* Watch-page playlist links */
.ytl-tags a.ytl-related-playlist,
.ytl-tags a.ytl-related-playlist:link,
.ytl-tags a.ytl-related-playlist:visited {
  color: #ffffff;
  background: #1a73e8;
  border-color: #1a73e8;

  transform: scale(1);
  transform-origin: center;

  transition:
    transform .15s ease,
    background-color .15s ease,
    border-color .15s ease;
}

.ytl-tags a.ytl-related-playlist:hover {
  color: #ffffff;
  background: #1765cc;
  border-color: #1765cc;
  transform: scale(1.035);
}


/* Main filter buttons also get a restrained scale effect. */
.ytl-library-page .ytl-type-filter {
  transform: scale(1);

  transition:
    transform .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.ytl-library-page .ytl-type-filter:hover {
  transform: scale(1.035);
}

.ytl-library-page .ytl-type-filter:active {
  transform: scale(1.01);
}


/* =========================================================
   MAIN LIBRARY TYPOGRAPHY
   Each level has its own size.
   ========================================================= */

.ytl-library-page .ytl-heading h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.45;
}

.ytl-library-page .ytl-heading p {
  font-size: 1.08rem;
  line-height: 1.95;
}

.ytl-library-page .ytl-channel-link {
  font-size: 1rem;
}

.ytl-library-page .ytl-search-panel > h2 {
  font-size: 1.35rem;
}

.ytl-library-page .ytl-field-label {
  font-size: 1rem;
}

.ytl-library-page .ytl-search-field input,
.ytl-library-page .ytl-filter-field select {
  font-size: 1rem;
}

.ytl-library-page .ytl-type-filter {
  font-size: 15px;
}

.ytl-library-page .ytl-result-summary {
  font-size: 1rem;
}


/* Video card hierarchy */

.ytl-library-page .ytl-video-body h2 {
  font-size: 1.08rem;
  line-height: 1.58;
}

.ytl-library-page .ytl-video-meta {
  font-size: 14px;
}

.ytl-library-page .ytl-card-playlist-tag {
  min-height: 31px;
  padding: 6px 11px;

  border-radius: 7px;

  font-size: 12px;
  line-height: 1.3;
}


/* Status remains smaller than navigational tags */

.ytl-status-badge,
.ytl-short-badge {
  min-height: 29px;
  padding: 5px 9px;

  font-size: 13px;
  line-height: 1.25;
}


/* Show more is an action button, not metadata */

.ytl-library-page .ytl-more {
  min-height: 46px;
  padding: 10px 20px;

  font-size: 1rem;
}


/* Playlist browser */

.ytl-library-page .ytl-section-heading h2 {
  font-size: 1.6rem;
}

.ytl-library-page .ytl-section-heading p {
  font-size: .98rem;
}

.ytl-library-page .ytl-playlist-body h3 {
  font-size: 1.05rem;
  line-height: 1.6;
}

.ytl-library-page .ytl-playlist-body p {
  font-size: 14px;
}


/* =========================================================
   WATCH PAGE TYPOGRAPHY
   ========================================================= */

.ytl-breadcrumb {
  font-size: .98rem;
}

.ytl-watch-heading h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  line-height: 1.55;
}

.ytl-watch-meta {
  font-size: .98rem;
}

.ytl-watch-actions .ytl-primary-link {
  font-size: 1.02rem;
}

.ytl-video-playlists h2,
.ytl-description h2,
.ytl-related h2 {
  font-size: 1.4rem;
  line-height: 1.5;
}

.ytl-description p {
  font-size: 1.06rem;
  line-height: 2;
}

.ytl-tags a.ytl-related-playlist {
  min-height: 37px;
  padding: 8px 13px;

  font-size: 13px;
}

.ytl-schedule {
  font-size: .98rem;
}


/* =========================================================
   PLAYLIST PAGE TYPOGRAPHY
   ========================================================= */

.ytl-playlist-search > span {
  font-size: 1rem;
}

.ytl-playlist-search input {
  font-size: 1rem;
}

.ytl-playlist-videos .ytl-result-summary {
  font-size: 1rem;
}

.ytl-playlist-videos .ytl-video-body h2 {
  font-size: 1.08rem;
  line-height: 1.58;
}

.ytl-playlist-videos .ytl-video-meta {
  font-size: 14px;
}

.ytl-empty {
  font-size: 1.05rem;
  line-height: 1.9;
}


/* =========================================================
   MOBILE SCALE
   Still hierarchical; not one-size-fits-all.
   ========================================================= */

@media (max-width: 720px) {

  .ytl-library-page .ytl-heading h1 {
    font-size: 1.8rem;
  }

  .ytl-library-page .ytl-heading p {
    font-size: 1.03rem;
  }

  .ytl-library-page .ytl-search-panel > h2 {
    font-size: 1.25rem;
  }

  .ytl-library-page .ytl-field-label {
    font-size: .98rem;
  }

  .ytl-library-page .ytl-type-filter {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .ytl-library-page .ytl-video-body h2 {
    font-size: 1.06rem;
  }

  .ytl-library-page .ytl-video-meta {
    font-size: 13.5px;
  }

  .ytl-library-page .ytl-card-playlist-tag {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .ytl-status-badge,
  .ytl-short-badge {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .ytl-library-page .ytl-section-heading h2 {
    font-size: 1.45rem;
  }

  .ytl-library-page .ytl-playlist-body h3 {
    font-size: 1.03rem;
  }

  .ytl-watch-heading h1 {
    font-size: 1.65rem;
  }

  .ytl-description p {
    font-size: 1.03rem;
  }

  .ytl-video-playlists h2,
  .ytl-description h2,
  .ytl-related h2 {
    font-size: 1.3rem;
  }

  .ytl-tags a.ytl-related-playlist {
    min-height: 35px;
    padding: 7px 11px;
    font-size: 12.5px;
  }
}

/* END KISAANTIME TYPOGRAPHY AND CONTROL POLISH V8 */
