/* 
 * Paw Star - Mobile Exclusive Stylesheet (m_style.css)
 * 모든 모바일 관련 작업 파일은 'm'으로 시작하는 규칙 준수
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-gold: #d97706;
    --accent-silver: #64748b;
    --accent-bronze: #ea580c;
    --accent-purple: #7c3aed;
    --accent-pink: #e11d48;
    
    --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #e11d48 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    
    --shadow-soft: 0 4px 15px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 8px 20px rgba(15, 23, 42, 0.08);
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    
    --bottom-nav-height: 64px;
}

html {
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

a {
    text-decoration: none;
}

body.m-body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + 1rem);
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* 가로 모드(Landscape)에서도 세로 모드(Portrait) 기준 글자 크기와 100% 동일하게 픽셀 고정 */
@media screen and (orientation: landscape) {
    html, body, body.m-body, *, p, span, div, h1, h2, h3, h4, h5, h6, a, button, input, label {
        -webkit-text-size-adjust: 100% !important;
        -moz-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
}

/* 모바일 전용 헤더 */
.m-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.m-brand i {
    font-size: 1.85rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.3));
    animation: pulse 2.5s infinite ease-in-out;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.m-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.m-brand-title {
    font-family: 'Pacifico', 'Dancing Script', cursive;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(124, 58, 237, 0.25));
}

.m-brand-slogan {
    font-size: 0.5rem;
    font-weight: 700;
    color: #7c3aed;
    margin-top: 0.02rem;
    white-space: nowrap;
    letter-spacing: -0.4px;
}

.m-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.m-nav-header-item {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    word-break: keep-all !important;
}

.m-btn-pc-switch {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
}

/* 🔴 모바일 상단 헤더 전원버튼(로그아웃) 전용 럭셔리 스타일 */
.capsule-logout-btn, .m-header-logout-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.18);
}
.capsule-logout-btn:hover, .m-header-logout-btn:hover {
    background: #fecdd3 !important;
    color: #be123c !important;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

/* ⚪ 모바일 상단 헤더 전원버튼 (로그아웃/비로그인 상태 - 회색 전원 아이콘) */
.m-capsule-power-off-btn.disabled, .capsule-power-off-btn.disabled {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0 !important;
    color: #64748b !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.12);
}
.m-capsule-power-off-btn.disabled:hover, .capsule-power-off-btn.disabled:hover {
    background: #cbd5e1 !important;
    color: #475569 !important;
    transform: scale(1.06);
}

/* 모바일 하단 내비게이션 바 */
.m-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.m-nav-item i {
    font-size: 1.25rem;
}

.m-nav-item.active {
    color: var(--accent-purple);
}

.m-nav-item.m-nav-upload {
    position: relative;
    top: -12px;
}

.m-nav-item.m-nav-upload.active span {
    color: var(--accent-purple);
    font-weight: 800;
}

.m-nav-item.m-nav-upload.active .m-nav-upload-btn {
    box-shadow: 0 0 0 3px var(--accent-purple), 0 6px 20px rgba(124, 58, 237, 0.5);
    transform: scale(1.06);
    border-radius: 50% !important;
}

.m-nav-upload-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    background: var(--gradient-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.35);
    border: 3.5px solid #ffffff;
    box-sizing: border-box;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin: 0 auto;
    overflow: hidden;
}

/* 모바일 히어로 배너 */
.m-hero {
    min-height: 240px;
    padding: 1.25rem 1rem;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    color: #ffffff;
    border-radius: var(--radius-lg);
    margin: 0.75rem 0.85rem 1.2rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
}

.m-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    color: #4f46e5;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.m-hero-badge i.fa-fire {
    color: #f97316;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.7));
    animation: firePulse 1.6s infinite ease-in-out;
    display: inline-block;
}

@keyframes firePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.6)); }
    50% { transform: scale(1.28); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.9)); }
}

