/* =========================================================
   BTAA TARJAMA — VIDEOS V1
   Isolated internal page styles
========================================================= */

.videos-page {
    --videos-navy: #07111d;
    --videos-navy-2: #0c1929;
    --videos-ink: #101b2a;
    --videos-muted: #697581;
    --videos-gold: #e5a93c;
    --videos-gold-deep: #96661f;
    --videos-cream: #f4efe4;
    --videos-paper: #fbfaf7;
    --videos-line: rgba(16, 27, 42, .11);
    --videos-radius-xl: 28px;
    --videos-radius-lg: 22px;
    overflow: clip;
    background: var(--videos-paper);
    color: var(--videos-ink);
}

.videos-page .container {
    width: min(1180px, calc(100% - 48px));
}

/* Hero */
.videos-hero {
    position: relative;
    overflow: hidden;
    padding: 108px 0 100px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(229, 169, 60, .13), transparent 28%),
        linear-gradient(135deg, #08121f 0%, #07111d 58%, #0c1929 100%);
}

.videos-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to left, #000, transparent 78%);
}

.videos-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 88px;
}

.videos-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.videos-breadcrumbs a { color: inherit; }
.videos-breadcrumbs a:hover { color: var(--videos-gold); }

.videos-kicker,
.videos-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--videos-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}

.videos-kicker::before,
.videos-section-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.videos-hero h1 {
    max-width: 720px;
    margin: 20px 0 0;
    color: #fff;
    font-size: clamp(52px, 6.1vw, 82px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.videos-hero h1 span {
    display: block;
    margin-top: 8px;
    color: var(--videos-gold);
}

.videos-hero-copy > p {
    max-width: 680px;
    margin: 26px 0 0;
    color: #b7c0cc;
    font-size: 17px;
    line-height: 2;
}

.videos-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.videos-hero-stats > div { display: grid; gap: 3px; }
.videos-hero-stats strong { color: #fff; font-size: 18px; font-weight: 650; }
.videos-hero-stats span { color: rgba(255,255,255,.5); font-size: 12px; }

.videos-hero-visual {
    position: relative;
    min-height: 420px;
}

.videos-screen-card {
    position: absolute;
    top: 42px;
    right: 20px;
    width: min(430px, 94%);
    aspect-ratio: 16 / 10;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: rotate(-2.3deg);
}

.videos-screen-topline {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.45);
    font-size: 10px;
    letter-spacing: .16em;
}

.videos-screen-topline span:last-child { color: #f17777; }

.videos-screen-center {
    position: absolute;
    inset: 58px 24px 42px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 46%, rgba(229,169,60,.16), transparent 35%),
        #07101b;
}

.videos-screen-center strong {
    color: rgba(255,255,255,.08);
    font-size: clamp(66px, 8vw, 108px);
    letter-spacing: -.06em;
}

.videos-screen-play {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--videos-gold);
    color: #08111d;
    box-shadow: 0 16px 42px rgba(229,169,60,.26);
}

.videos-screen-play .icon { width: 28px; height: 28px; }

.videos-screen-timeline {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255,255,255,.1);
}

.videos-screen-timeline span {
    display: block;
    width: 63%;
    height: 100%;
    background: var(--videos-gold);
}

.videos-floating-tag {
    position: absolute;
    left: 2px;
    bottom: 34px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(8,17,29,.76);
    color: rgba(255,255,255,.7);
    font-size: 10px;
    letter-spacing: .16em;
    transform: rotate(4deg);
}

.videos-floating-tag-alt {
    left: auto;
    right: 4px;
    bottom: 0;
    color: var(--videos-gold);
    transform: rotate(-4deg);
}

/* Shared headings */
.videos-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.videos-section-heading h2 {
    margin: 10px 0 0;
    color: var(--videos-ink);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.videos-section-heading p {
    max-width: 620px;
    margin: 13px 0 0;
    color: var(--videos-muted);
    font-size: 15px;
    line-height: 1.85;
}

.videos-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--videos-ink);
    font-size: 13px;
    font-weight: 650;
}

.videos-text-link .icon { width: 16px; height: 16px; transition: transform .22s ease; }
.videos-text-link:hover { color: var(--videos-gold-deep); }
.videos-text-link:hover .icon { transform: translateX(-4px); }

/* Featured */
.videos-featured-section {
    padding: 92px 0 88px;
    background: var(--videos-cream);
}

.videos-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(16,27,42,.08);
    border-radius: var(--videos-radius-xl);
    background: #fff;
    box-shadow: 0 24px 70px rgba(16,27,42,.08);
}

.videos-featured-media,
.videos-card-media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    overflow: hidden;
    background: var(--videos-navy);
    color: #fff;
}

.videos-featured-media { min-height: 430px; }

