.utf-video-episode{
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.utf-video-episode__layout{
    display: grid;
    column-gap: 1em;
    grid-template-columns: 1fr;
}

.utf-video-episode__layout--transcript-open {
    grid-template-columns: 1fr 360px;
}

.utf-video-episode__transcript{
    display: none;
    max-width: 360px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow-y: hidden;
    flex-direction: column;
}

.utf-video-episode__transcript-title{
    font-size: 20px !important;
    font-family: "Inter", sans-serif;
    margin: 0 !important;
}

.utf-video-episode__transcript-body {
    color: #828282;
    font-size: 0.875em;
    font-family: "Inter", sans-serif;
    overflow-y: scroll;
    flex: 1;
    line-height: 1.5;
}

.utf-video-episode__transcript-body::-webkit-scrollbar{
    width: 6px;
}

.utf-video-episode__transcript-body::-webkit-scrollbar-track{
    background: transparent;
}

.utf-video-episode__transcript-body::-webkit-scrollbar-thumb{
    background-color: #c7c7c7;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.utf-video-episode__layout--transcript-open .utf-video-episode__transcript {
    display: flex;
}

.utf-video-episode{
    padding: 40px 64px;
    max-width: 1336px;
    margin-inline: auto;
}

.utf-video-episode__main{
    display: flex;
    flex-direction: column;
}

.utf-video-episode__video-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin:  0 auto 1em auto;
}

.utf-video-episode__main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.utf-video-episode__title{
    font-size: 32px !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.utf-video-episode__section{
    border-radius: 15px;
    padding: 48px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.04);
}

.utf-video-episode__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.utf-video-episode__date{
    font-size: 0.875em;
    font-family: "Inter", sans-serif;
    color: #787878;
}

.utf-video-episode__section-title{
    font-size: 18px;
    font-family: "Inter", sans-serif;
    margin: 0;
}

.utf-video-episode__meta{
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.utf-video-episode__categories{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.utf-video-episode__description-text{
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 1em;
    line-height: 1.3em;
    max-width: 600px;
    margin: 0 !important;
}

.utf-video-episode__tags{
    display: flex;
    gap: 0.25em;
}

.utf-video-episode__tag{
    font-family: "Inter", sans-serif;
    font-size: 0.875em !important;
    padding-inline: 8px;
    border: 1px solid lightgray;
    border-radius: 8px;
    max-width: fit-content;
    line-height: 1.2;
}

.utf-video-episode__section h2{
    font-size: 32px !important;
    font-family: "Roboto", sans-serif;
    font-weight: 600 !important;
    margin: 0 0 0.25em 0;
}

.utf-video-episode__grid,
.utf-article-detail__grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 20px 0;
}

.utf-video-episode__actions{
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.utf-video-episode__icon-btn{
    cursor: pointer;
    background: transparent;
    transition: background 0.2s ease;
    max-width: fit-content;
    font-size: 1.25em;
    font-weight: 500;
    font-family: sans-serif;
    /* Elementor CSS interferes with this attribute, so we set the !important flag */
    border: none !important;
    border-radius: 0.5em;
    padding: 0.5em;
}

.utf-video-episode__see-all{
    display: flex;
    justify-content: center;
    color: black;
    font-size: 20px !important;
    font-family: "Inter", sans-serif;
    text-decoration: none;
}

.utf-video-episode__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}


.utf-video-episode__modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(38, 57, 69, 0.75);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.utf-video-episode__modal-content {
    position: relative;
    width: 360px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);

    transform: scale(0.95);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;

    pointer-events: none;
}

.utf-video-episode__modal-content--active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.utf-video-episode__close-icon {
    background: none;
    /* Elementor CSS interferes with this attribute, so we set the !important flag */
    border: none !important;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 0;
}

.utf-video-episode__close-icon img{
    width: 16px;
    height: 16px;
}


.utf-video-episode__close-icon svg {
    width: 24px;
    height: 24px;
}

.utf-video-episode__modal-title {
    font-size: 20px;
    font-weight: 600;
    font-family: sans-serif;
    margin: 16px 0 28px;
    text-align: center;
    color: #1e1e1e;
}

