/* Only /tag/{name}/ loads this sheet. Reference: tag aggregation layout. */
.tag-detail { color: #f4f4f6; line-height: 1.6; padding-bottom: clamp(30px, 4vw, 48px); }
.tag-detail *, .tag-detail *::before, .tag-detail *::after { box-sizing: border-box; }
.tag-detail__crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 16px 0 4px; font-size: 13px; color: #6f6f7e; }
.tag-detail__crumbs a { color: #a9a9b6; }
.tag-detail__crumbs svg { opacity: .45; flex-shrink: 0; }
.tag-detail__crumbs [aria-current] { color: #f4f4f6; min-width: 0; overflow-wrap: anywhere; }
.tag-detail__head { padding: clamp(14px, 2vw, 22px) 0 clamp(16px, 2.4vw, 26px); }
.tag-detail__title { margin: 0 0 8px; font-size: clamp(21px, 2.8vw, 31px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.tag-detail__description { margin: 0 0 6px; color: #a9a9b6; font-size: clamp(13.5px, 1.2vw, 15px); white-space: pre-line; overflow-wrap: anywhere; }
.tag-detail__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(14px, 1.8vw, 20px); }
.tag-detail__count { color: #6f6f7e; font-size: 13px; overflow-wrap: anywhere; }
.tag-detail__ads { margin-bottom: 20px; }
.tag-detail__section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: clamp(17px, 2vw, 21px); font-weight: 750; letter-spacing: -.01em; }
.tag-detail__section-title::before { content: ''; width: 4px; height: 19px; border-radius: 3px; background: linear-gradient(180deg, #ff2f6d, #ff7a3d); }
.tag-detail .tag-detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.tag-detail__grid > li { min-width: 0; }
.tag-detail .video-card-v2 { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.tag-detail .video-card-v2:hover { transform: none; box-shadow: none; }
.tag-detail .video-card-v2__thumb { border-radius: 14px; }
.tag-detail .video-card-v2__thumb .poster { border-radius: inherit; }
.tag-detail .video-card-v2__info { padding: 10px 0 0; gap: 8px; }
.tag-detail .video-card-v2__title a { min-height: 0; font-size: 14px; font-weight: 550; line-height: 1.5; }
.tag-detail .video-card-v2__tags { overflow: hidden; }
.tag-detail .video-card-v2__tags a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: #6f6f7e; }
.tag-detail__empty { margin: 0; padding: 40px 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: #141419; color: #a9a9b6; text-align: center; overflow-wrap: anywhere; }
.tag-detail a:hover { color: #ff6b95; }
.tag-detail a:focus-visible, .tag-detail input:focus-visible, .tag-detail button:focus-visible { outline: 2px solid #ff6b95; outline-offset: 3px; }
@media (min-width: 900px) { .tag-detail .tag-detail__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 719px) { .tag-detail .tag-detail__grid { gap: 10px; } }
/* Scoped aggregation controls and shared content cards. */
.tag-detail__tabs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tag-detail__type { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; font-size: 14.5px; font-weight: 600; gap: 7px; padding: 0 18px; color: #a9a9b6; background: #17171e; box-shadow: none; border: 1px solid rgba(255,255,255,.07); }
.tag-detail__type span { font-size: 11px; opacity: .7; }
.tag-detail__type[aria-current] { color: #fff; background: linear-gradient(135deg, #ff2f6d, #ff5a3d); border-color: transparent; box-shadow: 0 6px 18px rgba(255,47,109,.35); }
.tag-detail__results + .tag-detail__results { margin-top: clamp(34px, 4vw, 56px); }
.tag-detail__section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tag-detail__section-head .tag-detail__section-title { margin: 0; flex-wrap: wrap; }
.tag-detail__section-title::before { flex-shrink: 0; }
.tag-detail__section-title small { color: #6f6f7e; font-size: 12px; font-weight: 400; }
.tag-detail__more { color: #a9a9b6; font-size: 13px; white-space: nowrap; }
.tag-detail .home-gossip-card__meta { flex-wrap: wrap; gap: 5px; }

@media (max-width: 719px) {
    .tag-detail__tabs { gap: 6px; }
    .tag-detail__type { padding: 0 12px; font-size: 13px; gap: 4px; }
    .tag-detail .home-drama-grid, .tag-detail .home-gossip-grid { gap: 16px 10px; }
}
/* The reference uses compact horizontal post rows, with the shared card data. */
.tag-detail--all .home-gossip-grid { grid-template-columns: minmax(0, 1fr); }
.tag-detail--all .home-gossip-card { display: grid; grid-template-columns: clamp(110px, 14vw, 168px) minmax(0, 1fr); grid-template-areas: 'cover title' 'cover meta'; align-content: center; gap: 8px 14px; height: 100%; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: #17171e; }
.tag-detail--all .home-gossip-card__link { display: contents; }
.tag-detail--all .home-gossip-card__cover { grid-area: cover; align-self: center; border-radius: 9px; }
.tag-detail--all .home-gossip-card h3 { grid-area: title; align-self: end; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.tag-detail--all .home-gossip-card__meta { grid-area: meta; align-self: start; margin: 0; font-size: 12px; }
.tag-detail--all .home-gossip-card__tags { display: none; }
.tag-detail--all .home-gossip-card:hover { border-color: rgba(255,255,255,.16); }
.tag-detail--all .home-gossip-card:focus-within { outline: 2px solid #ff6b95; outline-offset: 3px; }
@media (min-width: 560px) { .tag-detail--all .home-gossip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .tag-detail--all .home-drama-grid > :nth-child(n+5) { display: none; } }
.tag-detail__section-head .tag-detail__section-title { flex: 1; min-width: 0; }
.tag-detail__section-title > span { min-width: 0; overflow-wrap: anywhere; }
.tag-detail__related { margin-top: clamp(34px, 4vw, 56px); }
.tag-detail__chips { display: flex; gap: 8px; }
.tag-detail__chips a { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; background: #17171e; color: #a9a9b6; font-size: 13.5px; }
.tag-detail__chips a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-detail__chips a:hover { color: #fff; border-color: #ff2f6d; }
@media (max-width: 1199px) { .tag-detail__chips a:nth-child(n+9) { display: none; } }
@media (max-width: 899px) { .tag-detail__chips a:nth-child(n+7) { display: none; } }
@media (max-width: 559px) { .tag-detail__chips a:nth-child(n+5) { display: none; } }
