:root {
    --green-950: #111b29;
    --green-900: #18293d;
    --green-800: #234866;
    --green-700: #2f638a;
    --green-100: #eaf1f6;
    --gold: #f6c75b;
    --orange: #f36b32;
    --red: #d93c2f;
    --blue: #1f5fbf;
    --ink: #17212c;
    --muted: #69737d;
    --line: #dfe4e7;
    --page: #f3f1ed;
    --surface: #ffffff;
    --shadow: 0 10px 26px rgba(22, 36, 50, 0.08);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

svg {
    display: block;
}

.site-shell {
    min-height: 100vh;
}

.site-footer {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px max(20px, calc((100% - 1124px) / 2));
    color: #718078;
    background: #ffffff;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-footer .support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #68736e;
    font-weight: 700;
}

.site-footer .support-link strong {
    color: var(--green-800);
    font-weight: 900;
}

.site-footer .support-link span {
    color: #b0b9b4;
}

.site-footer a,
.export-agreement a {
    color: var(--green-800);
    font-weight: 800;
    text-decoration: none;
}

.site-footer a:hover,
.export-agreement a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(14px, 3vw, 28px);
    color: #ffffff;
    background:
        radial-gradient(circle at 16% -48%, rgba(246, 199, 91, 0.24), transparent 36%),
        linear-gradient(135deg, var(--green-950), var(--green-900) 58%, #294f70);
    box-shadow: 0 8px 24px rgba(17, 27, 41, 0.18);
}

.brand-lockup {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.brand-mark {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
}

.brand-mark path:first-child {
    fill: rgba(246, 199, 91, 0.18);
    stroke: var(--gold);
    stroke-width: 1.8;
}

.brand-mark circle,
.brand-mark path:not(:first-child) {
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-download {
    flex: 0 0 auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.header-download svg,
.search-field svg,
.primary-download svg,
.download-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workspace {
    width: min(1260px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
    padding: 18px clamp(12px, 2.4vw, 28px) 32px;
}

.side-nav {
    position: sticky;
    top: 88px;
    align-self: start;
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 106px);
    overflow: auto;
}

.sport-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sport-tab,
.category-tab,
.plain-action,
.download-btn,
.primary-download {
    border: 0;
    -webkit-tap-highlight-color: transparent;
}

.sport-tab {
    height: 38px;
    color: #5e6864;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
}

.sport-tab.active {
    color: #ffffff;
    background: var(--green-700);
}

.category-nav {
    display: grid;
    gap: 8px;
}

.category-tab {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 13px;
    color: #26302c;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 38, 27, 0.05);
    font-size: 15px;
    font-weight: 900;
    text-align: left;
}

.category-tab span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.category-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(8, 116, 67, 0.2);
}

.category-tab.active span {
    color: rgba(255, 255, 255, 0.82);
}

.content-panel {
    min-width: 0;
}

.content-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.content-toolbar h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 900;
}

.content-toolbar p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.search-field {
    flex: 0 1 320px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    color: #7a8388;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-field input {
    min-width: 0;
    width: 100%;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 15px;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.poster-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8dee2;
    border-radius: 12px;
    box-shadow: 0 13px 30px rgba(23, 33, 44, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(23, 33, 44, 0.15);
}

.poster-art {
    min-height: 258px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 13px 13px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.poster-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.2), transparent 20%);
    pointer-events: none;
}

.poster-art[data-tone="green"] {
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.52), transparent 11%),
        radial-gradient(circle at 82% 18%, rgba(246, 199, 91, 0.36), transparent 24%),
        linear-gradient(142deg, #03150d, #087443 54%, #031f14);
}

.poster-art[data-tone="blue"] {
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.42), transparent 11%),
        radial-gradient(circle at 78% 24%, rgba(88, 165, 255, 0.38), transparent 24%),
        linear-gradient(142deg, #061126, #1f5fbf 58%, #081221);
}

