* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background: #f5f5f7;
    color: #1c1c1e;
    line-height: 1.4;
}

.topbar {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 20px 24px;
    background: #b5305a;
    color: #fff;
}

.topbar h1 {
    font-size: 24px;
}

.result-count {
    font-size: 14px;
    opacity: 0.9;
}

.layout {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 20px;
    background: #fff;
    border-right: 1px solid #e5e5ea;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e6e73;
    margin-bottom: 8px;
}

.search-input,
.sort-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.search-input:focus,
.sort-select:focus {
    outline: none;
    border-color: #b5305a;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-item input {
    accent-color: #b5305a;
}

.reset-btn {
    width: 100%;
    padding: 10px;
    background: #f5f5f7;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.reset-btn:hover {
    background: #ececf0;
}

/* Content */
.content {
    flex: 1;
    padding: 24px;
    min-width: 0;
}

.status {
    padding: 40px;
    text-align: center;
    color: #6e6e73;
}

.status.error {
    color: #c0392b;
}

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

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #eee;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
}

.card-body {
    padding: 12px;
}

.card-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.card-meta {
    font-size: 13px;
    color: #b5305a;
}

.card-sub {
    font-size: 12px;
    color: #6e6e73;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
}

.pagination button {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid #d1d1d6;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.pagination button:hover:not(:disabled) {
    background: #f5f5f7;
}

.pagination button.active {
    background: #b5305a;
    color: #fff;
    border-color: #b5305a;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.modal-video {
    width: 100%;
    max-height: 75vh;
    display: block;
    background: #000;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.modal-info {
    padding: 16px 20px;
    color: #fff;
    background: #1c1c1e;
}

.modal-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.modal-sub {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Transition */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.2s;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e5e5ea;
    }
}
