/* --- Trang chủ --- */

/* THAY ĐỔI: CSS cho Video nền Hero Section */
.hero-section {
    height: 85vh; /* Chiều cao chiếm 85% màn hình */
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
}

.hero-overlay {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.65); /* Lớp phủ tối để làm nổi bật chữ */
    z-index: 2;
}

.hero-container { 
    display: grid; 
    grid-template-columns: 1fr;
    align-items: center; 
    gap: 2rem;
    position: relative;
    z-index: 3; /* Đảm bảo nội dung nổi lên trên lớp phủ và video */
}
.hero-content { 
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
/* KẾT THÚC THAY ĐỔI */

.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.5rem; font-weight: 500; color: var(--primary-purple); margin-bottom: 1.5rem; }
.hero-description { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.events-section { padding: 5rem 0; }
.filter-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
#featured-events-grid { grid-auto-columns: calc((100% / 4) - 1.2rem); gap: 1.5rem; padding: 0.5rem;}

.event-card {
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(143, 0, 255, 0.25);
}
.event-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.event-card-info {
    padding: 1.25rem;
}
.event-card .event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-card .event-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.secondary-market-section { padding: 4rem 0; background-color: #050505; }
.secondary-market-section .text-container > p { margin-bottom: 2.5rem; }
.feature-list { list-style: none; margin: 0 auto 3rem auto; max-width: 600px; text-align: left; }
.feature-list li { display: flex; align-items: flex-start; gap: 1rem; }
.feature-list li:not(:last-child) { margin-bottom: 1.5rem; }
.feature-list i { color: var(--primary-purple); font-size: 1.2rem; margin-top: 5px; flex-shrink: 0; }
.feature-list p { color: var(--text-muted); flex-grow: 1; margin: 0; }
.feature-list p strong { color: var(--text-light); font-weight: 600; }

.auction-section { padding: 4rem 0; }
.auction-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.auction-image img { width: 100%; height: 100%; object-fit: cover; }
.auction-details { padding: 3rem; }
.auction-tag { display: inline-block; background: var(--primary-purple); color: var(--text-light); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.auction-details h3 { font-size: 2rem; margin-bottom: 1rem; }
.auction-details p { color: var(--text-muted); margin-bottom: 2rem; }
.price-info { display: flex; gap: 2rem; margin-bottom: 2rem; }
.price-label { display: block; color: var(--text-muted); font-size: 0.9rem; }
.price-value { font-size: 1.5rem; font-weight: 700; color: var(--text-light) }
.countdown-timer { margin-bottom: 2rem; }
.timer-label { color: var(--text-muted); margin-right: 1rem; }
#timer { display: flex; gap: 1rem; margin-top: 0.5rem; }
.timer-box { background: var(--btn-secondary-bg); padding: 1rem; border-radius: 8px; text-align: center; min-width: 70px; }
.timer-box span:first-child { display: block; font-size: 2rem; font-weight: 700; }
.timer-box span:last-child { display: block; font-size: 0.8rem; color: var(--text-muted); }

/* --- Responsive cho trang chủ --- */
@media (max-width: 1024px) {
    .hero-content { text-align: center; }
    .auction-card { grid-template-columns: 1fr; }
    .auction-details { padding: 2rem; }
    #featured-events-grid { grid-auto-columns: calc((100% / 3) - 1rem); }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .filter-buttons { gap: 0.5rem; }
    .btn-filter { padding: 0.6rem 0.8rem; font-size: 0.9rem; }
    #featured-events-grid { grid-auto-columns: 80%; }
    .secondary-market-section { padding: 3rem 0; }
}