@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
body { font-family: 'Inter', sans-serif; background-color: #ffffff; color: #1e293b; padding-top: 45px; }

.header {
    height: 56px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; background: white; position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    border-bottom: 1px solid #f1f5f9; max-width: 100%; margin: 0 auto;
}
.header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo { font-size: 18px; font-weight: 800; color: #1e293b; letter-spacing: -0.02em; text-decoration: none; flex-shrink: 0; }

.header-search { flex: 1; max-width: 400px; margin: 0 10px; position: relative; }
.header-search input {
    width: 100%; height: 36px; padding: 0 36px 0 14px; border: 1px solid #e2e8f0;
    border-radius: 10px; font-size: 13px; outline: none; background: #f8fafc; transition: 0.2s;
}
.header-search input:focus {
    border-color: #2563eb; background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.header-search-icon {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px; border: none; background: none; cursor: pointer;
}

.btn-header {
    font-size: 12px; padding: 5px 11px; border-radius: 8px; font-weight: 600;
    text-decoration: none; transition: 0.2s; white-space: nowrap;
}
.btn-login { color: #1e293b; background: #f8fafc; border: 1px solid #e2e8f0; margin-right: 4px; }
.btn-register { background: #1d4ed8; color: white; }
.user-avatar {
    width: 30px; height: 30px; background: #eff6ff; color: #1d4ed8; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; flex-shrink: 0;
}
.user-center-text {
    font-size: 9px; font-weight: 600; color: #475569; text-decoration: none; line-height: 1; margin-top: 2px;
}

.tabs-container { top: 56px; }
.tabs-container a, .tabs-container .tab-link {
    padding: 7px 14px !important; font-size: 13px !important;
}

@media (min-width: 641px) {
    .header-right { transform: translateX(-100px); }
}

@media (max-width: 640px) {
    .header { height: 52px !important; padding: 0 10px !important; }
    .header-left { gap: 6px !important; }
    .header-logo { font-size: 14px !important; }
    .header-search { margin: 0 4px !important; }
    .header-search input { height: 30px !important; font-size: 11px !important; padding: 0 28px 0 8px !important; border-radius: 6px; }
    .btn-header { padding: 4px 7px !important; font-size: 10px !important; border-radius: 5px; }
    .user-avatar { width: 26px !important; height: 26px !important; font-size: 12px; }
    .user-center-text { font-size: 8px; }
    .tabs-container { top: 52px !important; padding-left: 8px !important; padding-right: 8px !important; }
    .tabs-container a, .tabs-container .tab-link { padding: 6px 10px !important; font-size: 11px !important; }
    .header-right { transform: none; }
}

.ad-grid-mobile-4 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 2px !important; width: 100% !important; }
.ad-grid-desktop-6 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 2px !important; width: 100% !important; }
@media (min-width: 768px) { .ad-grid-desktop-6 { grid-template-columns: repeat(6, 1fr) !important; } }
@media (min-width: 1024px) { .ad-grid-desktop-6 { grid-template-columns: repeat(6, 1fr) !important; } }
.ad-container { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; aspect-ratio: 1 / 1 !important; overflow: hidden !important; border-radius: 4px !important; }
.ad-image-fill { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; display: block !important; border-radius: 4px !important; }