.utf-video-episode__modal-icons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.utf-video-episode__icon-container {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.utf-video-episode__modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.utf-video-episode__modal-icon svg {
    width: 100%;
    height: 100%;
}

.utf-video-episode__icon-label {
    font-size: 12px;
    font-family: sans-serif;
    color: #1e1e1e;
    text-align: center;
    margin-top: 4px;
}

.utf-video-episode__copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utf-video-episode__copy-input {
    flex-grow: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    font-size: 14px;
    color: #1e1e1e;
    background: #fafafa;
}

.utf-video-episode__copy-btn {
    padding: 10px 14px;
    background-color: #276181;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.utf-video-episode__copy-btn:hover {
    background-color: #1e4a63;
}

/* Article detail */
.utf-article-detail{
    max-width: 1160px;
    margin: auto;
}

.utf-article-detail__info{
    line-height: 1.2;
}

.utf-article-detail__header{
    max-width: 768px;
    margin-inline: auto;
}

.utf-article-detail__breadcrumbs{
    display: flex;
    align-items: center;
    gap: 0.25em;
    margin-bottom: 1em;
}

.utf-article-detail__breadcrumb-link{
    display: inline-block;
    font-size: 0.875em;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    color: black;
}

.utf-article-detail__title{
    font-size: 3em !important;
    font-family: "Roboto", sans-serif !important;
    line-height: 1.2em !important;
    margin: 0 0 0.5em 0 !important;
}

.utf-article-detail__meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.utf-article-detail__date,
.utf-article-detail__read-time{
   font-size: 0.875em;
   font-family: "Inter", sans-serif;
}

.utf-article-detail__share{
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.utf-article-detail__share-link{
    color: black;
    text-decoration: none;
}

.utf-article-detail__related{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 2.5em !important;
}

.utf-article-detail__related-title{
    font-size: 1.5em !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 600 !important;
    margin: 0 0 0.5em 0 !important;
}

.utf-article-detail__related-description{
    font-size: 1.125em !important;
    font-family: "Inter", sans-serif !important;
    margin: 0 0 2em 0 !important;
    line-height: 1.2;
}

.utf-article-detail__share-label{
    display: inline-block;
    font-size: 1.15em;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    margin-bottom: 1em;
    line-height: 1.2;
}

.utf-article-detail__footer{
    max-width: 768px;
    margin-inline: auto;
    padding-block: 3em;
    border-bottom: 1px solid black;
}

.utf-article-detail__post-meta-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utf-article-detail__tags{
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.utf-article-detail__tag{
    display: inline-block;
    background: #EAEAEA;
    color: black;
    font-family: "Inter", sans-serif;
    font-size: 0.875em;
    font-weight: 600;
    padding: 4px 8px;
    line-height: 1.2;
}

@media(max-width: 1035px){
    .utf-video-episode__layout{
        row-gap: 1em;
        column-gap: 0;
    }

    .utf-video-episode__layout--transcript-open {
        grid-template-columns: 1fr;
    }

    .utf-video-episode__transcript{
        max-width: 100%;
    }
}

@media(max-width: 1000px){
    .utf-video-episode__meta{
        flex-direction: column;
    }

    .utf-video-episode__grid,
    .utf-article-detail__grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 610px){
    .utf-video-episode{
        padding: 0;
    }
    .utf-video-episode__meta{
        flex-direction: column;
    }

    .utf-video-episode__header{
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }

    .utf-video-episode__grid,
    .utf-article-detail__grid{
        grid-template-columns: 100%;
    }

    .utf-video-episode__section{
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .utf-video-episode__modal-content {
        width: 90%;
        padding: 24px;
    }

    .utf-video-episode__modal-icons {
        gap: 10px;
    }

    .utf-video-episode__icon-container {
        width: 50px;
    }

    .utf-video-episode__modal-icon {
        width: 50px;
        height: 50px;
    }
}

/* Utilities */
.utf-video-episode__video-wrapper--portrait {
    max-width: 330px;
    height: 550px;
    aspect-ratio: 3 / 4;
}

.utf-video-episode__video-wrapper--landscape {
    max-width: 1336px;
    aspect-ratio: 1336/662;
    height: auto;
}

.utf-video-episode__modal-overlay--active {
    opacity: 1;
    pointer-events: auto;
}

.utf-article-detail__share-link--copy{
    cursor: pointer;
    background: transparent !important;
    border: none !important;
}

.utf-video-episode__icon-btn--active{
    background: #E4EDEf;
}