.poster-art[data-tone="gold"] {
    color: #211809;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.42), transparent 11%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.38), transparent 24%),
        linear-gradient(142deg, #f9df93, #f6c75b 54%, #9b6612);
}

.poster-art[data-tone="orange"] {
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.42), transparent 11%),
        radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.28), transparent 24%),
        linear-gradient(142deg, #6f140f, #f36b32 56%, #d71920);
}

.poster-art[data-tone="red"] {
    background:
        radial-gradient(circle at 80% 20%, rgba(246, 199, 91, 0.24), transparent 24%),
        linear-gradient(142deg, #300a0a, #9b1c18 58%, #1f0505);
}

.poster-kicker,
.poster-footer {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.9;
}

.poster-title {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 1000;
}

.poster-art[data-kind="football-schedule"] .poster-title {
    font-size: 28px;
    text-shadow: none;
}

.poster-art[data-kind="football-schedule"] {
    color: #183024;
    background:
        linear-gradient(90deg, rgba(15, 76, 46, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 76, 46, 0.08) 1px, transparent 1px),
        #f2f6f3;
    background-size: 18px 18px;
    border: 1px solid rgba(15, 76, 46, 0.16);
}

.poster-art[data-kind="football-schedule"]::before {
    display: none;
}

.poster-art[data-kind="football-schedule"] > div:first-child {
    position: relative;
    z-index: 1;
    margin: -16px -13px 0;
    padding: 13px;
    color: #ffffff;
    background: #0f4c2e;
    border-bottom: 3px solid #d7b35a;
}

.poster-art[data-kind="football-schedule"] .poster-kicker,
.poster-art[data-kind="football-schedule"] .poster-footer {
    color: inherit;
}

.poster-lines {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    margin: 14px 0;
    padding: 10px;
    color: #111917;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.poster-line {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
}

.poster-line span:nth-child(2),
.poster-line span:nth-child(4) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-line strong {
    color: var(--red);
}

.poster-money {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin: 18px 0;
    padding: 13px 16px;
    color: #9d230f;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    font-size: 34px;
    font-weight: 1000;
    line-height: 1;
}

.poster-body-text {
    position: relative;
    z-index: 1;
    margin: 16px 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
}

.schedule-preview {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 12px 0;
    padding: 0;
    color: #14201b;
    background: #ffffff;
    border: 1px solid rgba(15, 76, 46, 0.22);
    border-radius: 4px;
    box-shadow: none;
    overflow: hidden;
}

.schedule-match,
.schedule-teams,
.schedule-odds span {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.schedule-match {
    padding: 5px 7px;
    color: #ffffff;
    background: #173f2b;
    font-size: 10px;
    font-weight: 900;
}

.schedule-match strong {
    color: #f8df92;
}

.schedule-teams {
    padding: 8px 7px;
    font-size: 15px;
    font-weight: 1000;
    border-bottom: 1px solid rgba(15, 76, 46, 0.16);
}

.schedule-teams span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-teams strong {
    color: var(--green-800);
    font-size: 11px;
}

.schedule-odds {
    display: grid;
    gap: 0;
}

.schedule-odds span {
    min-height: 22px;
    padding: 0 7px;
    color: #26302c;
    background: #ffffff;
    border-bottom: 1px solid rgba(5, 62, 34, 0.12);
    border-radius: 0;
    font-size: 10px;
    font-weight: 900;
}

.poster-info {
    padding: 12px 12px 14px;
}

.poster-info h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
}

.poster-info p {
    min-height: 36px;
    margin: 6px 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.poster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.poster-meta span {
    padding: 4px 7px;
    color: var(--green-800);
    background: #edf7f1;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.download-btn {
    width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--green-800);
    background: #ffffff;
    border: 1px solid var(--green-700);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
}

.download-panel {
    margin-top: 18px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.plain-action {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    color: var(--green-800);
    background: var(--green-100);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.download-list {
    display: grid;
    gap: 8px;
}

.download-empty,
.download-item {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    background: #f7faf8;
    border: 1px solid #edf1ef;
    border-radius: 8px;
}

.download-empty {
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

.download-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.download-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.download-item em {
    flex: 0 0 auto;
    color: var(--green-800);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 30px 18px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px dashed #d9e0dc;
    border-radius: 8px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 40;
    max-width: calc(100% - 40px);
    transform: translate(-50%, 18px);
    padding: 11px 15px;
    color: #ffffff;
    background: rgba(5, 36, 23, 0.92);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 1020px) {
    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 66px;
        padding: 12px 12px;
    }

    .brand-lockup {
        font-size: 21px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .workspace {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 10px 24px;
    }

    .side-nav {
        top: 76px;
        max-height: calc(100vh - 86px);
        gap: 8px;
    }

    .sport-switch {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 5px;
    }

    .sport-tab {
        height: 34px;
        font-size: 13px;
    }

    .category-nav {
        gap: 6px;
    }

    .category-tab {
        min-height: 42px;
        justify-content: center;
        padding: 0 6px;
        font-size: 13px;
        text-align: center;
    }

    .category-tab span {
        display: none;
    }

    .content-toolbar {
        display: grid;
        gap: 10px;
        margin-bottom: 10px;
    }

    .content-toolbar h1 {
        font-size: 25px;
    }

    .search-field {
        width: 100%;
        height: 42px;
        flex-basis: auto;
    }

    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .poster-art {
        min-height: 205px;
        padding: 13px 9px 10px;
    }

    .poster-title {
        font-size: 22px;
    }

    .poster-lines {
        padding: 8px;
    }

    .poster-line {
        grid-template-columns: 30px minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 4px;
        font-size: 10px;
    }

    .poster-info {
        padding: 10px;
    }

    .poster-info h2 {
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .workspace {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-download {
        padding: 0 10px;
    }

    .poster-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .poster-art {
        min-height: 178px;
        padding: 11px 7px 9px;
    }

    .poster-title {
        font-size: 19px;
    }

    .poster-kicker,
    .poster-footer {
        font-size: 10px;
    }

    .poster-lines {
        gap: 4px;
        margin: 10px 0;
        padding: 7px;
    }

    .poster-line {
        grid-template-columns: 26px minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 3px;
        font-size: 9px;
    }

    .poster-money {
        margin: 12px 0;
        padding: 10px 12px;
        font-size: 28px;
    }

    .poster-body-text {
        margin: 12px 0;
        font-size: 17px;
    }

    .poster-info {
        padding: 9px 8px 10px;
    }

    .poster-info h2 {
        font-size: 14px;
    }

    .poster-info p {
        min-height: 34px;
        margin: 5px 0 10px;
        font-size: 11px;
    }

    .poster-meta {
        gap: 4px;
        margin-bottom: 10px;
    }

    .poster-meta span {
        padding: 3px 5px;
        font-size: 10px;
    }

    .download-btn {
        height: 36px;
        font-size: 14px;
    }
}

body.modal-open { overflow: hidden; }
.designer-modal { position: fixed; inset: 0; z-index: 100; }
.designer-backdrop { position: absolute; inset: 0; background: rgba(3,20,13,.72); backdrop-filter: blur(4px); }
.designer-dialog { position: absolute; inset: 3vh 3vw; display: grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; background:#f4f7f5; border-radius:14px; box-shadow:0 30px 90px rgba(0,0,0,.35); }
.designer-head { min-height:72px; display:flex; align-items:center; justify-content:space-between; padding:14px 22px; color:#fff; background:linear-gradient(135deg,var(--green-950),var(--green-700)); }
.designer-head span { color:#a9d5bc; font-size:12px; font-weight:900; letter-spacing:3px; }
.designer-head h2 { margin:3px 0 0; font-size:22px; }
.designer-close { width:40px; height:40px; color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-radius:50%; font-size:28px; line-height:1; }
.designer-body { min-height:0; display:grid; grid-template-columns:300px minmax(0,1fr); }
.designer-controls { overflow:auto; padding:18px; background:#fff; border-right:1px solid var(--line); }
.designer-field { display:grid; gap:7px; margin-bottom:16px; }
.designer-field>span { color:#25302b; font-size:14px; font-weight:900; }
.designer-field input,.designer-field select,.designer-field textarea { width:100%; padding:10px 11px; color:#17201c; background:#f8faf9; border:1px solid #d9e2dd; border-radius:7px; outline:none; font:inherit; }
.designer-field input:focus,.designer-field select:focus,.designer-field textarea:focus { border-color:var(--green-700); box-shadow:0 0 0 3px rgba(8,116,67,.1); }
.designer-field small { color:var(--muted); font-size:11px; }
.designer-error { margin-top:8px; padding:10px; color:#9e1d18; background:#fff0ef; border-radius:7px; font-size:12px; line-height:1.5; }
.preview-stage { min-width:0; min-height:0; position:relative; display:grid; place-items:start center; overflow:auto; padding:24px; background:#dfe7e2; }
.preview-stage iframe { width:540px; height:960px; display:block; overflow:hidden; background:#fff; border:0; box-shadow:0 14px 45px rgba(5,36,23,.2); transform-origin:top center; }
.preview-loading { position:absolute; z-index:2; padding:12px 18px; color:#fff; background:rgba(3,31,20,.82); border-radius:8px; font-size:13px; }
.designer-actions { min-height:68px; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:12px 20px; background:#fff; border-top:1px solid var(--line); }
.export-agreement { margin:0 auto 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.export-button { min-width:140px; height:42px; color:#fff; background:var(--green-700); border:0; border-radius:8px; font-weight:900; }
.export-button:disabled { opacity:.6; cursor:wait; }
@media(max-width:800px){.designer-dialog{inset:0;border-radius:0}.designer-body{grid-template-columns:1fr;grid-template-rows:auto minmax(420px,1fr)}.designer-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;max-height:300px;border-right:0;border-bottom:1px solid var(--line)}.preview-stage{padding:14px}.preview-stage iframe{width:360px;height:640px}.designer-field{margin-bottom:10px}}
@media(max-width:480px){.designer-controls{grid-template-columns:1fr}.preview-stage iframe{width:300px;height:534px}.designer-head{padding:10px 14px}.designer-head h2{font-size:18px}.designer-actions{flex-wrap:wrap}.export-agreement{width:100%;text-align:center}.site-footer{align-items:flex-start;flex-direction:column;gap:8px}.site-footer nav{flex-wrap:wrap;gap:10px 16px}}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .toast {
        transition: none;
    }
}

/* 后端模板目录 */
.main-kind-switch {
    display: grid;
    gap: 5px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.main-kind-tab {
    min-height: 38px;
    padding: 0 10px;
    color: #4f5b56;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
}

.main-kind-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
}

[hidden] {
    display: none !important;
}

.poster-thumb-button {
    width: 100%;
    height: 330px;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    background: #e7ebee;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.poster-thumb {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.22s ease;
}

.poster-thumb-button:hover .poster-thumb {
    transform: scale(1.025);
}

.thumb-preview-badge {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.thumb-preview-badge {
    bottom: 10px;
    left: 10px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(20, 31, 45, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.poster-thumb.is-missing {
    display: none;
}

.thumb-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #718078;
    background:
        linear-gradient(135deg, rgba(7, 91, 53, 0.06) 25%, transparent 25%) 0 0 / 22px 22px,
        #eef4f0;
    font-size: 13px;
    font-weight: 800;
}

.poster-info h2 {
    min-height: 0;
    font-size: 18px;
}

.poster-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 15px 16px;
}

.poster-info .poster-meta {
    margin: 10px 0 14px;
}

.poster-info .download-btn {
    margin-top: auto;
    color: #ffffff;
    background: var(--green-800);
    border-color: var(--green-800);
}

.retry-button {
    margin-top: 14px;
}

.recent-link {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 760px) {
    .main-kind-tab {
        min-height: 34px;
        padding: 0 6px;
        font-size: 12px;
        text-align: center;
    }

    .poster-thumb-button {
        height: 300px;
    }
}

@media (max-width: 420px) {
    .poster-thumb-button {
        height: 280px;
    }
}
