:root {
  --bg: #ffffff; --text:#0d0d0d; --muted:#666; --border:#eaeaea; --chip:#f2f2f2;
  --container: 1100px;
  --accent: #ff4d4f; --link:#ff571e;
}
html[data-theme="dark"] { --bg:#0e0f12; --text:#ffffff; --muted:#a3a3ad; --border:#23252b; --chip:#1a1b20; }
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
a{color:var(--link)} .three-container{max-width:var(--container);margin:0 auto;padding:0 16px}

.three-site-header{padding:12px 0;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:5}
.three-header-inner{display:flex;align-items:center;gap:24px;justify-content:space-between;position:relative}
.brand{width:150px;height:48px}
.brand img{width:100%;height:100%;object-fit:contain;display:block}
.three-site-title{font-weight:700;text-decoration:none}
.three-menu{list-style:none;margin:0;padding:0;display:flex;gap:16px;flex-wrap:wrap}
.three-menu a{text-decoration:none;opacity:.95}
.three-menu a:hover{text-decoration:underline;opacity:1}
.three-menu-primary a{padding:6px 10px;border:1px solid var(--border);border-radius:8px;opacity:1;color:var(--link)}
.three-menu-primary a:hover{background:var(--chip);text-decoration:none}
.three-nav{display:flex;align-items:center;gap:16px}
.three-theme-toggle{font-size:12px;padding:6px 10px;border:1px solid var(--border);background:transparent;border-radius:8px;cursor:pointer;color:var(--text)}
.three-menu-toggle{display:none;font-size:12px;padding:6px 10px;border:1px solid var(--border);background:transparent;border-radius:8px;cursor:pointer;color:var(--link)}


.archive-header .archive-title{font-size:20px;font-weight:700;margin:8px 0}
.three-ad{margin:10px auto;text-align:center}
.three-ad-slot{margin:10px auto;text-align:center}
.three-ad-header{border-bottom:1px solid var(--border);padding:8px 0}
.three-ad-top{margin:8px 0 12px}
.three-ad-footer{margin-top:16px}

/* GRID */
.three-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.three-grid-related{grid-template-columns:repeat(6,1fr)}
@media (max-width:1200px){.three-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:980px){.three-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:680px){.three-grid{grid-template-columns:repeat(2,1fr)}}

.three-card{display:block}
.three-card-link{display:block;text-decoration:none;color:var(--text)}
.three-card-thumb{position:relative;border:1px solid var(--border);background:var(--chip);border-radius:0;overflow:hidden;margin:0}
.three-thumb-16x9::before{content:"";display:block;padding-top:56.25%}
.three-thumb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.three-thumb-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);padding:8px;text-align:center}
.three-card-overlay{position:absolute;left:0;right:0;bottom:0;padding:6px 8px;font-size:11px;color:#fff;background:linear-gradient(to top,rgba(0,0,0,.65),rgba(0,0,0,0));display:flex;justify-content:space-between;align-items:center}
.three-card-title{margin:1px 0 0;font-size:13px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--link)}

.three-related-more{display:block;margin:12px auto 0;padding:8px 16px;border:1px solid var(--link);border-radius:8px;background:var(--link);color:#fff;font-size:14px;text-decoration:none;text-align:center;width:max-content}
.three-related-more:hover{opacity:.9}

/* Flexible video embed wrapper */
.three-video-embed{width:100%;max-width:100%;overflow:hidden}
.three-video-embed iframe,
.three-video-embed video,
.three-video-embed embed{display:block;width:100%;height:auto;border:0}
.three-video-embed .secure-iframe-wrapper{margin:0}

.three-video-meta{color:var(--muted);font-size:12px;margin:8px 0;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.three-video-meta a{text-decoration:none}
.three-video-meta header{flex-basis:100%;margin:0 0 4px}
.three-video-meta .entry-title{font-size:20px;font-weight:700;line-height:1.3;color:var(--text);margin:0}
.three-sep{opacity:.6}

@media (max-width:680px){
  .three-nav{display:none;position:absolute;top:100%;right:0;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:12px;flex-direction:column;align-items:flex-start;gap:12px}
  .three-nav.is-open{display:flex}
  .three-menu-toggle{display:block;margin-left:auto}
  .three-menu-primary{flex-direction:column;gap:12px}
}

/* About panel */
.three-meta-panels{border:1px solid var(--border);border-radius:8px;margin:10px 0;overflow:hidden}
.three-meta-panel{overflow:hidden;transition:max-height .25s ease;max-height:0;background:var(--chip)}
.three-meta-panel .three-panel-inner{padding:12px}
.three-meta-panel.is-open{max-height:1000px}
.collapsible.is-collapsed{-webkit-line-clamp:8;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}
.three-post-tags{list-style:none;margin:10px 0 0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.three-post-tags li a{background:var(--bg);border:1px solid var(--border);padding:4px 8px;border-radius:6px;font-size:12px;text-decoration:none;color:var(--text)}

/* Search form */
.three-search-form{display:flex;flex-wrap:wrap}
.three-search-form input[type="search"]{flex:1;padding:8px;border:1px solid var(--border);border-right:0;border-radius:8px 0 0 8px;background:var(--bg);color:var(--text)}
.three-search-form button{padding:8px 12px;border:1px solid var(--border);border-left:0;border-radius:0 8px 8px 0;background:var(--accent);color:#fff;cursor:pointer}
.three-search-form button:hover{opacity:.9}

/* Show search box by default on mobile */
@media (max-width:680px){
  .three-video-meta a[data-target="#panel-search"]{display:none}
  .three-meta-panel.search{max-height:1000px}
}

/* Pagination */
.three-pagination{display:flex;justify-content:center;gap:6px;margin:18px 0}
.three-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;border:1px solid var(--link);border-radius:6px;text-decoration:none;color:var(--link);background:var(--bg);font-size:13px}
.three-pagination .page-numbers.current{background:var(--accent);color:#fff;border-color:var(--accent)}
.three-pagination .page-numbers:hover{background:var(--chip)}

.three-download-block{margin:18px 0;background:var(--chip);border:1px solid var(--border);padding:12px;border-radius:8px}
.three-section-sep{height:1px;background:var(--border);margin:18px 0}
.three-site-footer{border-top:1px solid var(--border);margin-top:24px;padding:16px 0}
.three-menu-footer{gap:0;font-size:12px}
.three-menu-footer li{display:flex;align-items:center}
.three-menu-footer li+li:before{content:"|";margin:0 6px;color:var(--muted)}
.three-menu-footer a{color:var(--link);text-decoration:none}
.three-copy{color:var(--muted);font-size:12px;margin-top:8px}

/* Hide duplicate tag blocks outside About */
.single a[rel="tag"], .single .tags-links, .single .tag-links, .single .tagcloud, .single .entry-footer .tags-links { display:none !important; }
.single .three-meta-panels a[rel="tag"], .single .three-meta-panels .tags-links, .single .three-meta-panels .tag-links, .single .three-meta-panels .tagcloud { display:initial !important; }
/* Secure Iframe Loader compatibility */
.secure-iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}

.secure-thumb {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button svg {
    width: 60px;
    height: 60px;
    fill: #FF9900;
}

.secure-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.secure-iframe-wrapper svg.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

