/* HappyPhone — old-school tech portal, slightly freshened */
:root {
    --orange: #ff8c00;
    --orange-deep: #e67e00;
    --orange-light: #ffa726;
    --blue: #3a8db0;
    --blue-dark: #2f7899;
    --blue-soft: #fff3e0;
    --ink: #2a2a2a;
    --muted: #666;
    --line: #d8d8d8;
    --paper: #fff;
    --page: #ececec;
    --ok: #3d9b4a;
    --yellow: #ffe566;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--page);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ========== HEADER (Mobile Tech style) ========== */
header#sp-header {
    background: var(--orange);
    border-bottom: 1px solid var(--orange-deep);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

header#sp-header.is-scrolled {
    background: rgba(255, 140, 0, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    border-bottom-color: rgba(230, 126, 0, 0.45);
}

header#sp-header.is-scrolled .par-tp {
    max-height: 0;
    height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    overflow: hidden;
}

header#sp-header.is-scrolled .par-tp::before,
header#sp-header.is-scrolled .floar {
    visibility: hidden;
}

header#sp-header.is-scrolled .logo {
    padding-top: 8px;
    padding-bottom: 8px;
}

header#sp-header.is-scrolled .par-bottm {
    padding-top: 8px;
    padding-bottom: 8px;
}

header#sp-header.is-scrolled #header-logo {
    width: 46px;
    height: 46px;
}

.head-pz {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
    column-gap: 8px;
}

/* Logo — left column, both rows */
.logo {
    grid-row: 1 / 3;
    grid-column: 1;
    display: flex;
    align-items: center;
    padding: 10px 8px 10px 0;
    flex-shrink: 0;
    transition: padding 0.2s ease;
}

#logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

#header-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #111;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
    transition: width 0.2s ease, height 0.2s ease;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #2f8fbf;
    letter-spacing: -0.2px;
    line-height: 1.05;
}

.brand-text span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #2f8fbf;
    letter-spacing: 0;
    text-transform: none;
}

/* Top blue bar — right side with left diagonal cut */
.par-tp {
    grid-row: 1;
    grid-column: 2;
    position: relative;
    height: 34px;
    max-height: 34px;
    margin-left: 6px;
    background: transparent;
    overflow: hidden;
    opacity: 1;
    /* no height transition — animated collapse causes sticky scroll flicker */
    transition: opacity 0.15s ease;
}

.par-tp::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -18px;
    background: var(--blue);
    transform: skewX(-22deg);
    transform-origin: left center;
    z-index: 0;
}

.floar {
    position: relative;
    z-index: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px 0 18px;
}

#pages ul {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

#pages a {
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
}

#pages a:hover {
    text-decoration: none;
    opacity: 0.85;
}

#top-social ul {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

#top-social a {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
}

#top-social a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Bottom yellow row: nav + search */
.par-bottm {
    grid-row: 2;
    grid-column: 2;
    padding: 6px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.par-bottm .container {
    display: contents;
    padding: 0;
    max-width: none;
}

nav.nav-par {
    flex: 1;
    min-width: 0;
}

#menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2px;
    justify-content: flex-start;
    align-content: flex-start;
}

.ma a {
    display: block;
    padding: 4px 8px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0;
    white-space: nowrap;
}

.ma a:hover {
    background: rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.search-icon {
    display: flex;
    width: 34px;
    height: 34px;
    background: var(--blue);
    color: #fff;
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.open.nav1 {
    display: none;
    width: 34px;
    height: 34px;
    background: var(--blue);
    color: #fff;
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.search-icon:hover,
.open.nav1:hover {
    background: var(--blue-dark);
}

.search-icon svg,
.op-one svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.open.nav1 a {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ========== MAIN ========== */
.main-container {
    padding: 16px 0 28px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 16px;
    align-items: start;
}

/* Section bar */
.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blue);
    color: #fff;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 2px;
}

.section-bar h1,
.section-bar h2 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.section-bar .show-more-link {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.9;
}

.section-bar .show-more-link:hover {
    opacity: 1;
    text-decoration: none;
}

/* ========== POST CARDS (horizontal, blog-style) ========== */
.tool-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.tool-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tool-image {
    background: var(--blue-soft);
    min-height: 120px;
    border-right: 1px solid var(--line);
}

.tool-image img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.tool-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.tool-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
}

.tool-title a {
    color: var(--blue-dark);
}

.tool-title a:hover {
    color: var(--blue);
}

.tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--muted);
}

.tool-meta .author {
    font-weight: 700;
    color: #444;
}

.tool-description {
    color: #555;
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 10px;
    flex: 1;
}

.btn-read-more {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
}

.btn-read-more:hover {
    background: var(--blue-dark);
    color: #fff;
    text-decoration: none;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    margin: 14px auto 4px;
    padding: 8px 14px 8px 16px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-shadow: none;
}

.btn-show-more:hover {
    background: var(--blue-dark);
    text-decoration: none;
    color: #fff;
}

.btn-show-more .more-ico {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-show-more .more-ico svg {
    width: 11px;
    height: 11px;
    display: block;
}

#homeFeed {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--ink);
}