.m-hero-badge.closed {
    background: rgba(30, 41, 59, 0.88);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.m-hero h2 {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.m-hero p {
    font-size: 0.83rem;
    opacity: 0.92;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* 모바일 D-DAY 콘테스트 기간 슬림 카드 */
.m-hero-contest-card {
    margin-top: 0.75rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.m-dday-period-box {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff;
}

.m-dday-period-box i {
    font-size: 0.9rem;
    color: #fde047;
}

.period-dates {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #ffffff;
    white-space: nowrap;
}

.m-hero-dday-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #451a03;
    font-weight: 900;
    font-size: 0.88rem;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.4);
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.m-hero-dday-badge.closed {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.hero-round-badge.closed {
    color: #94a3b8 !important;
}

.m-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.m-btn-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.85rem;
    background: var(--gradient-brand);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
}

.m-btn-hero-sec {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    color: #1e1b4b;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.5rem 0.95rem;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 모바일 필터 & 검색 통합 바 (3줄 개별 분리 구조) */
.m-filter-section {
    padding: 0 0.85rem;
    margin-bottom: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* 🏆 모바일 전용 회차 전용 커스텀 드롭다운 (PC 버전과 100% 동일한 비주얼) */
.custom-contest-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
    width: 100%;
    height: 48px;
    z-index: 101;
}

.custom-contest-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 0.85rem;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

/* 회차 trigger 스타일 (모두 동일한 순백색 배경) */
.custom-contest-dropdown.stat-in-progress .custom-contest-trigger,
.custom-contest-dropdown.stat-closed .custom-contest-trigger {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.custom-contest-dropdown.stat-in-progress .custom-contest-trigger:active,
.custom-contest-dropdown.stat-closed .custom-contest-trigger:active {
    background: #f8fafc;
}

.custom-contest-trigger i.arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #64748b;
}

.custom-contest-dropdown.open .custom-contest-trigger i.arrow-icon {
    transform: rotate(180deg);
}

/* 드랍다운 팝업 리스트 (6개 항목 노출 후 세로 스크롤 생성, 둥근 모서리 안쪽으로 100% 클리핑 안착) */
.custom-contest-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    max-height: 260px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    padding: 0.4rem;
    z-index: 999;
}

.custom-contest-options::-webkit-scrollbar {
    width: 6px;
}
.custom-contest-options::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0; /* 상/하단 둥근 모서리 경계를 넘어서지 않도록 여백 지정 */
}
.custom-contest-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-contest-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-contest-dropdown.open .custom-contest-options {
    display: flex;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 칩 스타일 (진행중 - 밝은 노란색 / 종료 - 짙은 회색에 흰글자) */
.status-chip {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.status-chip.in-progress {
    background: #fef08a;
    color: #713f12;
    border: 1px solid #fde047;
}

.status-chip.closed {
    background: #475569;
    color: #ffffff;
    border: 1px solid #334155;
}

/* 드롭다운 옵션 항목 */
.custom-contest-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.custom-contest-option.opt-in-progress {
    color: #854d0e;
}

.custom-contest-option.opt-closed {
    color: #475569;
}

.custom-contest-option:active {
    background: #f1f5f9;
}

.custom-contest-option.selected {
    background: #f1f5f9;
    color: #334155;
}

.custom-contest-option.opt-in-progress.selected {
    background: #fef08a;
    color: #713f12;
}

/* 🏷️ 회차 표시 (제X회) 전용 포인트 글자색 스타일 */
.round-badge-text {
    font-weight: 900;
    margin-right: 0.25rem;
    display: inline-block;
}

.custom-contest-dropdown.stat-in-progress .round-badge-text,
.custom-contest-option.opt-in-progress .round-badge-text {
    color: #b45309;
}

.custom-contest-dropdown.stat-closed .round-badge-text,
.custom-contest-option.opt-closed .round-badge-text {
    color: #4f46e5;
}

.custom-contest-dropdown .selected-text,
.custom-contest-dropdown .option-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-search-sort-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.m-search-form {
    display: flex;
    align-items: center;
    flex: 1;
}

.m-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
}

.m-search-input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 2.8rem 0 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    font-size: 0.85rem;
    outline: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.m-search-btn-inside {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.m-search-btn-inside:active {
    background: #f1f5f9;
    color: #4f46e5;
}

/* PC 버전 아이콘 적용 커스텀 정렬 드롭다운 */
.custom-sort-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
    width: 136px;
    height: 48px;
    flex-shrink: 0;
    z-index: 100;
}

.custom-sort-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    white-space: nowrap;
}

.custom-sort-trigger span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-sort-trigger i {
    color: #4f46e5;
    font-size: 0.85rem;
}

.custom-sort-trigger i.arrow-icon {
    color: #64748b;
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.custom-sort-dropdown.open .custom-sort-trigger i.arrow-icon {
    transform: rotate(180deg);
}

.custom-sort-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    display: none;
    flex-direction: column;
    padding: 0.35rem;
    z-index: 999;
}

.custom-sort-dropdown.open .custom-sort-options {
    display: flex;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-sort-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.custom-sort-option i {
    color: #818cf8;
    font-size: 0.85rem;
}

.custom-sort-option:active,
.custom-sort-option.selected {
    background: #f1f5f9;
    color: #4f46e5;
    font-weight: 800;
}

.custom-sort-option.selected i {
    color: #4f46e5;
}

/* 모바일 필터 스크롤바 (좌우 마진 경계선 내부로 스크롤 범위 한정) */
.m-filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin: 0 0.85rem 0.75rem 0.85rem;
    padding: 0.15rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

.m-filter-scroll::-webkit-scrollbar {
    display: none;
}

.m-chip {
    white-space: nowrap;
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 0.95rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

.m-chip i {
    font-size: 0.85rem;
}

.m-chip.active {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    box-shadow: none;
}

/* 모바일 피드 갤러리 (최소 2열 이상 유연 배치 & 이미지 가로세로 4:3 비율 100% 유지) */
.m-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0 0.65rem 2rem 0.65rem;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (min-width: 540px) {
    .m-feed-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
        padding: 0 0.85rem 2rem 0.85rem;
    }
}

.m-feed-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
    transform: translateZ(0);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.m-feed-card:active {
    transform: scale(0.99);
}

.m-card-thumb {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: transparent !important;
    border-top-left-radius: calc(var(--radius-lg) - 1px) !important;
    border-top-right-radius: calc(var(--radius-lg) - 1px) !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

.m-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-top-left-radius: calc(var(--radius-lg) - 1px) !important;
    border-top-right-radius: calc(var(--radius-lg) - 1px) !important;
}

.m-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 800;
    color: #713f12;
    background: linear-gradient(135deg, #fde047 0%, #eab308 50%, #ca8a04 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none !important;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(202, 138, 4, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.85);
    pointer-events: none;
    box-sizing: border-box;
    z-index: 10;
}
.m-card-badge i {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
    margin-right: 0.25rem;
}

.m-card-badge.rank-1 {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 50%, #fde047 100%) !important;
    color: #713f12 !important;
    box-shadow: 0 4px 14px rgba(253, 224, 71, 0.45) !important;
}

.m-card-badge.rank-2 {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
    color: #0369a1 !important;
    box-shadow: 0 4px 14px rgba(125, 211, 252, 0.45) !important;
}

.m-card-badge.rank-3 {
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 50%, #d9f99d 100%) !important;
    color: #3f6212 !important;
    box-shadow: 0 4px 14px rgba(163, 230, 53, 0.45) !important;
}

.m-card-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: elegantShimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}

.m-card-score {
    display: none !important;
}

.m-card-body {
    padding: 0.75rem 0.65rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.m-card-author {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-bottom: 0.35rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.m-card-author img,
.m-author-avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid var(--border-light) !important;
    flex-shrink: 0 !important;
}

.m-author-name {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.m-pet-tag {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    margin-bottom: 0.4rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

.m-pet-kind-text {
    color: #e11d48 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.m-pet-name-text {
    color: #6d28d9 !important;
    font-weight: 500 !important;
    margin-left: 0.35rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

.m-post-title {
    font-size: 0.86rem !important;
    font-weight: normal !important;
    line-height: 1.3 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.4rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: 100% !important;
}

.m-post-desc {
    display: none !important;
}

/* 점선 구분선 및 등록일시/점수 메타바 */
.m-card-meta-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 0.5rem !important;
    margin-top: auto !important;
    margin-bottom: 0.55rem !important;
    border-top: 1px dashed #e2e8f0 !important;
    gap: 0.3rem !important;
}

.m-post-date {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

/* PC 동일 노란 알약 점수 배지 */
.m-card-total-score {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #d97706 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 16px !important;
    font-weight: 500 !important;
    font-size: 0.74rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.08) !important;
}

.m-card-total-score .score-num {
    font-weight: 500 !important;
}

/* 모바일 푸터 최근 콘테스트 펫 스타 슬롯 롤링 페이드 */
.footer-rank-slot-wrapper .footer-star-photo-item {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.footer-rank-slot-wrapper .footer-star-photo-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 4개의 액션 수치 알약 버튼 (2열 그리드 반응형) */
.m-card-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.25rem !important;
}

.m-btn-action {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 0.45rem 0.1rem !important;
    height: 50px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    font-size: 0.76rem !important;
    font-weight: 500 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.m-btn-action i {
    font-size: 0.95rem !important;
    color: #64748b !important;
}

.m-btn-action span {
    font-size: 0.76rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

/* PC 동일 Active 하이라이트 배경 및 테두리 */
.m-btn-action.btn-view.active,
.action-btn.btn-view.active {
    background: #e0f2fe !important;
    border: 1.5px solid #38bdf8 !important;
    color: #0284c7 !important;
}
.m-btn-action.btn-view.active i,
.m-btn-action.btn-view.active span,
.action-btn.btn-view.active i,
.action-btn.btn-view.active span {
    color: #0284c7 !important;
}

.m-btn-action.btn-like.active,
.action-btn.btn-like.active {
    background: #ffe4e6 !important;
    border: 1.5px solid #fb7185 !important;
    color: #e11d48 !important;
}
.m-btn-action.btn-like.active i,
.m-btn-action.btn-like.active span,
.action-btn.btn-like.active i,
.action-btn.btn-like.active span {
    color: #e11d48 !important;
}

.m-btn-action.btn-comment.active,
.action-btn.btn-comment.active {
    background: #f3e8ff !important;
    border: 1.5px solid #c084fc !important;
    color: #7c3aed !important;
}
.m-btn-action.btn-comment.active i,
.m-btn-action.btn-comment.active span,
.action-btn.btn-comment.active i,
.action-btn.btn-comment.active span {
    color: #7c3aed !important;
}

.m-btn-action.btn-share.active,
.action-btn.btn-share.active {
    background: #ecfdf5 !important;
    border: 1.5px solid #34d399 !important;
    color: #059669 !important;
}
.m-btn-action.btn-share.active i,
.m-btn-action.btn-share.active span,
.action-btn.btn-share.active i,
.action-btn.btn-share.active span {
    color: #059669 !important;
}

/* 모바일 프로필 카드 */
.m-profile-card {
    background: #ffffff;
    margin: 1rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}

.m-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
    margin: 0 auto 0.75rem auto;
}

.m-profile-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.m-profile-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.m-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.m-stat-item div:first-child {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.m-stat-item div:last-child {
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent-purple);
}

/* 모바일 레이어 팝업 모달 (PC 스타일 중앙 레이어 모달 visual 융합) */
.m-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.m-modal-backdrop.active {
    display: flex;
}

.m-modal-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popInMobile 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes popInMobile {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.m-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.m-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.m-form-group {
    margin-bottom: 1rem;
}

.m-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

.m-form-control {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 400;
    outline: none;
    background: var(--bg-primary);
    transition: border-color 0.2s ease;
}

.m-form-control:hover {
    border-color: #6366f1;
}

.m-form-control:focus {
    border-color: #4f46e5;
}

#mDetailCommentInput:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #4f46e5 !important;
}



.m-btn-submit {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    margin-top: 0.5rem;
}

/* 모바일 전용 콘테스트 피드 카드 액션 버튼 (Active Color Theme) */
.action-btn {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.55rem 0.35rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
    margin: 0 0.15rem;
    transition: all 0.2s ease-in-out;
}

.action-btn:active {
    transform: scale(0.96);
}

.action-btn i {
    font-size: 1.05rem;
}

/* 좋아요 active 상태 스타일 */
.action-btn.btn-like.active {
    background: #fff0f3 !important;
    border-color: #f43f5e !important;
    color: #e11d48 !important;
}
.action-btn.btn-like.active i,
.action-btn.btn-like.active span {
    color: #e11d48 !important;
}

/* ==========================================================================
   🏆 모바일 명예의 전당 우측 상단 "... 스타" 럭셔리 뱃지 디자인 (Mobile Star Badge)
   ========================================================================== */
/* 🏆 명예의 전당 배지 (슈퍼스타, 라이징스타, 브라이트스타, 패밀리스타) 애니메이션 및 크리스탈 광택 효과 */
.award-badges-overlay {
    position: absolute !important;
    top: 0.6rem !important;
    right: 1.25rem !important;
    left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.3rem !important;
    max-width: calc(100% - 1.8rem) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.award-badges-overlay .winner-title-badge,
.award-badges-overlay .m-card-badge {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.winner-title-badge {
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    height: 24px !important;
    box-sizing: border-box !important;
    padding: 0 0.6rem !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.winner-title-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: elegantShimmer 3.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

/* 🥇 슈퍼스타 배지 애니메이션 (밝은 노란색) */
.winner-title-badge.superstar-badge {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 50%, #fde047 100%) !important;
    color: #713f12 !important;
    border: 1.2px solid #fde047 !important;
    box-shadow: none !important;
}
.winner-title-badge.superstar-badge i {
    color: #a16207 !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    animation: starPulse 2.5s ease-in-out infinite;
}

/* 🥈 브라이트스타 배지 애니메이션 (밝은 하늘색) */
.winner-title-badge.brightstar-badge {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
    color: #0369a1 !important;
    border: 1.2px solid #7dd3fc !important;
    box-shadow: none !important;
}
.winner-title-badge.brightstar-badge i {
    color: #0284c7 !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    animation: starPulse 2.5s ease-in-out infinite;
}

/* 🥉 라이징스타 배지 애니메이션 (밝은 연두색) */
.winner-title-badge.risingstar-badge {
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 50%, #d9f99d 100%) !important;
    color: #3f6212 !important;
    border: 1.2px solid #a3e635 !important;
    box-shadow: none !important;
}
.winner-title-badge.risingstar-badge i {
    color: #65a30d !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    animation: starPulse 2.5s ease-in-out infinite;
}

/* 🏆 모바일 명예의 전당 1,2,3위 (슈퍼스타, 라이징스타, 브라이트스타) 전용 테두리 & 안쪽 glow 스타일 */
.m-champion-card.super-star {
    border: 1.5px solid #facc15 !important;
    box-shadow: inset 0 0 10px rgba(250, 204, 21, 0.35), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    animation: none !important;
}

/* 푸터 '최근 콘테스트 펫 스타' 별 아이콘 영롱 스파클링 펄스 애니메이션 */
@keyframes starTwinklePulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.4));
        color: #eab308;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.9)) drop-shadow(0 0 16px rgba(250, 204, 21, 0.65));
        color: #facc15;
    }
}

.footer-star-title-icon {
    display: inline-block;
    animation: starTwinklePulse 2.4s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, filter;
}

/* 푸터 스타 문구 뱃지 명예의 전당과 100% 동일한 크리스탈 수광 Shimmer 애니메이션 (확대 모션 없음) */
.footer-star-badge-effect {
    position: relative;
    overflow: hidden !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.footer-star-badge-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: elegantShimmer 4.2s ease-in-out infinite;
    pointer-events: none;
}

.m-champion-card.bright-star {
    border: 1.5px solid #38bdf8 !important;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.35), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    animation: none !important;
}

.m-champion-card.rising-star {
    border: 1.5px solid #a3e635 !important;
    box-shadow: inset 0 0 10px rgba(163, 230, 53, 0.35), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    animation: none !important;
}

.m-winner-card.m-family-card {
    border: 1.5px solid #d8b4fe !important;
    box-shadow: inset 0 0 10px rgba(192, 132, 252, 0.35), 0 4px 15px rgba(124, 58, 237, 0.06) !important;
    animation: none !important;
}

@keyframes mNeonCardGlowGold {
    0%, 100% {
        border-color: #facc15 !important;
        box-shadow: 
            0 0 10px #facc15,
            0 0 20px #fde047,
            0 0 35px rgba(250, 204, 21, 0.8),
            inset 0 0 12px rgba(254, 240, 138, 0.5) !important;
    }
    50% {
        border-color: #fef08a !important;
        box-shadow: 
            0 0 18px #fde047,
            0 0 35px #facc15,
            0 0 55px rgba(250, 204, 21, 1),
            inset 0 0 20px rgba(255, 255, 255, 0.85) !important;
    }
}

@keyframes mNeonCardGlowSilver {
    0%, 100% {
        border-color: #38bdf8 !important;
        box-shadow: 
            0 0 10px #38bdf8,
            0 0 20px #7dd3fc,
            0 0 35px rgba(56, 189, 248, 0.8),
            inset 0 0 12px rgba(125, 211, 252, 0.5) !important;
    }
    50% {
        border-color: #e0f2fe !important;
        box-shadow: 
            0 0 18px #7dd3fc,
            0 0 35px #38bdf8,
            0 0 55px rgba(56, 189, 248, 1),
            inset 0 0 20px rgba(255, 255, 255, 0.85) !important;
    }
}

@keyframes mNeonCardGlowBronze {
    0%, 100% {
        border-color: #a3e635 !important;
        box-shadow: 
            0 0 10px #a3e635,
            0 0 20px #d9f99d,
            0 0 35px rgba(163, 230, 53, 0.8),
            inset 0 0 12px rgba(236, 252, 203, 0.5) !important;
    }
    50% {
        border-color: #f7fee7 !important;
        box-shadow: 
            0 0 18px #d9f99d,
            0 0 35px #a3e635,
            0 0 55px rgba(163, 230, 53, 1),
            inset 0 0 20px rgba(255, 255, 255, 0.85) !important;
    }
}

/* 🐾 패밀리스타 배지 */
.winner-title-badge.family-badge,
.winner-title-badge.family-star-badge {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #c084fc 100%) !important;
    color: #3b0764 !important;
    border: 1.2px solid #c084fc !important;
    box-shadow: none !important;
}
.winner-title-badge.family-badge i,
.winner-title-badge.family-star-badge i {
    color: #7c3aed !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    animation: none !important;
    transform: none !important;
}

/* 🚨 모바일 커스텀 토스트 알림 팝업 디자인 */
.paw-custom-toast-container,
.paw-custom-toast-container.show {
    display: none !important;
}

.paw-custom-toast-icon {
    font-size: 1.05rem !important;
    color: #f43f5e !important;
}

/* ❌ 모달 팝업 원형 닫기 버튼 공통 디자인 */
.btn-close {
    background: #f1f5f9 !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.btn-close:active {
    background: #cbd5e1 !important;
    color: #0f172a !important;
    transform: scale(0.95);
}

@keyframes badgePulseGlowSuper {
    0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25); }
    50% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55); }
}

@keyframes badgePulseGlowRising {
    0%, 100% { box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2); }
    50% { box-shadow: 0 4px 16px rgba(100, 116, 139, 0.45); }
}

