/* ============================================================
   MT1 - Warm Editorial Theme
   A magazine-inspired design with warm tones and serif headings
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --mt1-bg: #f0ece2;
    --mt1-card-bg: #ffffff;
    --mt1-accent: #d4a373;
    --mt1-accent-dark: #b8894d;
    --mt1-text: #2d2d2d;
    --mt1-text-secondary: #a98467;
    --mt1-text-muted: #8a7b6b;
    --mt1-border: #e0d5c7;
    --mt1-border-light: #ebe3d6;
    --mt1-shadow: 0 2px 12px rgba(90, 70, 50, 0.08);
    --mt1-shadow-hover: 0 6px 24px rgba(90, 70, 50, 0.14);
    --mt1-radius: 8px;
    --mt1-radius-lg: 12px;
    --mt1-font-heading: Georgia, 'Noto Serif SC', 'Source Han Serif CN', 'Times New Roman', serif;
    --mt1-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mt1-max-width: 1200px;
    --mt1-gutter: 20px;
    --mt1-header-bg: #2d2d2d;
    --mt1-header-text: #f0ece2;
    --mt1-nav-bg: #ffffff;
    --mt1-footer-bg: #2d2d2d;
    --mt1-footer-text: #c4b8a8;
    --mt1-nav-row-height: 44px;
    --mt1-nav-rows-m: 6;
    --mt1-nav-rows-pc: 3;
    --mt1-nav-item-width: 7.5rem;
    --mt1-nav-col-gap: 12px;
}

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

.mt1-body {
    background-color: var(--mt1-bg);
    color: var(--mt1-text);
    font-family: var(--mt1-font-body);
    font-size: 15px;
    line-height: 1.6;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--mt1-accent-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--mt1-accent);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* --- Site Wrapper --- */
.mt1-site-wrapper {
    max-width: var(--mt1-max-width);
    margin: 0 auto;
    min-height: 100vh;
}

/* --- Site Header --- */
.mt1-site-header {
    position: relative;
    z-index: 100;
}

/* --- Header Bar --- */
.mt1-header-bar {
    background: var(--mt1-header-bg);
    padding: 0 var(--mt1-gutter);
}

.mt1-header-inner {
    max-width: var(--mt1-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 16px;
}

.mt1-logo-wrap {
    flex-shrink: 0;
}

.mt1-logo {
    display: block;
    height: 36px;
    min-width: 120px;
}

.mt1-logo--text {
    display: flex;
    align-items: center;
}

.mt1-logo-text {
    font-family: var(--mt1-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mt1-header-text);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* --- Search Bar --- */
.mt1-search-bar {
    flex: 1;
    max-width: 400px;
}

.mt1-search-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s;
}

.mt1-search-field:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--mt1-accent);
}

.mt1-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
}

.mt1-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mt1-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
}

.mt1-search-btn:hover {
    color: var(--mt1-accent);
}

/* --- Header Ads --- */
.mt1-header-ads {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    overflow: visible;
}

.mt1-txt-ads {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    list-style: none;
    -webkit-overflow-scrolling: touch;
}

.mt1-txt-ads::-webkit-scrollbar {
    height: 4px;
}

.mt1-txt-ads::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mt1-txt-ad-item {
    flex-shrink: 0;
}

.mt1-txt-ad-item a {
    color: var(--mt1-accent);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    padding: 4px 10px;
    border: 1px solid rgba(212, 163, 115, 0.4);
    border-radius: 14px;
    transition: all 0.2s;
}

.mt1-txt-ad-item a:hover {
    background: var(--mt1-accent);
    color: #fff;
    border-color: var(--mt1-accent);
}

/* --- Mobile Search --- */
.mt1-mobile-search {
    display: none;
    background: var(--mt1-header-bg);
    padding: 8px var(--mt1-gutter);
}

.mt1-mobile-search .mt1-search-bar {
    max-width: 100%;
}

/* --- Desktop Only --- */
.mt1-desktop-only {
    display: block;
}

/* --- Navigation --- */
.mt1-nav-bar {
    background: var(--mt1-nav-bg);
    border-bottom: 2px solid var(--mt1-accent);
    padding: 0 var(--mt1-gutter);
}

.mt1-nav-inner {
    max-width: var(--mt1-max-width);
    margin: 0 auto;
    position: relative;
    contain: layout style;
}

.mt1-nav-inner:not(.mt1-nav--expanded):not(.mt1-nav--no-overflow) .mt1-nav-list {
    overflow: hidden;
    max-height: calc(var(--mt1-nav-rows-m) * var(--mt1-nav-row-height));
}