/* ========== SIDEBAR ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-block {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #fff;
    background: var(--blue);
    margin: -12px -12px 12px;
    padding: 8px 12px;
}

.featured-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-title a {
    color: var(--ink);
}

.featured-title a:hover {
    color: var(--blue);
}

.featured-image {
    margin-bottom: 8px;
    border: 1px solid var(--line);
    background: #eee;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.featured-description {
    font-size: 11px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.btn-read-more-small {
    display: inline-block;
    padding: 5px 11px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
}

.btn-read-more-small:hover {
    background: var(--blue-dark);
    color: #fff;
    text-decoration: none;
}

.more-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
}

.more-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.more-list .thumb {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--blue);
    border-radius: 2px;
}

.more-list a {
    color: #333;
    font-size: 12px;
    line-height: 1.35;
}

.more-list a:hover {
    color: var(--blue);
}

.sidebar-list li {
    padding: 7px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-list a {
    color: #333;
    font-size: 12px;
}

.sidebar-list a:hover {
    color: var(--blue);
}

.ad-block {
    min-height: 220px;
    background: #fafafa;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
}

.quick-link {
    display: block;
    padding: 10px 12px;
    background: var(--blue-soft);
    border: 1px solid #c5e0ee;
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    border-radius: 2px;
}

.quick-link:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    text-decoration: none;
}

/* Pill header (Direct Open FRP / Follow Us) */
.direct-frp-header,
.follow-header {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
}

.direct-frp-title,
.follow-title {
    flex-shrink: 0;
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.direct-frp-header::after,
.follow-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #7eb9d0;
    margin-left: 0;
}

.direct-frp-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direct-frp-btn {
    display: block;
    padding: 12px 20px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 28px;
    box-shadow: 0 2px 6px rgba(58, 141, 176, 0.3);
    transition: all 0.2s ease;
}

.direct-frp-btn:hover {
    background: var(--blue-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(58, 141, 176, 0.4);
}

.direct-frp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.direct-frp-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #888;
    font-size: 13px;
}

.direct-frp-list a {
    color: #888;
}

.direct-frp-list a:hover {
    color: var(--blue);
}

.direct-frp-list svg {
    flex-shrink: 0;
    color: #aaa;
}

/* Follow Us */
.follow-us-block {
    padding-bottom: 12px;
}

.follow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
}

.follow-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 58px;
    color: #fff;
    border-radius: 0;
    transition: opacity 0.2s;
}

.follow-grid a:hover {
    text-decoration: none;
    opacity: 0.88;
}

.follow-grid svg {
    width: 28px;
    height: 28px;
}

.follow-tg { background: #2ca5e0; }
.follow-yt { background: #ff0000; }
.follow-ig { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.follow-fb { background: #3b5998; }

/* ========== CATEGORY / TOOL PAGE ========== */
.category-header,
.breadcrumbs,
.tool-article {
    background: var(--paper);
    border: 1px solid var(--line);
}

.category-header {
    padding: 16px;
    margin-bottom: 14px;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-description {
    color: #555;
    font-size: 13px;
}

.breadcrumbs {
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--muted);
}

.tool-article {
    padding: 18px;
}

.tool-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}

.tool-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: var(--muted);
}

.tool-page-meta .author {
    font-weight: 700;
}

.tool-page-meta .separator {
    color: #ccc;
}

.tool-main-image {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    background: #eee;
    overflow: hidden;
}

.tool-main-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.tool-section {
    margin-bottom: 22px;
}

.tool-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--orange);
}

.tool-section p {
    color: #555;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 7px;
}

.feature-list li {
    padding: 9px 11px;
    background: #f7f7f7;
    border-left: 3px solid var(--blue);
    font-size: 12px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    display: inline-block;
    padding: 5px 11px;
    background: #f7f7f7;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    color: #333;
    border-radius: 2px;
}

.chip:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.instruction-list {
    color: #555;
    font-size: 12px;
    padding-left: 18px;
}

.instruction-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.55;
}

.instruction-list li:last-child {
    border-bottom: none;
}

.file-download-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: #f7f7f7;
    border: 1px solid var(--line);
    margin-bottom: 10px;
}

.file-download-block:hover {
    border-color: var(--blue);
}

.file-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.file-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
}

.btn-download {
    display: inline-block;
    padding: 9px 18px;
    background: var(--ok);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    white-space: nowrap;
}

.btn-download:hover {
    background: #348a40;
    color: #fff;
    text-decoration: none;
}

.btn-download.is-disabled,
.btn-download.is-disabled:hover {
    background: #9aa3a8;
    cursor: not-allowed;
    opacity: 0.85;
}

.related-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.related-tool-link {
    display: inline-block;
    padding: 7px 12px;
    background: #f7f7f7;
    border: 1px solid var(--line);
    color: #333;
    font-size: 12px;
    font-weight: 700;
}

.related-tool-link:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    text-decoration: none;
}

.notice-box {
    padding: 12px 14px;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-left: 3px solid var(--orange-deep);
    font-size: 12px;
    color: #555;
    margin-bottom: 16px;
}

