/* public/css/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    @apply bg-sky-50 text-sky-800; /* 淡蓝背景，深蓝文字 */
}

/* 强制图片容器有固定高度，图片cover填充 */
.img-box-fixed {
    overflow: hidden;
}
.img-box-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 轮播图图片优化 */
.swiper-slide .img-box-fixed {
    @apply aspect-video; /* 常用视频比例，可调整 */
}
/* 列表项图片优化 */
.video-item .img-box-fixed {
    @apply aspect-[3/4]; /* 竖版海报比例 */
}


/* 导航栏悬浮 */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.sticky-header.scrolled {
    @apply bg-sky-600 shadow-lg;
}
.sticky-header.scrolled .nav-link,
.sticky-header.scrolled .logo-text,
.sticky-header.scrolled .search-input::placeholder,
.sticky-header.scrolled .search-button {
    @apply text-white;
}
.sticky-header.scrolled .search-input {
    @apply border-sky-400;
}


/* 标签云样式 */
.tag-cloud a {
    @apply inline-block bg-sky-100 text-sky-700 px-3 py-1 rounded-full text-sm mr-2 mb-2 hover:bg-sky-200 transition-colors;
}

/* 播放源和剧集列表 */
.play-source-list button.active {
    @apply bg-sky-600 text-white;
}
.episode-list a.active {
    @apply bg-sky-600 text-white;
}

/* 强制轮播图箭头颜色 */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important; /* 白色箭头 */
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    transition: background-color 0.3s;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.5);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}
.swiper-pagination-bullet-active {
    @apply bg-sky-500; /* 淡蓝色激活分页点 */
}

.sticky-header { z-index: 1000; }