
.add-worldcup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.8rem;
}
.add-worldcup i {
    font-size: 7rem;    
}


/* Stats Grid */

.trend-rank {
    background: rgb(211, 225, 251);
    color: #2269eb;
    font-weight: 600;
    border-radius: 4px;
    min-width: 16px;
    text-align: center;
    line-height: 16px;
    height: 16px;
    font-size: 14px;
}

.trend-rank2 {
    font-weight: 600;
    font-style: italic;
}

.img-fit {
    object-fit: contain;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* min-width: 250px; */
    overflow: hidden;
    height: 260px;
    position: relative;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.add-description {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 5px 10px;
    border-radius: 10px;
}


.stat-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.stat-label:hover {
    text-decoration: underline;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;        /* 한 줄로 */
    overflow: hidden;           /* 넘치는 부분 숨기기 */
    text-overflow: ellipsis;    /* ... 표시 */
    min-width: 0;               /* flexbox 안에서 꼭 필요 */
}


.subject {
    font-size: 20px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stat-icon {
    font-size: 2rem;
}

.stat-icon.red { color: #ef4444; }
.stat-icon.blue { color: #3b82f6; }
.stat-icon.green { color: #10b981; }
.stat-icon.orange { color: #f59e0b; }

.rank-box {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* background-color: aliceblue; */
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.rank-title {
    font-weight: 700;
    padding: 20px 0 0 20px;
    font-size: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge-outline {
    border: 1px solid #d1d5db;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.toast {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff3535;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    opacity: 0; /* 처음에는 투명하게 만듭니다 */
    transition: opacity 0.5s ease-in-out; /* 부드러운 효과를 위해 트랜지션을 추가합니다 */
    font-weight: bold;
    white-space: nowrap;
}

/* 알림이 나타날 때 적용할 클래스 */
.toast.show {
    opacity: 1; /* 투명도를 1로 만들어 보이게 합니다 */
}

.thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2등분 */
    width: 100%;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta {
    width: 100%;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.meta-main {
    flex: 1;  /* 남은 공간 다 차지 */
    min-width: 0; /* 텍스트 넘칠 때 ellipsis 적용 가능 */
}

.meta h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.meta-item,.author{
    display: flex;
    gap: 5px;
    color: #606060;
    font-size: 14px;
}

.share {
    display: flex;
    justify-content: center; /* Center the button */
    z-index: 1;
    flex-shrink: 0;
}

.share-btn {
    background-color: #ff0000; /* A nice green color */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: #ff4e4e; /* Darker green on hover */
}

.share-btn:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Slightly stronger shadow on focus */
}

/* Responsive Design */
@media (max-width: 768px) {
   
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .video-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}