/* ============================================================
   VOSTOK TREND LAB — TikTok Creative Center Style
   Light theme with black hero header, pink accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --bg-body: #F8F8F8;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F0F5;
    --bg-elevated: #EEEFF2;

    --border-color: #E3E3E8;
    --border-subtle: #EDEDF0;

    --text-primary: #161823;
    --text-secondary: #5A5A6D;
    --text-muted: #8A8B9F;

    --accent: #FE2C55;
    --accent-soft: rgba(254, 44, 85, 0.08);
    --accent-hover: #E91E48;

    --header-bg: #000000;
    --header-text: #FFFFFF;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* --- Theme Accents --- */
[data-theme="reddit"] {
    --accent: #ff4500;
    --accent-soft: rgba(255, 69, 0, 0.08);
    --accent-hover: #e03e00;
}

[data-theme="youtube"] {
    --accent: #ff0000;
    --accent-soft: rgba(255, 0, 0, 0.08);
    --accent-hover: #cc0000;
}

[data-theme="douyin"] {
    --accent: #FE2C55;
    --accent-soft: rgba(254, 44, 85, 0.08);
    --accent-hover: #E91E48;
}

[data-theme="xiaohongshu"] {
    --accent: #ff2442;
    --accent-soft: rgba(255, 36, 66, 0.08);
    --accent-hover: #e0203b;
}

[data-theme="producthunt"] {
    --accent: #da552f;
    --accent-soft: rgba(218, 85, 47, 0.08);
    --accent-hover: #c44a28;
}

[data-theme="twitter"] {
    --accent: #1d9bf0;
    --accent-soft: rgba(29, 155, 240, 0.08);
    --accent-hover: #1a8cd8;
}

[data-theme="hustle"] {
    --accent: #FF6700;
    --accent-soft: rgba(255, 103, 0, 0.08);
    --accent-hover: #E55D00;
}

[data-theme="tiktok"] {
    --accent: #FE2C55;
    --accent-soft: rgba(254, 44, 85, 0.08);
    --accent-hover: #E91E48;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    font-family: var(--font-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Container --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
}

/* --- Site Banner (Black Header) --- */
.site-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 32px;
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-banner img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
}

.site-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--header-text);
}

.site-tagline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* --- Header (Hero Section) --- */
header {
    padding: 48px 32px 36px;
    background: var(--header-bg);
    color: var(--header-text);
}

header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 6px 0;
    color: var(--header-text);
    letter-spacing: -0.02em;
}

header .sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    display: inline-block;
}

/* --- Search Info / Metadata (on dark header) --- */
.search-info {
    margin-top: 20px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.search-info span {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.78rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.info-item {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: none;
}

.info-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.info-item span:not(.info-label) {
    font-weight: 600;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Navigation (Pill Tabs) --- */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 32px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

nav a {
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

nav a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

nav a.active {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
}

/* --- Section Title --- */
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 20px 32px 12px;
    color: var(--text-primary);
    border: none;
    letter-spacing: -0.01em;
    background: transparent;
}

/* --- Grid Layout --- */
.video-grid,
.grid,
.post-list,
.post-grid,
.video-list,
.product-list,
.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    background: transparent;
    padding: 16px 32px;
}

/* --- Cards (shared base) --- */
.item-card,
.video-card,
.article-card,
.post-card,
.tweet-card,
.video-item,
.product-card {
    background: var(--bg-card);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    border: none;
    margin: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.item-card:hover,
.video-card:hover,
.article-card:hover,
.post-card:hover,
.tweet-card:hover,
.video-item:hover,
.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    z-index: 5;
}

/* --- Thumbnail Styles --- */
.thumb,
.post-thumb,
.video-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-elevated);
    overflow: hidden;
    display: block;
    border: none;
}

.thumb img,
.post-thumb img,
.video-thumb img,
.video-item>img,
.product-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border: none;
}

