/* Uffitalks Archive Styles */

.uffitalks-archive-wrapper {
    background: #000;
    color: #fff;
    padding-top: 80px;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    /* overflow: hidden; */
    /* Removed to allow position: sticky to work */
    z-index: 1;
}

/* Gradient Patches */
.gradient-patches {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    /* Clips the patches within the sticky viewport */
    margin-bottom: -100vh;
    /* Prevents the sticky container from pushing content down */
}

.patch-container {
    position: absolute;
    will-change: transform;
}

.patch {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    transform: translate(var(--mx, 0), var(--my, 0));
}

.patch-1 {
    width: 600px;
    height: 600px;
    top: 200px;
    left: -200px;
    animation: float-up-down 8s infinite ease-in-out;
}

.patch-1 .patch {
    background: radial-gradient(circle, rgba(0, 87, 255, 0.6) 0%, transparent 70%);
}

.patch-2 {
    width: 500px;
    height: 500px;
    top: 350px;
    right: -200px;
    animation: float-up-down 10s infinite ease-in-out reverse;
}

.patch-2 .patch {
    background: radial-gradient(circle, rgba(0, 87, 255, 0.6), transparent 70%);
}

.patch-3 {
    display: none;
    /* Stick to left and right only as requested */
}

@keyframes float-up-down {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 40px);
    }
}

/* Interactive Hover Effect via JS handles this for a smoother feel */


.uffitalks-archive-wrapper .container {
    /* max-width: 1300px; */
    margin: 0 auto;
    /* padding: 0 30px; */
    position: relative;
    z-index: 2;
}

/* Section Header */
.now-streaming-section {
    /* margin-bottom: 100px; */
    display: flex;
    justify-content: space-between;
    column-gap: 60px;
    align-items: center;
}

.section-header {
    padding-top: 10%;
    padding-bottom: 10%;
    text-align: left;
    /* margin-bottom: 50px; */
    /* max-width: 700px; */
}

.streaming-title {
    font-family: 'Antonio', sans-serif;
    font-size: 100px;
    font-weight: 700;
    background: linear-gradient(90deg, #0057FF 0%, #2F99FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 87, 255, 0.3);
    /* margin: 0 0 15px 0; */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0px;
    line-height: 1;
}

.streaming-subtitle {
    font-size: 34px;
    /* font-weight: 600; */
    /* margin-bottom: 25px; */
    font-family: 'Antonio', sans-serif;
    letter-spacing: 0.7px;
    padding: 50px 0 0px;
    color: #fff;
}

.streaming-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #fff;
}

/* Featured Video Card */
.video-thumb-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
}

.video-thumb-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.video-thumb-wrapper:hover img {
    transform: scale(1.03);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-now-circle {
    position: absolute;
    width: 70%;
    height: 70%;
    background: #000E23;
    border-radius: 50%;
    animation: rotate-circle 15s linear infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.watch-now-circle svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.play-icon-inner {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.play-icon-inner svg {
    width: 45px;
    height: 45px;
    /* margin-left: 5px; */
}

.play-icon-inner svg path {
    fill: #000E23;
}

.play-button:hover .play-icon-inner {
    /* transform: scale(1.1); */
}

.play-button:hover .watch-now-circle {
    box-shadow: 0 15px 40px rgba(0, 87, 255, 0.3);
}

@keyframes rotate-circle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* .episode-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #0057ff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 28px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.4);
    font-family: 'Antonio', sans-serif;
} */

/* Top Picks Section */
.top-picks-section {
    margin-bottom: 100px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 50px;
    color: white;
    position: relative;
    text-transform: none;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #0057ff;
    border-radius: 2px;
}

.top-picks-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.top-picks-main {
    background-color: rgba(0, 87, 255, 0.10);
    border: 1px solid rgba(0, 87, 255, 0.60);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* padding: 25px; */
    box-sizing: border-box;
}

.main-pick-card .video-thumb-wrapper {
    margin-bottom: 24px;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.main-pick-card .video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-pick-card .pick-content {
    padding: 0 25px 25px 25px;
}

.side-pick-card .pick-content {
    padding: 20px 20px 20px 0;

    display: flex;
    /* align-content: stretch; */
    flex-wrap: wrap;
    flex-direction: column;

}

.pick-content .pick-date {
    font-size: 12px;
    color: #8293B1;
    display: block;
    margin-bottom: 18px;
    /* text-transform: uppercase; */
    /* letter-spacing: 1px; */
    font-family: 'Inter', sans-serif;
}

.pick-content .pick-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--uffizio-text-white);
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: none;
}

.pick-content .pick-excerpt {
    font-size: 14px;
    color: #CFD7E5;
    font-family: 'Inter', sans-serif;
    margin-bottom: 28px;
    line-height: 1.6;
}

.read-more-link {
    color: #4685FF;
    text-decoration: none;
    /* font-weight: 700; */
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    /* text-transform: uppercase; */
    /* letter-spacing: 1px; */
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    /* gap: 15px; */
    color: #3385ff;
}

.top-picks-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-pick-card {
    display: grid;
    grid-template-columns: 53.5% 1fr;
    gap: 20px;
    align-items: center;
    border: 1px solid #0057FF66;
    background: #0057FF1A;
    backdrop-filter: blur(4px);
    border-radius: 10px;
    background-color: rgba(0, 87, 255, 0.10);

    /* Stroke: #0057FF at 40% opacity */
    /* "Inside" position is achieved using box-shadow or border-box */
    border: 1px solid rgba(0, 87, 255, 0.40);

}

.side-pick-card .pick-title {
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    font-weight: 500;
}

.side-pick-card .video-thumb-wrapper {
    border-radius: 10px 0px 0px 10px;
    aspect-ratio: 16 / 9;
}

.side-pick-card .video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured Categories / Grid */
.featured-categories-section {
    margin-bottom: 100px;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.tag-filter-btn {
    padding: 12px 30px;
    border: 1px solid #0057ff80;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0057ff35;
}



.tag-filter-btn.active,
.tag-filter-btn:hover {
    color: white;
    background: linear-gradient(100deg, #0057ff, #00318F);
    border-color: #0057ff;
    box-shadow: 0 10px 20px rgba(0, 87, 255, 0.3);
}

.uffitalks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    transition: opacity 0.3s ease;
}

.uffitalks-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.uffitalks-card {
    /* background: #0a0a0a; */
    background: #0057ff25;

    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #0057ff60;
}

.uffitalks-card .video-thumb-wrapper {
    aspect-ratio: 16 / 9;
}

.uffitalks-card .video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uffitalks-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #0057ff;
}

.uffitalks-card-content {
    padding: 25px;
    /* background: #0057ff25; */
}

.fa-css-arrow-circle {
    --size: 18px;
}

.top-picks-main:hover .fa-css-arrow-circle,
.side-pick-card:hover .fa-css-arrow-circle,
.uffitalks-card-content:hover .fa-css-arrow-circle {
    transform: rotate(-30deg);
    transition: rotate .5s ease;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #8293B1;
    margin-bottom: 18px;
    text-transform: none;
    /* letter-spacing: 1px; */
    font-family: var(--uffizio-font-body);

}

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.4;
    min-height: 48px;
}

