/* movian-go.czz78.com — dark media-center theme */

:root {
    --bg:        #0d1117;
    --bg-raise:  #161b22;
    --bg-card:   #1c2128;
    --border:    #2d333b;
    --text:      #e6edf3;
    --text-dim:  #9da7b3;
    --accent:    #4da3ff;
    --accent-2:  #2f81f7;
    --ok:        #3fb950;
    --radius:    10px;
    --maxw:      1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- header / nav ---- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    white-space: nowrap;
}
.nav .brand img { height: 32px; width: auto; }
.nav .brand:hover { text-decoration: none; }

.nav .links {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
}
.nav .links a {
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .95rem;
    white-space: nowrap;
}
.nav .links a:hover { color: var(--text); background: var(--bg-raise); text-decoration: none; }
.nav .links a.active { color: var(--text); background: var(--bg-raise); }

/* ---- layout ---- */

main {
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 20px 80px;
}

section { margin-bottom: 64px; }

h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
h3 { font-size: 1.15rem; margin: 20px 0 8px; }
p  { margin-bottom: 12px; color: var(--text-dim); }
p.lead { font-size: 1.15rem; }

/* ---- hero ---- */

.hero {
    text-align: center;
    padding: 48px 0 32px;
}
.hero img.banner {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.hero .tagline {
    font-size: 1.3rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 32px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-raise); text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn + .btn { margin-left: 12px; }

.btn.sm { padding: 8px 18px; font-size: .9rem; }

/* ---- screenshots ---- */

.grid.shots {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.grid.shots img {
    width: 100%;
    min-width: 0;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    cursor: zoom-in;
    transition: border-color .15s;
}
@media (max-width: 760px) {
    .grid.shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .grid.shots { grid-template-columns: 1fr; }
}
.grid.shots img:hover { border-color: var(--accent); }

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox img {
    max-width: 92%;
    max-height: 92%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ---- cards / grids ---- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.card h3 { margin-top: 0; }
.card p { font-size: .92rem; margin-bottom: 0; }
.card .meta { font-size: .82rem; color: var(--text-dim); margin-top: 10px; }

/* ---- download page ---- */

.dl-ver {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.dl-ver b { color: var(--ok); }

.dl-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 10px;
}
.dl-row .os { font-weight: 600; min-width: 190px; }
.dl-row .file { font-size: .85rem; color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .size { font-size: .85rem; color: var(--text-dim); }
.dl-row.recommended { border-color: var(--accent); }
.dl-row.recommended .os::after {
    content: "★ recommended";
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: var(--accent);
}

.note {
    background: var(--bg-raise);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    margin: 20px 0;
    font-size: .92rem;
    color: var(--text-dim);
}

/* ---- docs ---- */

.doc-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.doc-nav a {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .88rem;
    color: var(--text-dim);
}
.doc-nav a:hover, .doc-nav a.active {
    color: var(--text);
    border-color: var(--accent);
    text-decoration: none;
}

.markdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    font-size: .95rem;
}
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { margin: 22px 0 10px; border-bottom: none; padding: 0; }
.markdown h1 { font-size: 1.5rem; margin-top: 0; }
.markdown h2 { font-size: 1.25rem; }
.markdown h3 { font-size: 1.05rem; }
.markdown code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: .88em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.markdown pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    overflow-x: auto;
    margin: 12px 0;
}
.markdown pre code { border: none; padding: 0; background: none; }
.markdown ul, .markdown ol { margin: 10px 0 10px 24px; }
.markdown li { margin-bottom: 4px; }
.markdown table { border-collapse: collapse; margin: 14px 0; width: 100%; }
.markdown th, .markdown td { border: 1px solid var(--border); padding: 6px 12px; text-align: left; }
.markdown th { background: var(--bg-raise); }
.markdown img { max-width: 100%; }
.markdown hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.markdown a { word-break: break-all; }
.markdown p { color: var(--text); }

/* ---- plugins ---- */

.plugin-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.plugin-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.plugin-card .body { flex: 1; }
.plugin-card .ver {
    display: inline-block;
    font-size: .78rem;
    background: var(--bg-raise);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1px 10px;
    margin-left: 8px;
    color: var(--text-dim);
}
.plugin-card .actions { margin-top: 12px; }

/* ---- changelog ---- */

.release {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.release h3 { margin-top: 0; display: flex; align-items: baseline; gap: 12px; }
.release h3 .date { font-size: .82rem; font-weight: 400; color: var(--text-dim); }
.release .body { font-size: .92rem; color: var(--text-dim); }
.release .body ul { margin-left: 20px; }
.release .body p { color: var(--text-dim); margin-bottom: 8px; }

/* ---- faq ---- */

details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 10px;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
details summary::before {
    content: "▸ ";
    color: var(--accent);
}
details[open] summary::before { content: "▾ "; }
details .a { padding-top: 10px; color: var(--text-dim); font-size: .95rem; }

/* ---- states ---- */

.loading, .err {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
}
.err { color: #f85149; }

/* ---- footer ---- */

footer {
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    font-size: .85rem;
    color: var(--text-dim);
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
    h1 { font-size: 1.8rem; }
    .nav { gap: 12px; }
    .nav .links a { padding: 6px 8px; font-size: .85rem; }
    .dl-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .btn + .btn { margin-left: 0; margin-top: 10px; }
    .markdown { padding: 18px; }
}
