:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --text: #1a1a1a;
    --text-light: #555;
    --text-gray: #767676;
    --bg: #ffffff;
    --bg-light: #fafafa;
    --border: #eaeaea;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
}
body.dark-mode {
    --text: #e0e0e0;
    --text-light: #aaa;
    --text-gray: #888;
    --bg: #1a1a1a;
    --bg-light: #2a2a2a;
    --border: #333;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }
.tb-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.tb-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; transition: transform 0.3s ease; }
.tb-header-hidden { transform: translateY(-100%); }
.tb-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.tb-logo a { font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; }
.tb-logo span { color: var(--text); }
.tb-primary-menu { display: flex; gap: 20px; list-style: none; }
.tb-primary-menu a { text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500; transition: var(--transition); }
.tb-primary-menu a:hover { color: var(--primary); }
.tb-header-actions { display: flex; gap: 12px; align-items: center; }
.tb-search-toggle, .tb-dark-mode-toggle, .tb-mobile-toggle { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text); padding: 5px; transition: var(--transition); }
.tb-dark-mode-toggle .tb-dark-icon { display: none; }
body.dark-mode .tb-dark-mode-toggle .tb-light-icon { display: none; }
body.dark-mode .tb-dark-mode-toggle .tb-dark-icon { display: inline; }