@media (min-width: 769px) {
    .mt1-nav-inner:not(.mt1-nav--expanded):not(.mt1-nav--no-overflow) .mt1-nav-list {
        max-height: calc(var(--mt1-nav-rows-pc) * var(--mt1-nav-row-height));
    }

    :root {
        --mt1-nav-item-width: 8.75rem;
    }
}

.mt1-nav-inner.mt1-nav--user-toggle:not(.mt1-nav--no-overflow) .mt1-nav-list {
    transition: max-height 0.28s ease;
}

.mt1-nav-inner.mt1-nav--expanded .mt1-nav-list {
    max-height: 3000px;
    overflow: visible;
}

.mt1-nav-inner.mt1-nav--no-overflow .mt1-nav-list {
    max-height: none !important;
    overflow: visible !important;
}

.mt1-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mt1-nav-list > .mt1-nav-item {
    flex: 1 1 var(--mt1-nav-item-width);
    min-width: 0;
    max-width: 14rem;
}

@media (max-width: 768px) {
    .mt1-nav-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 6px;
        row-gap: 0;
    }

    .mt1-nav-list > .mt1-nav-item {
        flex: none;
        max-width: none;
        width: auto;
        min-width: 0;
    }

    .mt1-nav-list .mt1-nav-link {
        padding: 8px 4px;
        font-size: 12px;
    }
}

.mt1-nav-link {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    color: var(--mt1-text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transition: color 0.2s;
}

.mt1-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--mt1-accent);
    transition: width 0.25s ease;
}

.mt1-nav-link:hover {
    color: var(--mt1-accent-dark);
}

.mt1-nav-link:hover::after {
    width: 60%;
}

.mt1-nav-item--ad .mt1-nav-link--ad {
    color: var(--mt1-accent-dark);
    font-weight: 600;
}

/* --- Nav Toggle --- */
.mt1-nav-toggle {
    width: 100%;
    margin: 8px 0 4px;
    padding: 6px 14px;
    background: var(--mt1-nav-bg);
    border: 1px solid var(--mt1-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--mt1-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.mt1-nav-toggle[hidden] {
    display: none;
}

.mt1-nav-toggle:hover {
    background: var(--mt1-accent);
    color: #fff;
    border-color: var(--mt1-accent);
}

/* --- Site Main --- */
.mt1-site-main {
    max-width: var(--mt1-max-width);
    margin: 0 auto;
    padding: var(--mt1-gutter);
    min-height: 60vh;
}

/* --- Breadcrumb --- */
.mt1-breadcrumb {
    padding: 12px 0;
    margin-bottom: 8px;
}

.mt1-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    font-size: 13px;
    color: var(--mt1-text-muted);
}

.mt1-breadcrumb-item + .mt1-breadcrumb-item::before {
    content: '/';
    margin-right: 4px;
    color: var(--mt1-border);
}

.mt1-breadcrumb-item a {
    color: var(--mt1-text-secondary);
}

.mt1-breadcrumb-item a:hover {
    color: var(--mt1-accent);
}

.mt1-breadcrumb-item--active span {
    color: var(--mt1-text);
    font-weight: 500;
}

/* --- Section Headers --- */
.mt1-section {
    margin-bottom: 24px;
}

.mt1-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mt1-border-light);
}

.mt1-section-title {
    font-family: var(--mt1-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mt1-text);
    margin: 0;
    position: relative;
    padding-left: 14px;
}

.mt1-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--mt1-accent);
    border-radius: 2px;
}

.mt1-section-accent {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--mt1-accent), transparent);
}

/* --- Video Card Grid --- */
.mt1-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mt1-gutter);
}

.mt1-card {
    background: var(--mt1-card-bg);
    border-radius: var(--mt1-radius);
    overflow: hidden;
    box-shadow: var(--mt1-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.mt1-card--empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--mt1-text-muted);
    font-size: 15px;
}

.mt1-card-thumb {
    display: block;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #e8e0d4;
}

.mt1-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mt1-card:hover .mt1-card-thumb img {
    transform: scale(1.05);
}

.mt1-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(45, 45, 45, 0.7);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mt1-card-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
}

.mt1-card:hover .mt1-card-play {
    opacity: 1;
}

.mt1-card-body {
    padding: 12px 14px 14px;
}

.mt1-card-title {
    font-family: var(--mt1-font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt1-card-title a {
    color: var(--mt1-text);
}

.mt1-card-title a:hover {
    color: var(--mt1-accent-dark);
}

.mt1-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--mt1-text-muted);
    margin: 0;
}

