/* =====================================================
   Urban Upfront - TikTok Video Showcase (uu-case.html)
   Layout is a 1:1 port of the fintrust case page (.tt-*)
   so the two columns always relate to each other:
     - player : gallery = 2fr : 3fr (fixed ratio)
     - gallery = 3 columns x 2 rows, thumbs 300px tall
   Colors use the Crafto/Urban Upfront theme tokens below.
   ===================================================== */

/* --- Theme token mapping (change colors here only) ---
   --base-color  : #F67B14  main accent (orange)
   --dark-gray   : #232323  dark ink
   hover on accent uses a deeper orange (#d9680c)     */

.tt-section {
    padding-top: 110px;
    /* 底部预留 150px：footer .overlap-section 会被 main.js 上移约 137px，
       需让 CTA 卡片只叠进空白 padding，避免盖住 TikTok follow 文字 */
    padding-bottom: 150px;
}

/* --- Layout: main player + thumbnail gallery side by side --- */
.tt-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.tt-main-col {
    min-width: 0;
    align-self: start;
}

.tt-gallery-col {
    min-width: 0;
}

/* --- Main player stage (official blockquote embed) --- */
.tt-stage {
    position: relative;
    width: 100%;
}

.tt-stage__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 320px;
    color: #6f6f6f;
}

.tt-stage__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid color-mix(in srgb, var(--dark-gray) 18%, transparent);
    border-top-color: var(--base-color);
    border-radius: 50%;
    animation: tt-spin 0.8s linear infinite;
}

.tt-stage__loading-text {
    font-size: 14px;
}

/* Make TikTok's official embed fill the left column instead of
   jumping to its own 605px width. */
.tt-player .tiktok-embed {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 12px;
    overflow: hidden;
}

.tt-player__open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--base-color);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tt-player__open i {
    transition: transform 0.2s;
}

.tt-player__open:hover {
    text-decoration: underline;
}

.tt-player__open:hover i {
    transform: translateX(3px);
}

@keyframes tt-spin {
    to { transform: rotate(360deg); }
}

/* --- Empty state (case-tiktok.js showEmptyState) --- */
.tt-stage__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--dark-gray);
    text-align: center;
}

.tt-stage__empty-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.tt-stage__empty-text {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.5;
}

.tt-gallery__empty {
    grid-column: 1 / -1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--dark-gray) 6%, transparent);
    color: #6f6f6f;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}

/* --- Thumbnail gallery (right column) --- */
.tt-gallery-col .tt-gallery-wrap {
    margin-top: 0;
}

.tt-gallery-col .tt-gallery {
    grid-template-columns: repeat(3, 1fr);
}

.tt-gallery-col .tt-gallery .tt-gallery__item {
    aspect-ratio: auto;
    height: 300px;
}

.tt-gallery-wrap .tt-gallery__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.tt-gallery-wrap .tt-gallery__head h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.tt-gallery-wrap .tt-gallery__head #ttGalleryCount {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-gray);
    background: var(--base-color);
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.tt-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tt-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-gray);
    cursor: pointer;
    outline-offset: 2px;
    transition: transform 0.25s, box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.tt-gallery__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tt-gallery__item:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.tt-gallery__item:hover img {
    transform: scale(1.06);
}

.tt-gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--dark-gray) 35%, transparent) 0%,
        transparent 30%,
        color-mix(in srgb, var(--dark-gray) 55%, transparent) 100%);
    pointer-events: none;
}

/* Number badge (top-left) */
.tt-gallery__num {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dark-gray) 55%, transparent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Play button overlay (center, shown on hover / active) */
.tt-gallery__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tt-gallery__play i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-gray);
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* No-cover placeholder */
.tt-gallery__blank {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.tt-gallery__item:hover .tt-gallery__play,
.tt-gallery__item.is-active .tt-gallery__play {
    opacity: 1;
}

.tt-gallery__item.is-active {
    box-shadow: 0 0 0 3px var(--base-color);
}

.tt-gallery__item.is-active::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--dark-gray) 25%, transparent) 0%,
        transparent 35%,
        color-mix(in srgb, var(--dark-gray) 50%, transparent) 100%);
}