.videos-featured-media img,
.videos-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .42s ease, opacity .42s ease;
}

.videos-featured-media::after,
.videos-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,9,15,.45), transparent 55%);
    pointer-events: none;
}

.videos-featured-media:hover img,
.videos-card-media:hover img { transform: scale(1.035); }

.videos-featured-placeholder,
.videos-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background:
        radial-gradient(circle at 25% 20%, rgba(229,169,60,.16), transparent 28%),
        linear-gradient(145deg, #08131f, #0d1b2c);
}

.videos-featured-placeholder {
    color: rgba(255,255,255,.12);
    font-size: clamp(64px, 8vw, 110px);
    font-weight: 700;
}

.videos-play-button,
.videos-card-play {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--videos-gold);
    color: #08111d;
    box-shadow: 0 16px 42px rgba(0,0,0,.18);
    transition: transform .24s ease;
}

.videos-play-button {
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
}

.videos-play-button .icon { width: 30px; height: 30px; }
.videos-featured-media:hover .videos-play-button { transform: translate(-50%, -50%) scale(1.08); }

.videos-duration {
    position: absolute;
    z-index: 3;
    left: 14px;
    bottom: 14px;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(4,9,15,.78);
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
    backdrop-filter: blur(8px);
}

.videos-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 64px);
}

.videos-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    color: #7a8591;
    font-size: 12px;
}

.videos-category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(229,169,60,.28);
    border-radius: 999px;
    background: rgba(229,169,60,.09);
    color: var(--videos-gold-deep);
    font-size: 11px;
    font-weight: 700;
}

.videos-featured-content h2 {
    margin: 20px 0 0;
    color: var(--videos-ink);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.16;
    letter-spacing: -.04em;
}

.videos-featured-content p {
    margin: 18px 0 0;
    color: var(--videos-muted);
    font-size: 15px;
    line-height: 1.95;
}

.videos-featured-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--videos-navy);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .22s ease, background .22s ease;
}

.videos-featured-cta:hover { transform: translateY(-2px); background: #102239; }
.videos-featured-cta .icon { width: 17px; height: 17px; }

/* Library */
.videos-library-section {
    padding: 96px 0 104px;
    background: var(--videos-paper);
}

.videos-library-heading { margin-bottom: 28px; }

.videos-toolbar {
    display: grid;
    gap: 20px;
    margin-bottom: 28px;
}

.videos-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 7px 8px 7px 17px;
    border: 1px solid var(--videos-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(16,27,42,.04);
}

.videos-search > .icon { width: 19px; height: 19px; color: #8a949e; }

.videos-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--videos-ink);
    font: inherit;
    font-size: 14px;
}

.videos-search button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: var(--videos-navy);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.videos-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.videos-filter-tab {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--videos-line);
    border-radius: 999px;
    background: #fff;
    color: #596572;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.videos-filter-tab:hover,
.videos-filter-tab.is-active {
    border-color: rgba(229,169,60,.42);
    background: rgba(229,169,60,.11);
    color: #7d5419;
}

.videos-results-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    color: var(--videos-muted);
    font-size: 12px;
}

.videos-results-line a { color: var(--videos-gold-deep); font-weight: 700; }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.videos-card {
    overflow: hidden;
    border: 1px solid rgba(16,27,42,.09);
    border-radius: var(--videos-radius-lg);
    background: #fff;
    box-shadow: 0 16px 48px rgba(16,27,42,.055);
    transition: transform .26s ease, box-shadow .26s ease;
}

.videos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 65px rgba(16,27,42,.09);
}

.videos-card-media { aspect-ratio: 16 / 9; }

.videos-card-play {
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
}

.videos-card-play .icon { width: 22px; height: 22px; }
.videos-card-media:hover .videos-card-play { transform: translate(-50%, -50%) scale(1.08); }

.videos-card-placeholder strong {
    color: rgba(255,255,255,.13);
    font-size: 64px;
    line-height: 1;
}

.videos-card-placeholder small {
    color: var(--videos-gold);
    font-size: 10px;
    letter-spacing: .16em;
}

.videos-card-body { padding: 23px 23px 24px; }

.videos-card-body h3 {
    margin: 16px 0 0;
    color: var(--videos-ink);
    font-size: 20px;
    line-height: 1.55;
    letter-spacing: -.025em;
}

.videos-card-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 12px 0 0;
    color: var(--videos-muted);
    font-size: 13px;
    line-height: 1.85;
}

.videos-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--videos-ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.videos-card-link .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.videos-card-link:hover { color: var(--videos-gold-deep); }
.videos-card-link:hover .icon { transform: translateX(-4px); }

.videos-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
}

.videos-pagination a {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--videos-line);
    border-radius: 11px;
    background: #fff;
    color: var(--videos-ink);
    font-size: 12px;
    font-weight: 650;
}