.thumb-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, #e0e0e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Card Content --- */
.video-info,
.post-info,
.product-info,
.item-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* --- Typography in Cards --- */
.user,
.user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.title {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta,
.stats,
.article-meta,
.post-meta,
.tweet-metrics {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    align-items: center;
}

.likes {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

/* --- Tweet Card --- */
.tweet-card {
    padding: 20px 22px;
}

.tweet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    margin-top: 0;
    flex-wrap: wrap;
}

.tweet-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 0;
}

.tweet-handle {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.tweet-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tweet-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 4px;
    font-family: var(--font-main);
    font-weight: 400;
}

.tweet-orig {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-word;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    border-left: 3px solid var(--accent);
}

.tweet-metrics {
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.tweet-metrics span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Product Card (Product Hunt) --- */
.product-card {
    flex-direction: row;
    padding: 20px;
    gap: 16px;
    align-items: flex-start;
}

.product-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 1;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-tagline-ja {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.product-tagline-en {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc-en {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.product-meta .badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 999px;
    color: var(--text-secondary);
    border: none;
}

.topics {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.website-link {
    cursor: pointer;
}

/* --- Reddit Post --- */
.post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.summary-wrap {
    margin-bottom: 8px;
}

.summary {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* --- AI VTuber / Item Cards --- */
.item-card {
    flex-direction: row;
    padding: 16px 18px;
    gap: 14px;
    align-items: flex-start;
}

.item-icon {
    font-size: 1.4rem;
    min-width: 32px;
    text-align: center;
    padding-top: 2px;
}

.item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    align-items: center;
}

.source {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.item-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- YouTube / Video cards with iframe --- */
.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 0;
}

.video-card h3,
.item-card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}

/* --- Tags & Badges --- */
.keyword-tag,
.kw-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    padding: 3px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
    margin: 0;
    border: none;
}

.new-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 2px 8px;
    font-size: 0.6rem;
    text-transform: uppercase;
    border-radius: 999px;
    margin-left: 6px;
    letter-spacing: 0.04em;
    border: none;
}

.new-count-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 2px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    margin-left: 10px;
    border: none;
}

.stat-item,
.sub-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    border: none;
}

.sub-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* NEW row highlight */
.video-item.new,
.post-card.new,
.video-card.new,
.tweet-card.new {
    border-left: 3px solid var(--accent);
}

/* --- Hot Search Section (Douyin) --- */
.hot-section {
    padding: 24px 32px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    margin: 16px 32px;
    box-shadow: var(--shadow-card);
}

.hot-section .section-title,
.hot-section h2.section-title {
    border: none;
    padding: 0 0 14px 0;
    margin: 0;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hot-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: none;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.hot-tag:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.hot-tag.top {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.hot-tag.trending {
    background: var(--accent);
    color: #fff;
}

.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50%;
    border: none;
}

/* --- Message Box --- */
.msg {
    padding: 48px 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    border: none;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    margin: 24px 32px;
    box-shadow: var(--shadow-card);
}

/* --- Error Banner --- */
.error-banner {
    padding: 14px 20px;
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
    border-radius: var(--radius-md);
    margin: 16px 32px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.6;
}

.error-banner::before {
    content: '⚠️ ';
}

.error-banner small {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    font-size: 0.78rem;
    color: #a17d1a;
}

/* Buttons */
.btn-full {
    display: inline-block;
    margin-top: 4px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0;
    font-size: 1rem;
    border: none;
    background: transparent;
}

/* --- Badge --- */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 999px;
    border: none;
}

/* --- Video Thumbnail Placeholder --- */
.video-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, #dddde0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

/* --- Twitter Account Bar --- */
.acbar-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .1) transparent;
    margin: 0;
    padding: 16px 32px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.acbar-wrap::-webkit-scrollbar {
    height: 4px;
}

.acbar-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .1);
    border-radius: 4px;
}

.acbar {
    display: flex;
    gap: 12px;
    min-width: max-content;
}

.acbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    min-width: 90px;
    max-width: 100px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-align: center;
}