@keyframes badgePulseGlowBright {
    0%, 100% { box-shadow: 0 2px 8px rgba(234, 88, 12, 0.22); }
    50% { box-shadow: 0 4px 16px rgba(234, 88, 12, 0.5); }
}

@keyframes badgePulseGlowFamily {
    0%, 100% { box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2); }
    50% { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.48); }
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.m-winner-card .winner-title-badge,
.m-body .winner-title-badge {
    position: relative;
    top: 0;
    right: 0;
    z-index: 5;
}

.m-winner-card .winner-title-badge i,
.m-body .winner-title-badge i {
    font-size: 0.75rem;
}

/* 모바일 메달 윤기 반짝임 애니메이션 */
.m-winner-card img[alt="수상 메달"] {
    animation: medalShimmerGlow 4.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes medalShimmerGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) 
                drop-shadow(0 0 6px rgba(255, 255, 255, 0.6))
                brightness(1) contrast(1);
    }
    22% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)) 
                drop-shadow(0 0 22px rgba(254, 240, 138, 0.95))
                brightness(1.38) contrast(1.12);
    }
    45% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.95)) 
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
                brightness(1.05) contrast(1.02);
    }
}

@keyframes elegantShimmer {
    0% {
        transform: translateX(-160%) rotate(25deg);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    42% {
        opacity: 0.9;
    }
    55%, 100% {
        transform: translateX(220%) rotate(25deg);
        opacity: 0;
    }
}

@keyframes badgePulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 18px rgba(234, 179, 8, 0.45);
    }
}

