.ts-site:has(.ts-youtube-page) { background: #f7f8f5; }
.ts-site:has(.ts-youtube-page) .ts-content { max-width: 1160px; }
.ts-youtube-page { padding: 34px 0 28px; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
.ts-youtube-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 24px; }
.ts-youtube-heading p { margin: 0 0 5px; color: #b45931; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.ts-youtube-heading h1 { margin: 0; color: #203a3e; font-size: 28px; line-height: 1.35; letter-spacing: -1px; }
.ts-youtube-count { display: block; margin-top: 7px; color: #718078; font-size: 11px; font-weight: 600; }
.ts-youtube-home { flex-shrink: 0; padding: 8px 13px; border: 1px solid #dbe1da; border-radius: 8px; background: #fff; color: #52645e; font-size: 11px; font-weight: 700; }
.ts-youtube-home:hover { border-color: #bfcac0; color: #294449; }
.ts-youtube-search { margin: -6px 0 22px; padding: 15px 16px; border: 1px solid #e2e7e0; border-radius: 12px; background: #fff; }
.ts-youtube-search label { display: block; margin-bottom: 8px; color: #30494c; font-size: 12px; font-weight: 700; }
.ts-youtube-search-row { display: flex; gap: 8px; }
.ts-youtube-search input { flex: 1; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid #cfd8d0; border-radius: 9px; background: #fff; color: #263d40; font: inherit; font-size: 13px; }
.ts-youtube-search button, .ts-youtube-search a { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; height: 42px; padding: 0 14px; border: 1px solid #294449; border-radius: 9px; background: #294449; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.ts-youtube-search a { border-color: #d7dfd7; background: #fff; color: #52645e; }
.ts-youtube-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ts-youtube-card { overflow: hidden; min-width: 0; border: 1px solid #e2e7e0; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #243e420a; }
.ts-youtube-player { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; background: #172124; }
.ts-youtube-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ts-youtube-info { padding: 16px 17px 17px; }
.ts-youtube-info h2 { display: -webkit-box; overflow: hidden; min-height: 45px; margin: 0 0 10px; color: #2a4043; font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: -.35px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ts-youtube-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; min-height: 17px; margin: 0 0 13px; color: #738078; font-size: 10px; line-height: 1.6; }
.ts-youtube-meta span:empty { display: none; }
.ts-youtube-empty { padding: 70px 20px; border: 1px solid #e2e7e0; border-radius: 14px; background: #fff; color: #66756e; text-align: center; }
.ts-youtube-empty strong, .ts-youtube-empty span { display: block; }
.ts-youtube-empty strong { margin-bottom: 7px; color: #2d4447; font-size: 15px; }
.ts-youtube-empty span { font-size: 11px; }
.ts-youtube-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 24px; }
.ts-youtube-page-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid #d7dfd7; border-radius: 10px; background: #fff; color: #294449; font-size: 12px; font-weight: 700; box-shadow: 0 3px 10px #243e4208; }
.ts-youtube-page-link:first-child { justify-self: start; }
.ts-youtube-page-link:last-child { justify-self: end; }
.ts-youtube-page-link:hover { border-color: #aebcaf; background: #f8faf7; color: #b24a2b; }
.ts-youtube-page-status { color: #718078; font-size: 11px; font-weight: 700; white-space: nowrap; }
@media (max-width: 680px) {
    .ts-youtube-page { padding: 26px 0 16px; }
    .ts-youtube-heading { align-items: center; margin-bottom: 18px; }
    .ts-youtube-heading h1 { font-size: 24px; }
    .ts-youtube-search { margin-bottom: 16px; padding: 12px; }
    .ts-youtube-search-row { flex-wrap: wrap; }
    .ts-youtube-search input { flex-basis: 100%; }
    .ts-youtube-search button, .ts-youtube-search a { flex: 1; }
    .ts-youtube-grid { grid-template-columns: 1fr; gap: 14px; }
    .ts-youtube-info { padding: 14px 15px 15px; }
    .ts-youtube-info h2 { min-height: 42px; font-size: 14px; }
    .ts-youtube-pagination { gap: 8px; margin-top: 18px; }
    .ts-youtube-page-link { min-height: 44px; padding: 0 12px; font-size: 11px; }
    .ts-youtube-page-status { font-size: 10px; }
}