.tb-cat-menu { background: var(--bg-light); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.tb-cat-wrapper { display: flex; align-items: center; }
.tb-cat-arrow { background: var(--bg-light); border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tb-cat-scroll { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.tb-cat-scroll::-webkit-scrollbar { height: 3px; }
.tb-cat-scroll::-webkit-scrollbar-track { background: var(--border); }
.tb-cat-scroll::-webkit-scrollbar-thumb { background: var(--primary); }
.tb-cat-items { display: flex; gap: 25px; padding: 10px 0; list-style: none; white-space: nowrap; }
.tb-cat-items a { text-decoration: none; color: var(--text-gray); font-size: 12px; font-weight: 500; transition: var(--transition); }
.tb-cat-items a:hover { color: var(--primary); }
.tb-cat-items a i { margin-right: 5px; font-size: 11px; }

.tb-mobile-toggle { display: none; }
.tb-mobile-overlay { position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100%; background: var(--bg); z-index: 10000; transition: left 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.tb-mobile-overlay.active { left: 0; }
.tb-mobile-menu { padding: 60px 20px 20px; height: 100%; overflow-y: auto; }
.tb-mobile-header { position: absolute; top: 15px; right: 15px; left: 15px; display: flex; justify-content: space-between; align-items: center; }
.tb-mobile-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }
.tb-mobile-nav { list-style: none; }
.tb-mobile-nav li { border-bottom: 1px solid var(--border); }
.tb-mobile-nav a { display: block; padding: 12px 0; text-decoration: none; color: var(--text); font-weight: 500; }

.tb-search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10001; display: none; align-items: center; justify-content: center; }
.tb-search-overlay.active { display: flex; }
.tb-search-container { width: 90%; max-width: 600px; position: relative; }
.tb-search-container .search-form { display: flex; }
.tb-search-container input[type="search"] { flex: 1; padding: 15px 20px; font-size: 16px; border: none; border-radius: 8px 0 0 8px; background: var(--bg); color: var(--text); }
.tb-search-container .search-submit { padding: 15px 25px; background: var(--primary); color: white; border: none; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600; }
.tb-search-close { position: absolute; top: -50px; right: 0; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

amp-sidebar { width: 80%; max-width: 320px; background: var(--bg); }
.amp-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.amp-sidebar-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }
.amp-sidebar-content { height: calc(100% - 70px); overflow-y: auto; padding: 10px 0; }

.tb-row-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 30px 0; }
.tb-stack-card { margin-bottom: 20px; }
.tb-stack-card a img { width: 100%; border-radius: 8px; }
.tb-stack-card h2 { font-size: 1.2rem; margin-top: 10px; }
.tb-horizontal-card { display: flex; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.tb-horizontal-img { width: 80px; flex-shrink: 0; }
.tb-horizontal-img img { width: 100%; height: 50px; object-fit: cover; border-radius: 6px; }
.tb-horizontal-content h3 { font-size: 0.85rem; line-height: 1.4; }
.tb-horizontal-content a { text-decoration: none; color: var(--text); }
.tb-col-header h3 { font-size: 1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.tb-cat-section { margin: 40px 0; }
.tb-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tb-cat-header h2 { font-size: 1.2rem; font-weight: 700; border-left: 4px solid; padding-left: 10px; }
.tb-view-all { color: var(--primary); text-decoration: none; font-size: 0.8rem; }
.tb-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tb-cat-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tb-cat-img img { width: 100%; height: 130px; object-fit: cover; }
.tb-cat-content { padding: 12px; }
.tb-cat-content h3 { font-size: 0.85rem; margin-bottom: 6px; }
.tb-cat-content h3 a { text-decoration: none; color: var(--text); }
.tb-cat-content span { font-size: 11px; color: var(--text-gray); }
.tb-3col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tb-section-header { margin: 30px 0 20px; display: inline-block; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }

.tb-breadcrumb { font-size: 12px; color: var(--text-gray); margin: 16px 0; }
.tb-breadcrumb a { color: var(--text-gray); text-decoration: none; }
.tb-breadcrumb i { font-size: 10px; margin: 0 6px; }
.tb-two-column { display: flex; gap: 40px; margin: 20px 0 50px; }
.tb-main-content { flex: 2; }
.tb-sidebar { flex: 1; }
.tb-cat-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tb-cat-badge { background: var(--bg-light); color: var(--primary); font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; text-decoration: none; }
.tb-verified { background: #e8f5e9; color: #2e7d32; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
body.dark-mode .tb-verified { background: #1b5e20; color: #a5d6a7; }
.tb-post-title { font-size: 32px; line-height: 1.3; margin-bottom: 12px; font-weight: 700; }
.tb-last-updated { display: inline-block; background: #fff3e0; color: #e65100; font-size: 11px; padding: 4px 10px; border-radius: 20px; margin-bottom: 15px; }
body.dark-mode .tb-last-updated { background: #e65100; color: #fff3e0; }
.tb-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--text-gray); padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tb-meta-author { display: flex; align-items: center; gap: 6px; }
.tb-meta-author img { width: 24px; height: 24px; border-radius: 50%; }
.tb-meta-author a { font-weight: 600; color: var(--text); text-decoration: none; }
.tb-meta-item { display: flex; align-items: center; gap: 4px; }
.tb-listen-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: white; border: none; padding: 10px 20px; border-radius: 40px; font-size: 13px; font-weight: 500; cursor: pointer; transition: transform 0.2s; }
.tb-listen-btn:hover { transform: scale(1.02); }
.tb-audio-player { background: var(--bg-light); border-radius: 60px; padding: 10px 16px; margin-top: 10px; }
.tb-audio-controls { display: flex; align-items: center; gap: 12px; }
.tb-audio-play, .tb-audio-stop { background: var(--primary); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: white; }
.tb-audio-progress { flex: 1; height: 4px; background: var(--border); border-radius: 2px; cursor: pointer; }
.tb-audio-progress-bar { width: 0%; height: 100%; background: var(--primary); border-radius: 2px; }
.tb-audio-time { font-size: 11px; color: var(--text-gray); font-family: monospace; }
.tb-summary { background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%); border-left: 4px solid var(--primary); border-radius: 12px; padding: 20px; margin: 20px 0; }
body.dark-mode .tb-summary { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.tb-summary-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.tb-summary-list { list-style: none; margin: 0; }
.tb-summary-list li { font-size: 13px; margin-bottom: 10px; padding-left: 18px; position: relative; line-height: 1.5; }
.tb-summary-list li::before { content: "•"; color: var(--primary); position: absolute; left: 4px; }
.tb-summary-footer { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.1); }
.tb-summary-badge { background: var(--primary); color: white; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.tb-summary-time { font-size: 10px; color: var(--text-gray); }
.tb-featured-img img { width: 100%; border-radius: 12px; }
.tb-caption { font-size: 11px; color: var(--text-gray); text-align: center; margin-top: 8px; }
.tb-toc { background: var(--bg-light); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.tb-toc-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.tb-toc-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.tb-toc-list a { text-decoration: none; color: var(--text-light); font-size: 12px; transition: var(--transition); }
.tb-toc-list a:hover { color: var(--primary); }
.tb-post-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.tb-post-content h2 { font-size: 24px; margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tb-post-content h3 { font-size: 20px; margin: 28px 0 12px; }
.tb-post-content p { margin-bottom: 20px; }
.tb-post-content img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 8px; }
.tb-post-content blockquote { border-left: 3px solid var(--primary); padding: 12px 20px; margin: 24px 0; background: var(--bg-light); font-style: italic; font-size: 15px; }
.tb-inline-ad { background: var(--bg-light); text-align: center; padding: 16px; margin: 24px 0; border-radius: 8px; font-size: 12px; color: var(--text-gray); }
.tb-preferred { background: #f0f7f0; padding: 12px 16px; border-radius: 8px; margin: 24px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }
body.dark-mode .tb-preferred { background: #1b5e20; }
.tb-preferred-badge { color: #2e7d32; font-weight: 500; }
body.dark-mode .tb-preferred-badge { color: #a5d6a7; }
.tb-preferred-link { text-decoration: none; color: #1a73e8; }
.tb-preferred-trust { color: #2e7d32; }
.tb-share { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 24px 0; }
.tb-share-label { font-size: 13px; font-weight: 600; color: var(--text-gray); }
.tb-share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.tb-share-buttons a { padding: 6px 14px; border-radius: 30px; text-decoration: none; font-size: 12px; font-weight: 500; color: white; display: inline-flex; align-items: center; gap: 6px; transition: transform 0.2s; }
.tb-share-buttons a:hover { transform: translateY(-2px); }
.tb-share-fb { background: #1877f2; }
.tb-share-tw { background: #1da1f2; }
.tb-share-li { background: #0077b5; }
.tb-share-wa { background: #25d366; }
.tb-author-box { display: flex; gap: 20px; background: var(--bg-light); border-radius: 12px; padding: 24px; margin: 24px 0; }
.tb-author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.tb-author-info h4 { font-size: 18px; margin-bottom: 6px; }
.tb-author-bio { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.tb-author-meta { display: flex; gap: 16px; margin-bottom: 12px; font-size: 12px; color: var(--text-gray); }
.tb-author-link { color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 500; }
.tb-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.tb-related-card { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 12px; transition: var(--transition); }
.tb-related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tb-related-img { width: 80px; flex-shrink: 0; }
.tb-related-img img { width: 100%; height: 60px; object-fit: cover; border-radius: 6px; }
.tb-related-content h4 { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
.tb-related-content a { text-decoration: none; color: var(--text); }
.tb-related-content span { font-size: 10px; color: var(--text-gray); }
.tb-post-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 30px; }
.tb-post-nav a { color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 500; }

.widget { background: var(--bg-light); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.widget-title i { margin-right: 6px; }
.tb-trending-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tb-trending-item:last-child { border-bottom: none; }
.tb-trending-num { font-size: 18px; font-weight: 700; color: var(--primary); width: 28px; }
.tb-trending-content a { text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.4; }
.tb-trending-content span { font-size: 10px; color: var(--text-gray); display: block; margin-top: 4px; }
.tb-newsletter { text-align: center; }
.tb-newsletter p { font-size: 12px; margin-bottom: 12px; }
.tb-newsletter-form input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: var(--bg); color: var(--text); }
.tb-newsletter-form button { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.tb-social-links { display: flex; flex-direction: column; gap: 10px; }
.tb-social-links a { display: flex; align-items: center; gap: 12px; padding: 10px 15px; border-radius: 8px; text-decoration: none; color: white; font-weight: 500; font-size: 13px; }
.tb-social-fb { background: #1877f2; }
.tb-social-tw { background: #1da1f2; }
.tb-social-ig { background: linear-gradient(45deg, #f09433, #d62976, #962fbf); }
.tb-social-yt { background: #ff0000; }

.tb-footer { background: #1a1a1a; color: #888; padding: 40px 0 20px; margin-top: 60px; }
.tb-footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.tb-footer-col h4 { color: white; margin-bottom: 15px; font-size: 16px; }
.tb-footer-col p { font-size: 13px; }
.tb-footer-col ul { list-style: none; }
.tb-footer-col li { margin-bottom: 8px; }
.tb-footer-col a { color: #888; text-decoration: none; font-size: 13px; }
.tb-footer-nav { text-align: center; margin-bottom: 20px; }
.tb-footer-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; list-style: none; }
.tb-footer-menu a { color: #888; text-decoration: none; font-size: 12px; }
.tb-footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 11px; }

.tb-sticky-ad { position: fixed; bottom: 0; left: 0; width: 100%; height: 100px; background: white; border-top: 1px solid var(--border); z-index: 999; display: flex; justify-content: center; align-items: center; }
body { padding-bottom: 100px; }
@media (min-width: 768px) { .tb-sticky-ad { display: none; } body { padding-bottom: 0; } }

.tb-reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--primary); z-index: 10001; transition: width 0.1s ease; }

.tb-archive-header { text-align: center; margin-bottom: 40px; }
.tb-archive-header h1 { font-size: 32px; margin-bottom: 10px; }
.tb-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 30px 0; }
.tb-post-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: var(--transition); }
.tb-post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tb-card-img img { width: 100%; height: 180px; object-fit: cover; }
.tb-card-content { padding: 20px; }
.tb-card-title { font-size: 18px; margin-bottom: 10px; }
.tb-card-title a { text-decoration: none; color: var(--text); }
.tb-card-meta { font-size: 12px; color: var(--text-gray); margin-bottom: 12px; }
.tb-card-excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }
.tb-read-more { display: inline-block; color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 500; }
.tb-pagination { text-align: center; margin: 40px 0; }
.tb-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--text-gray); font-size: 14px; }
.tb-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: white; }

.tb-search-header { text-align: center; margin-bottom: 40px; padding: 20px; background: var(--bg-light); border-radius: 12px; }
.tb-search-header h1 { font-size: 28px; margin-bottom: 10px; }
.tb-search-header h1 span { color: var(--primary); }
.tb-search-results { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.tb-search-card { display: flex; gap: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tb-search-card-img { width: 200px; flex-shrink: 0; }
.tb-search-card-img img { width: 100%; height: 150px; object-fit: cover; }
.tb-search-card-content { padding: 20px; }
.tb-search-card-title { font-size: 20px; margin-bottom: 10px; }

.tb-author-box { display: flex; gap: 30px; background: var(--bg-light); border-radius: 12px; padding: 30px; margin: 30px 0; }
.tb-author-avatar img { width: 120px; height: 120px; border-radius: 50%; }
.tb-author-info h1 { font-size: 28px; margin-bottom: 10px; }
.tb-author-stats { margin-top: 15px; }
.tb-author-stats span { background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 13px; }

.tb-error-page { text-align: center; padding: 80px 20px; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.tb-error-content { max-width: 500px; }
.tb-error-icon { font-size: 80px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.tb-error-btn { display: inline-block; margin-top: 20px; padding: 12px 24px; background: var(--primary); color: white; text-decoration: none; border-radius: 30px; }

@media (max-width: 768px) {
    .tb-primary-menu { display: none; }
    .tb-mobile-toggle { display: block; }
    .tb-row-3col, .tb-cat-grid, .tb-3col-grid, .tb-posts-grid { grid-template-columns: 1fr; gap: 20px; }
    .tb-two-column { flex-direction: column; }
    .tb-post-title { font-size: 24px; }
    .tb-search-card { flex-direction: column; }
    .tb-search-card-img { width: 100%; }
    .tb-author-box { flex-direction: column; text-align: center; }
    .tb-cat-arrow { display: none; }
    .tb-footer-widgets { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 480px) {
    .tb-post-meta { gap: 10px; }
    .tb-related-grid { grid-template-columns: 1fr; }
    .tb-share { flex-direction: column; text-align: center; }
}
@media print {
    .tb-header, .tb-cat-menu, .tb-sidebar, .tb-related, .tb-author-box, .tb-share, .tb-preferred, .tb-listen-wrapper, .tb-footer, .tb-sticky-ad { display: none; }
    .tb-post-content { font-size: 12pt; line-height: 1.5; }
}
/* ============================================
   FIX: Stack Card Image Size & Aspect Ratio
   ============================================ */

.tb-stack-card {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.tb-stack-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tb-stack-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tb-stack-card:hover .tb-stack-image {
    transform: scale(1.03);
}

.tb-stack-title {
    font-size: 1.3rem;
    margin-top: 12px;
    line-height: 1.4;
}

/* Horizontal card images */
.tb-horizontal-img {
    width: 100px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.tb-horizontal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category card images */
.tb-cat-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.tb-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ============================================
   FIX: Responsive YouTube Videos
   ============================================ */

.tb-responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 12px;
    background: #000;
}

.tb-responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FIX: Twitter & Instagram Embeds
   ============================================ */

.tb-twitter-embed,
.tb-instagram-embed {
    margin: 20px auto;
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.tb-instagram-embed iframe {
    max-width: 100% !important;
    min-width: 326px !important;
    border-radius: 12px !important;
}

/* ============================================
   FIX: Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .tb-stack-link {
        aspect-ratio: 16 / 9;
    }
    
    .tb-stack-title {
        font-size: 1.1rem;
    }
    
    .tb-horizontal-img {
        width: 80px;
    }
    
    .tb-instagram-embed iframe {
        min-width: 280px !important;
        width: 100% !important;
    }
}

/* No image placeholder */
.tb-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
}

.tb-no-image-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60px;
}
/* ============================================
   FIX: Skip to Content Link - Accessibility
   ============================================ */

.tb-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary, #e74c3c);
    color: white !important;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100001;
    font-size: 14px;
    font-weight: 500;
    transition: top 0.2s ease;
}

.tb-skip-link:focus {
    top: 0;
    outline: none;
}

/* Hide skip links container when not needed */
.tb-skip-links {
    position: relative;
    z-index: 100001;
}