.mt1-card-views {
    font-weight: 500;
}

.mt1-card.mt1-card--ad.banner-cover {
    aspect-ratio: unset !important;
    width: 100%;
    max-width: 100%;
}

.mt1-card--ad {
    border: 1px dashed var(--mt1-border);
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    min-height: 6.875rem;
}

.mt1-card--ad .mt1-card-thumb--ad {
    position: relative;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    padding-top: 0 !important;
    height: auto;
}

/* 与 common app.css .banner-cover-grid a 高度一致：勿用 min-height:0，否则 absolute 图无包含块高度 */
.mt1-card.mt1-card--ad.banner-cover.banner-cover-grid .mt1-card-thumb--ad {
    height: auto !important;
    min-height: 6.875rem !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.mt1-card--ad .mt1-card-thumb--ad img.lazy,
.mt1-card--ad .mt1-card-thumb--ad img {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: fill;
    object-position: center;
}

@media (min-width: 769px) {
    .mt1-card--ad {
        grid-column: auto / span 2;
    }
}

/* --- Pagination --- */
.mt1-pagination-wrap {
    margin-top: 24px;
    padding: 16px 0;
}

.mt1-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mt1-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--mt1-border);
    border-radius: var(--mt1-radius);
    background: var(--mt1-card-bg);
    color: var(--mt1-text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.mt1-pager-btn:hover {
    border-color: var(--mt1-accent);
    color: var(--mt1-accent-dark);
    background: #faf5ee;
}

.mt1-pager-btn--active {
    background: var(--mt1-accent);
    color: #fff;
    border-color: var(--mt1-accent);
    cursor: default;
}

.mt1-pager-btn--active:hover {
    background: var(--mt1-accent);
    color: #fff;
    border-color: var(--mt1-accent);
}

/* --- Player / Archive Page --- */
.mt1-player-article {
    background: var(--mt1-card-bg);
    border-radius: var(--mt1-radius-lg);
    box-shadow: var(--mt1-shadow);
    overflow: hidden;
}

.mt1-archive-content {
    padding: 0;
}

.mt1-player-section {
    background: #1a1a1a;
    border-radius: 0;
}

.mt1-player-wrapper,
.mt1-player-wrapper #article-videos {
    border-radius: 0;
}

.mt1-player-main {
    position: relative;
}

.mt1-tips-bar {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
}

.mt1-tips-inner {
    max-width: var(--mt1-max-width);
    margin: 0 auto;
}

.mt1-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #ccc;
}

.mt1-tips-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mt1-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.mt1-badge--accent {
    background: var(--mt1-accent);
}

.mt1-player-wrapper {
    position: relative;
    background: #000;
}

.mt1-player-wrapper .dplayer {
    width: 100%;
}

.mt1-player-wrapper #article-videos {
    width: 100%;
    aspect-ratio: 1520 / 651;
}

.mt1-player-wrapper #article-videos .dplayer,
.mt1-player-wrapper #article-videos video {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .mt1-player-wrapper #article-videos {
        aspect-ratio: 16 / 9;
    }

    @supports not (aspect-ratio: 1 / 1) {
        .mt1-player-wrapper #article-videos {
            height: calc((100vw - 30px) * 9 / 16);
            max-height: 60vh;
        }
    }

    @supports (-webkit-touch-callout: none) {
        .mt1-player-wrapper #article-videos {
            aspect-ratio: auto;
            height: calc((100vw - 30px) * 9 / 16);
            max-height: 60vh;
        }
    }
}

/* --- Video Info --- */
.mt1-video-info {
    padding: 20px 24px;
}

.mt1-video-meta {
    margin-bottom: 16px;
}

.mt1-video-title {
    font-family: var(--mt1-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mt1-text);
    line-height: 1.4;
    margin: 0 0 8px;
}

.mt1-video-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--mt1-text-muted);
}

.mt1-view-count em {
    font-style: normal;
    font-weight: 600;
    color: var(--mt1-accent-dark);
}

.mt1-likes-msg {
    color: var(--mt1-accent);
    font-size: 13px;
}

/* --- Video Tags --- */
.mt1-video-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mt1-border-light);
}

.mt1-tags-label {
    color: var(--mt1-text-muted);
    font-size: 13px;
}

.mt1-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #faf5ee;
    border: 1px solid var(--mt1-border-light);
    border-radius: 14px;
    font-size: 12px;
    color: var(--mt1-text-secondary);
    transition: all 0.2s;
}

