/* Shared portrait cards for homepage sections and drama search results. */
.home-drama-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-drama-grid > li { min-width: 0; }
.home-drama-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: #17171e;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.home-drama-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 47, 109, .4);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.home-drama-card__poster {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background-image:
        radial-gradient(70% 50% at 25% 15%, hsl(var(--drama-hue) 62% 34% / .6), transparent 62%),
        radial-gradient(60% 45% at 80% 55%, hsl(calc(var(--drama-hue) + 55) 58% 30% / .5), transparent 64%),
        linear-gradient(160deg, hsl(var(--drama-hue) 28% 16%), hsl(calc(var(--drama-hue) + 45) 24% 10%));
}
.home-drama-card__poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(0, 0, 0, .62));
    pointer-events: none;
}
.home-drama-card__tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    max-width: calc(100% - 16px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff2f6d, #ff7a3d);
    box-shadow: 0 3px 10px rgba(255, 47, 109, .35);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}
.home-drama-card__episodes {
    position: absolute;
    bottom: 8px;
    left: 9px;
    z-index: 1;
    color: #fff;
    font-size: 11.5px;
    font-weight: 650;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}
.home-drama-card__info { padding: 10px 11px 12px; }
.home-drama-card__info h3,
.home-drama-ad__title {
    overflow: hidden;
    margin: 0;
    color: #f4f4f6;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.home-drama-card__info p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 5px 0 0;
    color: #6f6f7e;
    font-size: 11.5px;
    line-height: 1.6;
}
.home-drama-card__detail { flex-shrink: 0; color: #ff6b95; }
.home-drama-card__poster img,
.home-gossip-card__cover img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.home-content-no-cover { position: absolute; inset: 0; display: grid; place-items: center; color: #a9a9b6; font-size: 13px; }
.home-content-empty { margin: 0; padding: 38px 18px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: #17171e; color: #a9a9b6; text-align: center; font-size: 14px; }
.home-content-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.home-content-play > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #ff2f6d; color: #fff; box-shadow: 0 4px 22px rgba(255,47,109,.3); }
.home-drama-card:hover .home-content-play,
.home-drama-card:focus-visible .home-content-play,
.home-gossip-card__link:hover .home-content-play,
.home-gossip-card__link:focus-visible .home-content-play { opacity: 1; }
.home-drama-card:focus-visible,
.home-gossip-card a:focus-visible { outline: 2px solid #ff6b95; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .home-drama-card, .home-content-play { transition: none; }
    .home-drama-card:hover { transform: none; }
}
@media (min-width: 560px) {
    .home-drama-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .home-drama-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