.videos-pagination a:hover,
.videos-pagination a.is-active {
    border-color: var(--videos-navy);
    background: var(--videos-navy);
    color: #fff;
}

.videos-empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 62px 28px;
    border: 1px solid var(--videos-line);
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.videos-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(229,169,60,.13);
    color: var(--videos-gold-deep);
}

.videos-empty-icon .icon { width: 22px; height: 22px; }
.videos-empty h3 { margin: 0; font-size: 25px; color: var(--videos-ink); }
.videos-empty p { max-width: 480px; margin: 12px auto 0; color: var(--videos-muted); font-size: 14px; line-height: 1.9; }
.videos-empty a { display: inline-flex; margin-top: 18px; color: var(--videos-gold-deep); font-size: 13px; font-weight: 700; }

/* Channel CTA */
.videos-channel-section {
    padding: 0 0 96px;
    background: var(--videos-paper);
}

.videos-channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    padding: 46px 50px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 16% 20%, rgba(229,169,60,.13), transparent 28%),
        var(--videos-navy);
    color: #fff;
}

.videos-channel-card h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.videos-channel-card p {
    max-width: 690px;
    margin: 14px 0 0;
    color: #aeb8c3;
    font-size: 14px;
    line-height: 1.9;
}

.videos-channel-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 13px;
    background: var(--videos-gold);
    color: #101722;
    font-size: 13px;
    font-weight: 800;
}

.videos-channel-cta .icon { width: 19px; height: 19px; }
.videos-channel-cta:hover { background: #f0bd59; transform: translateY(-2px); }

/* Make the global modal deterministic on this page */
body.videos-page-body .video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body.videos-page-body .video-modal.is-open { display: flex; }
body.videos-page-body .video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,7,12,.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.videos-page-body .video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    padding: 8px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: #080d17;
    box-shadow: 0 34px 100px rgba(0,0,0,.42);
}

body.videos-page-body .video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #000;
}

body.videos-page-body .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.videos-page-body .video-close {
    position: absolute;
    z-index: 3;
    top: -15px;
    left: -15px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: #fff;
    color: #111a26;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

body.videos-page-body .video-close .icon { width: 18px; height: 18px; }

@media (max-width: 980px) {
    .videos-hero { padding: 88px 0 82px; }
    .videos-hero-grid { grid-template-columns: 1fr; gap: 54px; }
    .videos-hero-visual { min-height: 360px; max-width: 650px; width: 100%; }
    .videos-featured-card { grid-template-columns: 1fr; }
    .videos-featured-media { min-height: 0; aspect-ratio: 16 / 9; }
    .videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .videos-page .container { width: min(100% - 30px, 1180px); }
    .videos-hero { padding: 66px 0 62px; }
    .videos-hero h1 { font-size: clamp(42px, 13vw, 58px); }
    .videos-hero-copy > p { font-size: 15px; line-height: 1.9; }
    .videos-hero-stats { gap: 20px; }
    .videos-hero-visual { min-height: 300px; }
    .videos-screen-card { right: 0; width: 100%; }
    .videos-floating-tag { bottom: 8px; }

    .videos-featured-section,
    .videos-library-section { padding: 70px 0; }

    .videos-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .videos-section-heading h2 { font-size: 36px; }

    .videos-featured-content { padding: 28px 24px 32px; }
    .videos-featured-content h2 { font-size: 32px; }
    .videos-play-button { width: 62px; height: 62px; }
    .videos-play-button .icon { width: 24px; height: 24px; }

    .videos-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .videos-filter-tabs::-webkit-scrollbar { display: none; }
    .videos-filter-tab { flex: 0 0 auto; }

    .videos-grid { grid-template-columns: 1fr; }
    .videos-card-body h3 { font-size: 21px; }

    .videos-channel-card { align-items: flex-start; flex-direction: column; padding: 36px 28px; }
    .videos-channel-cta { width: 100%; }

    body.videos-page-body .video-modal { padding: 14px; }
    body.videos-page-body .video-close { top: -12px; left: -5px; }
}

@media (max-width: 430px) {
    .videos-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .videos-screen-card { top: 28px; padding: 18px; border-radius: 20px; }
    .videos-screen-center { inset: 48px 18px 34px; }
    .videos-screen-play { width: 58px; height: 58px; }
    .videos-screen-play .icon { width: 23px; height: 23px; }
    .videos-floating-tag-alt { display: none; }

    .videos-search { grid-template-columns: auto minmax(0, 1fr); padding: 10px 14px; }
    .videos-search button { grid-column: 1 / -1; width: 100%; }
    .videos-card-body { padding: 20px; }
    .videos-channel-card { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .videos-page *,
    .videos-page *::before,
    .videos-page *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
