/* ===== ACTOR PAGE ===== */

.actor-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    color: #fff;
}

.actor-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.actor-poster img {
    width: 150px;
    height: 200px; 
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.actor-name {
    font-size: 36px;
    margin-bottom: 20px;
}

.actor-meta .meta-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.meta-label {
    color: #aaa;
    margin-right: 8px;
}

.actor-biography {
    margin-bottom: 50px;
}

.actor-biography h2,
.actor-films h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #e50914;
    padding-left: 12px;
}

.bio-text {
    line-height: 1.7;
    color: #ddd;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.films-grid li {
    list-style: none;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.films-grid li:hover {
    background: #e50914;
    transform: translateY(-5px);
}

.films-grid a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

@media(max-width: 768px) {
    .actor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .actor-poster img {
        width: 250px;
    }
}


/* =========================
   ACTOR FILMOGRAPHY GRID
========================= */

.actor-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Card */
.actor-movie {
    transition: 0.3s ease;
}

.actor-movie-link {
    text-decoration: none;
    color: #fff;
    display: block;
}

/* Poster Wrapper */
.actor-movie-poster {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
}

/* Backdrop Image */
.actor-movie-poster img {
    width: 100%;
    height: 190px; /* იდეალური 16:9 სიმაღლე */
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

/* Hover Zoom */
.actor-movie:hover img {
    transform: scale(1.08);
}

/* Dark Gradient Overlay */
.actor-movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.1) 70%,
        rgba(0,0,0,0) 100%
    );
}

/* Overlay container */
.actor-movie-overlay {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

/* IMDb badge */
.imdb-badge {
    background: #f5c518;
    color: #000;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Year badge */
.year-badge {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
}

/* Title */
.actor-movie-title {
    margin-top: 12px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: #fff;
    transition: 0.3s;
}

/* Hover title color */
.actor-movie:hover .actor-movie-title {
    color: #f5c518;
}

/* Responsive tweaks */
@media (max-width: 768px) {

    .actor-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .actor-movie-poster img {
        height: 160px;
    }
}

@media (max-width: 480px) {

    .actor-movies-grid {
        grid-template-columns: 1fr;
    }

    .actor-movie-poster img {
        height: 180px;
    }
}

/* =========================
           Search
========================= */

.search-actor-card{
    display:flex;
    gap:30px;
    background:linear-gradient(135deg,#1f2937,#111827);
    border-radius:16px;
    padding:25px;
    margin-bottom:30px;
}

.search-actor-link{
    display:flex;
    gap:30px;
    text-decoration:none;
    color:#fff;
    width:100%;
}

.search-actor-photo img{
    width:170px;
    height:220px;
    object-fit:cover;
    border-radius:14px;
}

.search-actor-info{
    flex:1;
}

.search-actor-info h2{
    margin-bottom:10px;
    font-size:28px;
}

.badge{
    display:inline-block;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    margin-bottom:8px;
    color:#fff; 
}

.badge-place{
    background:#f59e0b;
}

.badge-birthday{
    background:#06b6d4;
}

.search-actor-bio{
    margin-top:10px;
    color:#d1d5db;
    line-height:1.6;
}

/* =========================
        Tablet
========================= */

@media (max-width: 900px){

.search-actor-card{
    padding:20px;
}

.search-actor-link{
    gap:20px;
}

.search-actor-photo img{
    width:140px;
    height:190px;
}

.search-actor-info h2{
    font-size:22px;
}

}

/* =========================
        Mobile
========================= */

@media (max-width: 600px){

.search-actor-card{
    padding:15px;
}

.search-actor-link{
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.search-actor-photo img{
    width:120px;
    height:160px;
}

.search-actor-info h2{
    font-size:20px;
}

.search-actor-bio{
    font-size:14px;
}

}