/* 🏆 명예의 전당과 100% 동일한 메달 후광 번짐 & 애니메이션 효과 */
.hall-medal-effect,
.badge-zoomable-img {
    animation: medalShimmerGlow 4.5s ease-in-out infinite !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.95)) 
            drop-shadow(0 0 10px rgba(254, 240, 138, 0.75))
            brightness(1.05);
}

/* 🏆 스타 배지 & 순위/후보 블록 크리스탈 광택 애니메이션 (스케일 크기 변경 효과 제거) */
.m-card-badge {
    position: relative;
    overflow: hidden;
    transform: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 🏆 모바일 출전작 팝업 내 배지 (..스타, 패밀리 블럭) - 블럭 크기/위치 고정 & 내부 글자/아이콘 1px 하향 */
#mDetailRankBadge .m-card-badge,
#mDetailModal .award-badges-overlay .m-card-badge {
    padding-top: calc(0.38rem + 1px) !important;
    padding-bottom: calc(0.38rem - 1px) !important;
    display: inline-flex !important;
    align-items: center !important;
}

#mDetailRankBadge .m-card-badge i,
#mDetailRankBadge .m-card-badge .pet-emoji-icon,
#mDetailModal .award-badges-overlay .m-card-badge i,
#mDetailModal .award-badges-overlay .m-card-badge .pet-emoji-icon {
    position: relative;
    top: -1px;
}


