/*
Theme Name: Phim-Theme
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* --- Giao diện trang chi tiết phim (single-ophim.php) --- */

.movie-info h1.entry-title {
    margin-bottom: 5px;
}
.movie-info h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #888;
    font-weight: normal;
}
.movie-meta ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.movie-meta ul li {
    padding: 5px 0;
}
.movie-meta ul li strong {
    min-width: 100px;
    display: inline-block;
}
.movie-episodes .episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.movie-episodes .episode-list .button {
    margin: 0;
}

/* --- Giao diện trang danh sách phim (archive-ophim.php) --- */
.ux-box .ux-box-text {
    padding: 10px;
    background-color: rgba(0,0,0,0.7);
    position: absolute;
    bottom: 0;
    width: 100%;
    color: white;
}
.ux-box .ux-box-title {
    font-size: 0.9em;
    margin: 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ux-box .ux-box-subtitle {
    font-size: 0.8em;
    margin: 5px 0 0;
    opacity: 0.8;
}
/* CSS cho trình phát AJAX */
#movie-player-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỉ lệ 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 20px;
}
#movie-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2em;
    z-index: 1;
}
#movie-player-iframe[src=""] + .player-placeholder {
    display: flex;
}
#movie-player-iframe:not([src=""]) + .player-placeholder {
    display: none;
}
/* Đánh dấu tập phim đang hoạt động */
.episode-link.is-active {
    background-color: #d26e4b !important;
    border-color: #d26e4b !important;
    color: white !important;
}

/* CSS cho shortcode phim kiểu 'list' */
.box.has-hover.has-shadow .box-text {
    padding: 15px;
}
.box .post-title {
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.box .post-title a {
    color: #333;
}
.box .post-title a:hover {
    color: #111;
}
.box .post-meta {
    color: #888;
    margin-bottom: 10px;
}
.box .post-meta .divider {
    margin: 0 5px;
}
.box .from_the_blog_excerpt {
    font-size: 0.9em;
    margin-bottom: 0;
    height: 54px; /* Giới hạn chiều cao 3 dòng */
    overflow: hidden;
}

/* CSS cho Phân trang của Shortcode */
.movie-pagination {
    margin-top: 30px;
}
.movie-pagination .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
}
.movie-pagination .page-numbers li {
    margin: 0 5px;
}
.movie-pagination .page-numbers a,
.movie-pagination .page-numbers span {
    display: block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #444;
    border-radius: 3px;
    text-decoration: none;
    transition: all .3s;
}
.movie-pagination .page-numbers a:hover {
    background-color: #1990e3;
    color: white;
}
.movie-pagination .page-numbers span.current {
    background-color: #1990e3;
    color: white;
    font-weight: bold;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

