
/* =========================================
   YOUTUBE VIDEO PAGE
   TechInfo365 / MD Developer
   ========================================= */

.ytvp-wrapper {
    --ytvp-bg: #f4f6fb;
    --ytvp-card: #ffffff;
    --ytvp-text: #172033;
    --ytvp-muted: #687386;
    --ytvp-primary: #e62117;
    --ytvp-border: #e5e9f0;
    --ytvp-input: #f8fafc;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: var(--ytvp-bg);
    color: var(--ytvp-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
}

.ytvp-wrapper *,
.ytvp-wrapper *::before,
.ytvp-wrapper *::after {
    box-sizing: border-box;
}

.ytvp-wrapper.ytvp-dark {
    --ytvp-bg: #101521;
    --ytvp-card: #1a2333;
    --ytvp-text: #f1f5f9;
    --ytvp-muted: #aab5c5;
    --ytvp-border: #303b4d;
    --ytvp-input: #111a29;
}

/* HEADER */

.ytvp-header {
    width: 100%;
    min-height: 75px;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ytvp-card);
    border-bottom: 1px solid var(--ytvp-border);
}

.ytvp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ytvp-text);
    font-size: 23px;
    font-weight: 800;
    text-decoration: none;
}

.ytvp-brand:hover {
    color: var(--ytvp-primary);
}

.ytvp-brand-icon {
    width: 37px;
    height: 37px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--ytvp-primary);
    color: #fff;
    border-radius: 10px;
}

.ytvp-brand-highlight {
    color: var(--ytvp-primary);
}

.ytvp-theme-toggle {
    width: 43px;
    height: 43px;
    border: 1px solid var(--ytvp-border);
    border-radius: 12px;
    background: var(--ytvp-input);
    color: var(--ytvp-text);
    font-size: 19px;
    cursor: pointer;
}

/* MAIN */

.ytvp-main {
    width: min(920px, 92%);
    margin: 0 auto;
}

/* HERO */

.ytvp-hero {
    text-align: center;
    padding: 55px 10px 30px;
}

.ytvp-label {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 30px;
    background: rgba(230, 33, 23, .10);
    color: var(--ytvp-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ytvp-hero h1 {
    margin: 18px 0 12px;
    color: var(--ytvp-text);
    font-size: clamp(30px, 5vw, 45px);
    line-height: 1.2;
    font-weight: 800;
}

.ytvp-hero h1 span {
    color: var(--ytvp-primary);
}

.ytvp-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--ytvp-muted);
    font-size: 16px;
}

/* CARDS */

.ytvp-card {
    margin: 22px 0;
    padding: 27px;
    background: var(--ytvp-card);
    border: 1px solid var(--ytvp-border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .035);
}

.ytvp-card h2 {
    margin: 0 0 18px;
    color: var(--ytvp-text);
    font-size: 23px;
    line-height: 1.35;
}

.ytvp-card h3 {
    color: var(--ytvp-text);
}

/* INPUT */

.ytvp-input-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.ytvp-url-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 53px;
    padding: 14px 16px;
    border: 1px solid var(--ytvp-border);
    border-radius: 10px;
    background: var(--ytvp-input);
    color: var(--ytvp-text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.ytvp-url-input:focus {
    border-color: var(--ytvp-primary);
    box-shadow: 0 0 0 3px rgba(230, 33, 23, .10);
}

.ytvp-submit,
.ytvp-watch-button,
.ytvp-studio-button {
    min-height: 51px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 21px;
    border: none;
    border-radius: 10px;
    background: var(--ytvp-primary);
    color: #fff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: .2s ease;
}

.ytvp-submit:hover,
.ytvp-watch-button:hover,
.ytvp-studio-button:hover {
    background: #c91810;
    color: #fff !important;
    transform: translateY(-1px);
}

.ytvp-message {
    min-height: 23px;
    margin: 13px 0 0;
    color: var(--ytvp-muted);
    font-size: 14px;
}

/* VIDEO RESULT */

.ytvp-result {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid var(--ytvp-border);
}

.ytvp-thumbnail-wrap {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 13px;
    background: var(--ytvp-input);
}

.ytvp-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ytvp-video-title {
    margin: 18px 0;
    text-align: center;
    font-size: 19px;
}

.ytvp-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 17px 0;
}