/* --- Pager --- */
.tt-gallery__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.tt-gallery__pager .tt-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--base-color);
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, opacity 0.25s;
}

.tt-gallery__pager .tt-pager-btn i {
    line-height: 1;
}

.tt-gallery__pager .tt-pager-btn:hover:not(:disabled) {
    background: #d9680c;
    color: #fff;
}

.tt-gallery__pager .tt-pager-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tt-gallery__pager .tt-pager-info {
    min-width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    letter-spacing: 0.3px;
}

/* --- Follow line --- */
#ttFollowLine {
    font-size: 15px;
    color: #6f6f6f;
}

#ttFollowLine a {
    color: var(--base-color);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Responsive (same breakpoints as fintrust) --- */
@media (max-width: 1199px) {
    .tt-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 991px) {
    .tt-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tt-gallery-col .tt-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .tt-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .tt-gallery-col .tt-gallery .tt-gallery__item {
        height: auto;
        aspect-ratio: 9 / 16;
    }
}

/* --- v2 Drive player (Google Drive /preview iframe) --- */
.tt-frame-wrap {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(35, 35, 35, .16);
    background: #0c0c0c;
    aspect-ratio: 9 / 16;
}

.tt-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0c0c0c;
}

/* Drive preview pages add their own chrome — cap overall height so very
   tall portrait videos never push the gallery off screen. */
.tt-frame-wrap {
    max-height: min(74vh, 720px);
}

@media (max-width: 575px) {
    .tt-frame-wrap {
        max-height: 68vh;
        aspect-ratio: 9 / 16;
    }
}

.tt-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tt-open:hover {
    color: #232323;
}

.tt-stage {
    min-height: 320px;
    align-content: start;
}

/* --- Per-video WhatsApp CTA (under the main player) --- */
.tt-player__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tt-player__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-gray, #232323);
    line-height: 1.4;
}

.tt-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #25D366;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: background .2s, transform .15s;
}

.tt-wa i {
    font-size: 17px;
    line-height: 1;
}

.tt-wa:hover {
    background: #1cb95a;
    color: #fff !important;
    transform: translateY(-1px);
}
/* ============================================================
   TikTok-style caption overlay (title + WhatsApp INSIDE the video)
   ============================================================ */

.tt-frame-wrap {
    position: relative;
}

.tt-player__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 54px 16px 12px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg,
        rgba(12, 12, 12, 0) 0%,
        rgba(12, 12, 12, 0.45) 45%,
        rgba(12, 12, 12, 0.82) 100%);
    /* the scrim must never eat clicks meant for the Drive player */
    pointer-events: none;
}

.tt-player__cap-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.tt-player__cap .tt-player__title {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
    -webkit-line-clamp: 2;
    line-height: 1.3;
}

/* WhatsApp pill inside the scrim stays clickable */
.tt-player__cap .tt-wa {
    pointer-events: auto;
    padding: 7px 16px;
    font-size: 12.5px;
}

@media (max-width: 575px) {
    .tt-player__cap {
        padding: 40px 12px 10px;
    }

    .tt-player__cap .tt-player__title {
        font-size: 14px;
    }
}

/* ============================================================
   Gallery thumbnails: mini title caption at the bottom of each tile
   ============================================================ */

.tt-gallery__item {
    position: relative;
}

.tt-gallery__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px 10px 8px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0) 0%, rgba(12, 12, 12, 0.78) 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.35;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* number badge must stay clear of the caption */
.tt-gallery__item .tt-gallery__num {
    z-index: 3;
}

/* ============================================================
   WhatsApp pill: lively, noticeable — breathing glow + sonar ring
   (motion is cosmetic only; disabled under prefers-reduced-motion)
   ============================================================ */

.tt-player__cap .tt-wa {
    position: relative;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: linear-gradient(180deg, #2ce56d 0%, #1faf4f 100%);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    animation: ttWaBreathe 2.4s ease-in-out infinite;
}

/* sonar ring — one soft ping expanding off the pill */
.tt-player__cap .tt-wa::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 2px solid rgba(37, 211, 102, 0.7);
    pointer-events: none;
    animation: ttWaPing 2.4s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}

