/* Dedicated card art for lecture archive entries. Video and podcast styles are intentionally untouched. */
:is(#tte-page,.tte-page) .tte-speecharch {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 28px !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 10px 10px 18px !important;
    border: 1px solid #ddc979 !important;
    border-radius: 24px !important;
    background: #fbfaf5 !important;
    box-shadow: 0 15px 38px rgba(23, 61, 45, .10), inset 0 0 0 3px rgba(19, 75, 55, .035) !important;
    text-align: right !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__card::after {
    position: absolute;
    z-index: 0;
    bottom: -10px;
    left: 50%;
    width: 22px;
    height: 22px;
    border-right: 1px solid #c9a951;
    border-bottom: 1px solid #c9a951;
    background: #fbfaf5;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

:is(#tte-page,.tte-page) .tte-speecharch__card:hover {
    z-index: 2;
    transform: translateY(-3px) !important;
    box-shadow: 0 22px 48px rgba(23, 61, 45, .15), inset 0 0 0 3px rgba(19, 75, 55, .04) !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__art {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: clamp(230px, 26vw, 320px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(135deg, #f1d888, #b79439 46%, #e9d27f) !important;
    clip-path: polygon(50% 0%, 59% 7%, 70% 13%, 82% 19%, 93% 25%, 98% 32%, 100% 41%, 100% 100%, 0 100%, 0 41%, 2% 32%, 7% 25%, 18% 19%, 30% 13%, 41% 7%) !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__art::after {
    position: absolute;
    z-index: 0;
    inset: 4px;
    background: #0d4b39;
    clip-path: polygon(50% 0%, 59% 7%, 70% 13%, 82% 19%, 93% 25%, 98% 32%, 100% 41%, 100% 100%, 0 100%, 0 41%, 2% 32%, 7% 25%, 18% 19%, 30% 13%, 41% 7%);
    content: "";
}

:is(#tte-page,.tte-page) .tte-speecharch__art img,
:is(#tte-page,.tte-page) .tte-speecharch__cover {
    position: absolute !important;
    z-index: 1 !important;
    inset: 9px !important;
    width: calc(100% - 18px) !important;
    height: calc(100% - 18px) !important;
    min-height: 0 !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center 40% !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    clip-path: polygon(50% 0%, 59% 7%, 70% 13%, 82% 19%, 93% 25%, 98% 32%, 100% 41%, 100% 100%, 0 100%, 0 41%, 2% 32%, 7% 25%, 18% 19%, 30% 13%, 41% 7%) !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__cover-link {
    position: absolute !important;
    z-index: 2 !important;
    inset: 0 !important;
    display: block !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__play {
    position: absolute !important;
    z-index: 4 !important;
    top: 48% !important;
    left: 50% !important;
    display: grid !important;
    width: 62px !important;
    height: 62px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, .94) !important;
    border-radius: 50% !important;
    background: rgba(9, 25, 19, .57) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .24) !important;
    color: #fff !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transform: translate(-50%, -50%) !important;
    transition: background .18s ease, transform .18s ease !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__play:hover,
:is(#tte-page,.tte-page) .tte-speecharch__play:focus-visible {
    background: #0d4b39 !important;
    transform: translate(-50%, -50%) scale(1.06) !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__play svg {
    width: 25px !important;
    height: 25px !important;
    fill: currentColor !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__play.is-disabled {
    cursor: default !important;
    opacity: .82 !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__tag,
:is(#tte-page,.tte-page) .tte-speecharch__dur {
    position: absolute !important;
    z-index: 5 !important;
    bottom: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 31px !important;
    padding: 4px 12px !important;
    border: 1px solid rgba(235, 211, 137, .92) !important;
    border-radius: 999px !important;
    background: #0d4937 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__tag {
    right: 17px !important;
    left: auto !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__dur {
    right: auto !important;
    left: 17px !important;
    font-variant-numeric: tabular-nums;
}

:is(#tte-page,.tte-page) .tte-speecharch__demo {
    position: absolute !important;
    z-index: 6 !important;
    top: 13px !important;
    right: 15px !important;
    bottom: auto !important;
    left: auto !important;
    padding: 4px 9px !important;
    border: 1px solid rgba(255, 255, 255, .8) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .92) !important;
    color: #705b20 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    transform: none !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__info {
    position: relative;
    z-index: 1;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    min-width: 0 !important;
    padding: 19px 15px 7px !important;
    text-align: right !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__title {
    margin: 0 !important;
    color: #0e3a2b !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__title::after {
    display: block !important;
    width: 36px !important;
    height: 2px !important;
    margin: 10px 0 2px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #b69b63, #e6cc83) !important;
    content: "" !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__title a {
    color: inherit !important;
    text-decoration: none !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__title a:hover {
    color: #98751f !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__speaker {
    margin: 0 !important;
    color: #526f62 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__speaker span {
    font-weight: 500 !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__topics {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 7px 0 6px !important;
    padding: 0 !important;
    list-style: none !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__topics li {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 29px !important;
    padding: 4px 12px !important;
    border: 1px solid rgba(30, 101, 77, .10) !important;
    border-radius: 999px !important;
    background: #e6f2ec !important;
    color: #14523b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px 14px !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(18, 65, 49, .14) !important;
    direction: ltr !important;
    color: #607c72 !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    color: #607c72 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    direction: rtl !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__meta-item svg {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-width: 1.8 !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__listen:not(.tte-speecharch__listen--demo) {
    display: inline-flex !important;
    align-self: flex-start !important;
    align-items: center !important;
    min-height: 37px !important;
    margin-top: 12px !important;
    padding: 7px 17px !important;
    border: 1px solid rgba(20, 82, 59, .4) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #14523b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__listen:not(.tte-speecharch__listen--demo):hover,
:is(#tte-page,.tte-page) .tte-speecharch__listen:not(.tte-speecharch__listen--demo):focus-visible {
    background: #14523b !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__listen--demo {
    align-self: flex-start !important;
    margin-top: 12px !important;
    color: #7c837c !important;
    font-size: 11px !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__player {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    margin-top: 12px !important;
}

:is(#tte-page,.tte-page) .tte-speecharch__cover-link:focus-visible,
:is(#tte-page,.tte-page) .tte-speecharch__title a:focus-visible,
:is(#tte-page,.tte-page) .tte-speecharch__listen:focus-visible {
    outline: 3px solid #c5a94d !important;
    outline-offset: 3px !important;
}

@media (max-width: 1024px) {
    :is(#tte-page,.tte-page) .tte-speecharch {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    :is(#tte-page,.tte-page) .tte-speecharch__art {
        height: clamp(235px, 32vw, 310px) !important;
    }
}

@media (max-width: 640px) {
    :is(#tte-page,.tte-page) .tte-speecharch {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px !important;
    }

    :is(#tte-page,.tte-page) .tte-speecharch__card {
        padding: 9px 9px 16px !important;
        border-radius: 21px !important;
    }

    :is(#tte-page,.tte-page) .tte-speecharch__art {
        height: clamp(235px, 72vw, 320px) !important;
    }

    :is(#tte-page,.tte-page) .tte-speecharch__info {
        padding: 17px 12px 6px !important;
    }

    :is(#tte-page,.tte-page) .tte-speecharch__title {
        font-size: 17px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(#tte-page,.tte-page) .tte-speecharch__card,
    :is(#tte-page,.tte-page) .tte-speecharch__listen,
    :is(#tte-page,.tte-page) .tte-speecharch__play {
        transition: none !important;
    }
}