.m-card-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: elegantShimmer 4.2s ease-in-out infinite;
    pointer-events: none;
}

.winner-title-badge:hover,
.rank-ribbon:hover,
.m-card-badge:hover {
    transform: none !important;
}

/* 🏷️ 모바일 회차 표시 (제X회) 전용 포인트 글자색 스타일 */
.round-badge-text {
    color: #4f46e5;
    font-weight: 900;
    margin-right: 0.2rem;
    display: inline-block;
}

.m-chip.active .round-badge-text {
    color: #fde047;
}

/* 🛡️ 카드 썸네일 및 팝업 모달 이미지 4개 모서리 서브픽셀 선/테두리 비침 방지 글로벌 픽스 */
.m-card-thumb,
.card-media,
.m-feed-card,
.post-card,
.m-winner-card,
#mDetailImg,
#detailImg {
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
    mask-image: -webkit-radial-gradient(white, black) !important;
    isolation: isolate;
}

.m-card-thumb img,
.card-media img,
#mDetailImg,
#detailImg {
    border-radius: inherit !important;
    clip-path: inset(0) !important;
}

/* 모바일 상세 팝업 전용 스크롤 커스텀: 평소엔 숨김/슬림, 위아래 둥근 모서리 안쪽에만 위치 */
.m-modal-scroll-body {
    max-height: calc(82vh - 68px);
    overflow-y: auto;
    padding: 0.2rem 1rem 1.5rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 114, 182, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.m-modal-scroll-body::-webkit-scrollbar,
.m-modal-sheet::-webkit-scrollbar {
    width: 4px;
}

.m-modal-scroll-body::-webkit-scrollbar-track,
.m-modal-sheet::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 12px;
    margin-bottom: 18px;
}

