/* EZYouTube Frontend Styles v1.0.0 */

.ezy-wrap {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

.ezy-empty {
    color: #666;
    font-style: italic;
}

/* Grid */
.ezy-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ezy-cols-1 { grid-template-columns: 1fr; }
.ezy-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ezy-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ezy-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .ezy-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .ezy-cols-3,
    .ezy-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .ezy-cols-2,
    .ezy-cols-3,
    .ezy-cols-4 { grid-template-columns: 1fr; }
}

/* Card */
.ezy-card {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.ezy-card:hover,
.ezy-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.ezy-card:focus {
    outline: 2px solid #7b2d8b;
    outline-offset: 2px;
}

/* Thumbnail */
.ezy-thumb-wrap {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    background: #111 !important;
    overflow: hidden !important;
}

.ezy-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: opacity 0.2s ease !important;
}

.ezy-card:hover .ezy-thumb {
    opacity: 0.85 !important;
}

.ezy-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 54px !important;
    height: 54px !important;
    background: rgba(0,0,0,0.60) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 22px !important;
    padding-left: 4px !important;
    pointer-events: none !important;
    transition: background 0.2s ease !important;
}

.ezy-card:hover .ezy-play-btn,
.ezy-card:focus .ezy-play-btn {
    background: rgba(180,0,0,0.85) !important;
}

/* Card meta */
.ezy-card-meta {
    padding: 0.75rem 1rem 0.85rem;
}

.ezy-card-date {
    margin: 0 0 0.2rem 0 !important;
    font-size: 0.78rem !important;
    color: #888 !important;
    font-style: italic !important;
    line-height: 1.2 !important;
}

.ezy-card-title {
    margin: 0 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.35 !important;
}

/* Archive section label */
.ezy-archive-label-wrap {
    margin-bottom: 0;
}

.ezy-archive-label {
    display: inline-block;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 4px 4px 0 0 !important;
    margin-bottom: 0 !important;
}

/* Pagination */
.ezy-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.ezy-page-btn {
    display: inline-block !important;
    padding: 0.4rem 0.75rem !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    background: #fff !important;
    line-height: 1.4 !important;
    transition: background 0.15s, border-color 0.15s !important;
}

.ezy-page-btn:hover {
    background: #f4f4f4 !important;
    color: #111 !important;
    text-decoration: none !important;
}

.ezy-page-active {
    background: #7b2d8b !important;
    border-color: #7b2d8b !important;
    color: #fff !important;
    pointer-events: none !important;
}

.ezy-page-prev,
.ezy-page-next {
    font-weight: 500 !important;
}

/* Footer link */
.ezy-footer-link {
    text-align: center;
    margin: 0.5rem 0 2rem;
    font-size: 0.95rem;
}

.ezy-footer-link a {
    color: #7b2d8b !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color 0.15s !important;
}

.ezy-footer-link a:hover {
    border-bottom-color: #7b2d8b !important;
}

/* Featured Upcoming Service */
.ezy-featured-wrap {
    margin-bottom: 2rem;
    /* width controlled by inline style from settings */
}

.ezy-featured-label {
    display: inline-block;
    /* color and font-size controlled by inline style from settings */
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 4px 4px 0 0 !important;
    margin-bottom: 0 !important;
}

.ezy-featured-card {
    display: block !important;
    text-decoration: none !important;
    border-radius: 0 6px 6px 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.14) !important;
    transition: box-shadow 0.2s ease !important;
}

.ezy-featured-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.22) !important;
    text-decoration: none !important;
}

.ezy-featured-thumb-wrap {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    background: #111 !important;
    overflow: hidden !important;
}

.ezy-featured-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.ezy-featured-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.0) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ezy-featured-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -60%) !important;
    width: 72px !important;
    height: 72px !important;
    background: rgba(180,0,0,0.82) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 30px !important;
    padding-left: 5px !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.ezy-featured-card:hover .ezy-featured-play {
    background: rgba(180,0,0,1.0) !important;
    transform: translate(-50%, -60%) scale(1.08) !important;
}

.ezy-featured-meta {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem 1.25rem !important;
}

.ezy-featured-date {
    margin: 0 0 0.2rem 0 !important;
    color: rgba(255,255,255,0.82) !important;
    font-size: 0.85rem !important;
    font-style: italic !important;
    line-height: 1.2 !important;
}

.ezy-featured-title {
    margin: 0 0 0.75rem 0 !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}

.ezy-featured-btn {
    display: inline-block !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.55) !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    backdrop-filter: blur(4px) !important;
    transition: background 0.2s ease !important;
}

.ezy-featured-card:hover .ezy-featured-btn {
    background: rgba(255,255,255,0.28) !important;
}

/* Fallback state */
.ezy-featured-fallback {
    background: #f7f4f8;
    border: 1px solid #ddd;
    border-radius: 0 6px 6px 6px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ezy-featured-fallback p {
    margin: 0 !important;
    color: #555 !important;
    font-size: 1rem !important;
}

.ezy-featured-fallback .ezy-featured-btn {
    background: #7b2d8b !important;
    border-color: #7b2d8b !important;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.ezy-featured-fallback .ezy-featured-btn:hover {
    background: #5e2169 !important;
}

/* Lightbox */
.ezy-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.ezy-lightbox.ezy-open {
    display: flex;
}

.ezy-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
}

.ezy-lightbox-inner {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 880px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.ezy-lightbox-close {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    background: rgba(0,0,0,0.55) !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.15s !important;
}

.ezy-lightbox-close:hover {
    background: rgba(180,0,0,0.8) !important;
}

.ezy-lightbox-title {
    padding: 0.55rem 3rem 0.55rem 1rem;
    color: #e8e8e8;
    font-size: 0.88rem;
    font-weight: 600;
    background: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ezy-lightbox-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.ezy-lightbox-player iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}