.card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: none;
    font-family: var(--uffizio-font-body);
}

/* .card-title a:hover {
    color: #0057ff;
} */

.card-excerpt {
    font-size: 15px;
    color: #888;
    margin-bottom: 25px;
    line-height: 1.6;
    min-height: 48px;
}

/* Pagination */
.uffitalks-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.uffitalks-pagination:has(*) {
    margin-top: 80px;
}

.uffitalks-pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid #222;
}

.uffitalks-pagination .page-numbers.current,
.uffitalks-pagination .page-numbers:hover {
    background: #0057ff;
    border-color: #0057ff;
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.3);
}

/* Newsletter */
.uffitalks-newsletter {
    background: linear-gradient(135deg, #001a4d 0%, #000 100%);
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid #111;
}

.newsletter-box {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-box h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Antonio', sans-serif;
    letter-spacing: 1px;
}

.newsletter-box p {
    font-size: 18px;
    color: #999;
    margin-bottom: 50px;
    line-height: 1.6;
}

.newsletter-form-wrapper .tnp-subscription form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.newsletter-form-wrapper .tnp-field-email {
    flex: 1;
}

.newsletter-form-wrapper input.tnp-email {
    width: 100%;
    padding: 18px 25px;
    border-radius: 8px;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.newsletter-form-wrapper input.tnp-email:focus {
    border-color: #0057ff;
    outline: none;
}

.newsletter-form-wrapper input.tnp-submit {
    padding: 18px 40px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form-wrapper input.tnp-submit:hover {
    background: #0057ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 87, 255, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .uffitalks-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .top-picks-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .streaming-title {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .uffitalks-archive-wrapper {
        padding-top: 60px;
    }

    .now-streaming-section {
        display: block;
    }

    .streaming-title {
        font-size: 48px;
    }

    .streaming-subtitle {
        font-size: 22px;
    }

    .uffitalks-grid {
        grid-template-columns: 1fr;
    }

    .side-pick-card {
        grid-template-columns: 1fr;
    }

    .newsletter-form-wrapper .tnp-subscription form {
        flex-direction: column;
    }

    .newsletter-box h2 {
        font-size: 32px;
    }

    .top-picks-section {
        padding-top: 50px;
        margin-bottom: 50px;
    }

    .main-pick-card .pick-content {
        padding: 0 15px 15px 15px;
    }

    .side-pick-card .video-thumb-wrapper {
        border-radius: 10px 10px 0 0;
    }

    .pick-content .pick-title {
        font-size: 20px;
    }

    .watch-now-circle {
        width: 60%;
        height: 60%;
    }

    .streaming-subtitle {
        padding-top: 30px;
    }

    .uffitalks-card-content {
        padding: 15px;
    }

    .card-title {
        min-height: auto;
    }

    .side-pick-card .pick-content {
        padding-left: 20px;
    }

    .uffitalks-pagination:has(*) {
        margin-top: 40px;
    }

    .play-icon-inner {
        width: 40px;
        height: 40px;
    }
}

/* Ensure footer sits above the sticky patches to cleanly cut them off */
.uffizio-footer {
    position: relative;
    z-index: 10;
    background-color: #000;
}