.mt1-tag:hover {
    background: var(--mt1-accent);
    color: #fff;
    border-color: var(--mt1-accent);
}

.mt1-refresh-hint {
    font-size: 13px;
    margin-bottom: 16px;
}

.mt1-refresh-hint a {
    color: var(--mt1-text-muted);
    text-decoration: underline;
}

.mt1-refresh-hint a:hover {
    color: var(--mt1-accent);
}

/* --- Related Section --- */
.mt1-related-section {
    border-top: 1px solid var(--mt1-border-light);
}

/* --- Empty State --- */
.mt1-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--mt1-text-muted);
    font-size: 16px;
}

/* --- Banner Ads --- */
.mt1-banner-ad {
    margin-bottom: 16px;
}

.mt1-banner-ad-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mt1-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    border-radius: var(--mt1-radius);
}

.mt1-banner-ad--player {
    padding: 0 24px;
}

/* --- Footer --- */
.mt1-footer {
    background: var(--mt1-footer-bg);
    margin-top: 32px;
}

.mt1-footer-inner {
    max-width: var(--mt1-max-width);
    margin: 0 auto;
    padding: 28px var(--mt1-gutter);
    text-align: center;
}

.mt1-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.mt1-footer-link {
    color: var(--mt1-footer-text);
    font-size: 13px;
    padding: 4px 8px;
    transition: color 0.2s;
}

.mt1-footer-link:hover {
    color: var(--mt1-accent);
}

.mt1-footer-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(196, 184, 168, 0.3);
}

.mt1-footer-disclaimer {
    color: rgba(196, 184, 168, 0.7);
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.mt1-footer-copy {
    color: var(--mt1-footer-text);
    font-size: 13px;
    margin: 0;
}

.mt1-footer-copy a {
    color: var(--mt1-accent);
}

/* --- 404 Page --- */
.mt1-404-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 40px var(--mt1-gutter);
}

.mt1-404-card {
    background: var(--mt1-card-bg);
    border-radius: var(--mt1-radius-lg);
    box-shadow: var(--mt1-shadow);
    padding: 48px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.mt1-404-code {
    font-family: var(--mt1-font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: var(--mt1-border);
    line-height: 1;
    margin-bottom: 8px;
}

.mt1-404-title {
    font-family: var(--mt1-font-heading);
    font-size: 1.5rem;
    color: var(--mt1-text);
    margin-bottom: 12px;
}

.mt1-404-desc {
    color: var(--mt1-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.mt1-404-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mt1-404-btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--mt1-accent);
    color: #fff;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.mt1-404-btn:hover {
    background: var(--mt1-accent-dark);
    color: #fff;
}

.mt1-404-search {
    display: flex;
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--mt1-border);
    border-radius: 24px;
    overflow: hidden;
}

.mt1-404-input {
    flex: 1;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: var(--mt1-text);
}

.mt1-404-search-btn {
    padding: 10px 20px;
    background: var(--mt1-accent);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mt1-404-search-btn:hover {
    background: var(--mt1-accent-dark);
}

/* --- Static Pages (about, go-home, join-us, etc.) --- */
.mt1-static-page-wrap {
    margin-bottom: 24px;
}

.mt1-static-page {
    margin-bottom: 24px;
}

.mt1-article {
    background: var(--mt1-card-bg);
    border-radius: var(--mt1-radius-lg);
    box-shadow: var(--mt1-shadow);
    overflow: hidden;
}

.mt1-static-card {
    padding: 0;
}

.mt1-static-header {
    padding: 32px 32px 20px;
    border-bottom: 1px solid var(--mt1-border-light);
}

.mt1-static-title {
    font-family: var(--mt1-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mt1-text);
    margin: 0;
}

.mt1-static-date {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: var(--mt1-text-muted);
}

.mt1-static-body {
    padding: 24px 32px 32px;
}

.mt1-static-body p {
    margin-bottom: 12px;
    line-height: 1.75;
}

.mt1-static-body a {
    color: var(--mt1-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mt1-static-body a:hover {
    color: var(--mt1-accent);
}

.mt1-blockquote {
    margin: 0 0 20px;
    padding: 16px 20px;
    border-left: 4px solid var(--mt1-accent);
    background: #faf5ee;
    border-radius: 0 var(--mt1-radius) var(--mt1-radius) 0;
    color: var(--mt1-text-secondary);
    font-style: italic;
}

.mt1-static-section {
    margin-bottom: 24px;
}

.mt1-static-section-title {
    font-family: var(--mt1-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mt1-text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mt1-border-light);
}

.mt1-static-section-content {
    padding: 4px 0;
}

.mt1-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.mt1-link-btn {
    display: inline-block;
    padding: 8px 22px;
    background: var(--mt1-accent);
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.mt1-link-btn:hover {
    background: var(--mt1-accent-dark);
    color: #fff !important;
}

/* --- DPlayer overrides --- */
.dplayer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #999;
}

.dplayer-loading-text {
    font-size: 14px;
}

/* --- Search Page --- */
.mt1-search-page {
    max-width: var(--mt1-max-width);
    margin: 0 auto;
}

.mt1-search-panel {
    background: var(--mt1-card-bg);
    border-radius: var(--mt1-radius-lg);
    box-shadow: var(--mt1-shadow);
    padding: 24px;
}

.mt1-search-section {
    margin-bottom: 24px;
}

.mt1-search-section:last-child {
    margin-bottom: 0;
}

.mt1-search-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mt1-text);
}

.mt1-search-hot-title {
    font-family: var(--mt1-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 14px;
}

.mt1-search-hot-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--mt1-accent);
    border-radius: 2px;
}

.mt1-search-clear {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 400;
    color: var(--mt1-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.mt1-search-clear:hover {
    color: var(--mt1-accent);
}

.mt1-search-clear svg {
    width: 14px;
    height: 14px;
}

.mt1-search-history {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mt1-search-no-data {
    color: var(--mt1-text-muted);
    font-size: 13px;
    padding: 8px 0;
}

.mt1-history-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #faf5ee;
    border: 1px solid var(--mt1-border-light);
    border-radius: 16px;
    font-size: 13px;
    color: var(--mt1-text-secondary);
    transition: all 0.2s;
}

.mt1-history-tag:hover {
    background: var(--mt1-accent);
    color: #fff;
    border-color: var(--mt1-accent);
}

.mt1-search-ranks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mt1-rank-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #faf5ee;
    border: 1px solid var(--mt1-border-light);
    border-radius: var(--mt1-radius);
    transition: all 0.2s;
}

.mt1-rank-card:hover {
    background: #f5ede0;
    border-color: var(--mt1-accent);
    transform: translateX(4px);
}

.mt1-rank-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--mt1-text-muted);
    background: var(--mt1-border-light);
    flex-shrink: 0;
}

