.tv-page {
    display: grid;
    gap: 10px;
}

.tv-head-card {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tv-head-title {
    margin: 0;
    font-size: 1.4rem;
    color: #14213f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-head-title i {
    color: #1f4f94;
}

.tv-head-subtitle {
    margin: 2px 0 0;
    color: #67758f;
    font-size: 0.93rem;
}

.tv-head-actions {
    display: flex;
    gap: 8px;
}

.tv-btn {
    border: 1px solid #ccd6e5;
    background: #fff;
    color: #26426f;
    border-radius: 9px;
    padding: 8px 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.88rem;
}

.tv-btn:hover {
    background: #f4f7fb;
    color: #1d3760;
}

.tv-grid-card {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 12px;
    padding: 8px;
}

.tv-masonry {
    column-count: 3;
    column-gap: 8px;
}

.tv-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #0d1119;
    break-inside: avoid;
}

.tv-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    min-height: 150px;
}

.tv-item-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.1));
    color: #fff;
    padding: 10px 10px 8px;
}

.tv-item-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.55;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tv-item-meta {
    margin-top: 4px;
    color: #d0ddf5;
    font-size: 0.78rem;
}

.tv-item-play {
    position: absolute;
    right: 9px;
    top: 9px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(24, 55, 104, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.tv-empty {
    padding: 26px 14px;
    text-align: center;
    color: #5f6e88;
}

@media (max-width: 992px) {
    .tv-masonry {
        column-count: 2;
    }
}

@media (max-width: 620px) {
    .tv-masonry {
        column-count: 1;
    }

    .tv-head-card {
        padding: 11px;
    }
}
