/* 卡片和表格樣式優化 */

/* 卡片基本樣式 */
.bg-dark-card {
    background-color: #1E1E1E;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bg-dark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* 卡片內容區域 */
.bg-dark-card .p-4, 
.bg-dark-card .p-6 {
    padding: 1.25rem;
}

/* 卡片標題 */
.bg-dark-card h3 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* 卡片圖片 */
.bg-dark-card img {
    transition: transform 0.5s ease;
}

.bg-dark-card:hover img {
    transform: scale(1.05);
}

/* 卡片覆蓋層 */
.bg-dark-card .absolute.inset-0.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* 表格樣式 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
}

/* 表頭 */
thead tr {
    background-color: #1E1E1E;
    border-radius: 0.5rem;
    overflow: hidden;
}

thead th {
    padding: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    border-bottom: 2px solid #333;
}

thead th:first-child {
    border-top-left-radius: 0.5rem;
}

thead th:last-child {
    border-top-right-radius: 0.5rem;
}

/* 表格內容 */
tbody tr {
    border-bottom: 1px solid rgba(75, 75, 75, 0.3);
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(45, 45, 45, 0.7);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* 表格中的圖片 */
tbody td img {
    border-radius: 0.375rem;
    object-fit: cover;
}

/* 表格中的鏈接 */
tbody td a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

tbody td a:hover {
    color: #aa3cff;
}

/* 表格中的播放按鈕 */
.play-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #aa3cff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: #9933e6;
    transform: scale(1.1);
}

/* 網格佈局中的卡片 */
.grid {
    display: grid;
    gap: 1.5rem;
}