.m-modal-scroll-body::-webkit-scrollbar-thumb,
.m-modal-sheet::-webkit-scrollbar-thumb {
    background: rgba(244, 114, 182, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.m-modal-scroll-body:hover::-webkit-scrollbar-thumb,
.m-modal-scroll-body:active::-webkit-scrollbar-thumb,
.m-modal-sheet:hover::-webkit-scrollbar-thumb,
.m-modal-sheet:active::-webkit-scrollbar-thumb {
    background: rgba(244, 114, 182, 0.65);
}

/* 모바일 상세 팝업 게시글 제목 font-weight 굵은 글씨 제거 */
#mDetailTitle,
#mDetailTitle span {
    font-weight: normal !important;
}

/* 프로필 소셜 아이콘 파스텔 동그라미 버튼 스타일 */
.profile-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.profile-social-btn.instagram {
    background: #fff0f5 !important;
    color: #e1306c !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 2px 6px rgba(225, 48, 108, 0.15) !important;
}
.profile-social-btn.youtube {
    background: #ffeded !important;
    color: #ff0000 !important;
    border: 1.5px solid #fecaca !important;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.15) !important;
}
.profile-social-btn.facebook {
    background: #eff6ff !important;
    color: #1877f2 !important;
    border: 1.5px solid #bfdbfe !important;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.15) !important;
}
.profile-social-btn.blog {
    background: #f0fdf4 !important;
    color: #03cf5d !important;
    border: 1.5px solid #bbf7d0 !important;
    box-shadow: 0 2px 6px rgba(3, 207, 93, 0.15) !important;
}

.profile-social-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
    transform: translateY(1px);
}