.tt-player__cap .tt-wa:hover,
.tt-player__cap .tt-wa:focus-visible {
    transform: scale(1.06);
    filter: brightness(1.08);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.8);
}

@keyframes ttWaBreathe {
    0%, 100% { box-shadow: 0 2px 10px rgba(37, 211, 102, 0.45); }
    50%      { box-shadow: 0 2px 22px rgba(37, 211, 102, 0.95); }
}

@keyframes ttWaPing {
    0%   { transform: scale(1);   opacity: 0.85; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .tt-player__cap .tt-wa {
        animation: none;
    }

    .tt-player__cap .tt-wa::after {
        animation: none;
        opacity: 0;
    }
}

/* ============================================================
   Main player shadow (2026-09-09) — richer lift on cream bg
   ============================================================ */
.tt-frame-wrap {
    box-shadow:
        0 6px 18px rgba(35, 35, 35, 0.10),
        0 30px 62px rgba(35, 35, 35, 0.26);
}

@media (max-width: 575px) {
    .tt-frame-wrap {
        box-shadow:
            0 4px 12px rgba(35, 35, 35, 0.10),
            0 16px 34px rgba(35, 35, 35, 0.20);
    }
}

/* ============================================================
   Main player: phone frame (2026-09-09)
   Bezel only — video pixels, aspect & inner player untouched.
   Width is derived from the height cap so 9:16 fills the screen
   edge-to-edge (no more side bars).
   ============================================================ */
.tt-phone {
    position: relative;
    box-sizing: border-box;
    width: min(100%, calc(min(74vh, 720px) * 0.5625 + 24px));
    margin: 0 auto;
    padding: 12px;
    border-radius: 40px;
    background: linear-gradient(160deg, #4d4d4d 0%, #262626 34%, #0c0c0c 78%, #1a1a1a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset -2px -2px 6px rgba(0, 0, 0, 0.6),
        0 30px 64px rgba(35, 35, 35, 0.28);
}

/* speaker slot */
.tt-phone::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 4;
}

/* home indicator */
.tt-phone::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    max-width: 90px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 4;
}

/* screen sits inside the bezel */
.tt-phone .tt-frame-wrap {
    width: 100%;
    border-radius: 28px;
    box-shadow: none;
}

/* caption corners follow the screen radius */
.tt-phone .tt-player__cap {
    border-radius: 0 0 28px 28px;
}

@media (max-width: 575px) {
    .tt-phone {
        width: min(100%, calc(min(68vh, 720px) * 0.5625 + 20px));
        padding: 10px;
        border-radius: 34px;
    }

    .tt-phone .tt-frame-wrap {
        border-radius: 24px;
    }

    .tt-phone .tt-player__cap {
        border-radius: 0 0 24px 24px;
    }
}

/* ============================================================
   Player caption actions row: WhatsApp + Share (2026-09-09)
   ============================================================ */
.tt-player__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tt-share {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tt-share i {
    font-size: 13px;
    line-height: 1;
}

.tt-share:hover,
.tt-share:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
    transform: translateY(-1px);
}

.tt-share.copied {
    background: rgba(197, 232, 70, 0.22);
    border-color: rgba(197, 232, 70, 0.7);
    color: #eaffa1;
}

/* ============================================================
   Share: round theme-orange button (#F67B14), sized to sit level
   with the WhatsApp pill (pill ≈ 31px tall). WhatsApp untouched.
   ============================================================ */
.tt-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f67b14;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tt-share i {
    font-size: 14px;
    line-height: 1;
}

.tt-share:hover,
.tt-share:focus-visible {
    background: #ff8b2e;
    outline: none;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}

.tt-share.copied {
    background: #d05f00;
    color: #ffffff;
}

.tt-share.err {
    background: #e0504e;
    color: #ffffff;
}

@media (max-width: 575px) {
    .tt-share {
        width: 29px;
        height: 29px;
    }
}

/* ============================================================
   Gallery — A档: typographic & spacing polish (2026-09-09)
   token-level only: rhythm, alignment, consistent hover radius
   ============================================================ */
