:root {
    --tl-main: #0b74ff;
    --tl-bg: #fff;
    --tl-border: #e5e7eb;
    --tl-text: #111827;
    --tl-sub: #6b7280;
}

.tl-info,
.tl-download-box {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--tl-border);
    border-radius: 14px;
    background: var(--tl-bg);
    box-shadow: 0 2px 12px rgb(64 64 64 / 26%);
}

.tl-download-box {
    box-sizing: border-box;
    margin-bottom: 30px;
    padding: 25px;
    color: var(--tl-text);
    text-align: center;
}

.tl-info *,
.tl-info *::before,
.tl-info *::after,
.tl-download-box *,
.tl-download-box *::before,
.tl-download-box *::after {
    box-sizing: border-box;
}

.tl-info {
    color: var(--tl-text);
}

.tl-info-title {
    padding: 16px 20px;
    border-bottom: 1px solid var(--tl-border);
    background: #f8fafc;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.tl-download-title {
    margin: 0 0 10px;
    color: #ef4444;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.tl-download-desc {
    margin-bottom: 20px;
    color: var(--tl-sub);
}

.tl-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.tl-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 15px 30px;
    gap: 15px;
    border-bottom: 1px solid var(--tl-border);
}

.tl-meta-item > span {
    width: 120px;
    margin: 0;
    flex-shrink: 0;
    color: var(--tl-sub);
    font-size: 16px;
    white-space: nowrap;
}

.tl-meta-item strong {
    margin: 0;
    flex: 1;
    color: var(--tl-text);
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.tl-download-start,
.tl-server {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    max-width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(113deg, #1a53ff, #008eff);
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease;
}

.tl-download-start:hover,
.tl-server:hover {
    opacity: .92;
    transform: translateY(-2px);
}

.tl-download-start:focus-visible,
.tl-server:focus-visible,
.tl-password-submit:focus-visible,
.tl-password-guide:focus-visible {
    outline: 3px solid rgb(11 116 255 / 30%);
    outline-offset: 3px;
}

.tl-download-start svg,
.tl-server svg {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tl-loading-wrap {
    display: none;
    margin-top: 20px;
}

.tl-loading-text {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
}

.tl-progress {
    height: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.tl-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #0b74ff, #38bdf8);
    transition: width 1s linear;
}

.tl-countdown {
    color: #ef4444;
    font-size: 34px;
    font-weight: 700;
}

.tl-final-links {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.tl-download-count {
    margin-top: 20px;
    color: var(--tl-sub);
    font-size: 15px;
}

.tl-download-status {
    display: none;
    margin-top: 14px;
    color: #ef4444;
    font-weight: 600;
}

.tl-download-status.show {
    display: block;
}

.tl-file-type {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.tl-file-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    object-fit: contain;
}

.tl-meta-item .tl-file-type-name {
    width: auto;
    margin: 0;
    flex: 0 1 auto;
    color: inherit;
    font-size: inherit;
    white-space: normal;
}

.haf-license {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.haf-license.free {
    background: #e8f7ed;
    color: #16a34a;
}

.haf-license.paid {
    background: #fee2e2;
    color: #dc2626;
}

.haf-license.trial {
    background: #fff8e1;
    color: #d97706;
}


.tl-password-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 22px;
    padding: 28px;
    gap: 16px;
     animation: tl-fade .3s ease;
}

@keyframes tl-fade {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tl-password-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.tl-password-text::before {
    display: block;
    margin-bottom: 10px;
    content: "🔒";
    font-size: 40px;
}

.tl-password-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    gap: 12px;
}

.tl-password-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 2px solid #dfe7f5;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 16px;
}

.tl-password-input:focus {
    border-color: #1976ff;
    outline: none;
    box-shadow: 0 0 0 4px rgb(25 118 255 / 15%);
}

.tl-password-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1976ff, #0b57d0);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.tl-password-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.tl-password-error {
    display: none;
    color: #ef4444;
    font-weight: 600;
}

.tl-password-error.show {
    display: block;
}

.tl-password-guide {
    display: inline-block;
    margin-top: 6px;
    padding: 12px 18px;
    border: 1px solid #ffd591;
    border-radius: 12px;
    background: #fff7e6;
    color: #d46b08;
    font-weight: 700;
    text-decoration: none;
}

.tl-password-guide:hover {
    background: #ffe7ba;
}

.dark,
body.dark {
    --tl-bg: #111827;
    --tl-border: #2b3548;
    --tl-text: #fff;
    --tl-sub: #94a3b8;
}

.dark .tl-password-wrap,
body.dark .tl-password-wrap {
    border-color: #2b3548;
    background: #182233;
    color: #fff;
}

.dark .tl-info-title,
body.dark .tl-info-title {
    border-color: #2b3548;
    background: #182233;
    color: #fff;
}

.dark .tl-meta-item,
body.dark .tl-meta-item {
    border-color: #2b3548;
}

.dark .tl-related-wrap,
body.dark .tl-related-wrap {
    border-color: #2b3548;
    background: #111827;
}

.dark .tl-related-title,
body.dark .tl-related-title,
.dark .tl-related-post-title,
body.dark .tl-related-post-title {
    color: #fff;
}

.dark .tl-related-title,
body.dark .tl-related-title,
.dark .tl-related-item,
body.dark .tl-related-item {
    border-color: #243041;
}

.dark .tl-related-item:hover,
body.dark .tl-related-item:hover {
    background: #182233;
}

.dark .tl-related-meta,
body.dark .tl-related-meta {
    color: #94a3b8;
}

/* ========================= MOBILE ========================= */
@media (max-width: 549px) {
    .tl-meta-grid {
        grid-template-columns: 1fr;
    }

    .tl-meta-item {
        padding: 14px 16px;
    }

    .tl-meta-item > span {
        width: 110px;
        font-size: 15px;
    }

    .tl-meta-item strong {
        font-size: 15px;
    }

    .tl-download-box {
        padding: 20px 16px;
    }

    .tl-download-title {
        font-size: 22px;
    }

    .tl-download-start,
    .tl-server {
        width: 100%;
    }

    .tl-password-wrap {
        padding: 20px 16px;
    }

    .tl-password-form {
        max-width: 100%;
    }
}