.profile-social-btn:hover,
.profile-social-btn:active {
    transform: translateY(-2px);
}

.profile-social-btn.instagram:hover,
.profile-social-btn.instagram:active {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4) !important;
}

.profile-social-btn.youtube:hover,
.profile-social-btn.youtube:active {
    background: #ff0000 !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4) !important;
}

.profile-social-btn.facebook:hover,
.profile-social-btn.facebook:active {
    background: #1877f2 !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4) !important;
}

.profile-social-btn.blog:hover,
.profile-social-btn.blog:active {
    background: #03cf5d !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(3, 207, 93, 0.4) !important;
}

/* 🌟 모바일 명예의 전당 & 회차 피드 카드 닉네임 우측 겹침(Stacked) 소셜 배지 아이콘 */
.sns-overlap-group {
    display: inline-flex;
    align-items: center;
}

.sns-overlap-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.58rem;
    text-decoration: none;
    position: relative;
    transform: translateY(1px);
}

.sns-overlap-item.instagram { background: #fff0f5; color: #e1306c; border: 0.8px solid #fecdd3; }
.sns-overlap-item.youtube   { background: #fef2f2; color: #ef4444; border: 0.8px solid #fecaca; }
.sns-overlap-item.facebook  { background: #eff6ff; color: #2563eb; border: 0.8px solid #bfdbfe; }
.sns-overlap-item.blog      { background: #f0fdf4; color: #16a34a; border: 0.8px solid #bbf7d0; }

.m-entry-no-badge span, #mDetailEntryNoText {
    transform: translateY(-1px);
    display: inline-block;
}

/* 모바일 사이트 오픈 공지 배너 스타일 */
.m-site-notice-bar {
    width: calc(100% - 1.5rem);
    margin: 0.5rem auto 0 auto;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #e11d48 100%);
    color: #ffffff;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.15);
    position: relative;
    z-index: 99;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.m-site-notice-bar:active {
    transform: scale(0.98);
}

.m-site-notice-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
}

.m-notice-badge {
    background: #fef08a;
    color: #6b21a8;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 14px;
    flex-shrink: 0;
}

.m-notice-text {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-notice-text strong {
    font-weight: 800;
    color: #fef08a;
}