.tt-gallery-wrap {
    display: flex;
    flex-direction: column;
}

.tt-gallery__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.tt-gallery__head h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

#ttGalleryCount {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.tt-gallery__item {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tt-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tt-gallery__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(35, 35, 35, 0.14);
}

.tt-gallery__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.tt-pager-btn {
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    transition: background 0.18s ease, color 0.18s ease;
}

.tt-pager-info {
    font-size: 12.5px;
    min-width: 52px;
    text-align: center;
}

/* mobile: same rhythm, slightly wider tiles */
@media (max-width: 575px) {
    .tt-gallery {
        gap: 10px;
    }
}

/* ============================================================
   Gallery — C档: heading like the site's section headings
   (alt-font uppercase + orange count badge + hairline w/ accent)
   ============================================================ */
.tt-gallery__head h3 {
    font-family: var(--alt-font, 'Roboto Condensed', sans-serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--dark-gray);
}

#ttGalleryCount {
    background: #f67b14;
    color: #ffffff;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    border: 0;
}

/* hairline + short orange accent under the header */
.tt-gallery__head {
    position: relative;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.10);
}

.tt-gallery__head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: #f67b14;
}

/* gap between the divider and the tiles */
.tt-gallery {
    margin-top: 18px;
}

/* keep A档's pager margin consistent after the added margin-top */
.tt-gallery__pager {
    margin-top: 18px;
}

/* ============================================================
   Gallery — B档: light panel grouping (white card, thin line,
   generous radius, soft shadow — NOT a dark card)
   ============================================================ */
.tt-gallery-wrap {
    background: #ffffff;
    border: 1px solid rgba(35, 35, 35, 0.09);
    border-radius: 22px;
    padding: 22px 20px 20px;
    box-shadow: 0 14px 34px rgba(35, 35, 35, 0.07);
}

/* hairline reads lighter on white */
.tt-gallery__head {
    border-bottom-color: rgba(35, 35, 35, 0.08);
}

@media (max-width: 575px) {
    .tt-gallery-wrap {
        border-radius: 16px;
        padding: 16px 12px 14px;
        box-shadow: 0 8px 20px rgba(35, 35, 35, 0.05);
    }
}

/* ============================================================
   Main player — same light panel as the right gallery (B档 mirror)
   ============================================================ */
.tt-main-col {
    background: #ffffff;
    border: 1px solid rgba(35, 35, 35, 0.09);
    border-radius: 22px;
    padding: 24px 22px;
    box-shadow: 0 14px 34px rgba(35, 35, 35, 0.07);
}

/* phone shadow reads inside the panel padding */
.tt-main-col .tt-phone {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset -2px -2px 6px rgba(0, 0, 0, 0.6),
        0 18px 40px rgba(35, 35, 35, 0.22);
}

@media (max-width: 575px) {
    .tt-main-col {
        border-radius: 16px;
        padding: 14px 12px;
        box-shadow: 0 8px 20px rgba(35, 35, 35, 0.05);
    }
}

/* ============================================================
   Pager moved into the gallery header (right of the count badge)
   ============================================================ */
.tt-gallery__head-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tt-gallery__head-meta .tt-gallery__pager {
    margin: 0;
    gap: 6px;
}

.tt-gallery__head-meta .tt-pager-btn {
    padding: 4px 10px;
    font-size: 12px;
    min-width: 26px;
}

.tt-gallery__head-meta .tt-pager-info {
    min-width: 46px;
    font-size: 12px;
}

/* tiny divider between badge and pager reads cleaner */
.tt-gallery__head-meta > #ttGalleryCount + .tt-gallery__pager {
    border-left: 1px solid rgba(35, 35, 35, 0.12);
    padding-left: 12px;
}

@media (max-width: 575px) {
    .tt-gallery__head {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .tt-gallery__head-meta {
        width: 100%;
        justify-content: space-between;
    }

    .tt-gallery__head-meta > #ttGalleryCount + .tt-gallery__pager {
        border-left: 0;
        padding-left: 0;
    }
}

/* ============================================================
   Full-width "Semua video" header above both cards
   ============================================================ */