.ytvp-embed-button {
    min-height: 51px;
    padding: 13px 21px;
    border: 1px solid var(--ytvp-border);
    border-radius: 10px;
    background: var(--ytvp-input);
    color: var(--ytvp-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ytvp-embed-button:hover {
    border-color: var(--ytvp-primary);
}

/* VIDEO PLAYER */

.ytvp-player {
    width: 100%;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 13px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.ytvp-player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* DOWNLOAD INFORMATION */

.ytvp-download-info {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid var(--ytvp-border);
    border-radius: 13px;
    background: var(--ytvp-input);
}

.ytvp-download-info h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.ytvp-download-info p {
    color: var(--ytvp-muted);
}

.ytvp-download-info a {
    color: var(--ytvp-primary);
    font-weight: 700;
    text-decoration: none;
}

.ytvp-download-info a:hover {
    text-decoration: underline;
}

/* FEATURES */

.ytvp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.ytvp-feature {
    padding: 21px;
    border: 1px solid var(--ytvp-border);
    border-radius: 14px;
    background: var(--ytvp-card);
}

.ytvp-feature > span {
    font-size: 29px;
}

.ytvp-feature h3 {
    margin: 10px 0 6px;
    color: var(--ytvp-text);
    font-size: 17px;
}

.ytvp-feature p {
    margin: 0;
    color: var(--ytvp-muted);
    font-size: 14px;
}

/* STEPS */

.ytvp-steps {
    padding-left: 23px;
    color: var(--ytvp-muted);
}

.ytvp-steps li {
    margin: 12px 0;
    padding-left: 5px;
}

/* FAQ */

.ytvp-card details {
    padding: 16px 0;
    border-bottom: 1px solid var(--ytvp-border);
}

.ytvp-card details:last-child {
    border-bottom: none;
}

.ytvp-card summary {
    color: var(--ytvp-text);
    font-weight: 700;
    cursor: pointer;
}

.ytvp-card details p {
    margin: 12px 0 0;
    color: var(--ytvp-muted);
}

/* DISCLAIMER */

.ytvp-disclaimer {
    margin: 25px 0;
    padding: 18px;
    border-left: 4px solid var(--ytvp-primary);
    border-radius: 9px;
    background: rgba(230, 33, 23, .07);
    color: var(--ytvp-text);
    font-size: 14px;
}

/* FOOTER */

.ytvp-footer {
    margin-top: 45px;
    padding: 27px 15px;
    border-top: 1px solid var(--ytvp-border);
    background: var(--ytvp-card);
    color: var(--ytvp-muted);
    text-align: center;
}

.ytvp-footer p {
    margin: 0;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .ytvp-header {
        min-height: 65px;
        padding: 12px 4%;
    }

    .ytvp-brand {
        font-size: 20px;
    }

    .ytvp-main {
        width: 94%;
    }

    .ytvp-hero {
        padding: 38px 8px 22px;
    }

    .ytvp-hero h1 {
        font-size: 32px;
    }

    .ytvp-card {
        padding: 20px;
        border-radius: 14px;
    }

    .ytvp-input-row {
        flex-direction: column;
    }

    .ytvp-submit {
        width: 100%;
    }

    .ytvp-features {
        grid-template-columns: 1fr;
    }

    .ytvp-result-actions {
        flex-direction: column;
    }

    .ytvp-result-actions > * {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {

    .ytvp-hero h1 {
        font-size: 28px;
    }

    .ytvp-card {
        padding: 16px;
    }

    .ytvp-brand {
        font-size: 18px;
    }
}