.acbar-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.acbar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.acbar-avatar-ph {
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.acbar-name {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 88px;
}

.acbar-handle {
    font-size: .6rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 88px;
}

.acbar-cat {
    font-size: .55rem;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 88px;
    opacity: .8;
}

/* --- Tweet Avatar --- */
.tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tweet-avatar-placeholder {
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.tweet-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

/* --- Tweet Media Grid --- */
.tweet-media-grid {
    display: grid;
    gap: 4px;
    margin: 8px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tweet-media-1 {
    grid-template-columns: 1fr;
}

.tweet-media-2 {
    grid-template-columns: 1fr 1fr;
}

.tweet-media-3,
.tweet-media-4 {
    grid-template-columns: 1fr 1fr;
}

.tweet-media-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: var(--bg-elevated);
    display: block;
    border-radius: var(--radius-sm);
}

/* --- External Link Buttons (Creative Center, Kalodata) --- */
.link-box,
a[style*="gradient"] {
    border-radius: var(--radius-lg) !important;
}

/* --- Collapsible Details/Summary --- */
details.search-detail {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

details.search-detail summary {
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

details.search-detail summary::-webkit-details-marker {
    display: none;
}

details.search-detail summary::before {
    content: '▶';
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.4);
}

details.search-detail[open] summary::before {
    transform: rotate(90deg);
}

details.search-detail summary:hover {
    color: rgba(255, 255, 255, 0.8);
}

details.search-detail .detail-content {
    padding: 12px 16px;
    font-size: 0.72rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Vertical Video Grid (9:16) --- */
.vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    background: transparent;
    padding: 16px 32px;
}

.vertical-grid .video-item,
.vertical-grid .video-card,
.vertical-grid .post-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.vertical-grid .video-thumb,
.vertical-grid .post-thumb,
.vertical-grid .thumb,
.vertical-grid .video-item>img {
    aspect-ratio: 9 / 16;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.vertical-grid .video-thumb img,
.vertical-grid .post-thumb img,
.vertical-grid .thumb img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.vertical-grid .video-info,
.vertical-grid .post-info {
    padding: 10px 12px;
    gap: 4px;
}

.vertical-grid .user-name,
.vertical-grid .user {
    font-size: 0.75rem;
}

.vertical-grid .title {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.vertical-grid .meta {
    font-size: 0.7rem;
}

/* --- Article Card (horizontal layout for secondary page) --- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    padding: 16px 32px;
}

.article-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-surface);
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    align-items: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.article-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.article-card .thumb {
    width: 120px;
    min-width: 120px;
    height: 80px;
    aspect-ratio: 3/2;
    border-radius: var(--radius-sm);
    object-fit: cover;
    overflow: hidden;
    background: var(--bg-elevated);
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.source-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    border: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* --- Mobile --- */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    header {
        padding: 28px 18px 22px;
    }

    .video-grid,
    .grid,
    .post-grid,
    .video-list,
    .product-list,
    .item-list,
    .post-list {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .container {
        border: none;
    }

    nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 12px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .vertical-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        gap: 12px;
    }

    .site-banner {
        padding: 12px 16px;
    }

    .site-name {
        font-size: 0.85rem;
    }

    .site-banner img {
        width: 28px;
        height: 28px;
    }

    .search-info {
        font-size: 0.75rem;
        padding: 0;
    }

    .section-title {
        padding: 14px 18px;
    }

    .tweet-card {
        padding: 16px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-thumb {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .item-card {
        padding: 12px 14px;
    }

    .article-list {
        padding: 12px;
        gap: 10px;
    }

    .hot-section {
        margin: 12px;
    }

    .msg {
        margin: 12px;
    }
}

@media (min-width: 768px) {

    .video-grid,
    .grid,
    .post-grid,
    .video-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .vertical-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .post-list,
    .item-list,
    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {

    .video-grid,
    .grid,
    .post-grid,
    .video-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .vertical-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}