/* ========== FOOTER ========== */
.footer {
    background: #f3f3f3;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    margin-top: 10px;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #111;
}

.footer-brand a {
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 6px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 2px;
}

.footer-social a:hover {
    text-decoration: none;
    filter: brightness(1.1);
}

.social-youtube { background: #e11d28; }
.social-instagram { background: #c13584; }
.social-facebook { background: #1877f2; }
.social-telegram { background: #229ed9; }

.footer-links,
.footer-column,
.footer-copyright {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .head-pz {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        align-items: center;
    }

    .logo {
        grid-row: 1;
        grid-column: 1;
        padding: 8px 0;
    }

    .par-tp {
        display: none;
    }

    .par-bottm {
        grid-row: 1;
        grid-column: 2;
        padding: 8px 0;
        justify-content: flex-end;
    }

    nav.nav-par {
        display: none;
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        z-index: 999;
    }

    nav.nav-par.active {
        display: block;
    }

    #menu ul {
        flex-direction: column;
        justify-content: flex-start;
    }

    .ma a {
        width: 100%;
        padding: 10px 12px;
        background: #f7f7f7;
        white-space: normal;
    }

    .search-icon,
    .open.nav1 {
        display: flex;
    }

    .brand-text {
        font-size: 16px;
    }

    #header-logo {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .tool-card {
        grid-template-columns: 1fr;
    }

    .tool-image {
        border-right: none;
        border-bottom: 1px solid var(--line);
        height: 160px;
    }

    .tool-image img {
        height: 160px;
        min-height: 160px;
    }

    .file-download-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-download {
        width: 100%;
        text-align: center;
    }

    .tool-page-title {
        font-size: 20px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
    
    .follow-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .follow-grid a {
        min-height: 48px;
    }

    .follow-grid svg {
        width: 22px;
        height: 22px;
    }
}

/* ========== POST PAGE (blog-style tool page) ========== */
.post-article {
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px 22px 26px;
}

.post-article.blog-post .post-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
    margin: 0 0 14px;
    padding-left: 0;
    border-left: none;
}

.post-lead {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

.post-hero {
    margin: 0 0 18px;
    border: none;
    background: transparent;
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    max-height: none;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}

.post-block {
    margin-bottom: 22px;
}

.post-block h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    color: #222;
}

mark.hl,
.hl {
    background: #ffe566;
    color: #111;
    padding: 1px 4px;
    border-radius: 0;
    font-weight: 700;
    font-style: normal;
}

.hl-list {
    list-style: disc;
    padding-left: 22px;
    margin: 0;
}

.hl-list li {
    font-size: 13px;
    line-height: 1.65;
    color: #333;
    margin: 0 0 6px;
    padding: 0;
    border: none;
}

.post-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 22px;
}

.post-shot {
    margin: 0;
    background: #f5f5f5;
    overflow: hidden;
}

.post-shot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.post-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 0 0 22px;
    background: #000;
    overflow: hidden;
}

.post-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-share {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 2px;
    min-width: 72px;
}

.share-tw { background: #1da1f2; }
.share-fb { background: #3b5998; }
.share-pi { background: #bd081c; }
.share-wa { background: #25d366; }
.share-rd { background: #ff4500; }
.share-more { background: #555; }

.share-btn:hover {
    filter: brightness(1.08);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #666;
}

.post-meta .author {
    font-weight: 700;
    color: #444;
}

.post-cat {
    display: inline-block;
    padding: 3px 10px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 700;
    border-radius: 999px;
    font-size: 11px;
}

.post-cat:hover {
    text-decoration: none;
    background: var(--blue);
    color: #fff;
}

.meta-ico {
    font-style: normal;
    margin-right: 3px;
    font-size: 11px;
}

.more-row {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #333;
    font-size: 12px;
    line-height: 1.35;
}

.more-row:hover {
    color: var(--blue);
    text-decoration: none;
}

.thumb-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--line);
    flex-shrink: 0;
    background: #eee;
}

.more-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.more-list li:last-child {
    border-bottom: none;
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(40, 40, 40, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.search-overlay.active {
    display: flex;
}

body.search-open {
    overflow: hidden;
}

.search-close {
    position: absolute;
    top: 28px;
    right: 36px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.search-close:hover {
    opacity: 0.75;
}

.search-panel {
    width: min(640px, 100%);
    text-align: center;
}

.search-label {
    display: block;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.search-input {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: block;
    background: transparent;
    border: none;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 22px;
    text-align: center;
    padding: 10px 8px 12px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 4px;
}

.search-results {
    margin-top: 28px;
    max-height: 50vh;
    overflow-y: auto;
    text-align: left;
}

.search-hit {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 8px;
    color: #fff;
    border-radius: 4px;
}

.search-hit:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.search-hit img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    background: #222;
}

.search-hit strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.search-hit small {
    font-size: 11px;
    opacity: 0.75;
}

.search-empty {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 640px) {
    .post-title {
        font-size: 22px;
    }

    .search-label {
        font-size: 24px;
    }

    .post-article {
        padding: 16px;
    }
}
