.media-hero .tour-hero-title { overflow-wrap: anywhere; }
.media-library .tour-tab-item { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* Intro Subtitle */
.media-intro { text-align: center; color: #64748b; max-width: 800px; margin: 0 auto 28px; line-height: 1.7; }
.media-intro-subtitle {
    font-family: var(--font-primary), 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: clamp(21px, 2.2vw, 25px);
    font-weight: 600;
    color: #2b3a4a;
    max-width: 960px;
    margin: 0 auto 30px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Custom Search Bar */
.media-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 32px; }
.media-search input { min-width: 0; flex: 1; border: 1px solid #d8e2dc; border-radius: 10px; padding: 12px 16px; font: inherit; }
.media-search button { background: #2d5238; color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; cursor: pointer; }

.media-search-form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 36px;
    align-items: center;
}

.media-search-input {
    min-width: 0;
    flex: 1;
    font-family: var(--font-primary), 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 19px;
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #a3b8aa;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.media-search-input::placeholder {
    color: #55695c;
    font-family: var(--font-primary), 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 500;
    opacity: 1;
}

.media-search-input:focus {
    outline: none;
    border-color: #2d5238;
    box-shadow: 0 0 0 3px rgba(45, 82, 56, 0.18);
}

.media-search-btn {
    font-family: var(--font-primary), 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background-color: #2d5238;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(45, 82, 56, 0.2);
}

.media-search-btn:hover {
    background-color: #203c28;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 82, 56, 0.3);
}

.media-search-btn:active {
    transform: translateY(0);
}

.media-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; background: #0002; }
.media-play i { background: #2d5238dd; border: 2px solid #fff; border-radius: 50%; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.media-empty { padding: 48px 16px; text-align: center; background: #f4f7f4; border-radius: 14px; color: #556c5d; }
.media-pagination { display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 32px; }
.media-pagination a, .media-back { color: #2d5238; font-weight: 600; }
.media-back { display: inline-block; margin-bottom: 24px; }
.media-photo { margin: 0; }
.media-photo a { color: inherit; text-decoration: none; }
.media-player { display: block; width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; margin: 24px auto; background: #101b14; border: 0; border-radius: 14px; }
.media-video-description { max-width: 1000px; margin: 24px auto; white-space: pre-line; line-height: 1.8; }
.media-library button.media-open { border: 0; padding: 0; width: 100%; background: transparent; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.media-library button.media-open:focus-visible { outline: 3px solid #2d5238; outline-offset: -3px; }
.media-library button.media-open[aria-busy="true"] { cursor: progress; opacity: .65; }
.media-viewer-status { color: #556c5d; text-align: center; margin: 16px 0; }

/* Media Card Favorite Button */
.media-card-fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    color: #1e293b;
    font-family: var(--font-primary), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    outline: none;
}

.media-card-fav-btn:hover {
    background: #ffffff;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
    border-color: #ffffff;
}

.media-card-fav-btn:active {
    transform: translateY(0) scale(0.98);
}

.media-card-fav-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-size: 14px;
    line-height: 1;
    color: #e11d48;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-card-fav-btn i.fa-regular {
    font-weight: 400 !important;
}

.media-card-fav-btn i.fa-solid {
    font-weight: 900 !important;
}

.media-card-fav-btn:hover i {
    transform: scale(1.18);
}

.media-card-fav-btn.liked-active,
.media-card-fav-btn[aria-pressed="true"] {
    background: #ffe4e6;
    border-color: #fecdd3;
    color: #be123c;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.2);
}

.media-card-fav-btn.liked-active i,
.media-card-fav-btn[aria-pressed="true"] i {
    color: #e11d48 !important;
    font-weight: 900 !important;
}

.media-fav-count {
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 700;
    min-width: 10px;
    text-align: center;
}
.media-card-fav-btn:focus-visible { outline: 3px solid #2d5238; outline-offset: 3px; }
.media-card-fav-btn:disabled { opacity: .6; cursor: progress; }