.tt-gallery__head--top {
    grid-column: 1 / -1;
    margin: 0 0 30px;
    align-items: flex-end;
}

/* hairline under the full-width header stays full width */
.tt-gallery__head--top::after {
    width: 60px;
}

/* ============================================================
   Merge left + right cards into ONE white panel (2026-09-09)
   ============================================================ */
.tt-layout {
    background: #ffffff;
    border: 1px solid rgba(35, 35, 35, 0.09);
    border-radius: 24px;
    padding: 30px 30px 26px;
    box-shadow: 0 14px 34px rgba(35, 35, 35, 0.07);
}

/* the two inner columns go transparent — the shared panel hosts them */
.tt-main-col {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.tt-gallery-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.tt-gallery__head--top {
    margin-bottom: 24px;
}

@media (max-width: 575px) {
    .tt-layout {
        border-radius: 18px;
        padding: 16px 14px;
        box-shadow: 0 8px 20px rgba(35, 35, 35, 0.05);
    }
}

/* ============================================================
   Tighten the gap under the full-width header divider
   (grid row-gap was adding 48px below the header row)
   ============================================================ */
.tt-layout {
    column-gap: 48px;
    row-gap: 0;
}

.tt-gallery__head--top {
    margin-bottom: 16px;
    padding-bottom: 12px;
}

@media (max-width: 575px) {
    .tt-layout {
        column-gap: 16px;
    }

    .tt-gallery__head--top {
        margin-bottom: 12px;
    }
}

/* stacked layout (<=991px): restore vertical rhythm between the two cards */
@media (max-width: 991px) {
    .tt-layout {
        row-gap: 40px;
    }
}

@media (max-width: 575px) {
    .tt-layout {
        row-gap: 22px;
    }
}

/* ============================================================
   "Semua Video" header — two-tone, bigger, closer to the
   site's alt-font heading language
   ============================================================ */
.tt-gallery__head h3 {
    font-size: 26px;
    letter-spacing: 1.4px;
}

.tt-gallery__head h3 .uu-text-second {
    letter-spacing: 1.4px;
}

@media (max-width: 575px) {
    .tt-gallery__head h3 {
        font-size: 21px;
    }
}

/* ============================================================
   Surrounding text — align to the same orange/ink language
   ============================================================ */

/* bottom follow line: base ink, CTA word orange bold, no underline */
#ttFollowLine {
    color: var(--dark-gray);
}

#ttFollowLine a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
}

#ttFollowLine a:hover {
    color: #d05f00;
    border-bottom-color: rgba(246, 123, 20, 0.55);
}

/* pager info: ink, medium weight */
.tt-gallery__head-meta .tt-pager-info {
    color: var(--dark-gray);
    font-weight: 600;
}

/* ============================================================
   Panel background — borrow the template's own card language
   (reference: bg-very-light-gray + uu-shadow, e.g. the
   "Mohon Dengan WhatsApp" band)
   ============================================================ */
.tt-layout {
    background: #f7f7f7; /* var(--very-light-gray) */
    border: 0;
    border-radius: 4px; /* template card radius */
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px; /* uu-shadow */
    padding: 34px 34px 30px;
}

/* hairline divider blends on the light-gray panel */
.tt-gallery__head {
    border-bottom-color: rgba(35, 35, 35, 0.12);
}

@media (max-width: 575px) {
    .tt-layout {
        border-radius: 4px;
        padding: 18px 14px 16px;
        box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    }
}

/* ============================================================
   Share button — larger 42x42 circle (2026-09-09)
   ============================================================ */
.tt-share {
    width: 42px;
    height: 42px;
}

.tt-share i {
    font-size: 19px;
}

/* ============================================================
   Main player overlay: clear hierarchy between title & caption
   (title = big uppercase brand; caption = small quiet sub-line)
   ============================================================ */
.tt-player__cap-inner {
    gap: 5px;
}

.tt-player__cap .tt-player__title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    -webkit-line-clamp: 2;
    line-height: 1.28;
}

.tt-player__cap .tt-player__title-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    max-width: 96%;
}

/* actions sit a touch lower after the text stack */
.tt-player__cap .tt-player__actions {
    margin-top: 4px;
}