.mt1-rank-num--1 {
    background: linear-gradient(135deg, #f6d365, #d4a373);
    color: #fff;
}

.mt1-rank-num--2 {
    background: linear-gradient(135deg, #c4c4c4, #a0a0a0);
    color: #fff;
}

.mt1-rank-num--3 {
    background: linear-gradient(135deg, #d4a373, #b8894d);
    color: #fff;
}

.mt1-rank-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--mt1-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt1-rank-hot {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--mt1-accent);
    flex-shrink: 0;
}

.mt1-rank-hot svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .mt1-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .mt1-desktop-only {
        display: none !important;
    }

    .mt1-mobile-search {
        display: block;
    }

    .mt1-mobile-search .mt1-search-field {
        border-color: rgba(255, 255, 255, 0.2);
    }

    .mt1-mobile-search .mt1-search-input {
        font-size: 15px;
    }

    .mt1-header-inner {
        height: 50px;
    }

    .mt1-header-ads {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mt1-txt-ad-item a,
    .mt1-txt-ad-item a span {
        max-width: 120px;
    }

    .mt1-nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

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

    .mt1-card--ad {
        grid-column: 1 / -1;
        min-height: 4rem;
    }

    .mt1-card.mt1-card--ad.banner-cover.banner-cover-grid .mt1-card-thumb--ad {
        min-height: 4rem !important;
    }

    .mt1-site-main {
        padding: 12px;
    }

    .mt1-section-title {
        font-size: 1.15rem;
    }

    .mt1-video-info {
        padding: 16px;
    }

    .mt1-video-title {
        font-size: 1.1rem;
    }

    .mt1-static-header {
        padding: 20px 16px 16px;
    }

    .mt1-static-title {
        font-size: 1.35rem;
    }

    .mt1-static-body {
        padding: 16px;
    }

    .mt1-404-card {
        padding: 32px 20px;
    }

    .mt1-404-code {
        font-size: 4rem;
    }

    .mt1-footer-inner {
        padding: 20px var(--mt1-gutter);
    }

    .mt1-banner-ad--player {
        padding: 0 16px;
    }

    .mt1-search-panel {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .mt1-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mt1-card-body {
        padding: 8px 10px 10px;
    }

    .mt1-card-title {
        font-size: 13px;
    }

    .mt1-pager-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
}
